awis-sdk-ruby 0.0.1 → 0.0.3

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/Gemfile CHANGED
@@ -7,7 +7,4 @@ end
7
7
  gem "bundler"
8
8
  gem "rake"
9
9
 
10
- # XML parsers
11
- gem "nokogiri", '~> 1.6.8'
12
-
13
10
  gemspec
data/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  ## Amazon - Alexa Web Information Service (AWIS)
2
- Ruby Library for AWSI API - [Amazon AWIS](http://docs.amazonwebservices.com/AlexaWebInfoService/latest/)
2
+ Ruby Library for AWIS REST API - See: [Alexa Docs](http://docs.amazonwebservices.com/AlexaWebInfoService/latest/)
3
3
 
4
4
  ### How to installation
5
5
 
@@ -14,6 +14,7 @@ gem install awis-sdk-ruby
14
14
  ```
15
15
  AWIS_CONFIG = YAML.load(File.read('awis.yml'))
16
16
 
17
+ require 'awis'
17
18
  Awis.config do |c|
18
19
  c.access_key_id = AWIS_CONFIG['access_key_id']
19
20
  c.secret_access_key = AWIS_CONFIG['secret_access_key']
@@ -25,7 +26,7 @@ end
25
26
 
26
27
  ``` ruby
27
28
  client = Awis::Client.new
28
- url_info = client.url_info(url: "github.com")
29
+ url_info = client.url_info(url: "site.com")
29
30
  ```
30
31
 
31
32
  Returns object that contains attributes:
@@ -49,8 +50,6 @@ You can specify options:
49
50
  * url
50
51
  * response_group - which data to include in response (i.e. ["rank", "contact_info", "content_data"]) - defaults to all available
51
52
 
52
- See: [Docs](http://docs.amazonwebservices.com/AlexaWebInfoService/latest/) for valid groups.
53
-
54
53
  ##### Get Sites Linking In
55
54
 
56
55
  ``` ruby
@@ -140,10 +139,6 @@ Awis is using `nokogiri` to parse XML documents.
140
139
 
141
140
  * [Encore Shao](https://github.com/encoreshao)
142
141
 
143
- ### Continuous Integration
144
-
145
- [![Build Status](https://travis-ci.org/encoreshao/awis.svg?branch=master)](https://travis-ci.org/encoreshao/awis)
146
-
147
142
  ### Copyright
148
143
 
149
144
  Copyright (c) Encore Shao. See LICENSE for details.
data/awis.gemspec CHANGED
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
11
11
 
12
12
  spec.summary = %q{Ruby - Amazon Alexa Web Information Service Library (AWIS)}
13
13
  spec.description = %q{Ruby - Amazon Alexa Web Information Service Library (AWIS)}
14
- spec.homepage = "https://github.com/encoreshao/awis"
14
+ spec.homepage = "https://github.com/encoreshao/amazon-awis"
15
15
 
16
16
  spec.files = `git ls-files -z`.split("\x0").reject do |f|
17
17
  f.match(%r{^(test|spec|features)/})
@@ -24,6 +24,7 @@ Gem::Specification.new do |spec|
24
24
 
25
25
  spec.add_dependency "multi_xml", ">= 0.5.0"
26
26
  spec.add_dependency "faraday", "~> 0.9.0"
27
+ spec.add_dependency "nokogiri", '~> 1.6.8'
27
28
 
28
29
  spec.add_development_dependency "minitest"
29
30
  spec.add_development_dependency "mocha"
data/lib/awis.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  require "multi_xml"
2
+ require 'nokogiri'
2
3
 
3
4
  require "awis/version"
4
5
  require "awis/hash"
@@ -16,4 +17,4 @@ module Awis
16
17
  API_HOST = "awis.amazonaws.com".freeze
17
18
  class << self
18
19
  end
19
- end
20
+ end
@@ -21,6 +21,10 @@ module Awis
21
21
  all_items = {}.array_slice_merge!(:item, items, items_count)
22
22
  all_items.map { |item| _object << kclass.new(item) }
23
23
  end
24
+
25
+ def success?
26
+ status_code == 'Success'
27
+ end
24
28
  end
25
29
  end
26
30
  end
data/lib/awis/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Awis
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: awis-sdk-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -43,6 +43,22 @@ dependencies:
43
43
  - - ~>
44
44
  - !ruby/object:Gem::Version
45
45
  version: 0.9.0
46
+ - !ruby/object:Gem::Dependency
47
+ name: nokogiri
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ~>
52
+ - !ruby/object:Gem::Version
53
+ version: 1.6.8
54
+ type: :runtime
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: 1.6.8
46
62
  - !ruby/object:Gem::Dependency
47
63
  name: minitest
48
64
  requirement: !ruby/object:Gem::Requirement
@@ -129,7 +145,7 @@ files:
129
145
  - lib/awis/utils/extra.rb
130
146
  - lib/awis/utils/xml.rb
131
147
  - lib/awis/version.rb
132
- homepage: https://github.com/encoreshao/awis
148
+ homepage: https://github.com/encoreshao/amazon-awis
133
149
  licenses: []
134
150
  post_install_message:
135
151
  rdoc_options: []
@@ -149,7 +165,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
149
165
  version: '0'
150
166
  segments:
151
167
  - 0
152
- hash: -314393393090401873
168
+ hash: -2746170648665062270
153
169
  requirements: []
154
170
  rubyforge_project:
155
171
  rubygems_version: 1.8.23