hyperpublic 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -15,11 +15,11 @@ gem "json"
15
15
  gem "fakeweb", "~>1.3.0"
16
16
  gem "yajl-ruby"
17
17
  gem 'addressable'
18
+ gem "oauth"
18
19
 
19
20
  group :development do
20
- gem 'ruby-debug'
21
21
  gem "rspec-rails", ">= 2.2.1"
22
22
  gem 'autotest-growl'
23
- gem 'ZenTest'
23
+ gem 'ZenTest', ">= 4.6.2"
24
24
  #gem "rcov", ">= 0"
25
25
  end
data/Gemfile.lock CHANGED
@@ -24,7 +24,6 @@ GEM
24
24
  autotest-growl (0.2.11)
25
25
  bcrypt-ruby (3.0.1)
26
26
  builder (3.0.0)
27
- columnize (0.3.4)
28
27
  crack (0.1.8)
29
28
  diff-lcs (1.1.3)
30
29
  erubis (2.7.0)
@@ -40,10 +39,9 @@ GEM
40
39
  git (>= 1.2.5)
41
40
  rake
42
41
  json (1.6.0)
43
- linecache (0.46)
44
- rbx-require-relative (> 0.0.4)
45
42
  mime-types (1.16)
46
43
  multi_json (1.0.3)
44
+ oauth (0.4.5)
47
45
  rack (1.3.3)
48
46
  rack-cache (1.0.3)
49
47
  rack (>= 0.4)
@@ -61,7 +59,6 @@ GEM
61
59
  rdoc (~> 3.4)
62
60
  thor (~> 0.14.6)
63
61
  rake (0.9.2)
64
- rbx-require-relative (0.0.5)
65
62
  rdoc (3.9.4)
66
63
  rest-client (1.5.1)
67
64
  mime-types (>= 1.16)
@@ -78,15 +75,10 @@ GEM
78
75
  activesupport (~> 3.0)
79
76
  railties (~> 3.0)
80
77
  rspec (~> 2.6.0)
81
- ruby-debug (0.10.4)
82
- columnize (>= 0.1)
83
- ruby-debug-base (~> 0.10.4.0)
84
- ruby-debug-base (0.10.4)
85
- linecache (>= 0.3)
86
78
  sprockets (2.0.0)
87
79
  hike (~> 1.2)
88
80
  rack (~> 1.0)
89
- tilt (!= 1.3.0, ~> 1.1)
81
+ tilt (~> 1.1, != 1.3.0)
90
82
  thor (0.14.6)
91
83
  tilt (1.3.3)
92
84
  yajl-ruby (1.0.0)
@@ -95,7 +87,7 @@ PLATFORMS
95
87
  ruby
96
88
 
97
89
  DEPENDENCIES
98
- ZenTest
90
+ ZenTest (>= 4.6.2)
99
91
  addressable
100
92
  autotest-growl
101
93
  fakeweb (~> 1.3.0)
@@ -104,7 +96,7 @@ DEPENDENCIES
104
96
  jeweler (~> 1.5.1)
105
97
  json
106
98
  multi_json (~> 1.0.3)
99
+ oauth
107
100
  rest-client (~> 1.5.1)
108
101
  rspec-rails (>= 2.2.1)
109
- ruby-debug
110
102
  yajl-ruby
data/README.md CHANGED
@@ -6,7 +6,7 @@ A Ruby wrapper for the Hyperpublic REST API
6
6
 
7
7
  Installation
8
8
  -------------
9
- gem install hyperpublic_ruby
9
+ gem install hyperpublic
10
10
 
11
11
 
12
12
  Sample Usage
data/Rakefile CHANGED
@@ -1,4 +1,4 @@
1
- require 'lib/hyperpublic/version.rb'
1
+ require File.join(File.dirname(__FILE__), 'lib/hyperpublic/version.rb')
2
2
  require 'rubygems'
3
3
  require 'bundler'
4
4
 
@@ -16,8 +16,8 @@ Jeweler::Tasks.new do |gem|
16
16
  # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
17
17
  gem.version = Hyperpublic::VERSION
18
18
  gem.files = FileList['lib/**/*.rb', '[A-Z]*', 'spec/**/*'].to_a
19
- gem.name = "hyperpublic_ruby"
20
- gem.homepage = "http://github.com/jumppost/hyperpublic_api_ruby"
19
+ gem.name = "hyperpublic"
20
+ gem.homepage = "http://github.com/hyperpublic/hyperpublic_ruby"
21
21
  gem.license = "MIT"
22
22
  gem.summary = %Q{Client library for the hyperpublic api}
23
23
  gem.description = %Q{Provides easy access to the hyperpublic api}
@@ -78,10 +78,11 @@ private
78
78
 
79
79
  def stringify(obj)
80
80
  if obj.is_a? Hash
81
- obj.each do |key, value|
81
+ obj.dup.each do |key, value|
82
82
  obj.delete(key)
83
83
  obj[key.to_s] = stringify(value)
84
84
  end
85
+ obj
85
86
  elsif obj.is_a? Array
86
87
  obj.collect {|e| stringify(e)}
87
88
  else
@@ -1,3 +1,3 @@
1
1
  module Hyperpublic
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -17,5 +17,10 @@ describe Hyperpublic::Base do
17
17
  @hyperpublic.post("/foo", {:bar => "baz"})
18
18
  end
19
19
 
20
+ it "should not raise an exception on the call to stringify" do
21
+ hash = {:this => "is", :a => "test"}
22
+ lambda {@hyperpublic.send(:stringify, hash)}.should_not raise_exception
23
+ end
24
+
20
25
  end
21
26
  end
metadata CHANGED
@@ -1,13 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hyperpublic
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
5
4
  prerelease:
6
- segments:
7
- - 0
8
- - 1
9
- - 0
10
- version: 0.1.0
5
+ version: 0.1.1
11
6
  platform: ruby
12
7
  authors:
13
8
  - etang
@@ -15,203 +10,150 @@ autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
12
 
18
- date: 2011-09-17 00:00:00 Z
13
+ date: 2011-10-19 00:00:00 Z
19
14
  dependencies:
20
15
  - !ruby/object:Gem::Dependency
21
16
  name: jeweler
22
- prerelease: false
23
17
  requirement: &id001 !ruby/object:Gem::Requirement
24
18
  none: false
25
19
  requirements:
26
20
  - - ~>
27
21
  - !ruby/object:Gem::Version
28
- hash: 1
29
- segments:
30
- - 1
31
- - 5
32
- - 1
33
22
  version: 1.5.1
34
23
  type: :runtime
24
+ prerelease: false
35
25
  version_requirements: *id001
36
26
  - !ruby/object:Gem::Dependency
37
27
  name: hashie
38
- prerelease: false
39
28
  requirement: &id002 !ruby/object:Gem::Requirement
40
29
  none: false
41
30
  requirements:
42
31
  - - ~>
43
32
  - !ruby/object:Gem::Version
44
- hash: 19
45
- segments:
46
- - 1
47
- - 1
48
- - 0
49
33
  version: 1.1.0
50
34
  type: :runtime
35
+ prerelease: false
51
36
  version_requirements: *id002
52
37
  - !ruby/object:Gem::Dependency
53
38
  name: httparty
54
- prerelease: false
55
39
  requirement: &id003 !ruby/object:Gem::Requirement
56
40
  none: false
57
41
  requirements:
58
42
  - - ~>
59
43
  - !ruby/object:Gem::Version
60
- hash: 19
61
- segments:
62
- - 0
63
- - 7
64
- - 8
65
44
  version: 0.7.8
66
45
  type: :runtime
46
+ prerelease: false
67
47
  version_requirements: *id003
68
48
  - !ruby/object:Gem::Dependency
69
49
  name: rest-client
70
- prerelease: false
71
50
  requirement: &id004 !ruby/object:Gem::Requirement
72
51
  none: false
73
52
  requirements:
74
53
  - - ~>
75
54
  - !ruby/object:Gem::Version
76
- hash: 1
77
- segments:
78
- - 1
79
- - 5
80
- - 1
81
55
  version: 1.5.1
82
56
  type: :runtime
57
+ prerelease: false
83
58
  version_requirements: *id004
84
59
  - !ruby/object:Gem::Dependency
85
60
  name: multi_json
86
- prerelease: false
87
61
  requirement: &id005 !ruby/object:Gem::Requirement
88
62
  none: false
89
63
  requirements:
90
64
  - - ~>
91
65
  - !ruby/object:Gem::Version
92
- hash: 17
93
- segments:
94
- - 1
95
- - 0
96
- - 3
97
66
  version: 1.0.3
98
67
  type: :runtime
68
+ prerelease: false
99
69
  version_requirements: *id005
100
70
  - !ruby/object:Gem::Dependency
101
71
  name: json
102
- prerelease: false
103
72
  requirement: &id006 !ruby/object:Gem::Requirement
104
73
  none: false
105
74
  requirements:
106
75
  - - ">="
107
76
  - !ruby/object:Gem::Version
108
- hash: 3
109
- segments:
110
- - 0
111
77
  version: "0"
112
78
  type: :runtime
79
+ prerelease: false
113
80
  version_requirements: *id006
114
81
  - !ruby/object:Gem::Dependency
115
82
  name: fakeweb
116
- prerelease: false
117
83
  requirement: &id007 !ruby/object:Gem::Requirement
118
84
  none: false
119
85
  requirements:
120
86
  - - ~>
121
87
  - !ruby/object:Gem::Version
122
- hash: 27
123
- segments:
124
- - 1
125
- - 3
126
- - 0
127
88
  version: 1.3.0
128
89
  type: :runtime
90
+ prerelease: false
129
91
  version_requirements: *id007
130
92
  - !ruby/object:Gem::Dependency
131
93
  name: yajl-ruby
132
- prerelease: false
133
94
  requirement: &id008 !ruby/object:Gem::Requirement
134
95
  none: false
135
96
  requirements:
136
97
  - - ">="
137
98
  - !ruby/object:Gem::Version
138
- hash: 3
139
- segments:
140
- - 0
141
99
  version: "0"
142
100
  type: :runtime
101
+ prerelease: false
143
102
  version_requirements: *id008
144
103
  - !ruby/object:Gem::Dependency
145
104
  name: addressable
146
- prerelease: false
147
105
  requirement: &id009 !ruby/object:Gem::Requirement
148
106
  none: false
149
107
  requirements:
150
108
  - - ">="
151
109
  - !ruby/object:Gem::Version
152
- hash: 3
153
- segments:
154
- - 0
155
110
  version: "0"
156
111
  type: :runtime
112
+ prerelease: false
157
113
  version_requirements: *id009
158
114
  - !ruby/object:Gem::Dependency
159
- name: ruby-debug
160
- prerelease: false
115
+ name: oauth
161
116
  requirement: &id010 !ruby/object:Gem::Requirement
162
117
  none: false
163
118
  requirements:
164
119
  - - ">="
165
120
  - !ruby/object:Gem::Version
166
- hash: 3
167
- segments:
168
- - 0
169
121
  version: "0"
170
- type: :development
122
+ type: :runtime
123
+ prerelease: false
171
124
  version_requirements: *id010
172
125
  - !ruby/object:Gem::Dependency
173
126
  name: rspec-rails
174
- prerelease: false
175
127
  requirement: &id011 !ruby/object:Gem::Requirement
176
128
  none: false
177
129
  requirements:
178
130
  - - ">="
179
131
  - !ruby/object:Gem::Version
180
- hash: 5
181
- segments:
182
- - 2
183
- - 2
184
- - 1
185
132
  version: 2.2.1
186
133
  type: :development
134
+ prerelease: false
187
135
  version_requirements: *id011
188
136
  - !ruby/object:Gem::Dependency
189
137
  name: autotest-growl
190
- prerelease: false
191
138
  requirement: &id012 !ruby/object:Gem::Requirement
192
139
  none: false
193
140
  requirements:
194
141
  - - ">="
195
142
  - !ruby/object:Gem::Version
196
- hash: 3
197
- segments:
198
- - 0
199
143
  version: "0"
200
144
  type: :development
145
+ prerelease: false
201
146
  version_requirements: *id012
202
147
  - !ruby/object:Gem::Dependency
203
148
  name: ZenTest
204
- prerelease: false
205
149
  requirement: &id013 !ruby/object:Gem::Requirement
206
150
  none: false
207
151
  requirements:
208
152
  - - ">="
209
153
  - !ruby/object:Gem::Version
210
- hash: 3
211
- segments:
212
- - 0
213
- version: "0"
154
+ version: 4.6.2
214
155
  type: :development
156
+ prerelease: false
215
157
  version_requirements: *id013
216
158
  description: Provides easy access to the hyperpublic api
217
159
  email: etang@hyperpublic.com
@@ -259,7 +201,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
259
201
  requirements:
260
202
  - - ">="
261
203
  - !ruby/object:Gem::Version
262
- hash: 3
204
+ hash: -3762440186535175407
263
205
  segments:
264
206
  - 0
265
207
  version: "0"
@@ -268,14 +210,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
268
210
  requirements:
269
211
  - - ">="
270
212
  - !ruby/object:Gem::Version
271
- hash: 3
272
- segments:
273
- - 0
274
213
  version: "0"
275
214
  requirements: []
276
215
 
277
216
  rubyforge_project:
278
- rubygems_version: 1.8.10
217
+ rubygems_version: 1.8.11
279
218
  signing_key:
280
219
  specification_version: 3
281
220
  summary: Client library for the hyperpublic api