hugs 2.5.0 → 2.5.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/Gemfile.lock +1 -1
- data/README.md +3 -2
- data/lib/hugs/client.rb +1 -0
- data/lib/hugs/version.rb +1 -1
- data/test/lib/hugs/client_test.rb +8 -0
- metadata +2 -2
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -9,9 +9,10 @@ Opted to write this gem for four reasons:
|
|
|
9
9
|
[rest-client](https://github.com/archiloque/rest-client) does not do.
|
|
10
10
|
* Wanted a [fast](http://blog.segment7.net/articles/2010/05/07/net-http-is-not-slow),
|
|
11
11
|
thread-safe, and persistent client.
|
|
12
|
-
* [Excon](https://github.com/geemus/excon) does most everything right, but is not
|
|
12
|
+
* [Excon](https://github.com/geemus/excon) does most everything right, <del>but is not
|
|
13
13
|
compatible with [VCR](https://github.com/myronmarston/vcr) (more specifically
|
|
14
|
-
[webmock](https://github.com/bblimke/webmock) and [fakeweb](https://github.com/chrisk/fakeweb))
|
|
14
|
+
[webmock](https://github.com/bblimke/webmock) and [fakeweb](https://github.com/chrisk/fakeweb))</del>.
|
|
15
|
+
There looks to be [work on this front](https://github.com/geemus/excon/issues#issue/29).
|
|
15
16
|
* Wanted to learn how to handle this pattern.
|
|
16
17
|
|
|
17
18
|
The XML usage of this gem will probably change. In the next couple of weeks Hugs
|
data/lib/hugs/client.rb
CHANGED
data/lib/hugs/version.rb
CHANGED
|
@@ -177,6 +177,10 @@ describe Hugs::Client do
|
|
|
177
177
|
it "supports json PUT" do
|
|
178
178
|
assert_supports_http_verb :json, :put
|
|
179
179
|
end
|
|
180
|
+
|
|
181
|
+
it "supports json HEAD" do
|
|
182
|
+
assert_supports_http_verb :json, :head
|
|
183
|
+
end
|
|
180
184
|
end
|
|
181
185
|
|
|
182
186
|
describe "XML" do
|
|
@@ -195,6 +199,10 @@ describe Hugs::Client do
|
|
|
195
199
|
it "supports xml PUT" do
|
|
196
200
|
assert_supports_http_verb :xml, :put
|
|
197
201
|
end
|
|
202
|
+
|
|
203
|
+
it "supports xml HEAD" do
|
|
204
|
+
assert_supports_http_verb :xml, :head
|
|
205
|
+
end
|
|
198
206
|
end
|
|
199
207
|
end
|
|
200
208
|
|
metadata
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: hugs
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease:
|
|
5
|
-
version: 2.5.
|
|
5
|
+
version: 2.5.1
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
8
8
|
- John Dewey
|
|
@@ -10,7 +10,7 @@ autorequire:
|
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
12
|
|
|
13
|
-
date: 2011-
|
|
13
|
+
date: 2011-04-05 00:00:00 -07:00
|
|
14
14
|
default_executable:
|
|
15
15
|
dependencies:
|
|
16
16
|
- !ruby/object:Gem::Dependency
|