awis-sdk-ruby 0.0.1 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +0 -3
- data/README.md +3 -8
- data/awis.gemspec +2 -1
- data/lib/awis.rb +2 -1
- data/lib/awis/models/base.rb +4 -0
- data/lib/awis/version.rb +1 -1
- metadata +19 -3
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
## Amazon - Alexa Web Information Service (AWIS)
|
2
|
-
Ruby Library for
|
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: "
|
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
data/lib/awis/models/base.rb
CHANGED
data/lib/awis/version.rb
CHANGED
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.
|
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: -
|
168
|
+
hash: -2746170648665062270
|
153
169
|
requirements: []
|
154
170
|
rubyforge_project:
|
155
171
|
rubygems_version: 1.8.23
|