magnum-pi 0.2.6 → 0.2.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MDRjMjBkMWFjOTk2YjMzMDJhMGVmMmM3OTNiMDQ4N2ExNDI1ZTI2YQ==
4
+ YjhiNGQ1NzExZGM1YjhjN2UwYjM1OGYwMGU4MDA0ZGE4ZWQ4MTA0Zg==
5
5
  data.tar.gz: !binary |-
6
- NDYzODBlY2VmYmQxMTViNTc3MjYxNjM3MjljNTJhNjgxOTUyODNhYQ==
6
+ M2JmZTE5ZDI1MTJiMWIyYzNiYTUxMDkwOTM1Zjk0YzRjZDYxMWI2Mw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZWNiMWExYzFmNDVkOGRkNmRmNmY5MjRiMDA1OWQyYjFhZWY3YjRmYjNlMmYx
10
- ODI3Yzg2NmIyMmQ2NGM3MjA5YWZkZGRkYWMxNjVlOWNkNjhiZTRmNjcxNDYz
11
- ZDUzMWEwMTdmYzljZDRlNDc2NzdhN2FkNTViNTIzYWI3Zjc1YmY=
9
+ YzBkMTg3NmM3MTE0NzA2YWI1NjI0MjQ5M2YxZmY3NGE2YjVmYmI2ZDRjMzY4
10
+ YjJhZjBjMzYxZWZjZjg5ODQ0NmZlMmU5YmJiMzNlMjhiNWRkZDc2Y2RlYmZi
11
+ N2ZlNjM2YmRiM2E1ZDhjYjMwNTg0NTdiOTQyMzE3N2YxYzhjZjI=
12
12
  data.tar.gz: !binary |-
13
- OWY3YzFiOGVhYWU5MmE0ODk4ZjM0NjgwMGQ0YmY1MzgzMTA1NmQ2YzA1NWUx
14
- NjRkMzUwZDJhMmFhZDAyNGNlNTk5Mzk1YzE5ZWZhNzEzOWYwZTEzNmUxYTBl
15
- YTNhYmUyZGIxZDA1ZmZmYmMxYTc1M2ViZDlmMmU2ZDIwMjIzZTk=
13
+ MmU3NDJkNjI5ZTBhOWE3ZGU3MzgyNTY1YTgxMzBmYWY4MTk1MjkyMTRjNWJm
14
+ YWU2MDM1NTI3ODdhM2JlODJmYmY1YTUwZWU0YzQ4ZmE5ZDBiOTRkZmVmNGMy
15
+ ZjNkZWUwZGQzZWNhMzhkNTAzN2Y2YTAxMWZjMjk4MjExMTlhYWM=
@@ -1,5 +1,9 @@
1
1
  = MagnumPI CHANGELOG
2
2
 
3
+ == Version 0.2.7 (August 14, 2014)
4
+
5
+ * Using one user-agent only
6
+
3
7
  == Version 0.2.6 (August 5, 2014)
4
8
 
5
9
  * Using Typhoeus for downloading files
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.6
1
+ 0.2.7
@@ -19,7 +19,7 @@ module MagnumPI
19
19
  FileUtils.mkdir_p File.dirname(target)
20
20
  file = File.open target, "w"
21
21
  begin
22
- request = Typhoeus::Request.new url, :method => method, :params => params
22
+ request = Typhoeus::Request.new url, :method => method, :params => params, :headers => {"User-Agent" => agent.user_agent}
23
23
  request.on_headers {|response| raise "Failed to download #{target}" unless (response.response_code / 200) == 1}
24
24
  request.on_body {|chunk| file.write chunk.force_encoding("UTF-8")}
25
25
  request.run
@@ -1,7 +1,7 @@
1
1
  module MagnumPI
2
2
  MAJOR = 0
3
3
  MINOR = 2
4
- TINY = 6
4
+ TINY = 7
5
5
 
6
6
  VERSION = [MAJOR, MINOR, TINY].join(".")
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: magnum-pi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paul Engel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-05 00:00:00.000000000 Z
11
+ date: 2014-08-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mechanize