api-client 1.1.0 → 1.1.1
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/README.md +1 -1
- data/lib/api-client/dispatcher.rb +1 -1
- data/lib/api-client/version.rb +1 -1
- data/spec/api-client/base/post_spec.rb +12 -1
- metadata +1 -7
data/README.md
CHANGED
data/lib/api-client/version.rb
CHANGED
@@ -80,9 +80,20 @@ describe ApiClient::Base do
|
|
80
80
|
User.stub(:new).and_return(user)
|
81
81
|
end
|
82
82
|
|
83
|
-
it "should return a object
|
83
|
+
it "should return a object initialized with the response" do
|
84
84
|
User.post('http://api.example.com/user/5', {}).should == user
|
85
85
|
end
|
86
86
|
end
|
87
|
+
|
88
|
+
context "with a specified port" do
|
89
|
+
before :each do
|
90
|
+
FakeWeb.register_uri(:post, "http://api.example.com:3001/user/5", :status => "201", :body => '{"a": "a", "b": "b"}')
|
91
|
+
User.stub(:new).and_return(user)
|
92
|
+
end
|
93
|
+
|
94
|
+
it "should return a object initialized with the response" do
|
95
|
+
User.post('http://api.example.com:3001/user/5', {}).should == user
|
96
|
+
end
|
97
|
+
end
|
87
98
|
end
|
88
99
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: api-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -138,18 +138,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
138
138
|
- - ! '>='
|
139
139
|
- !ruby/object:Gem::Version
|
140
140
|
version: '0'
|
141
|
-
segments:
|
142
|
-
- 0
|
143
|
-
hash: -2592261694451152331
|
144
141
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
145
142
|
none: false
|
146
143
|
requirements:
|
147
144
|
- - ! '>='
|
148
145
|
- !ruby/object:Gem::Version
|
149
146
|
version: '0'
|
150
|
-
segments:
|
151
|
-
- 0
|
152
|
-
hash: -2592261694451152331
|
153
147
|
requirements: []
|
154
148
|
rubyforge_project:
|
155
149
|
rubygems_version: 1.8.24
|