stefl-chargify 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +23 -0
- data/.rspec +1 -0
- data/Gemfile +20 -0
- data/Gemfile.lock +51 -0
- data/LICENSE +20 -0
- data/README.markdown +46 -0
- data/Rakefile +33 -0
- data/VERSION +1 -0
- data/changelog.md +30 -0
- data/lib/chargify/base.rb +89 -0
- data/lib/chargify/config.rb +86 -0
- data/lib/chargify/customer.rb +101 -0
- data/lib/chargify/error.rb +24 -0
- data/lib/chargify/parser.rb +13 -0
- data/lib/chargify/product.rb +38 -0
- data/lib/chargify/product_family.rb +47 -0
- data/lib/chargify/subscription.rb +154 -0
- data/lib/chargify/transaction.rb +14 -0
- data/lib/chargify.rb +18 -0
- data/spec/fixtures/charge_subscription.json +5 -0
- data/spec/fixtures/charge_subscription_missing_parameters.json +4 -0
- data/spec/fixtures/component.json +11 -0
- data/spec/fixtures/components.json +24 -0
- data/spec/fixtures/customer.json +12 -0
- data/spec/fixtures/customers.json +12 -0
- data/spec/fixtures/deleted_subscription.json +1 -0
- data/spec/fixtures/invalid_subscription.json +48 -0
- data/spec/fixtures/list_metered_subscriptions.json +3 -0
- data/spec/fixtures/migrate_subscription.json +51 -0
- data/spec/fixtures/new_customer.json +12 -0
- data/spec/fixtures/product.json +17 -0
- data/spec/fixtures/products.json +17 -0
- data/spec/fixtures/subscription.json +49 -0
- data/spec/fixtures/subscription_not_found.json +1 -0
- data/spec/fixtures/subscriptions.json +49 -0
- data/spec/spec_helper.rb +27 -0
- data/spec/support/fakeweb_stubs.rb +33 -0
- data/spec/unit/chargify/config_spec.rb +147 -0
- data/spec/unit/chargify/customer_spec.rb +186 -0
- data/spec/unit/chargify/parser_spec.rb +7 -0
- data/spec/unit/chargify/product_spec.rb +40 -0
- data/spec/unit/chargify/subscription_spec.rb +432 -0
- data/spec/unit/chargify/transaction_spec.rb +11 -0
- data/stefl-chargify.gemspec +102 -0
- metadata +180 -0
metadata
ADDED
@@ -0,0 +1,180 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: stefl-chargify
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 21
|
5
|
+
prerelease: false
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 3
|
9
|
+
- 3
|
10
|
+
version: 0.3.3
|
11
|
+
platform: ruby
|
12
|
+
authors:
|
13
|
+
- Wynn Netherland
|
14
|
+
- Justin Smestad
|
15
|
+
autorequire:
|
16
|
+
bindir: bin
|
17
|
+
cert_chain: []
|
18
|
+
|
19
|
+
date: 2010-10-04 00:00:00 +01:00
|
20
|
+
default_executable:
|
21
|
+
dependencies:
|
22
|
+
- !ruby/object:Gem::Dependency
|
23
|
+
name: httparty
|
24
|
+
prerelease: false
|
25
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
26
|
+
none: false
|
27
|
+
requirements:
|
28
|
+
- - ~>
|
29
|
+
- !ruby/object:Gem::Version
|
30
|
+
hash: 5
|
31
|
+
segments:
|
32
|
+
- 0
|
33
|
+
- 6
|
34
|
+
- 1
|
35
|
+
version: 0.6.1
|
36
|
+
type: :runtime
|
37
|
+
version_requirements: *id001
|
38
|
+
- !ruby/object:Gem::Dependency
|
39
|
+
name: hashie
|
40
|
+
prerelease: false
|
41
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
42
|
+
none: false
|
43
|
+
requirements:
|
44
|
+
- - ~>
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
hash: 15
|
47
|
+
segments:
|
48
|
+
- 0
|
49
|
+
- 4
|
50
|
+
- 0
|
51
|
+
version: 0.4.0
|
52
|
+
type: :runtime
|
53
|
+
version_requirements: *id002
|
54
|
+
- !ruby/object:Gem::Dependency
|
55
|
+
name: json
|
56
|
+
prerelease: false
|
57
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
58
|
+
none: false
|
59
|
+
requirements:
|
60
|
+
- - ">="
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
hash: 3
|
63
|
+
segments:
|
64
|
+
- 0
|
65
|
+
version: "0"
|
66
|
+
type: :runtime
|
67
|
+
version_requirements: *id003
|
68
|
+
- !ruby/object:Gem::Dependency
|
69
|
+
name: activesupport
|
70
|
+
prerelease: false
|
71
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
72
|
+
none: false
|
73
|
+
requirements:
|
74
|
+
- - ">="
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
hash: 7
|
77
|
+
segments:
|
78
|
+
- 3
|
79
|
+
- 0
|
80
|
+
- 0
|
81
|
+
version: 3.0.0
|
82
|
+
type: :runtime
|
83
|
+
version_requirements: *id004
|
84
|
+
description:
|
85
|
+
email: justin.smestad@gmail.com
|
86
|
+
executables: []
|
87
|
+
|
88
|
+
extensions: []
|
89
|
+
|
90
|
+
extra_rdoc_files:
|
91
|
+
- LICENSE
|
92
|
+
- README.markdown
|
93
|
+
files:
|
94
|
+
- .gitignore
|
95
|
+
- .rspec
|
96
|
+
- Gemfile
|
97
|
+
- Gemfile.lock
|
98
|
+
- LICENSE
|
99
|
+
- README.markdown
|
100
|
+
- Rakefile
|
101
|
+
- VERSION
|
102
|
+
- changelog.md
|
103
|
+
- lib/chargify.rb
|
104
|
+
- lib/chargify/base.rb
|
105
|
+
- lib/chargify/config.rb
|
106
|
+
- lib/chargify/customer.rb
|
107
|
+
- lib/chargify/error.rb
|
108
|
+
- lib/chargify/parser.rb
|
109
|
+
- lib/chargify/product.rb
|
110
|
+
- lib/chargify/product_family.rb
|
111
|
+
- lib/chargify/subscription.rb
|
112
|
+
- lib/chargify/transaction.rb
|
113
|
+
- spec/fixtures/charge_subscription.json
|
114
|
+
- spec/fixtures/charge_subscription_missing_parameters.json
|
115
|
+
- spec/fixtures/component.json
|
116
|
+
- spec/fixtures/components.json
|
117
|
+
- spec/fixtures/customer.json
|
118
|
+
- spec/fixtures/customers.json
|
119
|
+
- spec/fixtures/deleted_subscription.json
|
120
|
+
- spec/fixtures/invalid_subscription.json
|
121
|
+
- spec/fixtures/list_metered_subscriptions.json
|
122
|
+
- spec/fixtures/migrate_subscription.json
|
123
|
+
- spec/fixtures/new_customer.json
|
124
|
+
- spec/fixtures/product.json
|
125
|
+
- spec/fixtures/products.json
|
126
|
+
- spec/fixtures/subscription.json
|
127
|
+
- spec/fixtures/subscription_not_found.json
|
128
|
+
- spec/fixtures/subscriptions.json
|
129
|
+
- spec/spec_helper.rb
|
130
|
+
- spec/support/fakeweb_stubs.rb
|
131
|
+
- spec/unit/chargify/config_spec.rb
|
132
|
+
- spec/unit/chargify/customer_spec.rb
|
133
|
+
- spec/unit/chargify/parser_spec.rb
|
134
|
+
- spec/unit/chargify/product_spec.rb
|
135
|
+
- spec/unit/chargify/subscription_spec.rb
|
136
|
+
- spec/unit/chargify/transaction_spec.rb
|
137
|
+
- stefl-chargify.gemspec
|
138
|
+
has_rdoc: true
|
139
|
+
homepage: http://github.com/stefl/chargify
|
140
|
+
licenses: []
|
141
|
+
|
142
|
+
post_install_message:
|
143
|
+
rdoc_options:
|
144
|
+
- --charset=UTF-8
|
145
|
+
require_paths:
|
146
|
+
- lib
|
147
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
148
|
+
none: false
|
149
|
+
requirements:
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
hash: 3
|
153
|
+
segments:
|
154
|
+
- 0
|
155
|
+
version: "0"
|
156
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
157
|
+
none: false
|
158
|
+
requirements:
|
159
|
+
- - ">="
|
160
|
+
- !ruby/object:Gem::Version
|
161
|
+
hash: 3
|
162
|
+
segments:
|
163
|
+
- 0
|
164
|
+
version: "0"
|
165
|
+
requirements: []
|
166
|
+
|
167
|
+
rubyforge_project:
|
168
|
+
rubygems_version: 1.3.7
|
169
|
+
signing_key:
|
170
|
+
specification_version: 3
|
171
|
+
summary: Ruby wrapper for the Chargify API
|
172
|
+
test_files:
|
173
|
+
- spec/spec_helper.rb
|
174
|
+
- spec/support/fakeweb_stubs.rb
|
175
|
+
- spec/unit/chargify/config_spec.rb
|
176
|
+
- spec/unit/chargify/customer_spec.rb
|
177
|
+
- spec/unit/chargify/parser_spec.rb
|
178
|
+
- spec/unit/chargify/product_spec.rb
|
179
|
+
- spec/unit/chargify/subscription_spec.rb
|
180
|
+
- spec/unit/chargify/transaction_spec.rb
|