ralexa 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/README.md +1 -1
- data/Rakefile +4 -0
- data/lib/ralexa/client.rb +1 -1
- data/lib/ralexa/version.rb +1 -1
- data/spec/client_spec.rb +2 -2
- metadata +30 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bc38a9c95da3590b6f0c9ba3dff15798756e5712
|
4
|
+
data.tar.gz: 45710e8e9cc9927013113a01d966d3f0e6163a95
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6d98dc06d074b5b4df741de18d2fd34c928b381f8b2a8b62ca6baa4103f4dcd8c10c935cb4d210d85530f6b5301d5da5c8f98fee5cffc2e6767f89ab9f37c32f
|
7
|
+
data.tar.gz: 67d108e428683e928ae7dfb450a36bb8c87336369e78f0e23552643837aeccf403ca600aec68e6bb79cfb582f01a2a07c88c68f8774271fb4be0780cd43e206d
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
# Change Log
|
2
|
+
All notable changes to this project will be documented in this file.
|
3
|
+
This project adheres to [Semantic Versioning](http://semver.org/).
|
4
|
+
|
5
|
+
## [0.0.9] - 2017-08-17
|
6
|
+
### Changed
|
7
|
+
- Request to Amazon Alexa APIs using `https` scheme as use of `http` is being deprecated
|
data/README.md
CHANGED
@@ -3,7 +3,7 @@ Ralexa
|
|
3
3
|
|
4
4
|
Ruby client for Amazon Alexa APIs.
|
5
5
|
|
6
|
-
These include [Alexa Top Sites][
|
6
|
+
These include [Alexa Top Sites][2] and [Alexa Web Information Service][1].
|
7
7
|
|
8
8
|
HTTP transport thanks to `Net::HTTP`,
|
9
9
|
with a little help from [addressable][3].
|
data/Rakefile
CHANGED
data/lib/ralexa/client.rb
CHANGED
data/lib/ralexa/version.rb
CHANGED
data/spec/client_spec.rb
CHANGED
@@ -13,14 +13,14 @@ module Ralexa
|
|
13
13
|
let(:response) { MiniTest::Mock.new }
|
14
14
|
|
15
15
|
it "returns the response body of HTTP GET to a signed URI" do
|
16
|
-
net_http.expect :get_response, response, [ %r{^
|
16
|
+
net_http.expect :get_response, response, [ %r{^https://example.org/test\?.*Signature=} ]
|
17
17
|
response.expect :is_a?, true, [ Net::HTTPSuccess ]
|
18
18
|
response.expect :body, "<xml/>"
|
19
19
|
client.get("example.org", "/test", "a" => "b").must_equal "<xml/>"
|
20
20
|
end
|
21
21
|
|
22
22
|
it "raises an error if the HTTP request failed" do
|
23
|
-
net_http.expect :get_response, response, [ %r{^
|
23
|
+
net_http.expect :get_response, response, [ %r{^https://example.org/test\?.*Signature=} ]
|
24
24
|
response.expect :is_a?, false, [ Net::HTTPSuccess ]
|
25
25
|
def response.error!; raise Net::HTTPError.new("", self); end
|
26
26
|
->{ client.get("example.org", "/test", "a" => "b") }.must_raise Net::HTTPError
|
metadata
CHANGED
@@ -1,69 +1,69 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ralexa
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Paul Annesley
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-08-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 2.2.7
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 2.2.7
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: nokogiri
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: minitest
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rake
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
description: Ruby client for Amazon Alexa APIs.
|
@@ -73,7 +73,8 @@ executables: []
|
|
73
73
|
extensions: []
|
74
74
|
extra_rdoc_files: []
|
75
75
|
files:
|
76
|
-
- .gitignore
|
76
|
+
- ".gitignore"
|
77
|
+
- CHANGELOG.md
|
77
78
|
- Gemfile
|
78
79
|
- LICENSE
|
79
80
|
- README.md
|
@@ -115,18 +116,32 @@ require_paths:
|
|
115
116
|
- lib
|
116
117
|
required_ruby_version: !ruby/object:Gem::Requirement
|
117
118
|
requirements:
|
118
|
-
- -
|
119
|
+
- - ">="
|
119
120
|
- !ruby/object:Gem::Version
|
120
121
|
version: '0'
|
121
122
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
122
123
|
requirements:
|
123
|
-
- -
|
124
|
+
- - ">="
|
124
125
|
- !ruby/object:Gem::Version
|
125
126
|
version: '0'
|
126
127
|
requirements: []
|
127
128
|
rubyforge_project:
|
128
|
-
rubygems_version: 2.
|
129
|
+
rubygems_version: 2.6.10
|
129
130
|
signing_key:
|
130
131
|
specification_version: 4
|
131
132
|
summary: Ruby client for Amazon Alexa APIs such as TopSites.
|
132
|
-
test_files:
|
133
|
+
test_files:
|
134
|
+
- spec/canonicalized_query_string_spec.rb
|
135
|
+
- spec/client_spec.rb
|
136
|
+
- spec/fixtures/global-page1.xml
|
137
|
+
- spec/fixtures/global-page2.xml
|
138
|
+
- spec/fixtures/global-top10.xml
|
139
|
+
- spec/fixtures/list_countries.xml
|
140
|
+
- spec/fixtures/rank.xml
|
141
|
+
- spec/paginator_spec.rb
|
142
|
+
- spec/ralexa_spec.rb
|
143
|
+
- spec/session_spec.rb
|
144
|
+
- spec/spec_helper.rb
|
145
|
+
- spec/top_sites_spec.rb
|
146
|
+
- spec/uri_signer_spec.rb
|
147
|
+
- spec/url_info_spec.rb
|