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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d1b82971f1f2831ceab99ae0380a5c1c77fd6cb8
4
- data.tar.gz: fd68afd62770887e25115cd9a546851b2e9c717e
3
+ metadata.gz: bc38a9c95da3590b6f0c9ba3dff15798756e5712
4
+ data.tar.gz: 45710e8e9cc9927013113a01d966d3f0e6163a95
5
5
  SHA512:
6
- metadata.gz: 8d952d6cbe12c5d979bbb509d9b6424f36ca12f58f3a99bfc6fdb8d01266bf9ec5052414d9edf37f648c7af83fec808c0197002da5d3165d9f26afa79176a42d
7
- data.tar.gz: ca9d3933053a736e1fb510456651912de6350b97febb48d0a8a42ed002f370eb2619dd58737821f3714597f8e5fa95535216595a6a214383e4cab1cc8c41d764
6
+ metadata.gz: 6d98dc06d074b5b4df741de18d2fd34c928b381f8b2a8b62ca6baa4103f4dcd8c10c935cb4d210d85530f6b5301d5da5c8f98fee5cffc2e6767f89ab9f37c32f
7
+ data.tar.gz: 67d108e428683e928ae7dfb450a36bb8c87336369e78f0e23552643837aeccf403ca600aec68e6bb79cfb582f01a2a07c88c68f8774271fb4be0780cd43e206d
@@ -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][1] and [Alexa Web Information Service][2].
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
@@ -11,3 +11,7 @@ Rake::TestTask.new do |t|
11
11
  # ENV["TESTOPTS"] = "-v"
12
12
  t.pattern = "spec/*_spec.rb"
13
13
  end
14
+
15
+ task :console do
16
+ exec "irb -r ralexa -I ./lib"
17
+ end
@@ -24,7 +24,7 @@ module Ralexa
24
24
  def signed_uri(host, path, query_values)
25
25
  uri_signer.sign_uri(
26
26
  Addressable::URI.new(
27
- scheme: "http",
27
+ scheme: "https",
28
28
  host: host,
29
29
  path: path,
30
30
  query_values: query_values
@@ -1,3 +1,3 @@
1
1
  module Ralexa
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
@@ -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{^http://example.org/test\?.*Signature=} ]
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{^http://example.org/test\?.*Signature=} ]
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.8
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: 2013-10-23 00:00:00.000000000 Z
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.0.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