stefl-chargify 0.3.6 → 0.3.10

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,6 +1,7 @@
1
1
  source 'http://rubygems.org'
2
2
 
3
3
  group :runtime do
4
+ gem 'crack'
4
5
  gem 'httparty', '>= 0.6.1'
5
6
  gem 'hashie', '>= 0.4.0'
6
7
  gem 'json'
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.6
1
+ 0.3.10
@@ -1,9 +1,11 @@
1
+ require 'crack'
2
+
1
3
  module Chargify
2
4
  class Parser < HTTParty::Parser
3
5
 
4
6
  def parse
5
7
  begin
6
- Crack::JSON.parse(body)
8
+ ::Crack::JSON.parse(body)
7
9
  rescue => e
8
10
  raise(Chargify::Error::UnexpectedResponse.new(e.message), body)
9
11
  end
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{stefl-chargify}
8
- s.version = "0.3.6"
8
+ s.version = "0.3.10"
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", "Justin Smestad"]
12
- s.date = %q{2011-02-17}
12
+ s.date = %q{2011-12-16}
13
13
  s.email = %q{justin.smestad@gmail.com}
14
14
  s.extra_rdoc_files = [
15
15
  "LICENSE",
@@ -62,30 +62,21 @@ Gem::Specification.new do |s|
62
62
  ]
63
63
  s.homepage = %q{http://github.com/stefl/chargify}
64
64
  s.require_paths = ["lib"]
65
- s.rubygems_version = %q{1.3.7}
65
+ s.rubygems_version = %q{1.6.2}
66
66
  s.summary = %q{Ruby wrapper for the Chargify API}
67
- s.test_files = [
68
- "spec/spec_helper.rb",
69
- "spec/support/fakeweb_stubs.rb",
70
- "spec/unit/chargify/config_spec.rb",
71
- "spec/unit/chargify/customer_spec.rb",
72
- "spec/unit/chargify/parser_spec.rb",
73
- "spec/unit/chargify/product_spec.rb",
74
- "spec/unit/chargify/subscription_spec.rb",
75
- "spec/unit/chargify/transaction_spec.rb"
76
- ]
77
67
 
78
68
  if s.respond_to? :specification_version then
79
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
80
69
  s.specification_version = 3
81
70
 
82
71
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
72
+ s.add_runtime_dependency(%q<crack>, [">= 0"])
83
73
  s.add_runtime_dependency(%q<httparty>, [">= 0.6.1"])
84
74
  s.add_runtime_dependency(%q<hashie>, [">= 0.4.0"])
85
75
  s.add_runtime_dependency(%q<json>, [">= 0"])
86
76
  s.add_runtime_dependency(%q<activesupport>, [">= 3.0.0"])
87
77
  s.add_runtime_dependency(%q<i18n>, [">= 0"])
88
78
  else
79
+ s.add_dependency(%q<crack>, [">= 0"])
89
80
  s.add_dependency(%q<httparty>, [">= 0.6.1"])
90
81
  s.add_dependency(%q<hashie>, [">= 0.4.0"])
91
82
  s.add_dependency(%q<json>, [">= 0"])
@@ -93,6 +84,7 @@ Gem::Specification.new do |s|
93
84
  s.add_dependency(%q<i18n>, [">= 0"])
94
85
  end
95
86
  else
87
+ s.add_dependency(%q<crack>, [">= 0"])
96
88
  s.add_dependency(%q<httparty>, [">= 0.6.1"])
97
89
  s.add_dependency(%q<hashie>, [">= 0.4.0"])
98
90
  s.add_dependency(%q<json>, [">= 0"])
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stefl-chargify
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
5
- prerelease: false
4
+ hash: 7
5
+ prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 6
10
- version: 0.3.6
9
+ - 10
10
+ version: 0.3.10
11
11
  platform: ruby
12
12
  authors:
13
13
  - Wynn Netherland
@@ -16,11 +16,26 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2011-02-17 00:00:00 +00:00
19
+ date: 2011-12-16 00:00:00 +00:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
23
+ type: :runtime
23
24
  requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ hash: 3
30
+ segments:
31
+ - 0
32
+ version: "0"
33
+ name: crack
34
+ version_requirements: *id001
35
+ prerelease: false
36
+ - !ruby/object:Gem::Dependency
37
+ type: :runtime
38
+ requirement: &id002 !ruby/object:Gem::Requirement
24
39
  none: false
25
40
  requirements:
26
41
  - - ">="
@@ -31,12 +46,12 @@ dependencies:
31
46
  - 6
32
47
  - 1
33
48
  version: 0.6.1
34
- type: :runtime
35
49
  name: httparty
50
+ version_requirements: *id002
36
51
  prerelease: false
37
- version_requirements: *id001
38
52
  - !ruby/object:Gem::Dependency
39
- requirement: &id002 !ruby/object:Gem::Requirement
53
+ type: :runtime
54
+ requirement: &id003 !ruby/object:Gem::Requirement
40
55
  none: false
41
56
  requirements:
42
57
  - - ">="
@@ -47,12 +62,12 @@ dependencies:
47
62
  - 4
48
63
  - 0
49
64
  version: 0.4.0
50
- type: :runtime
51
65
  name: hashie
66
+ version_requirements: *id003
52
67
  prerelease: false
53
- version_requirements: *id002
54
68
  - !ruby/object:Gem::Dependency
55
- requirement: &id003 !ruby/object:Gem::Requirement
69
+ type: :runtime
70
+ requirement: &id004 !ruby/object:Gem::Requirement
56
71
  none: false
57
72
  requirements:
58
73
  - - ">="
@@ -61,12 +76,12 @@ dependencies:
61
76
  segments:
62
77
  - 0
63
78
  version: "0"
64
- type: :runtime
65
79
  name: json
80
+ version_requirements: *id004
66
81
  prerelease: false
67
- version_requirements: *id003
68
82
  - !ruby/object:Gem::Dependency
69
- requirement: &id004 !ruby/object:Gem::Requirement
83
+ type: :runtime
84
+ requirement: &id005 !ruby/object:Gem::Requirement
70
85
  none: false
71
86
  requirements:
72
87
  - - ">="
@@ -77,12 +92,12 @@ dependencies:
77
92
  - 0
78
93
  - 0
79
94
  version: 3.0.0
80
- type: :runtime
81
95
  name: activesupport
96
+ version_requirements: *id005
82
97
  prerelease: false
83
- version_requirements: *id004
84
98
  - !ruby/object:Gem::Dependency
85
- requirement: &id005 !ruby/object:Gem::Requirement
99
+ type: :runtime
100
+ requirement: &id006 !ruby/object:Gem::Requirement
86
101
  none: false
87
102
  requirements:
88
103
  - - ">="
@@ -91,10 +106,9 @@ dependencies:
91
106
  segments:
92
107
  - 0
93
108
  version: "0"
94
- type: :runtime
95
109
  name: i18n
110
+ version_requirements: *id006
96
111
  prerelease: false
97
- version_requirements: *id005
98
112
  description:
99
113
  email: justin.smestad@gmail.com
100
114
  executables: []
@@ -178,16 +192,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
178
192
  requirements: []
179
193
 
180
194
  rubyforge_project:
181
- rubygems_version: 1.3.7
195
+ rubygems_version: 1.6.2
182
196
  signing_key:
183
197
  specification_version: 3
184
198
  summary: Ruby wrapper for the Chargify API
185
- test_files:
186
- - spec/spec_helper.rb
187
- - spec/support/fakeweb_stubs.rb
188
- - spec/unit/chargify/config_spec.rb
189
- - spec/unit/chargify/customer_spec.rb
190
- - spec/unit/chargify/parser_spec.rb
191
- - spec/unit/chargify/product_spec.rb
192
- - spec/unit/chargify/subscription_spec.rb
193
- - spec/unit/chargify/transaction_spec.rb
199
+ test_files: []
200
+