stripe-ruby-mock 2.0.5 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -9,19 +9,19 @@ shared_examples 'Customer API' do
9
9
  it "creates a stripe customer with a default card" do
10
10
  customer = Stripe::Customer.create({
11
11
  email: 'johnny@appleseed.com',
12
- card: gen_card_tk,
12
+ source: gen_card_tk,
13
13
  description: "a description"
14
14
  })
15
15
  expect(customer.id).to match(/^test_cus/)
16
16
  expect(customer.email).to eq('johnny@appleseed.com')
17
17
  expect(customer.description).to eq('a description')
18
18
 
19
- expect(customer.cards.count).to eq(1)
20
- expect(customer.cards.data.length).to eq(1)
21
- expect(customer.default_card).to_not be_nil
22
- expect(customer.default_card).to eq customer.cards.data.first.id
19
+ expect(customer.sources.count).to eq(1)
20
+ expect(customer.sources.data.length).to eq(1)
21
+ expect(customer.default_source).to_not be_nil
22
+ expect(customer.default_source).to eq customer.sources.data.first.id
23
23
 
24
- expect { customer.card }.to raise_error
24
+ expect { customer.source }.to raise_error
25
25
  end
26
26
 
27
27
  it "creates a stripe customer without a card" do
@@ -33,14 +33,14 @@ shared_examples 'Customer API' do
33
33
  expect(customer.email).to eq('cardless@appleseed.com')
34
34
  expect(customer.description).to eq('no card')
35
35
 
36
- expect(customer.cards.count).to eq(0)
37
- expect(customer.cards.data.length).to eq(0)
38
- expect(customer.default_card).to be_nil
36
+ expect(customer.sources.count).to eq(0)
37
+ expect(customer.sources.data.length).to eq(0)
38
+ expect(customer.default_source).to be_nil
39
39
  end
40
40
 
41
41
  it 'creates a customer with a plan' do
42
42
  plan = stripe_helper.create_plan(id: 'silver')
43
- customer = Stripe::Customer.create(id: 'test_cus_plan', card: gen_card_tk, :plan => 'silver')
43
+ customer = Stripe::Customer.create(id: 'test_cus_plan', source: gen_card_tk, :plan => 'silver')
44
44
 
45
45
  customer = Stripe::Customer.retrieve('test_cus_plan')
46
46
  expect(customer.subscriptions.count).to eq(1)
@@ -53,13 +53,13 @@ shared_examples 'Customer API' do
53
53
 
54
54
  it "creates a customer with a plan (string/symbol agnostic)" do
55
55
  plan = stripe_helper.create_plan(id: 'string_id')
56
- customer = Stripe::Customer.create(id: 'test_cus_plan', card: gen_card_tk, :plan => :string_id)
56
+ customer = Stripe::Customer.create(id: 'test_cus_plan', source: gen_card_tk, :plan => :string_id)
57
57
 
58
58
  customer = Stripe::Customer.retrieve('test_cus_plan')
59
59
  expect(customer.subscriptions.first.plan.id).to eq('string_id')
60
60
 
61
61
  plan = stripe_helper.create_plan(:id => :sym_id)
62
- customer = Stripe::Customer.create(id: 'test_cus_plan', card: gen_card_tk, :plan => 'sym_id')
62
+ customer = Stripe::Customer.create(id: 'test_cus_plan', source: gen_card_tk, :plan => 'sym_id')
63
63
 
64
64
  customer = Stripe::Customer.retrieve('test_cus_plan')
65
65
  expect(customer.subscriptions.first.plan.id).to eq('sym_id')
@@ -70,7 +70,7 @@ shared_examples 'Customer API' do
70
70
  it "with a trial when trial_end is set" do
71
71
  plan = stripe_helper.create_plan(id: 'no_trial', amount: 999)
72
72
  trial_end = Time.now.utc.to_i + 3600
73
- customer = Stripe::Customer.create(id: 'test_cus_trial_end', card: gen_card_tk, plan: 'no_trial', trial_end: trial_end)
73
+ customer = Stripe::Customer.create(id: 'test_cus_trial_end', source: gen_card_tk, plan: 'no_trial', trial_end: trial_end)
74
74
 
75
75
  customer = Stripe::Customer.retrieve('test_cus_trial_end')
76
76
  expect(customer.subscriptions.count).to eq(1)
@@ -86,7 +86,7 @@ shared_examples 'Customer API' do
86
86
  it 'overrides trial period length when trial_end is set' do
87
87
  plan = stripe_helper.create_plan(id: 'silver', amount: 999, trial_period_days: 14)
88
88
  trial_end = Time.now.utc.to_i + 3600
89
- customer = Stripe::Customer.create(id: 'test_cus_trial_end', card: gen_card_tk, plan: 'silver', trial_end: trial_end)
89
+ customer = Stripe::Customer.create(id: 'test_cus_trial_end', source: gen_card_tk, plan: 'silver', trial_end: trial_end)
90
90
 
91
91
  customer = Stripe::Customer.retrieve('test_cus_trial_end')
92
92
  expect(customer.subscriptions.count).to eq(1)
@@ -100,7 +100,7 @@ shared_examples 'Customer API' do
100
100
 
101
101
  it "returns no trial when trial_end is set to 'now'" do
102
102
  plan = stripe_helper.create_plan(id: 'silver', amount: 999, trial_period_days: 14)
103
- customer = Stripe::Customer.create(id: 'test_cus_trial_end', card: gen_card_tk, plan: 'silver', trial_end: "now")
103
+ customer = Stripe::Customer.create(id: 'test_cus_trial_end', source: gen_card_tk, plan: 'silver', trial_end: "now")
104
104
 
105
105
  customer = Stripe::Customer.retrieve('test_cus_trial_end')
106
106
  expect(customer.subscriptions.count).to eq(1)
@@ -116,7 +116,7 @@ shared_examples 'Customer API' do
116
116
  it "returns an error if trial_end is set to a past time" do
117
117
  plan = stripe_helper.create_plan(id: 'silver', amount: 999)
118
118
  expect {
119
- Stripe::Customer.create(id: 'test_cus_trial_end', card: gen_card_tk, plan: 'silver', trial_end: Time.now.utc.to_i - 3600)
119
+ Stripe::Customer.create(id: 'test_cus_trial_end', source: gen_card_tk, plan: 'silver', trial_end: Time.now.utc.to_i - 3600)
120
120
  }.to raise_error {|e|
121
121
  expect(e).to be_a(Stripe::InvalidRequestError)
122
122
  expect(e.message).to eq('Invalid timestamp: must be an integer Unix timestamp in the future')
@@ -125,7 +125,7 @@ shared_examples 'Customer API' do
125
125
 
126
126
  it "returns an error if trial_end is set without a plan" do
127
127
  expect {
128
- Stripe::Customer.create(id: 'test_cus_trial_end', card: gen_card_tk, trial_end: "now")
128
+ Stripe::Customer.create(id: 'test_cus_trial_end', source: gen_card_tk, trial_end: "now")
129
129
  }.to raise_error {|e|
130
130
  expect(e).to be_a(Stripe::InvalidRequestError)
131
131
  expect(e.message).to eq('Received unknown parameter: trial_end')
@@ -136,7 +136,7 @@ shared_examples 'Customer API' do
136
136
 
137
137
  it 'cannot create a customer with a plan that does not exist' do
138
138
  expect {
139
- customer = Stripe::Customer.create(id: 'test_cus_no_plan', card: gen_card_tk, :plan => 'non-existant')
139
+ customer = Stripe::Customer.create(id: 'test_cus_no_plan', source: gen_card_tk, :plan => 'non-existant')
140
140
  }.to raise_error {|e|
141
141
  expect(e).to be_a(Stripe::InvalidRequestError)
142
142
  expect(e.message).to eq('No such plan: non-existant')
@@ -156,11 +156,11 @@ shared_examples 'Customer API' do
156
156
  it "stores a created stripe customer in memory" do
157
157
  customer = Stripe::Customer.create({
158
158
  email: 'johnny@appleseed.com',
159
- card: gen_card_tk
159
+ source: gen_card_tk
160
160
  })
161
161
  customer2 = Stripe::Customer.create({
162
162
  email: 'bob@bobbers.com',
163
- card: gen_card_tk
163
+ source: gen_card_tk
164
164
  })
165
165
  data = test_data_source(:customers)
166
166
  expect(data[customer.id]).to_not be_nil
@@ -173,13 +173,13 @@ shared_examples 'Customer API' do
173
173
  it "retrieves a stripe customer" do
174
174
  original = Stripe::Customer.create({
175
175
  email: 'johnny@appleseed.com',
176
- card: gen_card_tk
176
+ source: gen_card_tk
177
177
  })
178
178
  customer = Stripe::Customer.retrieve(original.id)
179
179
 
180
180
  expect(customer.id).to eq(original.id)
181
181
  expect(customer.email).to eq(original.email)
182
- expect(customer.default_card).to eq(original.default_card)
182
+ expect(customer.default_source).to eq(original.default_source)
183
183
  expect(customer.subscriptions.count).to eq(0)
184
184
  expect(customer.subscriptions.data).to be_empty
185
185
  end
@@ -217,17 +217,17 @@ shared_examples 'Customer API' do
217
217
  end
218
218
 
219
219
  it "updates a stripe customer's card" do
220
- original = Stripe::Customer.create(id: 'test_customer_update', card: gen_card_tk)
221
- card = original.cards.data.first
222
- expect(original.default_card).to eq(card.id)
223
- expect(original.cards.count).to eq(1)
220
+ original = Stripe::Customer.create(id: 'test_customer_update', source: gen_card_tk)
221
+ card = original.sources.data.first
222
+ expect(original.default_source).to eq(card.id)
223
+ expect(original.sources.count).to eq(1)
224
224
 
225
- original.card = gen_card_tk
225
+ original.source = gen_card_tk
226
226
  original.save
227
227
 
228
- new_card = original.cards.data.first
229
- expect(original.cards.count).to eq(1)
230
- expect(original.default_card).to eq(new_card.id)
228
+ new_card = original.sources.data.last
229
+ expect(original.sources.count).to eq(2)
230
+ expect(original.default_source).to_not eq(card.id)
231
231
 
232
232
  expect(new_card.id).to_not eq(card.id)
233
233
  end
@@ -92,7 +92,7 @@ shared_examples 'Invoice API' do
92
92
 
93
93
  context "retrieving upcoming invoice" do
94
94
  before do
95
- @customer = Stripe::Customer.create(email: 'johnny@appleseed.com', card: stripe_helper.generate_card_token)
95
+ @customer = Stripe::Customer.create(email: 'johnny@appleseed.com', source: stripe_helper.generate_card_token)
96
96
  end
97
97
 
98
98
  it 'fails without parameters' do
@@ -9,7 +9,7 @@ shared_examples 'Customer Subscriptions' do
9
9
  context "creating a new subscription" do
10
10
  it "adds a new subscription to customer with none", :live => true do
11
11
  plan = stripe_helper.create_plan(id: 'silver', name: 'Silver Plan', amount: 4999)
12
- customer = Stripe::Customer.create(card: gen_card_tk)
12
+ customer = Stripe::Customer.create(source: gen_card_tk)
13
13
 
14
14
  expect(customer.subscriptions.data).to be_empty
15
15
  expect(customer.subscriptions.count).to eq(0)
@@ -43,7 +43,7 @@ shared_examples 'Customer Subscriptions' do
43
43
  :id => 'silver',
44
44
  :statement_description => "testPlan"
45
45
  )
46
- customer = Stripe::Customer.create(id: 'test_customer_sub', card: gen_card_tk)
46
+ customer = Stripe::Customer.create(id: 'test_customer_sub', source: gen_card_tk)
47
47
 
48
48
  subscription = customer.subscriptions.create({
49
49
  :plan => "silver", quantity: 2, application_fee_percent: 10, tax_percent: 20})
@@ -55,7 +55,7 @@ shared_examples 'Customer Subscriptions' do
55
55
  it "adds additional subscription to customer with existing subscription" do
56
56
  silver = stripe_helper.create_plan(id: 'silver')
57
57
  gold = stripe_helper.create_plan(id: 'gold')
58
- customer = Stripe::Customer.create(id: 'test_customer_sub', card: gen_card_tk, plan: 'gold')
58
+ customer = Stripe::Customer.create(id: 'test_customer_sub', source: gen_card_tk, plan: 'gold')
59
59
 
60
60
  sub = customer.subscriptions.create({ :plan => 'silver' })
61
61
 
@@ -79,16 +79,16 @@ shared_examples 'Customer Subscriptions' do
79
79
  plan = stripe_helper.create_plan(id: 'enterprise', amount: 499)
80
80
  customer = Stripe::Customer.create(id: 'cardless')
81
81
 
82
- sub = customer.subscriptions.create(plan: 'enterprise', card: gen_card_tk)
82
+ sub = customer.subscriptions.create(plan: 'enterprise', source: gen_card_tk)
83
83
  customer = Stripe::Customer.retrieve('cardless')
84
84
 
85
85
  expect(customer.subscriptions.data.first.id).to eq(sub.id)
86
86
  expect(customer.subscriptions.data.first.customer).to eq(customer.id)
87
87
 
88
- expect(customer.cards.count).to eq(1)
89
- expect(customer.cards.data.length).to eq(1)
90
- expect(customer.default_card).to_not be_nil
91
- expect(customer.default_card).to eq customer.cards.data.first.id
88
+ expect(customer.sources.count).to eq(1)
89
+ expect(customer.sources.data.length).to eq(1)
90
+ expect(customer.default_source).to_not be_nil
91
+ expect(customer.default_source).to eq customer.sources.data.first.id
92
92
  end
93
93
 
94
94
  it "throws an error when plan does not exist" do
@@ -172,7 +172,7 @@ shared_examples 'Customer Subscriptions' do
172
172
 
173
173
  it "returns without a trial when trial_end is set to 'now'" do
174
174
  plan = stripe_helper.create_plan(id: 'trial', amount: 999, trial_period_days: 14)
175
- customer = Stripe::Customer.create(id: 'no_trial', card: gen_card_tk)
175
+ customer = Stripe::Customer.create(id: 'no_trial', source: gen_card_tk)
176
176
 
177
177
  sub = customer.subscriptions.create({ plan: 'trial', trial_end: "now" })
178
178
 
@@ -224,7 +224,7 @@ shared_examples 'Customer Subscriptions' do
224
224
  it "updates a stripe customer's existing subscription" do
225
225
  silver = stripe_helper.create_plan(id: 'silver')
226
226
  gold = stripe_helper.create_plan(id: 'gold')
227
- customer = Stripe::Customer.create(id: 'test_customer_sub', card: gen_card_tk, plan: 'silver')
227
+ customer = Stripe::Customer.create(id: 'test_customer_sub', source: gen_card_tk, plan: 'silver')
228
228
 
229
229
  sub = customer.subscriptions.retrieve(customer.subscriptions.data.first.id)
230
230
  sub.plan = 'gold'
@@ -356,15 +356,15 @@ shared_examples 'Customer Subscriptions' do
356
356
 
357
357
  sub = customer.subscriptions.retrieve(customer.subscriptions.data.first.id)
358
358
  sub.plan = 'paid'
359
- sub.card = gen_card_tk
359
+ sub.source = gen_card_tk
360
360
  sub.save
361
361
 
362
362
  customer = Stripe::Customer.retrieve('test_customer_sub')
363
363
 
364
- expect(customer.cards.count).to eq(1)
365
- expect(customer.cards.data.length).to eq(1)
366
- expect(customer.default_card).to_not be_nil
367
- expect(customer.default_card).to eq customer.cards.data.first.id
364
+ expect(customer.sources.count).to eq(1)
365
+ expect(customer.sources.data.length).to eq(1)
366
+ expect(customer.default_source).to_not be_nil
367
+ expect(customer.default_source).to eq customer.sources.data.first.id
368
368
  end
369
369
 
370
370
  it "overrides trial length when trial end is set" do
@@ -400,7 +400,7 @@ shared_examples 'Customer Subscriptions' do
400
400
 
401
401
  it "changes an active subscription to a trial when trial_end is set" do
402
402
  plan = stripe_helper.create_plan(id: 'no_trial', amount: 999)
403
- customer = Stripe::Customer.create(id: 'test_trial_end', plan: 'no_trial', card: gen_card_tk)
403
+ customer = Stripe::Customer.create(id: 'test_trial_end', plan: 'no_trial', source: gen_card_tk)
404
404
 
405
405
  sub = customer.subscriptions.retrieve(customer.subscriptions.data.first.id)
406
406
 
@@ -418,7 +418,7 @@ shared_examples 'Customer Subscriptions' do
418
418
 
419
419
  it "raises error when trial_end is not an integer or 'now'" do
420
420
  plan = stripe_helper.create_plan(id: 'no_trial', amount: 999)
421
- customer = Stripe::Customer.create(id: 'test_trial_end', plan: 'no_trial', card: gen_card_tk)
421
+ customer = Stripe::Customer.create(id: 'test_trial_end', plan: 'no_trial', source: gen_card_tk)
422
422
 
423
423
  sub = customer.subscriptions.retrieve(customer.subscriptions.data.first.id)
424
424
  sub.trial_end = "gazebo"
@@ -435,7 +435,7 @@ shared_examples 'Customer Subscriptions' do
435
435
 
436
436
  it "cancels a stripe customer's subscription", :live => true do
437
437
  truth = stripe_helper.create_plan(id: 'the truth')
438
- customer = Stripe::Customer.create(card: gen_card_tk, plan: "the truth")
438
+ customer = Stripe::Customer.create(source: gen_card_tk, plan: "the truth")
439
439
 
440
440
  sub = customer.subscriptions.retrieve(customer.subscriptions.data.first.id)
441
441
  result = sub.delete
@@ -453,7 +453,7 @@ shared_examples 'Customer Subscriptions' do
453
453
 
454
454
  it "cancels a stripe customer's subscription at period end" do
455
455
  truth = stripe_helper.create_plan(id: 'the_truth')
456
- customer = Stripe::Customer.create(id: 'test_customer_sub', card: gen_card_tk, plan: "the_truth")
456
+ customer = Stripe::Customer.create(id: 'test_customer_sub', source: gen_card_tk, plan: "the_truth")
457
457
 
458
458
  sub = customer.subscriptions.retrieve(customer.subscriptions.data.first.id)
459
459
  result = sub.delete(at_period_end: true)
@@ -475,7 +475,7 @@ shared_examples 'Customer Subscriptions' do
475
475
 
476
476
  it "resumes an at period end cancelled subscription" do
477
477
  truth = stripe_helper.create_plan(id: 'the_truth')
478
- customer = Stripe::Customer.create(id: 'test_customer_sub', card: gen_card_tk, plan: "the_truth")
478
+ customer = Stripe::Customer.create(id: 'test_customer_sub', source: gen_card_tk, plan: "the_truth")
479
479
 
480
480
  sub = customer.subscriptions.retrieve(customer.subscriptions.data.first.id)
481
481
  result = sub.delete(at_period_end: true)
@@ -497,7 +497,7 @@ shared_examples 'Customer Subscriptions' do
497
497
 
498
498
  it "doesn't change status of subscription when cancelling at period end" do
499
499
  trial = stripe_helper.create_plan(id: 'trial', trial_period_days: 14)
500
- customer = Stripe::Customer.create(id: 'test_customer_sub', card: gen_card_tk, plan: "trial")
500
+ customer = Stripe::Customer.create(id: 'test_customer_sub', source: gen_card_tk, plan: "trial")
501
501
 
502
502
  sub = customer.subscriptions.retrieve(customer.subscriptions.data.first.id)
503
503
  result = sub.delete(at_period_end: true)
@@ -529,7 +529,7 @@ shared_examples 'Customer Subscriptions' do
529
529
  it "retrieves a list of multiple subscriptions" do
530
530
  free = stripe_helper.create_plan(id: 'free', amount: 0)
531
531
  paid = stripe_helper.create_plan(id: 'paid', amount: 499)
532
- customer = Stripe::Customer.create(id: 'test_customer_sub', card: gen_card_tk, plan: "free")
532
+ customer = Stripe::Customer.create(id: 'test_customer_sub', source: gen_card_tk, plan: "free")
533
533
  customer.subscriptions.create({ :plan => 'paid' })
534
534
 
535
535
  customer = Stripe::Customer.retrieve('test_customer_sub')
@@ -574,7 +574,7 @@ shared_examples 'Customer Subscriptions' do
574
574
 
575
575
  customer = Stripe::Customer.create({
576
576
  email: 'johnny@appleseed.com',
577
- card: gen_card_tk
577
+ source: gen_card_tk
578
578
  })
579
579
 
580
580
  subscription = customer.subscriptions.create(:plan => "Sample5")
@@ -10,6 +10,7 @@ shared_examples 'Transfer API' do
10
10
  expect(transfer.amount).to eq('100')
11
11
  expect(transfer.currency).to eq('usd')
12
12
  expect(transfer.recipient).to eq recipient.id
13
+ expect(transfer.reversed).to eq(false)
13
14
  end
14
15
 
15
16
  describe "listing transfers" do
@@ -17,7 +17,7 @@ Gem::Specification.new do |gem|
17
17
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
18
18
  gem.require_paths = ['lib']
19
19
 
20
- gem.add_dependency 'stripe', '>= 1.15.0'
20
+ gem.add_dependency 'stripe', '>= 1.20.1'
21
21
  gem.add_dependency 'jimson-temp'
22
22
  gem.add_dependency 'dante', '>= 0.2.0'
23
23
 
metadata CHANGED
@@ -1,68 +1,60 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stripe-ruby-mock
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.5
5
- prerelease:
4
+ version: 2.1.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Gilbert
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2015-02-22 00:00:00.000000000 Z
11
+ date: 2015-02-27 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: stripe
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - '>='
20
18
  - !ruby/object:Gem::Version
21
- version: 1.15.0
19
+ version: 1.20.1
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - '>='
28
25
  - !ruby/object:Gem::Version
29
- version: 1.15.0
26
+ version: 1.20.1
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: jimson-temp
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - '>='
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - '>='
44
39
  - !ruby/object:Gem::Version
45
40
  version: '0'
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: dante
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ! '>='
45
+ - - '>='
52
46
  - !ruby/object:Gem::Version
53
47
  version: 0.2.0
54
48
  type: :runtime
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ! '>='
52
+ - - '>='
60
53
  - !ruby/object:Gem::Version
61
54
  version: 0.2.0
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: rspec
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
59
  - - ~>
68
60
  - !ruby/object:Gem::Version
@@ -70,7 +62,6 @@ dependencies:
70
62
  type: :development
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
66
  - - ~>
76
67
  - !ruby/object:Gem::Version
@@ -78,7 +69,6 @@ dependencies:
78
69
  - !ruby/object:Gem::Dependency
79
70
  name: rubygems-tasks
80
71
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
72
  requirements:
83
73
  - - ~>
84
74
  - !ruby/object:Gem::Version
@@ -86,7 +76,6 @@ dependencies:
86
76
  type: :development
87
77
  prerelease: false
88
78
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
79
  requirements:
91
80
  - - ~>
92
81
  - !ruby/object:Gem::Version
@@ -94,17 +83,15 @@ dependencies:
94
83
  - !ruby/object:Gem::Dependency
95
84
  name: thin
96
85
  requirement: !ruby/object:Gem::Requirement
97
- none: false
98
86
  requirements:
99
- - - ! '>='
87
+ - - '>='
100
88
  - !ruby/object:Gem::Version
101
89
  version: '0'
102
90
  type: :development
103
91
  prerelease: false
104
92
  version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
93
  requirements:
107
- - - ! '>='
94
+ - - '>='
108
95
  - !ruby/object:Gem::Version
109
96
  version: '0'
110
97
  description: A drop-in library to test stripe without hitting their servers
@@ -159,6 +146,7 @@ files:
159
146
  - lib/stripe_mock/request_handlers/invoices.rb
160
147
  - lib/stripe_mock/request_handlers/plans.rb
161
148
  - lib/stripe_mock/request_handlers/recipients.rb
149
+ - lib/stripe_mock/request_handlers/sources.rb
162
150
  - lib/stripe_mock/request_handlers/subscriptions.rb
163
151
  - lib/stripe_mock/request_handlers/tokens.rb
164
152
  - lib/stripe_mock/request_handlers/transfers.rb
@@ -244,27 +232,26 @@ files:
244
232
  homepage: https://github.com/rebelidealist/stripe-ruby-mock
245
233
  licenses:
246
234
  - MIT
235
+ metadata: {}
247
236
  post_install_message:
248
237
  rdoc_options: []
249
238
  require_paths:
250
239
  - lib
251
240
  required_ruby_version: !ruby/object:Gem::Requirement
252
- none: false
253
241
  requirements:
254
- - - ! '>='
242
+ - - '>='
255
243
  - !ruby/object:Gem::Version
256
244
  version: '0'
257
245
  required_rubygems_version: !ruby/object:Gem::Requirement
258
- none: false
259
246
  requirements:
260
- - - ! '>='
247
+ - - '>='
261
248
  - !ruby/object:Gem::Version
262
249
  version: '0'
263
250
  requirements: []
264
251
  rubyforge_project:
265
- rubygems_version: 1.8.25
252
+ rubygems_version: 2.2.2
266
253
  signing_key:
267
- specification_version: 3
254
+ specification_version: 4
268
255
  summary: TDD with stripe
269
256
  test_files:
270
257
  - spec/_dummy/webhooks/dummy.event.json