homeflow_api 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -8,7 +8,7 @@ group :development do
8
8
  end
9
9
 
10
10
  gem "hashie"
11
- gem "json"
11
+ gem "multi_json"
12
12
  gem "httparty"
13
13
 
14
14
  group :test do
data/homeflow_api.gemspec CHANGED
@@ -14,7 +14,7 @@ Gem::Specification.new do |s|
14
14
  s.license = 'MIT'
15
15
 
16
16
  s.add_dependency(%q<hashie>, [">= 0"])
17
- s.add_dependency(%q<json>, [">= 0"])
17
+ s.add_dependency(%q<multi_json>, [">= 0"])
18
18
  s.add_dependency(%q<httparty>, [">= 0"])
19
19
  s.add_development_dependency(%q<shoulda>, [">= 0"])
20
20
  s.add_dependency(%q<bundler>, [">= 0"])
@@ -5,8 +5,8 @@ module Homeflow
5
5
 
6
6
  def self.new_from_json(json)
7
7
  begin
8
- hash = JSON.parse(json)
9
- rescue JSON::ParserError
8
+ hash = MultiJson.load(json)
9
+ rescue MultiJson::LoadError
10
10
  raise Homeflow::API::Exceptions::InvalidResponse
11
11
  end
12
12
  raise Homeflow::API::Exceptions::InvalidResponse unless hash.is_a?(Hash)
data/lib/homeflow/api.rb CHANGED
@@ -40,7 +40,7 @@ require current_dir + "/api/response"
40
40
  module Homeflow
41
41
  module API
42
42
 
43
- VERSION = "1.0.1"
43
+ VERSION = "1.0.2"
44
44
 
45
45
  class << self
46
46
  attr_accessor :configuration
metadata CHANGED
@@ -1,13 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: homeflow_api
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
5
4
  prerelease:
6
- segments:
7
- - 1
8
- - 0
9
- - 1
10
- version: 1.0.1
5
+ version: 1.0.2
11
6
  platform: ruby
12
7
  authors:
13
8
  - Daniel Cooper
@@ -25,23 +20,17 @@ dependencies:
25
20
  requirements:
26
21
  - - ">="
27
22
  - !ruby/object:Gem::Version
28
- hash: 3
29
- segments:
30
- - 0
31
23
  version: "0"
32
24
  type: :runtime
33
25
  version_requirements: *id001
34
26
  - !ruby/object:Gem::Dependency
35
- name: json
27
+ name: multi_json
36
28
  prerelease: false
37
29
  requirement: &id002 !ruby/object:Gem::Requirement
38
30
  none: false
39
31
  requirements:
40
32
  - - ">="
41
33
  - !ruby/object:Gem::Version
42
- hash: 3
43
- segments:
44
- - 0
45
34
  version: "0"
46
35
  type: :runtime
47
36
  version_requirements: *id002
@@ -53,9 +42,6 @@ dependencies:
53
42
  requirements:
54
43
  - - ">="
55
44
  - !ruby/object:Gem::Version
56
- hash: 3
57
- segments:
58
- - 0
59
45
  version: "0"
60
46
  type: :runtime
61
47
  version_requirements: *id003
@@ -67,9 +53,6 @@ dependencies:
67
53
  requirements:
68
54
  - - ">="
69
55
  - !ruby/object:Gem::Version
70
- hash: 3
71
- segments:
72
- - 0
73
56
  version: "0"
74
57
  type: :development
75
58
  version_requirements: *id004
@@ -81,9 +64,6 @@ dependencies:
81
64
  requirements:
82
65
  - - ">="
83
66
  - !ruby/object:Gem::Version
84
- hash: 3
85
- segments:
86
- - 0
87
67
  version: "0"
88
68
  type: :runtime
89
69
  version_requirements: *id005
@@ -95,11 +75,6 @@ dependencies:
95
75
  requirements:
96
76
  - - ~>
97
77
  - !ruby/object:Gem::Version
98
- hash: 7
99
- segments:
100
- - 1
101
- - 6
102
- - 4
103
78
  version: 1.6.4
104
79
  type: :development
105
80
  version_requirements: *id006
@@ -172,23 +147,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
172
147
  requirements:
173
148
  - - ">="
174
149
  - !ruby/object:Gem::Version
175
- hash: 3
176
- segments:
177
- - 0
178
150
  version: "0"
179
151
  required_rubygems_version: !ruby/object:Gem::Requirement
180
152
  none: false
181
153
  requirements:
182
154
  - - ">="
183
155
  - !ruby/object:Gem::Version
184
- hash: 3
185
- segments:
186
- - 0
187
156
  version: "0"
188
157
  requirements: []
189
158
 
190
159
  rubyforge_project:
191
- rubygems_version: 1.8.25
160
+ rubygems_version: 1.8.24
192
161
  signing_key:
193
162
  specification_version: 3
194
163
  summary: The Homeflow API