Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
helenye-stripe committed Feb 12, 2024
1 parent 40c590a commit e3f99ce
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 13 deletions.
15 changes: 8 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@ codegen-format:
bundle install --quiet
bundle exec rubocop -o /dev/null --autocorrect


ci-test:
bundle install && bundle exec rake test
@version=$$(ruby -e "puts RUBY_VERSION.to_f"); \
if (( $$(echo "$$version >= 2.7" | bc -l) )); then \
echo "Ruby version >= 2.7, continue with srb tc"; \
bundle exec srb tc; \
else \
echo "Ruby version < 2.7, skipping srb tc"; \
fi
@version=$$(ruby -e "puts RUBY_VERSION.split('.')[0..1].join.to_i"); \
if [ $$version -ge 27 ]; then \
echo "Ruby version >= 2.7, continue with srb tc"; \
bundle exec srb tc; \
else \
echo "Ruby version < 2.7, skipping srb tc"; \
fi

test: ci-test
6 changes: 0 additions & 6 deletions lib/stripe/api_resource.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,6 @@ def self.object_name
const_get(:OBJECT_NAME)
end

OBJECT_NAME = ""

def self.object_name
""
end

def self.class_name
name.split("::")[-1]
end
Expand Down

0 comments on commit e3f99ce

Please sign in to comment.