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 +8 -8
- data/CHANGELOG.rdoc +4 -0
- data/VERSION +1 -1
- data/lib/magnum-pi/api/consumer.rb +1 -1
- data/lib/magnum-pi/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YjhiNGQ1NzExZGM1YjhjN2UwYjM1OGYwMGU4MDA0ZGE4ZWQ4MTA0Zg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
M2JmZTE5ZDI1MTJiMWIyYzNiYTUxMDkwOTM1Zjk0YzRjZDYxMWI2Mw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YzBkMTg3NmM3MTE0NzA2YWI1NjI0MjQ5M2YxZmY3NGE2YjVmYmI2ZDRjMzY4
|
10
|
+
YjJhZjBjMzYxZWZjZjg5ODQ0NmZlMmU5YmJiMzNlMjhiNWRkZDc2Y2RlYmZi
|
11
|
+
N2ZlNjM2YmRiM2E1ZDhjYjMwNTg0NTdiOTQyMzE3N2YxYzhjZjI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MmU3NDJkNjI5ZTBhOWE3ZGU3MzgyNTY1YTgxMzBmYWY4MTk1MjkyMTRjNWJm
|
14
|
+
YWU2MDM1NTI3ODdhM2JlODJmYmY1YTUwZWU0YzQ4ZmE5ZDBiOTRkZmVmNGMy
|
15
|
+
ZjNkZWUwZGQzZWNhMzhkNTAzN2Y2YTAxMWZjMjk4MjExMTlhYWM=
|
data/CHANGELOG.rdoc
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
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
|
data/lib/magnum-pi/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2014-08-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mechanize
|