nestful 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +1 -0
- data/lib/nestful/connection.rb +2 -1
- data/lib/nestful/helpers.rb +1 -3
- data/lib/nestful/version.rb +1 -1
- metadata +8 -2
data/Gemfile
CHANGED
data/lib/nestful/connection.rb
CHANGED
@@ -5,7 +5,8 @@ module Nestful
|
|
5
5
|
class Connection
|
6
6
|
UriParser = URI.const_defined?(:Parser) ? URI::Parser.new : URI
|
7
7
|
|
8
|
-
|
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.
|
data/lib/nestful/helpers.rb
CHANGED
@@ -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
|
-
|
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
|
|
data/lib/nestful/version.rb
CHANGED
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.
|
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-
|
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
|