huginn_sms77_voice_agent 0.0.1 → 0.1.0
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 +4 -4
- data/lib/huginn_sms77_voice_agent/sms77_voice_agent.rb +6 -2
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bcb7a3d4452beca9bb9efc100d5c2b469aeb1ac7ded54fedc35e1afd5705035a
|
4
|
+
data.tar.gz: 61bbd119fb0fa1f25cc2a399b19f4e78f990ddf3c8c82f34444129bcf39b65f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 01aef3320bea574d59142d76f313cfeb8b97645f928c3fc83ebf2aaa5c6d2ea8eb8ba7f0c141a70db6752b58d54add9d4ccc4549e85d4bcfc405724298d48fd1
|
7
|
+
data.tar.gz: 4e2e0c27cca40807f8953c7137d97ab5727f6231d2687beeb43b5a77692ff91cee90b0d2da158315f6157df178c91bfce67962406d1c4f030867eeca606ace37
|
@@ -25,6 +25,8 @@ module Agents
|
|
25
25
|
* `from` - Sender number. *Expects a string with 11 alphanumeric or 16 numeric characters*
|
26
26
|
|
27
27
|
* `xml` - Decides whether the given text is XML or not *Allowed values: 0, 1*
|
28
|
+
|
29
|
+
* `debug` - Validate request parameters but don't actually make a call *Allowed values: 0, 1*
|
28
30
|
MD
|
29
31
|
|
30
32
|
def required_options
|
@@ -37,7 +39,8 @@ module Agents
|
|
37
39
|
|
38
40
|
def optional_options
|
39
41
|
{
|
40
|
-
'
|
42
|
+
'debug' => false,
|
43
|
+
'from' => '',
|
41
44
|
'xml' => false
|
42
45
|
}
|
43
46
|
end
|
@@ -47,6 +50,7 @@ module Agents
|
|
47
50
|
end
|
48
51
|
|
49
52
|
form_configurable :api_key, type: :text
|
53
|
+
form_configurable :debug, type: :boolean
|
50
54
|
form_configurable :from, type: :text
|
51
55
|
form_configurable :text, type: :text
|
52
56
|
form_configurable :to, type: :text
|
@@ -88,7 +92,7 @@ module Agents
|
|
88
92
|
fd.keys.each do |k|
|
89
93
|
val = interpolated[k]
|
90
94
|
|
91
|
-
if 'xml' === k
|
95
|
+
if 'xml' === k or 'debug' === k
|
92
96
|
val = ActiveModel::Type::Boolean.new.cast(val) ? '1' : '0'
|
93
97
|
end
|
94
98
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: huginn_sms77_voice_agent
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- sms77 e.K.
|
@@ -42,16 +42,16 @@ dependencies:
|
|
42
42
|
name: huginn_agent
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 0.6.1
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: 0.6.1
|
55
55
|
description: Send Text2Voice messages from Huginn via https://sms77.io.
|
56
56
|
email:
|
57
57
|
- support@sms77.io
|