sawyer 0.1.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/sawyer.rb +1 -1
- data/lib/sawyer/resource.rb +6 -0
- data/sawyer.gemspec +2 -2
- data/test/agent_test.rb +2 -0
- data/test/helper.rb +1 -1
- data/test/resource_test.rb +8 -0
- metadata +11 -4
data/lib/sawyer.rb
CHANGED
data/lib/sawyer/resource.rb
CHANGED
data/sawyer.gemspec
CHANGED
@@ -12,12 +12,12 @@ Gem::Specification.new do |spec|
|
|
12
12
|
|
13
13
|
spec.summary = "Secret User Agent of HTTP"
|
14
14
|
|
15
|
-
spec.authors = ["Rick Olson"]
|
15
|
+
spec.authors = ["Rick Olson", "Wynn Netherland"]
|
16
16
|
spec.email = 'technoweenie@gmail.com'
|
17
17
|
spec.homepage = 'https://github.com/lostisland/sawyer'
|
18
18
|
spec.licenses = ['MIT']
|
19
19
|
|
20
|
-
spec.add_dependency 'faraday', ['~> 0.
|
20
|
+
spec.add_dependency 'faraday', ['~> 0.8', '< 0.10']
|
21
21
|
spec.add_dependency 'uri_template', ['~> 0.5.0']
|
22
22
|
|
23
23
|
spec.files = %w(Gemfile LICENSE.md README.md Rakefile)
|
data/test/agent_test.rb
CHANGED
data/test/helper.rb
CHANGED
data/test/resource_test.rb
CHANGED
@@ -138,5 +138,13 @@ module Sawyer
|
|
138
138
|
assert_equal '/users/1/followers', res.user.rels[:followers].href
|
139
139
|
assert !res.user.fields.include?(:followers_url)
|
140
140
|
end
|
141
|
+
|
142
|
+
def test_handle_yaml_dump
|
143
|
+
assert_nothing_raised do
|
144
|
+
require 'yaml'
|
145
|
+
res = Resource.new @agent, :a => 1
|
146
|
+
YAML.dump(res)
|
147
|
+
end
|
148
|
+
end
|
141
149
|
end
|
142
150
|
end
|
metadata
CHANGED
@@ -1,15 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sawyer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Rick Olson
|
9
|
+
- Wynn Netherland
|
9
10
|
autorequire:
|
10
11
|
bindir: bin
|
11
12
|
cert_chain: []
|
12
|
-
date: 2013-
|
13
|
+
date: 2013-08-08 00:00:00.000000000 Z
|
13
14
|
dependencies:
|
14
15
|
- !ruby/object:Gem::Dependency
|
15
16
|
name: faraday
|
@@ -18,7 +19,10 @@ dependencies:
|
|
18
19
|
requirements:
|
19
20
|
- - ~>
|
20
21
|
- !ruby/object:Gem::Version
|
21
|
-
version: 0.
|
22
|
+
version: '0.8'
|
23
|
+
- - <
|
24
|
+
- !ruby/object:Gem::Version
|
25
|
+
version: '0.10'
|
22
26
|
type: :runtime
|
23
27
|
prerelease: false
|
24
28
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -26,7 +30,10 @@ dependencies:
|
|
26
30
|
requirements:
|
27
31
|
- - ~>
|
28
32
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.
|
33
|
+
version: '0.8'
|
34
|
+
- - <
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
version: '0.10'
|
30
37
|
- !ruby/object:Gem::Dependency
|
31
38
|
name: uri_template
|
32
39
|
requirement: !ruby/object:Gem::Requirement
|