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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 07b8f667808f19487bb63afecce80900cbdb0116
4
- data.tar.gz: cef996017af61aa78230fba06560e3c89304c9a8
3
+ metadata.gz: 69461ab0d24161a2d94ee614764bc6e1f7bbe699
4
+ data.tar.gz: 3b72c16582297107d5e5b6d24c2f196317959d2b
5
5
  SHA512:
6
- metadata.gz: ff3885794184b39eae3827dba80d1b512342b80fa9ef34965c9e8c9477808fcc9196ab2a35262c150e3e4444cceba8d2c6fc3db268bfd1fd70c98e9b5fc60c9a
7
- data.tar.gz: 2a81559fa1fe6f2d9db5201489d87b3749cf52542cdbeeee689c760b21c67d10de72fd70ac5622b4fb9022866f2b299b041d49499d5df26985a6aba3121cf445
6
+ metadata.gz: 38ca5529a8c3aead01f3788d7a70653fe02548d6dafc9d71cdad03732042bc5b0233f3ef95fb807d789c01392424c7f6064ac3677007992152108b28d658520c
7
+ data.tar.gz: 3c3616e09ec1463c962d42aa687f794722d4e783e0eef3519d6e2c28d7a415c28616e761da5b069b721065ca5196c19f35ee019c75b809d29579d9da491b30ba
@@ -1,5 +1,5 @@
1
1
  require 'ostruct'
2
- require 'open-uri'
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(OpenURI.open_uri(download_url)) do |archive_io|
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
@@ -1,3 +1,3 @@
1
1
  module SoapyBing
2
- VERSION = '0.0.1'.freeze
2
+ VERSION = '0.0.2'.freeze
3
3
  end
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.1
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-16 00:00:00.000000000 Z
11
+ date: 2015-11-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: erubis