faraday 0.4.4 → 0.4.5
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +3 -3
- data/VERSION +1 -1
- data/faraday.gemspec +5 -5
- data/lib/faraday/connection.rb +3 -3
- metadata +4 -4
data/Rakefile
CHANGED
@@ -11,9 +11,11 @@ begin
|
|
11
11
|
gem.homepage = "http://github.com/technoweenie/faraday"
|
12
12
|
gem.authors = ["rick"]
|
13
13
|
gem.add_dependency "rack", ">= 1.0.1"
|
14
|
-
gem.add_dependency "addressable", "2.1.1"
|
14
|
+
gem.add_dependency "addressable", ">= 2.1.1"
|
15
15
|
end
|
16
16
|
Jeweler::GemcutterTasks.new
|
17
|
+
|
18
|
+
task :test => :check_dependencies
|
17
19
|
rescue LoadError
|
18
20
|
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
|
19
21
|
end
|
@@ -38,8 +40,6 @@ rescue LoadError
|
|
38
40
|
end
|
39
41
|
end
|
40
42
|
|
41
|
-
task :test => :check_dependencies
|
42
|
-
|
43
43
|
task :default => :test
|
44
44
|
|
45
45
|
require 'rake/rdoctask'
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.4.
|
1
|
+
0.4.5
|
data/faraday.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{faraday}
|
8
|
-
s.version = "0.4.
|
8
|
+
s.version = "0.4.5"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["rick"]
|
12
|
-
s.date = %q{2010-05-
|
12
|
+
s.date = %q{2010-05-05}
|
13
13
|
s.description = %q{HTTP/REST API client library with pluggable components}
|
14
14
|
s.email = %q{technoweenie@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -74,14 +74,14 @@ Gem::Specification.new do |s|
|
|
74
74
|
|
75
75
|
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
76
76
|
s.add_runtime_dependency(%q<rack>, [">= 1.0.1"])
|
77
|
-
s.add_runtime_dependency(%q<addressable>, ["
|
77
|
+
s.add_runtime_dependency(%q<addressable>, [">= 2.1.1"])
|
78
78
|
else
|
79
79
|
s.add_dependency(%q<rack>, [">= 1.0.1"])
|
80
|
-
s.add_dependency(%q<addressable>, ["
|
80
|
+
s.add_dependency(%q<addressable>, [">= 2.1.1"])
|
81
81
|
end
|
82
82
|
else
|
83
83
|
s.add_dependency(%q<rack>, [">= 1.0.1"])
|
84
|
-
s.add_dependency(%q<addressable>, ["
|
84
|
+
s.add_dependency(%q<addressable>, [">= 2.1.1"])
|
85
85
|
end
|
86
86
|
end
|
87
87
|
|
data/lib/faraday/connection.rb
CHANGED
@@ -173,12 +173,12 @@ module Faraday
|
|
173
173
|
#
|
174
174
|
def build_url(url, params = nil)
|
175
175
|
uri = URI.parse(url.to_s)
|
176
|
-
uri.host ||= @host
|
177
|
-
uri.port ||= @port
|
178
|
-
uri.scheme ||= @scheme
|
179
176
|
if @path_prefix && uri.path !~ /^\//
|
180
177
|
uri.path = "#{@path_prefix.size > 1 ? @path_prefix : nil}/#{uri.path}"
|
181
178
|
end
|
179
|
+
uri.host ||= @host
|
180
|
+
uri.port ||= @port
|
181
|
+
uri.scheme ||= @scheme
|
182
182
|
replace_query(uri, params)
|
183
183
|
uri
|
184
184
|
end
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 4
|
8
|
-
-
|
9
|
-
version: 0.4.
|
8
|
+
- 5
|
9
|
+
version: 0.4.5
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- rick
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-05-
|
17
|
+
date: 2010-05-05 00:00:00 -07:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
@@ -36,7 +36,7 @@ dependencies:
|
|
36
36
|
prerelease: false
|
37
37
|
requirement: &id002 !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
|
-
- - "
|
39
|
+
- - ">="
|
40
40
|
- !ruby/object:Gem::Version
|
41
41
|
segments:
|
42
42
|
- 2
|