alexa_skillresponse 0.2.1 → 0.2.2

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
  SHA256:
3
- metadata.gz: c485662da338259dd41d15af2a0ae624693e96be6a3fc899dffe01f1562f1a1b
4
- data.tar.gz: 51ddc2cec7bbd44084076793fcdbbe1acbb75ff30cb1dfb34e1bb72c136ba221
3
+ metadata.gz: 6e59a072183284d80031f9e74e6ab20f8fb3f1f495d47023f558a8f637e37eac
4
+ data.tar.gz: eaa8bd2b4cfd82f6e0a92907a55fcb23b7d1f0338e632ac688a7618228582e4d
5
5
  SHA512:
6
- metadata.gz: a84b7ae36cc20c89f06885aedc68cbbbbb28eed4cded65d44ac544a4c495cb5f2e5e0344188049855a1db4f6cff1a4d0b493f0f5ffe63558acd91f423cbe75cb
7
- data.tar.gz: 6411ef84ce9ec76c7b039974e28bc240f2b56383e211803bca3a77a51fff0602771a56f43a3ce9dbc1b26149433ea9e23499ce652f3c19b25553f3e38a1702a5
6
+ metadata.gz: 24f2cda047da4563b96bb67c745f7655b78351dd5a43ab31f08d8a92838a609a56092ae5f487dbda396c3034892393cb889036adb781b2f8463fb815cd2b7e60
7
+ data.tar.gz: 4af7bad88a97fd8d406ac577ef874b34710ff5b7370cb7c2c986c4f24e6897b864761ef0d1f1f4c7bf1128e9a9afba487bd34014c0f893da709433a76f98aa20
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -64,10 +64,15 @@ class AlexaSkillResponse
64
64
  puts 'rsc found'.info if @debug
65
65
 
66
66
  if rsc.registry and user and device then
67
-
68
- puts ('sending to the registry').info if @debug
69
- rsc.registry.set_key("hkey_apps/alexa/users/" +
70
- user.downcase.gsub(/\W+/,'_') + "/lastsession/device", device)
67
+
68
+ e = rsc.registry.get_key 'hkey_apps/alexa/accounts'
69
+ euserid = e.xpath('*/id').find {|x| x.text.to_s == userid}
70
+
71
+ if euserid then
72
+ puts ('sending to the registry').info if @debug
73
+ rsc.registry.set_key("hkey_apps/alexa/accounts/" +
74
+ euserid.parent.name + "/lastsession/device", device)
75
+ end
71
76
  end
72
77
  end
73
78
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alexa_skillresponse
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -35,7 +35,7 @@ cert_chain:
35
35
  obt/CzvPP/5wTAZ3kG4fIkKjG+uZex3kzilp36IiV7xqRl9MoTwoMzicLeFTp6rb
36
36
  +GNpSLfh598icuXMC/UULHGE
37
37
  -----END CERTIFICATE-----
38
- date: 2019-12-11 00:00:00.000000000 Z
38
+ date: 2019-12-25 00:00:00.000000000 Z
39
39
  dependencies:
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: rscript
metadata.gz.sig CHANGED
Binary file