alexa_ruby 1.2.0 → 1.2.1

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: dd7bd13bd046d4f22c745be4e01c7bafe6970e72
4
- data.tar.gz: 125194d8fff5eae293104ab729ca1a8f014a9a59
3
+ metadata.gz: 886142fd610eaa1fb2c0330440f7015301abcbed
4
+ data.tar.gz: 6908bfe4be82907c42efb245ea5ad8f16760a257
5
5
  SHA512:
6
- metadata.gz: acb690cb6c31f1ce5a721f122fbedad6f513cb3e4f326a23b3882881d623fce35e1f1fc2f360d22306937fe02437b8a1d7ce2179362476cf2b51cd20ec4ecacb
7
- data.tar.gz: ad3c6b4b4cb8bd191e55354b51c26e983d6c60601a57d5af705776b2a85b435a0247d72582a4ab5948593bf041fec649a44008508b0785b294b5e7c2fb9170d2
6
+ metadata.gz: a4b66b2790f1db14d55a685dc862124006544c1f1f93fb60cb60aa3b4caed02f0cb85c967cc0bd92d6faf303718ceb17a0e807aa50458a865972ee59734f29cc
7
+ data.tar.gz: d1d691892c405cbe8f01715020b6b371ca7455a963599723659d895203612b8da8a305492ea1ed81b82a437aab952197012c6dcfe5397be656f7b6afe50bcc54
data/CHANGELOG CHANGED
@@ -1,3 +1,6 @@
1
+ [1.2.1]
2
+ - Fixed issue with expectedPreviousToken property in enqueuing AudioPlayer.Play directive
3
+
1
4
  [1.2.0]
2
5
  - Add support of ENQUEUE type in AudioPlayer directive
3
6
  - Add support of AudioPlayer.ClearQueue directive
@@ -73,8 +73,8 @@ module AlexaRuby
73
73
  stream = directive[:audioItem][:stream]
74
74
  stream[:token] = token(@opts[:token])
75
75
  stream[:offsetInMilliseconds] = @opts[:offset] || 0
76
- if @opts[:behavior] == :enqueue
77
- stream[:expectedPreviousToken] = @opts[:previous_token]
76
+ if directive[:playBehavior] == 'ENQUEUE'
77
+ stream[:expectedPreviousToken] = @opts[:previous_token] || ''
78
78
  end
79
79
  directive
80
80
  end
@@ -1,3 +1,3 @@
1
1
  module AlexaRuby
2
- VERSION = '1.2.0'.freeze
2
+ VERSION = '1.2.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alexa_ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Mulev