nestful 1.0.1 → 1.0.2

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 CHANGED
@@ -5,4 +5,5 @@ gemspec
5
5
 
6
6
  group :test do
7
7
  gem 'webmock'
8
+ gem 'rake'
8
9
  end
@@ -5,7 +5,8 @@ module Nestful
5
5
  class Connection
6
6
  UriParser = URI.const_defined?(:Parser) ? URI::Parser.new : URI
7
7
 
8
- attr_reader :endpoint, :auth_type, :timeout, :proxy, :ssl_options
8
+ attr_accessor :timeout, :ssl_options
9
+ attr_reader :endpoint, :timeout, :proxy, :ssl_options
9
10
 
10
11
  # The +endpoint+ parameter is required and will set the +endpoint+
11
12
  # attribute to the URI for the remote resource service.
@@ -24,11 +24,9 @@ module Nestful
24
24
  value.map { |k, v|
25
25
  to_param(v, prefix ? "#{prefix}[#{escape(k)}]" : escape(k))
26
26
  }.join("&")
27
- when String
27
+ else
28
28
  raise ArgumentError, "value must be a Hash" if prefix.nil?
29
29
  "#{prefix}=#{escape(value)}"
30
- else
31
- prefix
32
30
  end
33
31
  end
34
32
 
@@ -1,3 +1,3 @@
1
1
  module Nestful
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nestful
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-17 00:00:00.000000000 Z
12
+ date: 2013-05-06 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description:
15
15
  email:
@@ -56,12 +56,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
56
56
  - - ! '>='
57
57
  - !ruby/object:Gem::Version
58
58
  version: '0'
59
+ segments:
60
+ - 0
61
+ hash: 2056816628448923571
59
62
  required_rubygems_version: !ruby/object:Gem::Requirement
60
63
  none: false
61
64
  requirements:
62
65
  - - ! '>='
63
66
  - !ruby/object:Gem::Version
64
67
  version: '0'
68
+ segments:
69
+ - 0
70
+ hash: 2056816628448923571
65
71
  requirements: []
66
72
  rubyforge_project:
67
73
  rubygems_version: 1.8.24