octocat_herder 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.1.2
@@ -119,6 +119,7 @@ class OctocatHerder
119
119
  #
120
120
  # @since 0.1.0
121
121
  def raw_get(end_point, options={})
122
+ options = options.dup
122
123
  query_params = options.delete(:params) || {}
123
124
  query_string = query_string_from_params(query_params)
124
125
 
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{octocat_herder}
8
- s.version = "0.1.1"
8
+ s.version = "0.1.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["Jacob Helwig"]
12
- s.date = %q{2011-08-12}
11
+ s.authors = [%q{Jacob Helwig}]
12
+ s.date = %q{2011-10-17}
13
13
  s.description = %q{This gem provides Ruby bindings to the v3 GitHub API}
14
14
  s.email = %q{jacob@technosorcery.net}
15
15
  s.extra_rdoc_files = [
@@ -39,13 +39,12 @@ Gem::Specification.new do |s|
39
39
  "spec/spec_helper.rb"
40
40
  ]
41
41
  s.homepage = %q{http://github.com/jhelwig/octocat_herder}
42
- s.licenses = ["BSD"]
43
- s.require_paths = ["lib"]
44
- s.rubygems_version = %q{1.3.7}
42
+ s.licenses = [%q{BSD}]
43
+ s.require_paths = [%q{lib}]
44
+ s.rubygems_version = %q{1.8.6}
45
45
  s.summary = %q{An interface to the v3 GitHub API}
46
46
 
47
47
  if s.respond_to? :specification_version then
48
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
49
48
  s.specification_version = 3
50
49
 
51
50
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
@@ -72,4 +72,17 @@ describe OctocatHerder::Connection do
72
72
 
73
73
  conn.send(:httparty_options).should == {}
74
74
  end
75
+
76
+ context '#raw_get' do
77
+ it 'should not munge the passed in options' do
78
+ OctocatHerder::Connection.stubs(:get)
79
+ options = {:params => {'foo' => 'bar'}}
80
+
81
+ conn = OctocatHerder::Connection.new :user_name => 'user', :password => 'pass'
82
+
83
+ conn.raw_get('/endpoint', options)
84
+
85
+ options.should == {:params => {'foo' => 'bar'}}
86
+ end
87
+ end
75
88
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: octocat_herder
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
5
- prerelease: false
4
+ hash: 31
5
+ prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 1
10
- version: 0.1.1
9
+ - 2
10
+ version: 0.1.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jacob Helwig
@@ -15,13 +15,11 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-08-12 00:00:00 -07:00
19
- default_executable:
18
+ date: 2011-10-17 00:00:00 Z
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
22
- prerelease: false
23
- name: httparty
24
- version_requirements: &id001 !ruby/object:Gem::Requirement
21
+ type: :runtime
22
+ requirement: &id001 !ruby/object:Gem::Requirement
25
23
  none: false
26
24
  requirements:
27
25
  - - ~>
@@ -32,12 +30,12 @@ dependencies:
32
30
  - 7
33
31
  - 8
34
32
  version: 0.7.8
35
- requirement: *id001
36
- type: :runtime
37
- - !ruby/object:Gem::Dependency
33
+ version_requirements: *id001
34
+ name: httparty
38
35
  prerelease: false
39
- name: link_header
40
- version_requirements: &id002 !ruby/object:Gem::Requirement
36
+ - !ruby/object:Gem::Dependency
37
+ type: :runtime
38
+ requirement: &id002 !ruby/object:Gem::Requirement
41
39
  none: false
42
40
  requirements:
43
41
  - - ~>
@@ -48,12 +46,12 @@ dependencies:
48
46
  - 0
49
47
  - 5
50
48
  version: 0.0.5
51
- requirement: *id002
52
- type: :runtime
53
- - !ruby/object:Gem::Dependency
49
+ version_requirements: *id002
50
+ name: link_header
54
51
  prerelease: false
55
- name: rspec
56
- version_requirements: &id003 !ruby/object:Gem::Requirement
52
+ - !ruby/object:Gem::Dependency
53
+ type: :development
54
+ requirement: &id003 !ruby/object:Gem::Requirement
57
55
  none: false
58
56
  requirements:
59
57
  - - ~>
@@ -64,12 +62,12 @@ dependencies:
64
62
  - 6
65
63
  - 0
66
64
  version: 2.6.0
67
- requirement: *id003
68
- type: :development
69
- - !ruby/object:Gem::Dependency
65
+ version_requirements: *id003
66
+ name: rspec
70
67
  prerelease: false
71
- name: mocha
72
- version_requirements: &id004 !ruby/object:Gem::Requirement
68
+ - !ruby/object:Gem::Dependency
69
+ type: :development
70
+ requirement: &id004 !ruby/object:Gem::Requirement
73
71
  none: false
74
72
  requirements:
75
73
  - - ~>
@@ -80,12 +78,12 @@ dependencies:
80
78
  - 9
81
79
  - 12
82
80
  version: 0.9.12
83
- requirement: *id004
84
- type: :development
85
- - !ruby/object:Gem::Dependency
81
+ version_requirements: *id004
82
+ name: mocha
86
83
  prerelease: false
87
- name: bundler
88
- version_requirements: &id005 !ruby/object:Gem::Requirement
84
+ - !ruby/object:Gem::Dependency
85
+ type: :development
86
+ requirement: &id005 !ruby/object:Gem::Requirement
89
87
  none: false
90
88
  requirements:
91
89
  - - ~>
@@ -96,12 +94,12 @@ dependencies:
96
94
  - 0
97
95
  - 0
98
96
  version: 1.0.0
99
- requirement: *id005
100
- type: :development
101
- - !ruby/object:Gem::Dependency
97
+ version_requirements: *id005
98
+ name: bundler
102
99
  prerelease: false
103
- name: jeweler
104
- version_requirements: &id006 !ruby/object:Gem::Requirement
100
+ - !ruby/object:Gem::Dependency
101
+ type: :development
102
+ requirement: &id006 !ruby/object:Gem::Requirement
105
103
  none: false
106
104
  requirements:
107
105
  - - ~>
@@ -112,12 +110,12 @@ dependencies:
112
110
  - 6
113
111
  - 4
114
112
  version: 1.6.4
115
- requirement: *id006
116
- type: :development
117
- - !ruby/object:Gem::Dependency
113
+ version_requirements: *id006
114
+ name: jeweler
118
115
  prerelease: false
119
- name: rcov
120
- version_requirements: &id007 !ruby/object:Gem::Requirement
116
+ - !ruby/object:Gem::Dependency
117
+ type: :development
118
+ requirement: &id007 !ruby/object:Gem::Requirement
121
119
  none: false
122
120
  requirements:
123
121
  - - ">="
@@ -126,12 +124,12 @@ dependencies:
126
124
  segments:
127
125
  - 0
128
126
  version: "0"
129
- requirement: *id007
130
- type: :development
131
- - !ruby/object:Gem::Dependency
127
+ version_requirements: *id007
128
+ name: rcov
132
129
  prerelease: false
133
- name: yard
134
- version_requirements: &id008 !ruby/object:Gem::Requirement
130
+ - !ruby/object:Gem::Dependency
131
+ type: :development
132
+ requirement: &id008 !ruby/object:Gem::Requirement
135
133
  none: false
136
134
  requirements:
137
135
  - - ~>
@@ -142,12 +140,12 @@ dependencies:
142
140
  - 6
143
141
  - 0
144
142
  version: 0.6.0
145
- requirement: *id008
146
- type: :development
147
- - !ruby/object:Gem::Dependency
143
+ version_requirements: *id008
144
+ name: yard
148
145
  prerelease: false
149
- name: rdoc
150
- version_requirements: &id009 !ruby/object:Gem::Requirement
146
+ - !ruby/object:Gem::Dependency
147
+ type: :development
148
+ requirement: &id009 !ruby/object:Gem::Requirement
151
149
  none: false
152
150
  requirements:
153
151
  - - ~>
@@ -158,12 +156,12 @@ dependencies:
158
156
  - 8
159
157
  - 0
160
158
  version: 3.8.0
161
- requirement: *id009
162
- type: :development
163
- - !ruby/object:Gem::Dependency
159
+ version_requirements: *id009
160
+ name: rdoc
164
161
  prerelease: false
165
- name: bluecloth
166
- version_requirements: &id010 !ruby/object:Gem::Requirement
162
+ - !ruby/object:Gem::Dependency
163
+ type: :development
164
+ requirement: &id010 !ruby/object:Gem::Requirement
167
165
  none: false
168
166
  requirements:
169
167
  - - ~>
@@ -174,8 +172,9 @@ dependencies:
174
172
  - 1
175
173
  - 0
176
174
  version: 2.1.0
177
- requirement: *id010
178
- type: :development
175
+ version_requirements: *id010
176
+ name: bluecloth
177
+ prerelease: false
179
178
  description: This gem provides Ruby bindings to the v3 GitHub API
180
179
  email: jacob@technosorcery.net
181
180
  executables: []
@@ -206,7 +205,6 @@ files:
206
205
  - spec/octocat_herder/connection_spec.rb
207
206
  - spec/octocat_herder_spec.rb
208
207
  - spec/spec_helper.rb
209
- has_rdoc: true
210
208
  homepage: http://github.com/jhelwig/octocat_herder
211
209
  licenses:
212
210
  - BSD
@@ -236,7 +234,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
236
234
  requirements: []
237
235
 
238
236
  rubyforge_project:
239
- rubygems_version: 1.3.7
237
+ rubygems_version: 1.8.6
240
238
  signing_key:
241
239
  specification_version: 3
242
240
  summary: An interface to the v3 GitHub API