Skip to content

Commit

Permalink
Tidy up the code
Browse files Browse the repository at this point in the history
  • Loading branch information
tapan-sh committed Jun 21, 2024
1 parent 1a84c48 commit 7ad3551
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 41 deletions.
2 changes: 0 additions & 2 deletions lib/zuora/attributes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,6 @@ def attributes
def clear_changed_attributes!
clear_changes_information
self
# @changed_attributes = {}
# self
end

# the name to use when referencing remote Zuora objects
Expand Down
1 change: 0 additions & 1 deletion lib/zuora/objects/amendment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ def apply_response(response_hash, type)
self.invoice_id = result[:invoice_id]
self.payment_transaction_number = result[:payment_transaction_number]
@previously_changed = changes
# @changed_attributes.clear
clear_changes_information
return true
else
Expand Down
3 changes: 0 additions & 3 deletions lib/zuora/objects/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ def reload!
self.send("#{k}=", v)
}
@previously_changed = changes
# @changed_attributes = ActiveSupport::HashWithIndifferentAccess.new
clear_changes_information
self
end
Expand Down Expand Up @@ -192,8 +191,6 @@ def apply_response(response_hash, type)
if result[:success]
self.id = result[:id]
@previously_changed = changes
# require 'pry'; binding.pry
# @changed_attributes = ActiveSupport::HashWithIndifferentAccess.new
clear_changes_information
return true
else
Expand Down
1 change: 0 additions & 1 deletion lib/zuora/objects/subscribe_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ def apply_response(response_hash, type)
subscription.name = result[:subscription_number]
subscription.clear_changed_attributes!
@previously_changed = changes
# @changed_attributes = ActiveSupport::HashWithIndifferentAccess.new
clear_changes_information
else
self.errors.add(:base, result[:errors][:message])
Expand Down
23 changes: 0 additions & 23 deletions publish-gem.sh

This file was deleted.

16 changes: 5 additions & 11 deletions zuora.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,8 @@ Gem::Specification.new do |s|
s.extra_rdoc_files = ['README.md']

s.add_development_dependency 'appraisal'

s.add_development_dependency 'artifice', '~> 0.6.0'
# s.add_development_dependency 'bigdecimal', '< 2.0.0'
s.add_development_dependency 'factory_bot'#, '~> 2.6.4'
s.add_development_dependency 'factory_bot'
s.add_development_dependency 'guard-rspec', '~> 0.6.0'
s.add_development_dependency 'pry'
s.add_development_dependency 'pry-byebug'
Expand All @@ -33,18 +31,14 @@ Gem::Specification.new do |s|
s.add_development_dependency 'redcarpet', '~> 2.1.0'
s.add_development_dependency 'rspec', '~> 3.0'
s.add_development_dependency 'simplecov', '~> 0.22.0'
# s.add_development_dependency 'sqlite3', '~> 1.3.0'
s.add_development_dependency 'test-unit'
s.add_development_dependency 'yard', '~> 0.7.5'

s.add_dependency 'activemodel'#, '< 5.0.0'
# s.add_dependency 'activesupport', '< 5.0.0'
s.add_dependency 'activemodel'
s.add_dependency 'akami', '~> 1.3.2'
s.add_dependency 'httpi', '~> 3.0'
s.add_dependency 'rack', '< 3.0'
s.add_dependency 'libxml4r', '~> 0.2.6'
s.add_dependency 'savon', '~> 2.0'

s.add_dependency 'akami', '~> 1.3.2'
s.add_dependency 'nokogiri', '~> 1.15.6'
s.add_dependency 'rack', '< 3.0'
s.add_dependency 'savon', '~> 2.0'
s.add_dependency 'wasabi', '~> 3.0'
end

0 comments on commit 7ad3551

Please sign in to comment.