mirage 1.3.5 → 1.3.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/lib/mirage/web.rb +2 -11
  3. data/mirage.gemspec +1 -1
  4. metadata +2 -2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.3.5
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
- uri = URI.parse(url)
15
- if params[:body]
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
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{mirage}
8
- s.version = "1.3.5"
8
+ s.version = "1.3.6"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Leon Davis"]
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
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: -4386511618372435286
183
+ hash: -2067065448166583273
184
184
  segments:
185
185
  - 0
186
186
  version: "0"