alexa_ruby 1.4.3 → 1.4.5

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7996dbf1c638d65ad8b44f57aac7fc935c0f2e67
4
- data.tar.gz: 9c9ceb27c233cb09100cab9e86500bb2733dec45
3
+ metadata.gz: e910b59171297185881ecfd2c51d20eec7981ae1
4
+ data.tar.gz: b71fd281429e1750054381b3589ce15763a24e38
5
5
  SHA512:
6
- metadata.gz: b5f05b7b537bf80f339839b6bcb10434c9fa9aabac8f6954e0600a987b4aca36c956dda5d03046039dcb73f40b136dc953a912a3a311745fa213f4979965a003
7
- data.tar.gz: a03f9934b61a582a5497e2412ab1deef9006e86ca4319d3ea8974b989da4906d5a99a53705ee198f4abf82840a46b53d7713a7b7345be40cd8a17a17e87fa40d
6
+ metadata.gz: 5082094dd5d518d938793a6794f219dae2d9f02e5c25b894ef914cf2a067aff29aecacf41058a35a6b634bd6768d38b95b1225e46afaa445c7d04256df88e472
7
+ data.tar.gz: f638fc0cb3cbf30614c6d63a7318b5115afca1d066d6aadcbb9d56c1d5a6e50bdd3632cbcd42da6070913916be2bfd47023cd5c0f097cd9a1c82d18aa804104e
data/CHANGELOG CHANGED
@@ -1,3 +1,8 @@
1
+ [1.4.5]
2
+ - Handle different Playback requests
3
+ - Validate signature for all except AudioPlayer
4
+ - Handle System requests
5
+
1
6
  [1.4.3]
2
7
  - Print original signature rather than decoded when raise validation error
3
8
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- alexa_ruby (1.3.1)
4
+ alexa_ruby (1.4.5)
5
5
  addressable (>= 2.5.1)
6
6
  bundler (>= 1.6.9)
7
7
  httparty (>= 0.15.5)
@@ -11,8 +11,8 @@ PATH
11
11
  GEM
12
12
  remote: https://rubygems.org/
13
13
  specs:
14
- addressable (2.5.1)
15
- public_suffix (~> 2.0, >= 2.0.2)
14
+ addressable (2.5.2)
15
+ public_suffix (>= 2.0.2, < 4.0)
16
16
  ansi (1.5.0)
17
17
  builder (3.2.3)
18
18
  coveralls (0.8.21)
@@ -22,7 +22,7 @@ GEM
22
22
  thor (~> 0.19.4)
23
23
  tins (~> 1.6)
24
24
  docile (1.1.5)
25
- httparty (0.15.5)
25
+ httparty (0.15.6)
26
26
  multi_xml (>= 0.5.2)
27
27
  json (2.1.0)
28
28
  minitest (5.10.2)
@@ -32,9 +32,9 @@ GEM
32
32
  minitest (>= 5.0)
33
33
  ruby-progressbar
34
34
  multi_xml (0.6.0)
35
- oj (3.1.3)
36
- public_suffix (2.0.5)
37
- rake (12.0.0)
35
+ oj (3.3.6)
36
+ public_suffix (3.0.0)
37
+ rake (12.1.0)
38
38
  ruby-progressbar (1.8.1)
39
39
  simplecov (0.14.1)
40
40
  docile (~> 1.1.0)
@@ -56,4 +56,4 @@ DEPENDENCIES
56
56
  minitest-reporters (~> 1.1, >= 1.1.14)
57
57
 
58
58
  BUNDLED WITH
59
- 1.15.3
59
+ 1.15.4
@@ -55,7 +55,7 @@ module AlexaRuby
55
55
  IntentRequest.new(@req)
56
56
  when /SessionEnded/
57
57
  SessionEndedRequest.new(@req)
58
- when /AudioPlayer/, /PlaybackController/
58
+ when /AudioPlayer/, /Playback/, /System/
59
59
  AudioPlayerRequest.new(@req)
60
60
  end
61
61
  end
@@ -67,7 +67,8 @@ module AlexaRuby
67
67
  def ssl_check?
68
68
  @request.certificates_chain_url = @opts[:certificates_chain_url]
69
69
  @request.signature = @opts[:request_signature]
70
- @request.certificates_chain_url && @request.signature
70
+ @request.certificates_chain_url && @request.signature &&
71
+ @request.type != :audio_player
71
72
  end
72
73
  end
73
74
  end
@@ -69,7 +69,8 @@ module AlexaRuby
69
69
  raise(
70
70
  ArgumentError,
71
71
  'Given request signature does not match with request SHA1 hash ' \
72
- "(signature: #{@signature})"
72
+ "(signature: #{@signature};\n" \
73
+ "request: #{@request})"
73
74
  )
74
75
  end
75
76
 
@@ -1,3 +1,3 @@
1
1
  module AlexaRuby
2
- VERSION = '1.4.3'.freeze
2
+ VERSION = '1.4.5'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alexa_ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.3
4
+ version: 1.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Mulev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-09 00:00:00.000000000 Z
11
+ date: 2017-10-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -173,7 +173,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
173
173
  version: '0'
174
174
  requirements: []
175
175
  rubyforge_project:
176
- rubygems_version: 2.6.12
176
+ rubygems_version: 2.6.13
177
177
  signing_key:
178
178
  specification_version: 4
179
179
  summary: Ruby toolkit for Amazon Alexa API