awis-wrapper 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/awis-wrapper.gemspec +1 -1
- data/spec/awis-wrapper_spec.rb +2 -2
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.1
|
data/awis-wrapper.gemspec
CHANGED
data/spec/awis-wrapper_spec.rb
CHANGED
@@ -16,7 +16,7 @@ describe "AwisWrapper" do
|
|
16
16
|
|
17
17
|
it "would return the correct url" do
|
18
18
|
Amazon::Awis.options[:action] = 'UrlInfo'
|
19
|
-
Amazon::Awis.options[:responsegroup] = '
|
19
|
+
Amazon::Awis.options[:responsegroup] = 'UsageStats'
|
20
20
|
FakeWeb.register_uri(:get, %r{http://#{Amazon::Awis::AWIS_DOMAIN}/?.*}, body: url_info)
|
21
21
|
response = Amazon::Awis.get_info("yahoo.com")
|
22
22
|
response.doc.should_not be_nil
|
@@ -58,7 +58,7 @@ describe "AwisWrapper" do
|
|
58
58
|
let(:batch_request) { IO.read(Pathname.new(File.expand_path(File.dirname(__FILE__))).join('fixtures', 'batch_info.xml')) }
|
59
59
|
it "return multiple datasets" do
|
60
60
|
FakeWeb.register_uri(:get, %r{http://#{Amazon::Awis::AWIS_DOMAIN}/?.*}, body: batch_request)
|
61
|
-
responses = Amazon::Awis::
|
61
|
+
responses = Amazon::Awis::get_batch_info(['yahoo.com', 'cnn.com'])
|
62
62
|
responses.get_all('response').size.should == 2
|
63
63
|
responses.get_all('response')[0].get_all_child('country').size.should == 34
|
64
64
|
responses.get_all('response')[1].url_info_result.first.alexa.should_not be_empty
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: awis-wrapper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -179,7 +179,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
179
179
|
version: '0'
|
180
180
|
segments:
|
181
181
|
- 0
|
182
|
-
hash: -
|
182
|
+
hash: -3916813712994987867
|
183
183
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
184
184
|
none: false
|
185
185
|
requirements:
|