lita-alexa-news-recorder 0.1.3 → 0.1.4

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: f2819b6302601d1036d9b033753112011d3b2e09
4
- data.tar.gz: 74acc7dc09f6421b56c798449dd7a06f7a172548
3
+ metadata.gz: 7bc70241db6de24046b13c937f79da6ce4f08a44
4
+ data.tar.gz: 3e0bc45d6b83c1863831541f56be7a646755f388
5
5
  SHA512:
6
- metadata.gz: 206b1eadd8f881a3f74b52310cb9afffb6f585529565c95ed6ed8ad3e6f85aa9174da448b503c121c980666bc94b96edfbd308b0e2bfc90bd98ac5fa322c3b3a
7
- data.tar.gz: 6b922cf0e5127e1dc9f699e89d03b4b4b8370f5a9d491d4a100a62e24b5e5ba2b22c1d90b8f96d22faa1a04d429daa8c0fae68187f97f3f7863220783a04463c
6
+ metadata.gz: 057781ccf7501a045642c3247b6fafba0cdca786d092a3c823fc442f71e1eba5762b3840e8955a92fcb647f0fd74a24243dd81ecad79f81b6e3080bda45a8441
7
+ data.tar.gz: d3d965a8acad466776dd4845737bce8e5ba1d56be8888487306ef0d7f3d7c14b6a99902352f00ce0d2510647ba9f88b0d60fcc14b658ac3a7546cf0783cc17af
@@ -19,7 +19,7 @@ module Lita
19
19
 
20
20
  robot.trigger(:save_alexa_message, username: 'Alexa News Recorder', message: message)
21
21
 
22
- response.write JSON.dump(sample_response)
22
+ response.write JSON.dump(alexa_response)
23
23
  end
24
24
 
25
25
  def check_for_publisher!
@@ -36,33 +36,22 @@ module Lita
36
36
  value
37
37
  end
38
38
 
39
- def sample_response
39
+ def alexa_response(message)
40
40
  {
41
41
  "version": "1.0",
42
42
  "sessionAttributes": {
43
- "supportedHoriscopePeriods": {
44
- "daily": true,
45
- "weekly": false,
46
- "monthly": false
47
- }
48
43
  },
49
44
  "response": {
50
45
  "outputSpeech": {
51
46
  "type": "PlainText",
52
- "text": "Today will provide you a new learning opportunity. Stick with it and the possibilities will be endless. Can I help you with anything else?"
47
+ "text": "Added your message to Lita's flash briefing: #{message}"
53
48
  },
54
49
  "card": {
55
50
  "type": "Simple",
56
- "title": "Horoscope",
57
- "content": "Today will provide you a new learning opportunity. Stick with it and the possibilities will be endless."
51
+ "title": "Recorded flash message",
52
+ "content": "Added your message to Lita's flash briefing: #{message}"
58
53
  },
59
- "reprompt": {
60
- "outputSpeech": {
61
- "type": "PlainText",
62
- "text": "Can I help you with anything else?"
63
- }
64
- },
65
- "shouldEndSession": false
54
+ "shouldEndSession": true
66
55
  }
67
56
  }
68
57
  end
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "lita-alexa-news-recorder"
3
- spec.version = "0.1.3"
3
+ spec.version = "0.1.4"
4
4
  spec.authors = ["Daniel J. Pritchett"]
5
5
  spec.email = ["dpritchett@gmail.com"]
6
6
  spec.description = "Records voice memos via Alexa and transcribes them for publishing to an Alexa Flash Briefing"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lita-alexa-news-recorder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel J. Pritchett