alexa_ruby 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/lib/alexa_ruby/response/audio_player.rb +9 -1
- data/lib/alexa_ruby/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c64a178ea35c5280218a441dcc9993679965990c
|
4
|
+
data.tar.gz: aaf9815ad8f4fcd99e9a9f623aeb973eb9ffdbdd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ff171ca1e709b0fde16930e42a9e49f08b5d788eda174de7ea727356b5e82d0a958646d6dbb825b2bf8fb3c33694ecb10d4e9dcc423b06ad1b6a0c040660f928
|
7
|
+
data.tar.gz: fadf34ec57b1d7aaf6a4b0c9ce9f2cec734a02769c49378e3f58fd2bd00d41a716e8991ca657d7d99092552d81680a0ee10d12b6d6f4c8e31dbfb9f77779f2ba
|
data/README.md
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
|
3
3
|
[![Gem Version](https://badge.fury.io/rb/alexa_ruby.svg)](https://badge.fury.io/rb/alexa_ruby)
|
4
4
|
[![Build Status](https://travis-ci.org/mulev/alexa-ruby.svg?branch=master)](https://travis-ci.org/mulev/alexa-ruby)
|
5
|
+
[![CircleCI](https://circleci.com/bb/mmulev/alexa-ruby/tree/master.svg?style=svg&circle-token=6a8088af16c301880712400c2db43ed32e1291f3)](https://circleci.com/bb/mmulev/alexa-ruby/tree/master)
|
5
6
|
[![Code Climate](https://codeclimate.com/github/mulev/alexa-ruby/badges/gpa.svg)](https://codeclimate.com/github/mulev/alexa-ruby)
|
6
7
|
[![Coverage Status](https://coveralls.io/repos/github/mulev/alexa-ruby/badge.svg?branch=develop)](https://coveralls.io/github/mulev/alexa-ruby?branch=develop)
|
7
8
|
|
@@ -15,7 +15,7 @@ module AlexaRuby
|
|
15
15
|
raise ArgumentError, 'Audio URL must be a valid ' \
|
16
16
|
'SSL-enabled (HTTPS) endpoint'
|
17
17
|
end
|
18
|
-
token = params[:token]
|
18
|
+
token = token(params[:token])
|
19
19
|
offset = params[:offset] || 0
|
20
20
|
build_directive('AudioPlayer.Play', url, token, offset)
|
21
21
|
end
|
@@ -53,5 +53,13 @@ module AlexaRuby
|
|
53
53
|
def invalid_url?(url)
|
54
54
|
URI.parse(url).scheme != 'https'
|
55
55
|
end
|
56
|
+
|
57
|
+
# Get station token
|
58
|
+
#
|
59
|
+
# @param token [String] station token
|
60
|
+
# @return [Boolean]
|
61
|
+
def token(token)
|
62
|
+
token.nil? || token.empty? ? SecureRandom.uuid : token
|
63
|
+
end
|
56
64
|
end
|
57
65
|
end
|
data/lib/alexa_ruby/version.rb
CHANGED
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.1.
|
4
|
+
version: 1.1.1
|
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-06-
|
11
|
+
date: 2017-06-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|