alexa_transmission 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/alexa_transmission.rb +5 -1
- data/lib/alexa_transmission/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 530432effdde95ad5f199c4467c4d78e837fd294
|
4
|
+
data.tar.gz: 23491b18df11972d0a5aefe433f8123715d3cb5c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ab3c0158cb0e0a39f4f7002aacb45cf3225373646a7c44e8cce7f307f0c4c6bde5999fea9a03ed14fc265f66d206230adfaf8664a054d239ff88683db1804f6
|
7
|
+
data.tar.gz: 361708af6cc67eb762bfef4564a3c8b7e8abe10c9e6a1eca966adbb57ca49e1f8aaa6bbaa3205951b6ba1d7d72a345fcef591d00b67e3c2d6eb1bb9a9e4f94fc
|
data/lib/alexa_transmission.rb
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
Bundler.require
|
2
2
|
require "alexa_transmission/version"
|
3
|
+
require 'transmission_api'
|
4
|
+
require 'sinatra/base'
|
5
|
+
require 'to_name'
|
6
|
+
require 'active_support/core_ext/array'
|
3
7
|
|
4
8
|
module Sinatra
|
5
9
|
module Transmission
|
@@ -14,7 +18,7 @@ module Sinatra
|
|
14
18
|
response.without_card.to_json
|
15
19
|
puts @echo_request.slots
|
16
20
|
elsif @echo_request.intent_name == "CheckTransmission"
|
17
|
-
transmission_api_client = TransmissionApi::Client.new(
|
21
|
+
transmission_api_client = ::TransmissionApi::Client.new(
|
18
22
|
:username => settings.config.transmission.username,
|
19
23
|
:password => settings.config.transmission.password,
|
20
24
|
:url => settings.config.transmission.rpc_url
|