stripe_tester 0.0.1 → 0.0.2
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.
- data/README.md +7 -9
- data/lib/stripe_tester/version.rb +1 -1
- data/stripe_webhooks/2013-07-05/{charge_failed.yaml → charge_failed.yml} +0 -0
- data/stripe_webhooks/2013-07-05/{charge_refunded.yaml → charge_refunded.yml} +0 -0
- data/stripe_webhooks/2013-07-05/{charge_succeeded.yaml → charge_succeeded.yml} +0 -0
- data/stripe_webhooks/2013-07-05/{customer_created.yaml → customer_created.yml} +0 -0
- data/stripe_webhooks/2013-07-05/{customer_deleted.yaml → customer_deleted.yml} +0 -0
- data/stripe_webhooks/2013-07-05/{customer_subscription_created.yaml → customer_subscription_created.yml} +0 -0
- data/stripe_webhooks/2013-07-05/{customer_subscription_deleted.yaml → customer_subscription_deleted.yml} +0 -0
- data/stripe_webhooks/2013-07-05/{customer_subscription_trial_will_end.yaml → customer_subscription_trial_will_end.yml} +0 -0
- data/stripe_webhooks/2013-07-05/{customer_subscription_updated.yaml → customer_subscription_updated.yml} +0 -0
- data/stripe_webhooks/2013-07-05/{invoice_created.yaml → invoice_created.yml} +0 -0
- data/stripe_webhooks/2013-07-05/{invoice_payment_failed.yaml → invoice_payment_failed.yml} +0 -0
- data/stripe_webhooks/2013-07-05/{invoice_payment_succeeded.yaml → invoice_payment_succeeded.yml} +0 -0
- data/stripe_webhooks/2013-07-05/{invoice_updated.yaml → invoice_updated.yml} +0 -0
- metadata +15 -15
data/README.md
CHANGED
@@ -5,7 +5,6 @@ StripeTester is a testing gem used to simulate Stripe webhooks and post them to
|
|
5
5
|
StripeTester allows you to submit webhooks to your application without hitting Stripe or requiring connectivity. You can use it in your test suite to simulate webhooks and ensure that your application reacts accordingly. You can also use StripeTester in the console to simulate webhooks easily.
|
6
6
|
|
7
7
|
## Installation
|
8
|
-
---------------
|
9
8
|
|
10
9
|
Add this line to your application's Gemfile:
|
11
10
|
```ruby
|
@@ -19,10 +18,15 @@ Or install it yourself as:
|
|
19
18
|
```bash
|
20
19
|
$ gem install stripe_tester
|
21
20
|
```
|
22
|
-
|
21
|
+
|
22
|
+
## Requirements
|
23
|
+
|
24
|
+
Ruby `>= 1.9.3`
|
25
|
+
|
26
|
+
RSpec
|
23
27
|
|
24
28
|
## Usage
|
25
|
-
|
29
|
+
|
26
30
|
In your test:
|
27
31
|
|
28
32
|
1. Set the URL where the webhooks are handled:
|
@@ -52,7 +56,6 @@ StripeTester.create_event(:invoice_created, "2013-05-07")
|
|
52
56
|
```
|
53
57
|
|
54
58
|
## Supported Webhooks
|
55
|
-
---------------------
|
56
59
|
|
57
60
|
* charge_failed
|
58
61
|
* charge_refunded
|
@@ -69,19 +72,15 @@ StripeTester.create_event(:invoice_created, "2013-05-07")
|
|
69
72
|
* invoice_updated
|
70
73
|
|
71
74
|
## Supported Stripe Webhook API Versions
|
72
|
-
----------------------------------------
|
73
75
|
|
74
76
|
* 2013-07-05
|
75
77
|
* 2013-02-13
|
76
78
|
|
77
79
|
## Issues
|
78
|
-
---------
|
79
80
|
|
80
81
|
* Overwriting attributes only overwrites the first occurrence of the key. It needs to overwrite all of the occurrences or make the user specify a certain one.
|
81
82
|
|
82
|
-
|
83
83
|
## Contributing
|
84
|
-
---------------
|
85
84
|
|
86
85
|
* Fork it
|
87
86
|
* Create your feature branch
|
@@ -96,7 +95,6 @@ StripeTester.create_event(:invoice_created, "2013-05-07")
|
|
96
95
|
* Create a new Pull Request
|
97
96
|
|
98
97
|
## License
|
99
|
-
----------
|
100
98
|
|
101
99
|
Copyright (c) 2013 ButterCloud LLC.
|
102
100
|
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/stripe_webhooks/2013-07-05/{invoice_payment_succeeded.yaml → invoice_payment_succeeded.yml}
RENAMED
File without changes
|
File without changes
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stripe_tester
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -90,19 +90,19 @@ files:
|
|
90
90
|
- stripe_webhooks/2013-02-13/invoice_payment_failed.yml
|
91
91
|
- stripe_webhooks/2013-02-13/invoice_payment_succeeded.yml
|
92
92
|
- stripe_webhooks/2013-02-13/invoice_updated.yml
|
93
|
-
- stripe_webhooks/2013-07-05/charge_failed.
|
94
|
-
- stripe_webhooks/2013-07-05/charge_refunded.
|
95
|
-
- stripe_webhooks/2013-07-05/charge_succeeded.
|
96
|
-
- stripe_webhooks/2013-07-05/customer_created.
|
97
|
-
- stripe_webhooks/2013-07-05/customer_deleted.
|
98
|
-
- stripe_webhooks/2013-07-05/customer_subscription_created.
|
99
|
-
- stripe_webhooks/2013-07-05/customer_subscription_deleted.
|
100
|
-
- stripe_webhooks/2013-07-05/customer_subscription_trial_will_end.
|
101
|
-
- stripe_webhooks/2013-07-05/customer_subscription_updated.
|
102
|
-
- stripe_webhooks/2013-07-05/invoice_created.
|
103
|
-
- stripe_webhooks/2013-07-05/invoice_payment_failed.
|
104
|
-
- stripe_webhooks/2013-07-05/invoice_payment_succeeded.
|
105
|
-
- stripe_webhooks/2013-07-05/invoice_updated.
|
93
|
+
- stripe_webhooks/2013-07-05/charge_failed.yml
|
94
|
+
- stripe_webhooks/2013-07-05/charge_refunded.yml
|
95
|
+
- stripe_webhooks/2013-07-05/charge_succeeded.yml
|
96
|
+
- stripe_webhooks/2013-07-05/customer_created.yml
|
97
|
+
- stripe_webhooks/2013-07-05/customer_deleted.yml
|
98
|
+
- stripe_webhooks/2013-07-05/customer_subscription_created.yml
|
99
|
+
- stripe_webhooks/2013-07-05/customer_subscription_deleted.yml
|
100
|
+
- stripe_webhooks/2013-07-05/customer_subscription_trial_will_end.yml
|
101
|
+
- stripe_webhooks/2013-07-05/customer_subscription_updated.yml
|
102
|
+
- stripe_webhooks/2013-07-05/invoice_created.yml
|
103
|
+
- stripe_webhooks/2013-07-05/invoice_payment_failed.yml
|
104
|
+
- stripe_webhooks/2013-07-05/invoice_payment_succeeded.yml
|
105
|
+
- stripe_webhooks/2013-07-05/invoice_updated.yml
|
106
106
|
homepage: https://github.com/buttercloud/stripe_tester
|
107
107
|
licenses:
|
108
108
|
- MIT
|
@@ -124,7 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
124
124
|
version: '0'
|
125
125
|
segments:
|
126
126
|
- 0
|
127
|
-
hash:
|
127
|
+
hash: 3716474555057773208
|
128
128
|
requirements: []
|
129
129
|
rubyforge_project:
|
130
130
|
rubygems_version: 1.8.25
|