mirage 1.3.5 → 1.3.6
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/mirage/web.rb +2 -11
- data/mirage.gemspec +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.3.
|
1
|
+
1.3.6
|
data/lib/mirage/web.rb
CHANGED
@@ -11,18 +11,9 @@ module Mirage
|
|
11
11
|
end
|
12
12
|
|
13
13
|
def http_get url, params={}
|
14
|
-
|
15
|
-
|
16
|
-
response = using_mechanize do |browser|
|
17
|
-
browser.put(url, params[:body])
|
18
|
-
end
|
19
|
-
else
|
20
|
-
response = using_mechanize do |browser|
|
21
|
-
browser.get(url, params)
|
22
|
-
end
|
14
|
+
using_mechanize do |browser|
|
15
|
+
params[:body] ? browser.put(url, params[:body]) : browser.get(url, params)
|
23
16
|
end
|
24
|
-
|
25
|
-
response
|
26
17
|
end
|
27
18
|
|
28
19
|
def http_post url, params={}
|
data/mirage.gemspec
CHANGED
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: mirage
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 1.3.
|
5
|
+
version: 1.3.6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Leon Davis
|
@@ -180,7 +180,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
180
180
|
requirements:
|
181
181
|
- - ">="
|
182
182
|
- !ruby/object:Gem::Version
|
183
|
-
hash: -
|
183
|
+
hash: -2067065448166583273
|
184
184
|
segments:
|
185
185
|
- 0
|
186
186
|
version: "0"
|