soapy_bing 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/soapy_bing/ads/reports/base.rb +6 -2
- data/lib/soapy_bing/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 69461ab0d24161a2d94ee614764bc6e1f7bbe699
|
4
|
+
data.tar.gz: 3b72c16582297107d5e5b6d24c2f196317959d2b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 38ca5529a8c3aead01f3788d7a70653fe02548d6dafc9d71cdad03732042bc5b0233f3ef95fb807d789c01392424c7f6064ac3677007992152108b28d658520c
|
7
|
+
data.tar.gz: 3c3616e09ec1463c962d42aa687f794722d4e783e0eef3519d6e2c28d7a415c28616e761da5b069b721065ca5196c19f35ee019c75b809d29579d9da491b30ba
|
@@ -1,5 +1,5 @@
|
|
1
1
|
require 'ostruct'
|
2
|
-
require '
|
2
|
+
require 'httparty'
|
3
3
|
require 'zip'
|
4
4
|
|
5
5
|
module SoapyBing
|
@@ -55,12 +55,16 @@ module SoapyBing
|
|
55
55
|
|
56
56
|
def report_body
|
57
57
|
@report_body ||=
|
58
|
-
Zip::InputStream.open(
|
58
|
+
Zip::InputStream.open(download_io) do |archive_io|
|
59
59
|
file_io = archive_io.get_next_entry.get_input_stream
|
60
60
|
file_io.read
|
61
61
|
end
|
62
62
|
end
|
63
63
|
|
64
|
+
def download_io
|
65
|
+
StringIO.new HTTParty.get(download_url).body
|
66
|
+
end
|
67
|
+
|
64
68
|
def request_id
|
65
69
|
@request_id ||=
|
66
70
|
Soap::Request::SubmitGenerateReportRequest
|
data/lib/soapy_bing/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: soapy_bing
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ad2games GmbH
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-11-
|
11
|
+
date: 2015-11-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: erubis
|