active_zuora 2.0.3 → 2.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +15 -0
- data/.gitignore +1 -0
- data/active_zuora.gemspec +4 -4
- data/lib/active_zuora/version.rb +1 -1
- data/spec/belongs_to_associations_spec.rb +8 -8
- data/spec/connection_spec.rb +6 -6
- data/spec/has_many_integration_spec.rb +12 -12
- data/spec/spec_helper.rb +8 -0
- data/spec/subscribe_integration_spec.rb +21 -21
- data/spec/zobject_integration_spec.rb +39 -39
- metadata +15 -34
- data/Gemfile.lock +0 -61
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
N2ZjZmMxZmI2MjI0NTlmZjQ2NWM1NzljOTNlZDVmYjA5Y2FjZjA4Yw==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
ZWEyZTZjNmYzYmJlOTJiYzBhMDE4NmMzMjY0YjRkM2EwNWI1MTAzMQ==
|
7
|
+
SHA512:
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
MTA2MmZjMjg0MjEyZjU4NjkxMzc3NzZiNGJiMWFlNzFiZWNjYjA0YTFlNWZj
|
10
|
+
MzFiYmY1ZmZmNmZkZGRjODYyODAyOGZjNTNkZTExZjQ3NDI0ZjI3NjViYTM0
|
11
|
+
MzFmYjhkZDJlNzI1NWE2NDc4NTZkNjlmYzllNWQzMDZhMTQ4ZDc=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
MGI0ODU1NTA1Y2RhODY1MTY0YWVlN2MxYWMyOWU0M2E5OWI3NDk5NDQ0NjBj
|
14
|
+
ZTk1NDNhNmI2ZjE4MzAyZTRhYmYzMjc4MDU1YjJkMGYxODNmNTc0NzAzOTI2
|
15
|
+
MDFmNDIxYjkyNTI1YWMxY2VkMGMzZjY2NzkwZWNkZGJiZDM5YjA=
|
data/.gitignore
CHANGED
data/active_zuora.gemspec
CHANGED
@@ -22,9 +22,9 @@ Gem::Specification.new do |s|
|
|
22
22
|
s.extra_rdoc_files = [ "README.md" ]
|
23
23
|
|
24
24
|
s.add_runtime_dependency('savon', ["~> 0.9.9"])
|
25
|
-
s.add_runtime_dependency('activesupport', [">= 3.0.0", "<
|
26
|
-
s.add_runtime_dependency('activemodel', [">= 3.0.0", "<
|
25
|
+
s.add_runtime_dependency('activesupport', [">= 3.0.0", "< 5.0.0"])
|
26
|
+
s.add_runtime_dependency('activemodel', [">= 3.0.0", "< 5.0.0"])
|
27
27
|
|
28
|
-
s.add_development_dependency('rake', ["
|
29
|
-
s.add_development_dependency('rspec', ["
|
28
|
+
s.add_development_dependency('rake', [">= 0.8.7"])
|
29
|
+
s.add_development_dependency('rspec', [">= 3.0.0"])
|
30
30
|
end
|
data/lib/active_zuora/version.rb
CHANGED
@@ -14,21 +14,21 @@ describe "BelongsToAssociations" do
|
|
14
14
|
it "should define a attribute assignment method method for the object" do
|
15
15
|
blog = Blog.new :id => "blog1"
|
16
16
|
comment = Comment.new :blog => blog
|
17
|
-
comment.blog_loaded
|
18
|
-
comment.blog.
|
19
|
-
comment.blog_id.
|
17
|
+
expect(comment.blog_loaded?).to be_truthy
|
18
|
+
expect(comment.blog).to eq(blog)
|
19
|
+
expect(comment.blog_id).to eq(blog.id)
|
20
20
|
comment.blog = nil
|
21
|
-
comment.blog_loaded
|
22
|
-
comment.blog.
|
23
|
-
comment.blog_id.
|
21
|
+
expect(comment.blog_loaded?).to be_truthy
|
22
|
+
expect(comment.blog).to be_nil
|
23
|
+
expect(comment.blog_id).to be_nil
|
24
24
|
end
|
25
25
|
|
26
26
|
it "should define a attribute assignment method for the object id" do
|
27
27
|
blog = Blog.new :id => "blog1"
|
28
28
|
comment = Comment.new :blog => blog
|
29
|
-
comment.blog_loaded
|
29
|
+
expect(comment.blog_loaded?).to be_truthy
|
30
30
|
comment.blog_id = "blog2"
|
31
|
-
comment.blog_loaded
|
31
|
+
expect(comment.blog_loaded?).to be_falsey
|
32
32
|
end
|
33
33
|
|
34
34
|
end
|
data/spec/connection_spec.rb
CHANGED
@@ -8,30 +8,30 @@ describe ActiveZuora::Connection do
|
|
8
8
|
end
|
9
9
|
|
10
10
|
it "passes the regular header if not set" do
|
11
|
-
Savon::SOAP::Request.
|
11
|
+
allow(Savon::SOAP::Request).to receive(:new) do |config, http, soap|
|
12
12
|
@stub_was_called = true
|
13
|
-
soap.header.
|
13
|
+
expect(soap.header).to eq( { "SessionHeader" => {"session" => nil} } )
|
14
14
|
|
15
15
|
double('response').as_null_object
|
16
16
|
end
|
17
17
|
|
18
18
|
@connection.request(:amend) {}
|
19
19
|
|
20
|
-
@stub_was_called.
|
20
|
+
expect(@stub_was_called).to be_truthy
|
21
21
|
end
|
22
22
|
|
23
23
|
it "merges in a custom header if set" do
|
24
24
|
@connection.custom_header = {'CallOptions' => {'useSingleTransaction' => true}}
|
25
|
-
Savon::SOAP::Request.
|
25
|
+
allow(Savon::SOAP::Request).to receive(:new) do |config, http, soap|
|
26
26
|
@stub_was_called = true
|
27
|
-
soap.header.
|
27
|
+
expect(soap.header).to eq( { "SessionHeader" => {"session" => nil}, 'CallOptions' => {'useSingleTransaction' => true} } )
|
28
28
|
|
29
29
|
double('response').as_null_object
|
30
30
|
end
|
31
31
|
|
32
32
|
@connection.request(:amend) {}
|
33
33
|
|
34
|
-
@stub_was_called.
|
34
|
+
expect(@stub_was_called).to be_truthy
|
35
35
|
end
|
36
36
|
end
|
37
37
|
end
|
@@ -6,9 +6,9 @@ describe "HasManyRelations" do
|
|
6
6
|
|
7
7
|
before :all do
|
8
8
|
@account = Z::Account.create!(
|
9
|
-
:name => "ZObject Integration Test Account",
|
9
|
+
:name => "ZObject Integration Test Account",
|
10
10
|
:status => "Draft",
|
11
|
-
:currency =>
|
11
|
+
:currency => Tenant.currency,
|
12
12
|
:bill_cycle_day => 1)
|
13
13
|
@billy = Z::Contact.create!(
|
14
14
|
:account => @account,
|
@@ -29,24 +29,24 @@ describe "HasManyRelations" do
|
|
29
29
|
Z::Account.instance_eval do
|
30
30
|
has_many :billies, :conditions => { :first_name => "Billy" }, :order => [:first_name, :desc], :class_name => 'Z::Contact'
|
31
31
|
end
|
32
|
-
|
33
|
-
@account.billies.scope.order_attribute.
|
34
|
-
@account.billies.scope.order_direction.
|
32
|
+
expect(@account.billies.to_a).to eq([@billy])
|
33
|
+
expect(@account.billies.scope.order_attribute).to eq(:first_name)
|
34
|
+
expect(@account.billies.scope.order_direction).to eq(:desc)
|
35
35
|
end
|
36
36
|
|
37
37
|
it "can behave like an array" do
|
38
|
-
@account.contacts.size.
|
39
|
-
@account.contacts.map(&:first_name).
|
38
|
+
expect(@account.contacts.size).to eq(2)
|
39
|
+
expect(@account.contacts.map(&:first_name)).to match_array(%w{Billy Franky})
|
40
40
|
end
|
41
41
|
|
42
42
|
it "can respond to functions on the Relation" do
|
43
43
|
@account.contacts.unload
|
44
|
-
@account.contacts.loaded
|
44
|
+
expect(@account.contacts.loaded?).to be_falsey
|
45
45
|
@account.contacts.reload
|
46
|
-
@account.contacts.loaded
|
47
|
-
@account.contacts.where(:last_name => "Funhouse").to_a.
|
48
|
-
@account.contacts.loaded
|
49
|
-
@account.contacts.to_a.
|
46
|
+
expect(@account.contacts.loaded?).to be_truthy
|
47
|
+
expect(@account.contacts.where(:last_name => "Funhouse").to_a).to eq([@franky])
|
48
|
+
expect(@account.contacts.loaded?).to be_truthy
|
49
|
+
expect(@account.contacts.to_a).to match_array([@billy, @franky])
|
50
50
|
end
|
51
51
|
|
52
52
|
end
|
data/spec/spec_helper.rb
CHANGED
@@ -2,6 +2,8 @@ require 'rubygems'
|
|
2
2
|
require 'rspec'
|
3
3
|
require 'active_zuora'
|
4
4
|
|
5
|
+
I18n.enforce_available_locales = true
|
6
|
+
|
5
7
|
ActiveZuora.configure(
|
6
8
|
:log => ENV['DEBUG'],
|
7
9
|
:username => ENV['ZUORA_USER'],
|
@@ -18,4 +20,10 @@ def integration_test
|
|
18
20
|
else
|
19
21
|
$stderr.puts "Integration tests skipped because ZUORA_USER or ZUORA_PASS are not set."
|
20
22
|
end
|
23
|
+
end
|
24
|
+
|
25
|
+
module Tenant
|
26
|
+
def self.currency
|
27
|
+
ENV['ZUORA_CURRENCY'] || 'USD'
|
28
|
+
end
|
21
29
|
end
|
@@ -28,7 +28,7 @@ describe "Subscribe" do
|
|
28
28
|
:product_rate_plan_charge_tier_data => {
|
29
29
|
:product_rate_plan_charge_tier => {
|
30
30
|
:active => true,
|
31
|
-
:currency =>
|
31
|
+
:currency => Tenant.currency,
|
32
32
|
:tier => 1,
|
33
33
|
:price => 50.00,
|
34
34
|
:starting_unit => 1,
|
@@ -48,7 +48,7 @@ describe "Subscribe" do
|
|
48
48
|
subscribe_request = Z::SubscribeRequest.new(
|
49
49
|
:account => {
|
50
50
|
:name => "Joe Customer",
|
51
|
-
:currency =>
|
51
|
+
:currency => Tenant.currency,
|
52
52
|
:bill_cycle_day => 1,
|
53
53
|
:payment_term => "Due Upon Receipt",
|
54
54
|
:batch => "Batch1"
|
@@ -90,13 +90,13 @@ describe "Subscribe" do
|
|
90
90
|
|
91
91
|
subscribe_request.subscribe!
|
92
92
|
@account = subscribe_request.account
|
93
|
-
subscribe_request.account.new_record
|
94
|
-
subscribe_request.account.changed
|
95
|
-
subscribe_request.subscription_data.subscription.new_record
|
96
|
-
subscribe_request.subscription_data.subscription.rate_plans.first.
|
93
|
+
expect(subscribe_request.account.new_record?).to be_falsey
|
94
|
+
expect(subscribe_request.account.changed?).to be_falsey
|
95
|
+
expect(subscribe_request.subscription_data.subscription.new_record?).to be_falsey
|
96
|
+
expect(subscribe_request.subscription_data.subscription.rate_plans.first.
|
97
97
|
rate_plan_charges.first.
|
98
|
-
product_rate_plan_charge.
|
99
|
-
subscribe_request.result.
|
98
|
+
product_rate_plan_charge).to eq(@product_rate_plan_charge)
|
99
|
+
expect(subscribe_request.result).to be_present
|
100
100
|
|
101
101
|
# Now amend the subscription
|
102
102
|
subscription = subscribe_request.subscription_data.subscription.reload
|
@@ -119,8 +119,8 @@ describe "Subscribe" do
|
|
119
119
|
}
|
120
120
|
)
|
121
121
|
amend_request.amend!
|
122
|
-
amend_request.amendments.first.new_record
|
123
|
-
amend_request.result.
|
122
|
+
expect(amend_request.amendments.first.new_record?).to be_falsey
|
123
|
+
expect(amend_request.result).to be_present
|
124
124
|
end
|
125
125
|
|
126
126
|
it "Can successfully subscribe and generate an invoice" do
|
@@ -128,7 +128,7 @@ describe "Subscribe" do
|
|
128
128
|
subscribe_request = Z::SubscribeRequest.new(
|
129
129
|
:account => {
|
130
130
|
:name => "Joe Customer",
|
131
|
-
:currency =>
|
131
|
+
:currency => Tenant.currency,
|
132
132
|
:bill_cycle_day => 1,
|
133
133
|
:payment_term => "Due Upon Receipt",
|
134
134
|
:batch => "Batch1"
|
@@ -171,13 +171,13 @@ describe "Subscribe" do
|
|
171
171
|
|
172
172
|
subscribe_request.subscribe!
|
173
173
|
@account = subscribe_request.account
|
174
|
-
subscribe_request.account.new_record
|
175
|
-
subscribe_request.account.changed
|
176
|
-
subscribe_request.subscription_data.subscription.new_record
|
177
|
-
subscribe_request.subscription_data.subscription.rate_plans.first.
|
174
|
+
expect(subscribe_request.account.new_record?).to be_falsey
|
175
|
+
expect(subscribe_request.account.changed?).to be_falsey
|
176
|
+
expect(subscribe_request.subscription_data.subscription.new_record?).to be_falsey
|
177
|
+
expect(subscribe_request.subscription_data.subscription.rate_plans.first.
|
178
178
|
rate_plan_charges.first.
|
179
|
-
product_rate_plan_charge.
|
180
|
-
subscribe_request.result.
|
179
|
+
product_rate_plan_charge).to eq(@product_rate_plan_charge)
|
180
|
+
expect(subscribe_request.result).to be_present
|
181
181
|
|
182
182
|
# Now renew the subscription
|
183
183
|
subscription = subscribe_request.subscription_data.subscription.reload
|
@@ -198,8 +198,8 @@ describe "Subscribe" do
|
|
198
198
|
}
|
199
199
|
)
|
200
200
|
amend_request.amend!
|
201
|
-
amend_request.amendments.first.new_record
|
202
|
-
amend_request.result.
|
201
|
+
expect(amend_request.amendments.first.new_record?).to be_falsey
|
202
|
+
expect(amend_request.result).to be_present
|
203
203
|
|
204
204
|
invoice = Z::Invoice.new(
|
205
205
|
account_id: subscribe_request.account.id,
|
@@ -210,8 +210,8 @@ describe "Subscribe" do
|
|
210
210
|
includes_usage: false
|
211
211
|
)
|
212
212
|
invoice.generate!
|
213
|
-
invoice.id.
|
214
|
-
invoice.account_id.
|
213
|
+
expect(invoice.id).to be_present
|
214
|
+
expect(invoice.account_id).to eq(subscribe_request.account.id)
|
215
215
|
end
|
216
216
|
|
217
217
|
end
|
@@ -10,47 +10,47 @@ describe "ZObject" do
|
|
10
10
|
@child.delete if @child
|
11
11
|
end
|
12
12
|
|
13
|
-
it "can
|
13
|
+
it "can be created, queried, updated, and destroyed" do
|
14
14
|
|
15
15
|
# Test failed creation.
|
16
16
|
@account = Z::Account.create
|
17
|
-
@account.new_record
|
18
|
-
@account.errors.
|
17
|
+
expect(@account.new_record?).to be_truthy
|
18
|
+
expect(@account.errors).to be_present
|
19
19
|
|
20
20
|
# Test creation.
|
21
21
|
@account = Z::Account.new(
|
22
|
-
:name => "ZObject Integration Test Account",
|
23
|
-
:currency =>
|
24
|
-
:status => "Draft",
|
22
|
+
:name => "ZObject Integration Test Account",
|
23
|
+
:currency => Tenant.currency,
|
24
|
+
:status => "Draft",
|
25
25
|
:bill_cycle_day => 1)
|
26
|
-
@account.changes.
|
27
|
-
@account.save.
|
28
|
-
@account.new_record
|
29
|
-
@account.errors.
|
30
|
-
@account.changes.
|
26
|
+
expect(@account.changes).to be_present
|
27
|
+
expect(@account.save).to be_truthy
|
28
|
+
expect(@account.new_record?).to be_falsey
|
29
|
+
expect(@account.errors).to be_blank
|
30
|
+
expect(@account.changes).to be_blank
|
31
31
|
|
32
32
|
# Test update.
|
33
33
|
@account.name = "ZObject Integration Test Account 2"
|
34
|
-
@account.changes.
|
35
|
-
@account.save.
|
36
|
-
@account.changes.
|
34
|
+
expect(@account.changes).to be_present
|
35
|
+
expect(@account.save).to be_truthy
|
36
|
+
expect(@account.changes).to be_blank
|
37
37
|
|
38
38
|
# Test querying.
|
39
|
-
Z::Account.where(:name => "Some Random Name").
|
40
|
-
Z::Account.where(:name => "Some Random Name").or(:name => @account.name).
|
41
|
-
Z::Account.where(:created_date => { ">=" => Date.
|
42
|
-
Z::Account.where(:created_date => { ">" => Time.now }).or(:name => @account.name).
|
39
|
+
expect(Z::Account.where(:name => "Some Random Name")).to_not include(@account)
|
40
|
+
expect(Z::Account.where(:name => "Some Random Name").or(:name => @account.name)).to include(@account)
|
41
|
+
expect(Z::Account.where(:created_date => { ">=" => Date.yesterday })).to include(@account)
|
42
|
+
expect(Z::Account.where(:created_date => { ">" => Time.now }).or(:name => @account.name)).to include(@account)
|
43
43
|
Z::Account.where(:created_date => { ">=" => Date.today }).find_each do |account|
|
44
|
-
account.
|
44
|
+
expect(account).to be_present
|
45
45
|
end
|
46
46
|
|
47
47
|
# Test ordering
|
48
48
|
unordered = Z::Account.where(:created_date => { ">=" => Date.today })
|
49
49
|
ordered = unordered.order(:name, :desc)
|
50
|
-
unordered.order_attribute.
|
51
|
-
unordered.order_direction.
|
52
|
-
ordered.order_attribute.
|
53
|
-
ordered.order_direction.
|
50
|
+
expect(unordered.order_attribute).to eq(:created_date)
|
51
|
+
expect(unordered.order_direction).to eq(:asc)
|
52
|
+
expect(ordered.order_attribute).to eq(:name)
|
53
|
+
expect(ordered.order_direction).to eq(:desc)
|
54
54
|
|
55
55
|
# Test scopes and chaining.
|
56
56
|
Z::Account.instance_eval do
|
@@ -58,29 +58,29 @@ describe "ZObject" do
|
|
58
58
|
scope :active, where(:status => "Active")
|
59
59
|
scope :since, lambda { |datetime| where(:created_date => { ">=" => datetime }) }
|
60
60
|
end
|
61
|
-
Z::Account.select(:id).draft.to_zql.
|
62
|
-
Z::Account.select(:id).active.since(Date.new 2012).to_zql.
|
61
|
+
expect(Z::Account.select(:id).draft.to_zql).to eq("select Id from Account where Status = 'Draft'")
|
62
|
+
expect(Z::Account.select(:id).active.since(Date.new 2012).to_zql).to eq("select Id from Account where Status = 'Active' and CreatedDate >= '2012-01-01T00:00:00+08:00'")
|
63
63
|
|
64
64
|
# Update all.
|
65
|
-
Z::Account.where(:name => @account.name).update_all(:name => "ZObject Integration Test Account 3").
|
66
|
-
@account.reload.name.
|
65
|
+
expect(Z::Account.where(:name => @account.name).update_all(:name => "ZObject Integration Test Account 3")).to eq(1)
|
66
|
+
expect(@account.reload.name).to eq("ZObject Integration Test Account 3")
|
67
67
|
# Block-style update_all
|
68
|
-
Z::Account.where(:name => @account.name).update_all { |account| account.name += "4" }.
|
69
|
-
@account.reload.name.
|
68
|
+
expect(Z::Account.where(:name => @account.name).update_all { |account| account.name += "4" }).to eq(1)
|
69
|
+
expect(@account.reload.name).to eq("ZObject Integration Test Account 34")
|
70
70
|
# No changes, so no records were updated.
|
71
|
-
Z::Account.where(:name => @account.name).update_all(:name => "ZObject Integration Test Account 34").
|
71
|
+
expect(Z::Account.where(:name => @account.name).update_all(:name => "ZObject Integration Test Account 34")).to eq(0)
|
72
72
|
|
73
73
|
# Associations
|
74
74
|
@child = Z::Account.create!(
|
75
75
|
:parent_id => @account.id,
|
76
|
-
:name => "ZObject Integration Test Child Account",
|
77
|
-
:currency =>
|
78
|
-
:status => "Draft",
|
76
|
+
:name => "ZObject Integration Test Child Account",
|
77
|
+
:currency => Tenant.currency,
|
78
|
+
:status => "Draft",
|
79
79
|
:bill_cycle_day => 1)
|
80
|
-
@
|
81
|
-
@
|
80
|
+
expect(@account.children).to include(@child)
|
81
|
+
expect(@child.parent).to eq(@account)
|
82
82
|
# Make sure that the has_many pre-loads the inverse relationship.
|
83
|
-
@account.children.each { |child| child.parent_loaded
|
83
|
+
@account.children.each { |child| expect(child.parent_loaded?).to be_truthy }
|
84
84
|
|
85
85
|
# Testing batch creates
|
86
86
|
batch_accounts = []
|
@@ -88,14 +88,14 @@ describe "ZObject" do
|
|
88
88
|
(1..batch_number).each do |i|
|
89
89
|
batch_accounts << Z::Account.new(
|
90
90
|
:name => @account.name,
|
91
|
-
:currency =>
|
91
|
+
:currency => Tenant.currency,
|
92
92
|
:status => "Draft",
|
93
93
|
:bill_cycle_day => 1)
|
94
94
|
end
|
95
|
-
Z::Account.save(batch_accounts).
|
95
|
+
expect(Z::Account.save(batch_accounts)).to eq(batch_number)
|
96
96
|
|
97
97
|
# Delete all
|
98
|
-
Z::Account.where(:name => @account.name).delete_all.
|
98
|
+
expect(Z::Account.where(:name => @account.name).delete_all).to be >= 1
|
99
99
|
@account = nil
|
100
100
|
|
101
101
|
end
|
metadata
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_zuora
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
5
|
-
prerelease:
|
4
|
+
version: 2.0.4
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Ed Lebert
|
@@ -10,12 +9,11 @@ authors:
|
|
10
9
|
autorequire:
|
11
10
|
bindir: bin
|
12
11
|
cert_chain: []
|
13
|
-
date: 2014-
|
12
|
+
date: 2014-07-23 00:00:00.000000000 Z
|
14
13
|
dependencies:
|
15
14
|
- !ruby/object:Gem::Dependency
|
16
15
|
name: savon
|
17
16
|
requirement: !ruby/object:Gem::Requirement
|
18
|
-
none: false
|
19
17
|
requirements:
|
20
18
|
- - ~>
|
21
19
|
- !ruby/object:Gem::Version
|
@@ -23,7 +21,6 @@ dependencies:
|
|
23
21
|
type: :runtime
|
24
22
|
prerelease: false
|
25
23
|
version_requirements: !ruby/object:Gem::Requirement
|
26
|
-
none: false
|
27
24
|
requirements:
|
28
25
|
- - ~>
|
29
26
|
- !ruby/object:Gem::Version
|
@@ -31,79 +28,71 @@ dependencies:
|
|
31
28
|
- !ruby/object:Gem::Dependency
|
32
29
|
name: activesupport
|
33
30
|
requirement: !ruby/object:Gem::Requirement
|
34
|
-
none: false
|
35
31
|
requirements:
|
36
32
|
- - ! '>='
|
37
33
|
- !ruby/object:Gem::Version
|
38
34
|
version: 3.0.0
|
39
35
|
- - <
|
40
36
|
- !ruby/object:Gem::Version
|
41
|
-
version:
|
37
|
+
version: 5.0.0
|
42
38
|
type: :runtime
|
43
39
|
prerelease: false
|
44
40
|
version_requirements: !ruby/object:Gem::Requirement
|
45
|
-
none: false
|
46
41
|
requirements:
|
47
42
|
- - ! '>='
|
48
43
|
- !ruby/object:Gem::Version
|
49
44
|
version: 3.0.0
|
50
45
|
- - <
|
51
46
|
- !ruby/object:Gem::Version
|
52
|
-
version:
|
47
|
+
version: 5.0.0
|
53
48
|
- !ruby/object:Gem::Dependency
|
54
49
|
name: activemodel
|
55
50
|
requirement: !ruby/object:Gem::Requirement
|
56
|
-
none: false
|
57
51
|
requirements:
|
58
52
|
- - ! '>='
|
59
53
|
- !ruby/object:Gem::Version
|
60
54
|
version: 3.0.0
|
61
55
|
- - <
|
62
56
|
- !ruby/object:Gem::Version
|
63
|
-
version:
|
57
|
+
version: 5.0.0
|
64
58
|
type: :runtime
|
65
59
|
prerelease: false
|
66
60
|
version_requirements: !ruby/object:Gem::Requirement
|
67
|
-
none: false
|
68
61
|
requirements:
|
69
62
|
- - ! '>='
|
70
63
|
- !ruby/object:Gem::Version
|
71
64
|
version: 3.0.0
|
72
65
|
- - <
|
73
66
|
- !ruby/object:Gem::Version
|
74
|
-
version:
|
67
|
+
version: 5.0.0
|
75
68
|
- !ruby/object:Gem::Dependency
|
76
69
|
name: rake
|
77
70
|
requirement: !ruby/object:Gem::Requirement
|
78
|
-
none: false
|
79
71
|
requirements:
|
80
|
-
- -
|
72
|
+
- - ! '>='
|
81
73
|
- !ruby/object:Gem::Version
|
82
74
|
version: 0.8.7
|
83
75
|
type: :development
|
84
76
|
prerelease: false
|
85
77
|
version_requirements: !ruby/object:Gem::Requirement
|
86
|
-
none: false
|
87
78
|
requirements:
|
88
|
-
- -
|
79
|
+
- - ! '>='
|
89
80
|
- !ruby/object:Gem::Version
|
90
81
|
version: 0.8.7
|
91
82
|
- !ruby/object:Gem::Dependency
|
92
83
|
name: rspec
|
93
84
|
requirement: !ruby/object:Gem::Requirement
|
94
|
-
none: false
|
95
85
|
requirements:
|
96
|
-
- -
|
86
|
+
- - ! '>='
|
97
87
|
- !ruby/object:Gem::Version
|
98
|
-
version:
|
88
|
+
version: 3.0.0
|
99
89
|
type: :development
|
100
90
|
prerelease: false
|
101
91
|
version_requirements: !ruby/object:Gem::Requirement
|
102
|
-
none: false
|
103
92
|
requirements:
|
104
|
-
- -
|
93
|
+
- - ! '>='
|
105
94
|
- !ruby/object:Gem::Version
|
106
|
-
version:
|
95
|
+
version: 3.0.0
|
107
96
|
description: ActiveZuora - Zuora API based on ActiveModel and auto-generated from
|
108
97
|
your zuora.wsdl.
|
109
98
|
email:
|
@@ -116,7 +105,6 @@ extra_rdoc_files:
|
|
116
105
|
files:
|
117
106
|
- .gitignore
|
118
107
|
- Gemfile
|
119
|
-
- Gemfile.lock
|
120
108
|
- MIT-LICENSE
|
121
109
|
- README.md
|
122
110
|
- Rakefile
|
@@ -156,33 +144,26 @@ files:
|
|
156
144
|
homepage: https://github.com/sportngin/active_zuora
|
157
145
|
licenses:
|
158
146
|
- MIT
|
147
|
+
metadata: {}
|
159
148
|
post_install_message:
|
160
149
|
rdoc_options: []
|
161
150
|
require_paths:
|
162
151
|
- lib
|
163
152
|
required_ruby_version: !ruby/object:Gem::Requirement
|
164
|
-
none: false
|
165
153
|
requirements:
|
166
154
|
- - ! '>='
|
167
155
|
- !ruby/object:Gem::Version
|
168
156
|
version: '0'
|
169
|
-
segments:
|
170
|
-
- 0
|
171
|
-
hash: 3328302040527430085
|
172
157
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
173
|
-
none: false
|
174
158
|
requirements:
|
175
159
|
- - ! '>='
|
176
160
|
- !ruby/object:Gem::Version
|
177
161
|
version: '0'
|
178
|
-
segments:
|
179
|
-
- 0
|
180
|
-
hash: 3328302040527430085
|
181
162
|
requirements: []
|
182
163
|
rubyforge_project:
|
183
|
-
rubygems_version:
|
164
|
+
rubygems_version: 2.2.2
|
184
165
|
signing_key:
|
185
|
-
specification_version:
|
166
|
+
specification_version: 4
|
186
167
|
summary: ActiveZuora - Zuora API that looks and feels like ActiveRecord.
|
187
168
|
test_files:
|
188
169
|
- spec/belongs_to_associations_spec.rb
|
data/Gemfile.lock
DELETED
@@ -1,61 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
active_zuora (2.0.3)
|
5
|
-
activemodel (>= 3.0.0, < 4.0.0)
|
6
|
-
activesupport (>= 3.0.0, < 4.0.0)
|
7
|
-
savon (~> 0.9.9)
|
8
|
-
|
9
|
-
GEM
|
10
|
-
remote: https://rubygems.org/
|
11
|
-
specs:
|
12
|
-
activemodel (3.2.13)
|
13
|
-
activesupport (= 3.2.13)
|
14
|
-
builder (~> 3.0.0)
|
15
|
-
activesupport (3.2.13)
|
16
|
-
i18n (= 0.6.1)
|
17
|
-
multi_json (~> 1.0)
|
18
|
-
akami (1.2.0)
|
19
|
-
gyoku (>= 0.4.0)
|
20
|
-
nokogiri (>= 1.4.0)
|
21
|
-
builder (3.0.4)
|
22
|
-
diff-lcs (1.1.3)
|
23
|
-
gyoku (1.1.1)
|
24
|
-
builder (>= 2.1.2)
|
25
|
-
httpi (1.1.1)
|
26
|
-
rack
|
27
|
-
i18n (0.6.1)
|
28
|
-
mini_portile (0.5.2)
|
29
|
-
multi_json (1.8.4)
|
30
|
-
nokogiri (1.6.1)
|
31
|
-
mini_portile (~> 0.5.0)
|
32
|
-
nori (1.1.5)
|
33
|
-
rack (1.5.2)
|
34
|
-
rake (0.8.7)
|
35
|
-
rspec (2.8.0)
|
36
|
-
rspec-core (~> 2.8.0)
|
37
|
-
rspec-expectations (~> 2.8.0)
|
38
|
-
rspec-mocks (~> 2.8.0)
|
39
|
-
rspec-core (2.8.0)
|
40
|
-
rspec-expectations (2.8.0)
|
41
|
-
diff-lcs (~> 1.1.2)
|
42
|
-
rspec-mocks (2.8.0)
|
43
|
-
savon (0.9.14)
|
44
|
-
akami (~> 1.1)
|
45
|
-
builder (>= 2.1.2)
|
46
|
-
gyoku (>= 0.4.0)
|
47
|
-
httpi (~> 1.0)
|
48
|
-
nokogiri (>= 1.4.0)
|
49
|
-
nori (~> 1.1)
|
50
|
-
wasabi (~> 2.2)
|
51
|
-
wasabi (2.5.1)
|
52
|
-
httpi (~> 1.0)
|
53
|
-
nokogiri (>= 1.4.0)
|
54
|
-
|
55
|
-
PLATFORMS
|
56
|
-
ruby
|
57
|
-
|
58
|
-
DEPENDENCIES
|
59
|
-
active_zuora!
|
60
|
-
rake (~> 0.8.7)
|
61
|
-
rspec (~> 2.8.0)
|