lucidimagination-chargify 0.2.7.2 → 0.2.8.pre2
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/.gitignore +0 -4
- data/Rakefile +1 -1
- data/{lucidimagination-chargify.gemspec → chargify.gemspec} +2 -2
- data/lib/chargify/client.rb +0 -5
- data/test/chargify_test.rb +0 -6
- metadata +6 -5
data/.gitignore
CHANGED
data/Rakefile
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{lucidimagination-chargify}
|
8
|
-
s.version = "0.2.
|
8
|
+
s.version = "0.2.8.pre2"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Wynn Netherland", "Nash Kabbara"]
|
@@ -24,7 +24,7 @@ Gem::Specification.new do |s|
|
|
24
24
|
"Rakefile",
|
25
25
|
"VERSION",
|
26
26
|
"changelog.md",
|
27
|
-
"
|
27
|
+
"chargify.gemspec",
|
28
28
|
"lib/chargify.rb",
|
29
29
|
"lib/chargify/client.rb",
|
30
30
|
"test/fixtures/customer.json",
|
data/lib/chargify/client.rb
CHANGED
@@ -170,11 +170,6 @@ module Chargify
|
|
170
170
|
transactions.map{|t| Hashie::Mash.new t['transaction']}
|
171
171
|
end
|
172
172
|
|
173
|
-
def list_statements(subscription_id)
|
174
|
-
statements = get("/subscriptions/#{subscription_id}/statements.json")
|
175
|
-
statements.map{|s| Hashie::Mash.new s['statement']}
|
176
|
-
end
|
177
|
-
|
178
173
|
def list_components(subscription_id)
|
179
174
|
components = get("/subscriptions/#{subscription_id}/components.json")
|
180
175
|
components.map{|c| Hashie::Mash.new c['component']}
|
data/test/chargify_test.rb
CHANGED
@@ -422,11 +422,5 @@ class ChargifyTest < Test::Unit::TestCase
|
|
422
422
|
end
|
423
423
|
end
|
424
424
|
|
425
|
-
should "return a list of statements" do
|
426
|
-
stub_get "https://OU812:x@pengwynn.chargify.com/subscriptions/123/statements.json", "statements.json"
|
427
|
-
statements = @client.list_statements 123
|
428
|
-
statements.size.should == 1
|
429
|
-
statements.first.customer_last_name.should == 'Schlumm'
|
430
|
-
end
|
431
425
|
end
|
432
426
|
end
|
metadata
CHANGED
@@ -1,14 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lucidimagination-chargify
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 1923832013
|
5
|
+
prerelease: 6
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
9
|
+
- 8
|
10
|
+
- pre
|
10
11
|
- 2
|
11
|
-
version: 0.2.
|
12
|
+
version: 0.2.8.pre2
|
12
13
|
platform: ruby
|
13
14
|
authors:
|
14
15
|
- Wynn Netherland
|
@@ -149,7 +150,7 @@ files:
|
|
149
150
|
- Rakefile
|
150
151
|
- VERSION
|
151
152
|
- changelog.md
|
152
|
-
-
|
153
|
+
- chargify.gemspec
|
153
154
|
- lib/chargify.rb
|
154
155
|
- lib/chargify/client.rb
|
155
156
|
- test/fixtures/customer.json
|