charles 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/charles.rb +2 -2
  2. data/lib/charles/version.rb +1 -1
  3. metadata +3 -3
@@ -29,9 +29,9 @@ module Charles
29
29
  def self.get(url, options={})
30
30
  agent = Mechanize.new{|a|a.user_agent_alias = 'Mac Mozilla'}
31
31
  body = file_cache.fetch("Charles.get(#{url})"){
32
- agent.get(url,options).body
32
+ agent.get(url).body
33
33
  }
34
- return Document.new(body, :url => url, :mechanize_agent => agent)
34
+ return Document.new(body, {:url => url, :mechanize_agent => agent}.merge(options))
35
35
  end
36
36
 
37
37
  def self.options
@@ -1,3 +1,3 @@
1
1
  module Charles
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: charles
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 4
10
- version: 0.0.4
9
+ - 5
10
+ version: 0.0.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jason Ling Xiaowei