cherrypicker 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -22,7 +22,7 @@ private
22
22
  def download_file
23
23
  http = Net::HTTP.new("#{self.hostname}")
24
24
  http.request_get("#{self.url}") do |response|
25
- bar = ProgressBar.new("#{self.url}", self.size.to_i)
25
+ bar = ProgressBar.new("#{self.filename}", self.size.to_i)
26
26
  File.open("#{self.filename}", "wb") do |file|
27
27
  response.read_body do |segment|
28
28
  self.progress += segment.length
@@ -48,5 +48,6 @@ def random_agent
48
48
  "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.151 Safari/534.16",
49
49
  "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6; en-us) AppleWebKit/533.20.25 (KHTML, like Gecko) Version/5.0.4 Safari/533.20.27",
50
50
  "Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.151 Safari/534.16",
51
- "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)"].sample
51
+ "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)",
52
+ "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.14) Gecko/20110218 Firefox/3.6.14"].sample
52
53
  end
@@ -1,3 +1,3 @@
1
1
  module Cherrypicker
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: cherrypicker
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.2
5
+ version: 0.1.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - Karl Entwistle