sawyer 0.1.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  module Sawyer
2
- VERSION = "0.1.0"
2
+ VERSION = "0.3.0"
3
3
 
4
4
  class Error < StandardError; end
5
5
  end
@@ -112,6 +112,12 @@ module Sawyer
112
112
  end
113
113
  end
114
114
  end
115
+
116
+ # private
117
+ def to_yaml_properties
118
+ [:@attrs, :@_fields, :@_rels]
119
+ end
120
+
115
121
  end
116
122
  end
117
123
 
@@ -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.9.rc5']
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)
@@ -1,5 +1,7 @@
1
1
  require File.expand_path("../helper", __FILE__)
2
2
 
3
+ require 'faraday/adapter/test'
4
+
3
5
  module Sawyer
4
6
  class AgentTest < TestCase
5
7
 
@@ -1,6 +1,6 @@
1
1
  require 'test/unit'
2
2
  require File.expand_path('../../lib/sawyer', __FILE__)
3
- require 'faraday/autoload'
3
+
4
4
  class Sawyer::TestCase < Test::Unit::TestCase
5
5
  def default_test
6
6
  end
@@ -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.1.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-06-25 00:00:00.000000000 Z
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.9.rc5
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.9.rc5
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