capybara-json 0.2.4 → 0.3.0.beta1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +4 -1
- data/VERSION +1 -1
- data/lib/capybara/httpclient_json/driver.rb +15 -1
- data/lib/capybara/json/driver/base.rb +1 -0
- data/lib/capybara/json.rb +0 -8
- metadata +5 -5
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,8 @@
|
|
1
|
+
## 0.3.0.beta1
|
2
|
+
* Capybara 2.x support, but test not working now... (thanks to gkellogg)
|
3
|
+
|
1
4
|
## 0.2.4
|
2
|
-
*
|
5
|
+
* Added __FILE__ and __LINE__ so that pry can find generated methods (thanks to @mad_p)
|
3
6
|
|
4
7
|
## 0.2.3
|
5
8
|
* ENHANCEMENT
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.3.0.beta1
|
@@ -82,13 +82,27 @@ class Capybara::HTTPClientJson::Driver < Capybara::Json::Driver::Base
|
|
82
82
|
}
|
83
83
|
end
|
84
84
|
|
85
|
+
def needs_server?
|
86
|
+
true
|
87
|
+
end
|
88
|
+
|
85
89
|
def reset!
|
86
90
|
@client = nil
|
87
91
|
end
|
88
92
|
|
89
93
|
protected
|
90
94
|
def process(method, path, params = {}, headers = {}, options = {})
|
91
|
-
@current_url = @rack_server.url
|
95
|
+
@current_url = if @rack_server.respond_to?(:url)
|
96
|
+
@rack_server.url(path)
|
97
|
+
elsif path !~ /^http/
|
98
|
+
if Capybara.app_host
|
99
|
+
Capybara.app_host + path.to_s
|
100
|
+
else
|
101
|
+
"http://#{@rack_server.host}:#{@rack_server.port}" + path.to_s
|
102
|
+
end
|
103
|
+
else
|
104
|
+
path
|
105
|
+
end
|
92
106
|
|
93
107
|
begin
|
94
108
|
@response = client.__send__(method, @current_url, params, headers, options)
|
data/lib/capybara/json.rb
CHANGED
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: capybara-json
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.3.0.beta1
|
5
|
+
prerelease: 6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- okitan
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-12-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: capybara
|
@@ -236,9 +236,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
236
236
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
237
237
|
none: false
|
238
238
|
requirements:
|
239
|
-
- - ! '
|
239
|
+
- - ! '>'
|
240
240
|
- !ruby/object:Gem::Version
|
241
|
-
version:
|
241
|
+
version: 1.3.1
|
242
242
|
requirements: []
|
243
243
|
rubyforge_project: capybara-json
|
244
244
|
rubygems_version: 1.8.24
|