xip 0.0.1 → 2.0.0.beta2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (146) hide show
  1. checksums.yaml +4 -4
  2. data/.circleci/config.yml +116 -0
  3. data/.gitignore +12 -0
  4. data/CHANGELOG.md +135 -0
  5. data/Gemfile +4 -1
  6. data/Gemfile.lock +65 -15
  7. data/LICENSE +6 -4
  8. data/README.md +51 -1
  9. data/VERSION +1 -0
  10. data/bin/xip +3 -11
  11. data/lib/xip.rb +1 -3
  12. data/lib/xip/base.rb +189 -0
  13. data/lib/xip/cli.rb +273 -0
  14. data/lib/xip/cli_base.rb +24 -0
  15. data/lib/xip/commands/command.rb +13 -0
  16. data/lib/xip/commands/console.rb +74 -0
  17. data/lib/xip/commands/server.rb +63 -0
  18. data/lib/xip/configuration.rb +56 -0
  19. data/lib/xip/controller/callbacks.rb +63 -0
  20. data/lib/xip/controller/catch_all.rb +84 -0
  21. data/lib/xip/controller/controller.rb +274 -0
  22. data/lib/xip/controller/dev_jumps.rb +40 -0
  23. data/lib/xip/controller/dynamic_delay.rb +61 -0
  24. data/lib/xip/controller/helpers.rb +128 -0
  25. data/lib/xip/controller/interrupt_detect.rb +99 -0
  26. data/lib/xip/controller/messages.rb +283 -0
  27. data/lib/xip/controller/nlp.rb +49 -0
  28. data/lib/xip/controller/replies.rb +281 -0
  29. data/lib/xip/controller/unrecognized_message.rb +61 -0
  30. data/lib/xip/core_ext.rb +5 -0
  31. data/lib/xip/core_ext/numeric.rb +10 -0
  32. data/lib/xip/core_ext/string.rb +18 -0
  33. data/lib/xip/dispatcher.rb +68 -0
  34. data/lib/xip/errors.rb +55 -0
  35. data/lib/xip/flow/base.rb +69 -0
  36. data/lib/xip/flow/specification.rb +56 -0
  37. data/lib/xip/flow/state.rb +82 -0
  38. data/lib/xip/generators/builder.rb +41 -0
  39. data/lib/xip/generators/builder/.gitignore +30 -0
  40. data/lib/xip/generators/builder/Gemfile +19 -0
  41. data/lib/xip/generators/builder/Procfile.dev +2 -0
  42. data/lib/xip/generators/builder/README.md +9 -0
  43. data/lib/xip/generators/builder/Rakefile +2 -0
  44. data/lib/xip/generators/builder/bot/controllers/bot_controller.rb +55 -0
  45. data/lib/xip/generators/builder/bot/controllers/catch_alls_controller.rb +21 -0
  46. data/lib/xip/generators/builder/bot/controllers/concerns/.keep +0 -0
  47. data/lib/xip/generators/builder/bot/controllers/goodbyes_controller.rb +9 -0
  48. data/lib/xip/generators/builder/bot/controllers/hellos_controller.rb +9 -0
  49. data/lib/xip/generators/builder/bot/controllers/interrupts_controller.rb +9 -0
  50. data/lib/xip/generators/builder/bot/controllers/unrecognized_messages_controller.rb +9 -0
  51. data/lib/xip/generators/builder/bot/helpers/bot_helper.rb +2 -0
  52. data/lib/xip/generators/builder/bot/models/bot_record.rb +3 -0
  53. data/lib/xip/generators/builder/bot/models/concerns/.keep +0 -0
  54. data/lib/xip/generators/builder/bot/replies/catch_alls/level1.yml +2 -0
  55. data/lib/xip/generators/builder/bot/replies/goodbyes/say_goodbye.yml +2 -0
  56. data/lib/xip/generators/builder/bot/replies/hellos/say_hello.yml +2 -0
  57. data/lib/xip/generators/builder/config.ru +4 -0
  58. data/lib/xip/generators/builder/config/boot.rb +6 -0
  59. data/lib/xip/generators/builder/config/database.yml +25 -0
  60. data/lib/xip/generators/builder/config/environment.rb +2 -0
  61. data/lib/xip/generators/builder/config/flow_map.rb +25 -0
  62. data/lib/xip/generators/builder/config/initializers/autoload.rb +8 -0
  63. data/lib/xip/generators/builder/config/initializers/inflections.rb +16 -0
  64. data/lib/xip/generators/builder/config/puma.rb +25 -0
  65. data/lib/xip/generators/builder/config/services.yml +35 -0
  66. data/lib/xip/generators/builder/config/sidekiq.yml +3 -0
  67. data/lib/xip/generators/builder/db/seeds.rb +7 -0
  68. data/lib/xip/generators/generate.rb +39 -0
  69. data/lib/xip/generators/generate/flow/controllers/controller.tt +7 -0
  70. data/lib/xip/generators/generate/flow/helpers/helper.tt +3 -0
  71. data/lib/xip/generators/generate/flow/replies/ask_example.tt +9 -0
  72. data/lib/xip/helpers/redis.rb +40 -0
  73. data/lib/xip/jobs.rb +9 -0
  74. data/lib/xip/lock.rb +82 -0
  75. data/lib/xip/logger.rb +9 -3
  76. data/lib/xip/migrations/configurator.rb +73 -0
  77. data/lib/xip/migrations/generators.rb +16 -0
  78. data/lib/xip/migrations/railtie_config.rb +14 -0
  79. data/lib/xip/migrations/tasks.rb +43 -0
  80. data/lib/xip/nlp/client.rb +21 -0
  81. data/lib/xip/nlp/result.rb +56 -0
  82. data/lib/xip/reloader.rb +89 -0
  83. data/lib/xip/reply.rb +36 -0
  84. data/lib/xip/scheduled_reply.rb +18 -0
  85. data/lib/xip/server.rb +63 -0
  86. data/lib/xip/service_message.rb +17 -0
  87. data/lib/xip/service_reply.rb +44 -0
  88. data/lib/xip/services/base_client.rb +24 -0
  89. data/lib/xip/services/base_message_handler.rb +27 -0
  90. data/lib/xip/services/base_reply_handler.rb +72 -0
  91. data/lib/xip/services/jobs/handle_message_job.rb +21 -0
  92. data/lib/xip/session.rb +203 -0
  93. data/lib/xip/version.rb +7 -1
  94. data/logo.svg +17 -0
  95. data/spec/configuration_spec.rb +93 -0
  96. data/spec/controller/callbacks_spec.rb +217 -0
  97. data/spec/controller/catch_all_spec.rb +154 -0
  98. data/spec/controller/controller_spec.rb +889 -0
  99. data/spec/controller/dynamic_delay_spec.rb +70 -0
  100. data/spec/controller/helpers_spec.rb +119 -0
  101. data/spec/controller/interrupt_detect_spec.rb +171 -0
  102. data/spec/controller/messages_spec.rb +744 -0
  103. data/spec/controller/nlp_spec.rb +93 -0
  104. data/spec/controller/replies_spec.rb +694 -0
  105. data/spec/controller/unrecognized_message_spec.rb +168 -0
  106. data/spec/dispatcher_spec.rb +79 -0
  107. data/spec/flow/flow_spec.rb +82 -0
  108. data/spec/flow/state_spec.rb +109 -0
  109. data/spec/helpers/redis_spec.rb +77 -0
  110. data/spec/lock_spec.rb +100 -0
  111. data/spec/nlp/client_spec.rb +23 -0
  112. data/spec/nlp/result_spec.rb +57 -0
  113. data/spec/replies/hello.yml.erb +15 -0
  114. data/spec/replies/messages/say_hola.yml+facebook.erb +6 -0
  115. data/spec/replies/messages/say_hola.yml+twilio.erb +6 -0
  116. data/spec/replies/messages/say_hola.yml.erb +6 -0
  117. data/spec/replies/messages/say_howdy_with_dynamic.yml +79 -0
  118. data/spec/replies/messages/say_msgs_without_breaks.yml +4 -0
  119. data/spec/replies/messages/say_offer.yml +6 -0
  120. data/spec/replies/messages/say_offer_with_dynamic.yml +6 -0
  121. data/spec/replies/messages/say_oi.yml.erb +15 -0
  122. data/spec/replies/messages/say_randomize_speech.yml +10 -0
  123. data/spec/replies/messages/say_randomize_text.yml +10 -0
  124. data/spec/replies/messages/say_yo.yml +6 -0
  125. data/spec/replies/messages/say_yo.yml+twitter +6 -0
  126. data/spec/replies/messages/sub1/sub2/say_nested.yml +10 -0
  127. data/spec/reply_spec.rb +61 -0
  128. data/spec/scheduled_reply_spec.rb +23 -0
  129. data/spec/service_reply_spec.rb +92 -0
  130. data/spec/session_spec.rb +366 -0
  131. data/spec/spec_helper.rb +22 -66
  132. data/spec/support/alternate_helpers/foo_helper.rb +5 -0
  133. data/spec/support/controllers/vaders_controller.rb +24 -0
  134. data/spec/support/helpers/fun/games_helper.rb +7 -0
  135. data/spec/support/helpers/fun/pdf_helper.rb +7 -0
  136. data/spec/support/helpers/standalone_helper.rb +5 -0
  137. data/spec/support/helpers_typo/users_helper.rb +2 -0
  138. data/spec/support/nlp_clients/dialogflow.rb +9 -0
  139. data/spec/support/nlp_clients/luis.rb +9 -0
  140. data/spec/support/nlp_results/luis_result.rb +163 -0
  141. data/spec/support/sample_messages.rb +66 -0
  142. data/spec/support/services.yml +31 -0
  143. data/spec/support/services_with_erb.yml +31 -0
  144. data/spec/version_spec.rb +16 -0
  145. data/xip.gemspec +25 -14
  146. metadata +320 -18
@@ -0,0 +1,31 @@
1
+ default: &default
2
+ facebook:
3
+ verify_token: <%= ENV['FACEBOOK_VERIFY_TOKEN'] %>
4
+ challenge: <%= ENV['FACEBOOK_CHALLENGE'] %>
5
+ page_access_token: <%= ENV['FACEBOOK_PAGE_ACCESS_TOKEN'] %>
6
+ setup:
7
+ greeting: # Greetings are broken up by locale
8
+ - locale: default
9
+ text: "Welcome to the Xip bot 🤖"
10
+ persistent_menu:
11
+ - type: payload
12
+ text: Main Menu
13
+ payload: main_menu
14
+ - type: url
15
+ text: Visit our website
16
+ url: https://example.com
17
+ - type: call
18
+ text: Call us
19
+ payload: "+17345551234"
20
+ twilio_sms:
21
+ account_sid: <%= ENV['TWILIO_ACCOUNT_SID'] %>
22
+ auth_token: <%= ENV['TWILIO_AUTH_TOKEN'] %>
23
+
24
+ production:
25
+ <<: *default
26
+
27
+ development:
28
+ <<: *default
29
+
30
+ test:
31
+ <<: *default
@@ -0,0 +1,16 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'spec_helper'
4
+
5
+ describe "Xip::Version" do
6
+
7
+ let(:version_in_file) { File.read(File.join(File.dirname(__FILE__), '..', 'VERSION')).strip }
8
+
9
+ it "should return the current gem version" do
10
+ expect(Xip::Version.version).to eq version_in_file
11
+ end
12
+
13
+ it "should return the current gem version via a constant" do
14
+ expect(Xip::VERSION).to eq version_in_file
15
+ end
16
+ end
@@ -1,20 +1,31 @@
1
- require_relative "lib/xip/version"
1
+ $LOAD_PATH.push File.expand_path('../lib', __FILE__)
2
+
3
+ version = File.read(File.join(File.dirname(__FILE__), 'VERSION')).strip
2
4
 
3
5
  Gem::Specification.new do |s|
4
- s.name = 'xip'
5
- s.version = Xip::VERSION
6
- s.summary = 'Xip'
7
- s.description = 'Ruby bot framework'
8
- s.authors = ['Mauricio Gomes']
9
- s.email = 'mauricio@edge14.com'
10
- s.files = `git ls-files`.split("\n")
11
- s.homepage = 'http://github.com/themoonbase/xip'
12
- s.license = 'LGPL-3.0-only'
13
- s.required_ruby_version = ">= 2.4.0"
14
- s.executables = ['xip']
6
+ s.name = 'xip'
7
+ s.summary = 'Ruby framework for conversational bots'
8
+ s.description = 'Ruby framework for building conversational bots.'
9
+ s.homepage = 'https://github.com/xipkit/xip'
10
+ s.licenses = ['MIT']
11
+ s.version = version
12
+ s.authors = ['Mauricio Gomes']
13
+ s.email = 'mauricio@edge14.com'
15
14
 
16
- s.add_dependency 'redis', '>= 4.0.2'
15
+ s.add_dependency 'sinatra', '~> 2.0'
16
+ s.add_dependency 'puma', '>= 4.2', '< 5.0'
17
+ s.add_dependency 'thor', '~> 1.0'
18
+ s.add_dependency 'multi_json', '~> 1.12'
19
+ s.add_dependency 'sidekiq', '~> 6.0'
20
+ s.add_dependency 'activesupport', '~> 6.0'
17
21
 
18
- s.add_development_dependency 'rspec', '= 3.8.0'
22
+ s.add_development_dependency 'rspec', '~> 3.9'
23
+ s.add_development_dependency 'rspec_junit_formatter', '~> 0.3'
24
+ s.add_development_dependency 'rack-test', '~> 1.1'
25
+ s.add_development_dependency 'mock_redis', '~> 0.22'
19
26
 
27
+ s.files = `git ls-files`.split("\n")
28
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
29
+ s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
30
+ s.require_paths = ['lib']
20
31
  end
metadata CHANGED
@@ -1,63 +1,315 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xip
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 2.0.0.beta2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mauricio Gomes
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-10-27 00:00:00.000000000 Z
11
+ date: 2020-12-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: redis
14
+ name: sinatra
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '2.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '2.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: puma
15
29
  requirement: !ruby/object:Gem::Requirement
16
30
  requirements:
17
31
  - - ">="
18
32
  - !ruby/object:Gem::Version
19
- version: 4.0.2
33
+ version: '4.2'
34
+ - - "<"
35
+ - !ruby/object:Gem::Version
36
+ version: '5.0'
20
37
  type: :runtime
21
38
  prerelease: false
22
39
  version_requirements: !ruby/object:Gem::Requirement
23
40
  requirements:
24
41
  - - ">="
25
42
  - !ruby/object:Gem::Version
26
- version: 4.0.2
43
+ version: '4.2'
44
+ - - "<"
45
+ - !ruby/object:Gem::Version
46
+ version: '5.0'
47
+ - !ruby/object:Gem::Dependency
48
+ name: thor
49
+ requirement: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - "~>"
52
+ - !ruby/object:Gem::Version
53
+ version: '1.0'
54
+ type: :runtime
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - "~>"
59
+ - !ruby/object:Gem::Version
60
+ version: '1.0'
61
+ - !ruby/object:Gem::Dependency
62
+ name: multi_json
63
+ requirement: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - "~>"
66
+ - !ruby/object:Gem::Version
67
+ version: '1.12'
68
+ type: :runtime
69
+ prerelease: false
70
+ version_requirements: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - "~>"
73
+ - !ruby/object:Gem::Version
74
+ version: '1.12'
75
+ - !ruby/object:Gem::Dependency
76
+ name: sidekiq
77
+ requirement: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - "~>"
80
+ - !ruby/object:Gem::Version
81
+ version: '6.0'
82
+ type: :runtime
83
+ prerelease: false
84
+ version_requirements: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - "~>"
87
+ - !ruby/object:Gem::Version
88
+ version: '6.0'
89
+ - !ruby/object:Gem::Dependency
90
+ name: activesupport
91
+ requirement: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - "~>"
94
+ - !ruby/object:Gem::Version
95
+ version: '6.0'
96
+ type: :runtime
97
+ prerelease: false
98
+ version_requirements: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - "~>"
101
+ - !ruby/object:Gem::Version
102
+ version: '6.0'
27
103
  - !ruby/object:Gem::Dependency
28
104
  name: rspec
29
105
  requirement: !ruby/object:Gem::Requirement
30
106
  requirements:
31
- - - '='
107
+ - - "~>"
108
+ - !ruby/object:Gem::Version
109
+ version: '3.9'
110
+ type: :development
111
+ prerelease: false
112
+ version_requirements: !ruby/object:Gem::Requirement
113
+ requirements:
114
+ - - "~>"
115
+ - !ruby/object:Gem::Version
116
+ version: '3.9'
117
+ - !ruby/object:Gem::Dependency
118
+ name: rspec_junit_formatter
119
+ requirement: !ruby/object:Gem::Requirement
120
+ requirements:
121
+ - - "~>"
32
122
  - !ruby/object:Gem::Version
33
- version: 3.8.0
123
+ version: '0.3'
34
124
  type: :development
35
125
  prerelease: false
36
126
  version_requirements: !ruby/object:Gem::Requirement
37
127
  requirements:
38
- - - '='
128
+ - - "~>"
39
129
  - !ruby/object:Gem::Version
40
- version: 3.8.0
41
- description: Ruby bot framework
130
+ version: '0.3'
131
+ - !ruby/object:Gem::Dependency
132
+ name: rack-test
133
+ requirement: !ruby/object:Gem::Requirement
134
+ requirements:
135
+ - - "~>"
136
+ - !ruby/object:Gem::Version
137
+ version: '1.1'
138
+ type: :development
139
+ prerelease: false
140
+ version_requirements: !ruby/object:Gem::Requirement
141
+ requirements:
142
+ - - "~>"
143
+ - !ruby/object:Gem::Version
144
+ version: '1.1'
145
+ - !ruby/object:Gem::Dependency
146
+ name: mock_redis
147
+ requirement: !ruby/object:Gem::Requirement
148
+ requirements:
149
+ - - "~>"
150
+ - !ruby/object:Gem::Version
151
+ version: '0.22'
152
+ type: :development
153
+ prerelease: false
154
+ version_requirements: !ruby/object:Gem::Requirement
155
+ requirements:
156
+ - - "~>"
157
+ - !ruby/object:Gem::Version
158
+ version: '0.22'
159
+ description: Ruby framework for building conversational bots.
42
160
  email: mauricio@edge14.com
43
161
  executables:
44
162
  - xip
45
163
  extensions: []
46
164
  extra_rdoc_files: []
47
165
  files:
166
+ - ".circleci/config.yml"
167
+ - ".gitignore"
168
+ - CHANGELOG.md
48
169
  - Gemfile
49
170
  - Gemfile.lock
50
171
  - LICENSE
51
172
  - README.md
173
+ - VERSION
52
174
  - bin/xip
53
175
  - lib/xip.rb
176
+ - lib/xip/base.rb
177
+ - lib/xip/cli.rb
178
+ - lib/xip/cli_base.rb
179
+ - lib/xip/commands/command.rb
180
+ - lib/xip/commands/console.rb
181
+ - lib/xip/commands/server.rb
182
+ - lib/xip/configuration.rb
183
+ - lib/xip/controller/callbacks.rb
184
+ - lib/xip/controller/catch_all.rb
185
+ - lib/xip/controller/controller.rb
186
+ - lib/xip/controller/dev_jumps.rb
187
+ - lib/xip/controller/dynamic_delay.rb
188
+ - lib/xip/controller/helpers.rb
189
+ - lib/xip/controller/interrupt_detect.rb
190
+ - lib/xip/controller/messages.rb
191
+ - lib/xip/controller/nlp.rb
192
+ - lib/xip/controller/replies.rb
193
+ - lib/xip/controller/unrecognized_message.rb
194
+ - lib/xip/core_ext.rb
195
+ - lib/xip/core_ext/numeric.rb
196
+ - lib/xip/core_ext/string.rb
197
+ - lib/xip/dispatcher.rb
198
+ - lib/xip/errors.rb
199
+ - lib/xip/flow/base.rb
200
+ - lib/xip/flow/specification.rb
201
+ - lib/xip/flow/state.rb
202
+ - lib/xip/generators/builder.rb
203
+ - lib/xip/generators/builder/.gitignore
204
+ - lib/xip/generators/builder/Gemfile
205
+ - lib/xip/generators/builder/Procfile.dev
206
+ - lib/xip/generators/builder/README.md
207
+ - lib/xip/generators/builder/Rakefile
208
+ - lib/xip/generators/builder/bot/controllers/bot_controller.rb
209
+ - lib/xip/generators/builder/bot/controllers/catch_alls_controller.rb
210
+ - lib/xip/generators/builder/bot/controllers/concerns/.keep
211
+ - lib/xip/generators/builder/bot/controllers/goodbyes_controller.rb
212
+ - lib/xip/generators/builder/bot/controllers/hellos_controller.rb
213
+ - lib/xip/generators/builder/bot/controllers/interrupts_controller.rb
214
+ - lib/xip/generators/builder/bot/controllers/unrecognized_messages_controller.rb
215
+ - lib/xip/generators/builder/bot/helpers/bot_helper.rb
216
+ - lib/xip/generators/builder/bot/models/bot_record.rb
217
+ - lib/xip/generators/builder/bot/models/concerns/.keep
218
+ - lib/xip/generators/builder/bot/replies/catch_alls/level1.yml
219
+ - lib/xip/generators/builder/bot/replies/goodbyes/say_goodbye.yml
220
+ - lib/xip/generators/builder/bot/replies/hellos/say_hello.yml
221
+ - lib/xip/generators/builder/config.ru
222
+ - lib/xip/generators/builder/config/boot.rb
223
+ - lib/xip/generators/builder/config/database.yml
224
+ - lib/xip/generators/builder/config/environment.rb
225
+ - lib/xip/generators/builder/config/flow_map.rb
226
+ - lib/xip/generators/builder/config/initializers/autoload.rb
227
+ - lib/xip/generators/builder/config/initializers/inflections.rb
228
+ - lib/xip/generators/builder/config/puma.rb
229
+ - lib/xip/generators/builder/config/services.yml
230
+ - lib/xip/generators/builder/config/sidekiq.yml
231
+ - lib/xip/generators/builder/db/seeds.rb
232
+ - lib/xip/generators/generate.rb
233
+ - lib/xip/generators/generate/flow/controllers/controller.tt
234
+ - lib/xip/generators/generate/flow/helpers/helper.tt
235
+ - lib/xip/generators/generate/flow/replies/ask_example.tt
236
+ - lib/xip/helpers/redis.rb
237
+ - lib/xip/jobs.rb
238
+ - lib/xip/lock.rb
54
239
  - lib/xip/logger.rb
240
+ - lib/xip/migrations/configurator.rb
241
+ - lib/xip/migrations/generators.rb
242
+ - lib/xip/migrations/railtie_config.rb
243
+ - lib/xip/migrations/tasks.rb
244
+ - lib/xip/nlp/client.rb
245
+ - lib/xip/nlp/result.rb
246
+ - lib/xip/reloader.rb
247
+ - lib/xip/reply.rb
248
+ - lib/xip/scheduled_reply.rb
249
+ - lib/xip/server.rb
250
+ - lib/xip/service_message.rb
251
+ - lib/xip/service_reply.rb
252
+ - lib/xip/services/base_client.rb
253
+ - lib/xip/services/base_message_handler.rb
254
+ - lib/xip/services/base_reply_handler.rb
255
+ - lib/xip/services/jobs/handle_message_job.rb
256
+ - lib/xip/session.rb
55
257
  - lib/xip/version.rb
258
+ - logo.svg
259
+ - spec/configuration_spec.rb
260
+ - spec/controller/callbacks_spec.rb
261
+ - spec/controller/catch_all_spec.rb
262
+ - spec/controller/controller_spec.rb
263
+ - spec/controller/dynamic_delay_spec.rb
264
+ - spec/controller/helpers_spec.rb
265
+ - spec/controller/interrupt_detect_spec.rb
266
+ - spec/controller/messages_spec.rb
267
+ - spec/controller/nlp_spec.rb
268
+ - spec/controller/replies_spec.rb
269
+ - spec/controller/unrecognized_message_spec.rb
270
+ - spec/dispatcher_spec.rb
271
+ - spec/flow/flow_spec.rb
272
+ - spec/flow/state_spec.rb
273
+ - spec/helpers/redis_spec.rb
274
+ - spec/lock_spec.rb
275
+ - spec/nlp/client_spec.rb
276
+ - spec/nlp/result_spec.rb
277
+ - spec/replies/hello.yml.erb
278
+ - spec/replies/messages/say_hola.yml+facebook.erb
279
+ - spec/replies/messages/say_hola.yml+twilio.erb
280
+ - spec/replies/messages/say_hola.yml.erb
281
+ - spec/replies/messages/say_howdy_with_dynamic.yml
282
+ - spec/replies/messages/say_msgs_without_breaks.yml
283
+ - spec/replies/messages/say_offer.yml
284
+ - spec/replies/messages/say_offer_with_dynamic.yml
285
+ - spec/replies/messages/say_oi.yml.erb
286
+ - spec/replies/messages/say_randomize_speech.yml
287
+ - spec/replies/messages/say_randomize_text.yml
288
+ - spec/replies/messages/say_yo.yml
289
+ - spec/replies/messages/say_yo.yml+twitter
290
+ - spec/replies/messages/sub1/sub2/say_nested.yml
291
+ - spec/reply_spec.rb
292
+ - spec/scheduled_reply_spec.rb
293
+ - spec/service_reply_spec.rb
294
+ - spec/session_spec.rb
56
295
  - spec/spec_helper.rb
296
+ - spec/support/alternate_helpers/foo_helper.rb
297
+ - spec/support/controllers/vaders_controller.rb
298
+ - spec/support/helpers/fun/games_helper.rb
299
+ - spec/support/helpers/fun/pdf_helper.rb
300
+ - spec/support/helpers/standalone_helper.rb
301
+ - spec/support/helpers_typo/users_helper.rb
302
+ - spec/support/nlp_clients/dialogflow.rb
303
+ - spec/support/nlp_clients/luis.rb
304
+ - spec/support/nlp_results/luis_result.rb
305
+ - spec/support/sample_messages.rb
306
+ - spec/support/services.yml
307
+ - spec/support/services_with_erb.yml
308
+ - spec/version_spec.rb
57
309
  - xip.gemspec
58
- homepage: http://github.com/themoonbase/xip
310
+ homepage: https://github.com/xipkit/xip
59
311
  licenses:
60
- - LGPL-3.0-only
312
+ - MIT
61
313
  metadata: {}
62
314
  post_install_message:
63
315
  rdoc_options: []
@@ -67,15 +319,65 @@ required_ruby_version: !ruby/object:Gem::Requirement
67
319
  requirements:
68
320
  - - ">="
69
321
  - !ruby/object:Gem::Version
70
- version: 2.4.0
322
+ version: '0'
71
323
  required_rubygems_version: !ruby/object:Gem::Requirement
72
324
  requirements:
73
- - - ">="
325
+ - - ">"
74
326
  - !ruby/object:Gem::Version
75
- version: '0'
327
+ version: 1.3.1
76
328
  requirements: []
77
- rubygems_version: 3.1.4
329
+ rubygems_version: 3.1.2
78
330
  signing_key:
79
331
  specification_version: 4
80
- summary: Xip
81
- test_files: []
332
+ summary: Ruby framework for conversational bots
333
+ test_files:
334
+ - spec/configuration_spec.rb
335
+ - spec/controller/callbacks_spec.rb
336
+ - spec/controller/catch_all_spec.rb
337
+ - spec/controller/controller_spec.rb
338
+ - spec/controller/dynamic_delay_spec.rb
339
+ - spec/controller/helpers_spec.rb
340
+ - spec/controller/interrupt_detect_spec.rb
341
+ - spec/controller/messages_spec.rb
342
+ - spec/controller/nlp_spec.rb
343
+ - spec/controller/replies_spec.rb
344
+ - spec/controller/unrecognized_message_spec.rb
345
+ - spec/dispatcher_spec.rb
346
+ - spec/flow/flow_spec.rb
347
+ - spec/flow/state_spec.rb
348
+ - spec/helpers/redis_spec.rb
349
+ - spec/lock_spec.rb
350
+ - spec/nlp/client_spec.rb
351
+ - spec/nlp/result_spec.rb
352
+ - spec/replies/hello.yml.erb
353
+ - spec/replies/messages/say_hola.yml+facebook.erb
354
+ - spec/replies/messages/say_hola.yml+twilio.erb
355
+ - spec/replies/messages/say_hola.yml.erb
356
+ - spec/replies/messages/say_howdy_with_dynamic.yml
357
+ - spec/replies/messages/say_msgs_without_breaks.yml
358
+ - spec/replies/messages/say_offer.yml
359
+ - spec/replies/messages/say_offer_with_dynamic.yml
360
+ - spec/replies/messages/say_oi.yml.erb
361
+ - spec/replies/messages/say_randomize_speech.yml
362
+ - spec/replies/messages/say_randomize_text.yml
363
+ - spec/replies/messages/say_yo.yml
364
+ - spec/replies/messages/say_yo.yml+twitter
365
+ - spec/replies/messages/sub1/sub2/say_nested.yml
366
+ - spec/reply_spec.rb
367
+ - spec/scheduled_reply_spec.rb
368
+ - spec/service_reply_spec.rb
369
+ - spec/session_spec.rb
370
+ - spec/spec_helper.rb
371
+ - spec/support/alternate_helpers/foo_helper.rb
372
+ - spec/support/controllers/vaders_controller.rb
373
+ - spec/support/helpers/fun/games_helper.rb
374
+ - spec/support/helpers/fun/pdf_helper.rb
375
+ - spec/support/helpers/standalone_helper.rb
376
+ - spec/support/helpers_typo/users_helper.rb
377
+ - spec/support/nlp_clients/dialogflow.rb
378
+ - spec/support/nlp_clients/luis.rb
379
+ - spec/support/nlp_results/luis_result.rb
380
+ - spec/support/sample_messages.rb
381
+ - spec/support/services.yml
382
+ - spec/support/services_with_erb.yml
383
+ - spec/version_spec.rb