alexa_modelbuilder 0.4.0 → 0.4.1

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
- SHA1:
3
- metadata.gz: 51033746cec691f85b1c8494735bdbc3baf4c2c4
4
- data.tar.gz: d937f71e20fc19e0e849a7c18a13907431aa8454
2
+ SHA256:
3
+ metadata.gz: 3a7c6c343f899aef68bd36bfc7724ddfe2b1334bfdb110bf345654615aa69f66
4
+ data.tar.gz: d1dc07e0bdb874b23f19eb0b3bd49b33050423ae4afe323e0a4a1ae5b7c1dd91
5
5
  SHA512:
6
- metadata.gz: bc358bcc9f89e746ad5d6ac7e1892432d641b7039a024069a2ef7cdde55324693ee788267db4e0b2f88daf2fa5e774e860bc99741215c2455b8fa0b0eec9ac60
7
- data.tar.gz: f84ec9f248a9dfcb1f967b75f977d3881163a9205c528dc08412319cf91810670691644a1d03af240fc8b3032aaf6abece1fea265f26f5f439910ae899bffb81
6
+ metadata.gz: '09bc77c4328d041f64059448a10d1ce8aba6b81d716d8e11f4e420fb6e4ced714aed05ebf01e671b3e9c9134002548581d2b0469326048204006b049226798ac'
7
+ data.tar.gz: 48d99158684d76a13602edc8effd2b04ac81d98261083d22a6d0bd27e13596b76a74640bfc79c198f1919ccf60097d8b847b6734c9691f162ebb0a0061472218
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -10,6 +10,7 @@ require 'lineparser'
10
10
 
11
11
 
12
12
  class AlexaModelBuilder
13
+ using ColouredText
13
14
 
14
15
  def initialize(s=nil, debug: false, locale: 'en-GB')
15
16
 
@@ -39,7 +40,7 @@ class AlexaModelBuilder
39
40
 
40
41
  lm[:intents].each do |intent|
41
42
 
42
- puts 'intent: ' + intent[:name].inspect if @debug
43
+ puts ('intent: ' + intent[:name].inspect).debug if @debug
43
44
  out << intent[:name] + "\n"
44
45
 
45
46
  if intent[:samples] then
@@ -211,7 +212,7 @@ endpoint: input
211
212
  json = pretty ? JSON.pretty_generate(@interact_model) : \
212
213
  @interact_model.to_json
213
214
 
214
- Clipboard.copy json
215
+ Clipboard.copy json if copy
215
216
  return json
216
217
  end
217
218
 
@@ -223,7 +224,9 @@ endpoint: input
223
224
 
224
225
  # Parses the document model using the line-parser gem
225
226
  #
226
- def parse(lines)
227
+ def parse(raw_s)
228
+
229
+ s, _ = RXFHelper.read(raw_s)
227
230
 
228
231
  puts 'inside parse' if @debug
229
232
 
@@ -259,7 +262,7 @@ endpoint: input
259
262
  a2 = manifest + interaction
260
263
  puts 'a2: ' + a2.inspect if @debug
261
264
  lp = LineParser.new a2, debug: @debug
262
- lp.parse lines
265
+ lp.parse s
263
266
  @h = h = lp.to_h
264
267
  puts 'h: ' + h.inspect if @debug
265
268
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alexa_modelbuilder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -30,7 +30,7 @@ cert_chain:
30
30
  EgZc9/Cpxo+WohlXR69qWm5QxX8PvdLu5ZjGD2OH5pBAPToJQyk9O8kZB9OdDMZT
31
31
  tns=
32
32
  -----END CERTIFICATE-----
33
- date: 2018-07-29 00:00:00.000000000 Z
33
+ date: 2019-01-30 00:00:00.000000000 Z
34
34
  dependencies:
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: lineparser
@@ -58,20 +58,20 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '1.1'
61
+ version: '1.3'
62
62
  - - ">="
63
63
  - !ruby/object:Gem::Version
64
- version: 1.1.2
64
+ version: 1.3.3
65
65
  type: :runtime
66
66
  prerelease: false
67
67
  version_requirements: !ruby/object:Gem::Requirement
68
68
  requirements:
69
69
  - - "~>"
70
70
  - !ruby/object:Gem::Version
71
- version: '1.1'
71
+ version: '1.3'
72
72
  - - ">="
73
73
  - !ruby/object:Gem::Version
74
- version: 1.1.2
74
+ version: 1.3.3
75
75
  description:
76
76
  email: james@jamesrobertson.eu
77
77
  executables: []
@@ -98,8 +98,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
98
98
  - !ruby/object:Gem::Version
99
99
  version: '0'
100
100
  requirements: []
101
- rubyforge_project:
102
- rubygems_version: 2.6.13
101
+ rubygems_version: 3.0.2
103
102
  signing_key:
104
103
  specification_version: 4
105
104
  summary: Builds an Alexa Skills Interaction Model and optionally an Alexa Skills manifest
metadata.gz.sig CHANGED
Binary file