charyf 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +6 -0
- data/Gemfile.lock +154 -0
- data/LICENSE.txt +21 -0
- data/README.md +18 -0
- data/Rakefile +6 -0
- data/bin/charyf-debug +7 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/charyf.gemspec +48 -0
- data/exe/charyf +4 -0
- data/lib/charyf/deps.rb +9 -0
- data/lib/charyf/engine/all.rb +22 -0
- data/lib/charyf/engine/charyf.rb +5 -0
- data/lib/charyf/engine/context.rb +61 -0
- data/lib/charyf/engine/controller/actions.rb +29 -0
- data/lib/charyf/engine/controller/controller.rb +62 -0
- data/lib/charyf/engine/controller/conversation.rb +58 -0
- data/lib/charyf/engine/controller/helpers.rb +38 -0
- data/lib/charyf/engine/controller/renderers.rb +103 -0
- data/lib/charyf/engine/dispatcher/base.rb +121 -0
- data/lib/charyf/engine/dispatcher/default.rb +60 -0
- data/lib/charyf/engine/intent/intent.rb +54 -0
- data/lib/charyf/engine/intent/processors/dummy.rb +30 -0
- data/lib/charyf/engine/intent/processors/helpers.rb +32 -0
- data/lib/charyf/engine/intent/processors/processor.rb +56 -0
- data/lib/charyf/engine/interface/interface.rb +35 -0
- data/lib/charyf/engine/interface/program.rb +59 -0
- data/lib/charyf/engine/request.rb +32 -0
- data/lib/charyf/engine/response.rb +41 -0
- data/lib/charyf/engine/session/processors/default.rb +42 -0
- data/lib/charyf/engine/session/processors/processor.rb +39 -0
- data/lib/charyf/engine/session/session.rb +68 -0
- data/lib/charyf/engine/skill/info.rb +24 -0
- data/lib/charyf/engine/skill/routing.rb +57 -0
- data/lib/charyf/engine/skill/skill.rb +40 -0
- data/lib/charyf/engine.rb +3 -0
- data/lib/charyf/support/all.rb +4 -0
- data/lib/charyf/support/hash.rb +43 -0
- data/lib/charyf/support/object.rb +7 -0
- data/lib/charyf/support/string.rb +94 -0
- data/lib/charyf/support/string_inquirer.rb +17 -0
- data/lib/charyf/support.rb +1 -0
- data/lib/charyf/utils/all.rb +13 -0
- data/lib/charyf/utils/app_engine/extensions.rb +21 -0
- data/lib/charyf/utils/app_engine.rb +24 -0
- data/lib/charyf/utils/app_loader.rb +38 -0
- data/lib/charyf/utils/application/bootstrap.rb +176 -0
- data/lib/charyf/utils/application/configuration.rb +51 -0
- data/lib/charyf/utils/application.rb +131 -0
- data/lib/charyf/utils/charyf.rb +44 -0
- data/lib/charyf/utils/cli.rb +14 -0
- data/lib/charyf/utils/command/actions.rb +24 -0
- data/lib/charyf/utils/command/base.rb +138 -0
- data/lib/charyf/utils/command/behavior.rb +81 -0
- data/lib/charyf/utils/command/environment_argument.rb +40 -0
- data/lib/charyf/utils/command.rb +106 -0
- data/lib/charyf/utils/commands/all.rb +6 -0
- data/lib/charyf/utils/commands/application/application_command.rb +21 -0
- data/lib/charyf/utils/commands/cli/cli_command.rb +115 -0
- data/lib/charyf/utils/commands/console/console_command.rb +77 -0
- data/lib/charyf/utils/commands/destroy/destroy_command.rb +26 -0
- data/lib/charyf/utils/commands/generate/generate_command.rb +31 -0
- data/lib/charyf/utils/commands/help/USAGE +9 -0
- data/lib/charyf/utils/commands/help/help.rb +20 -0
- data/lib/charyf/utils/commands.rb +15 -0
- data/lib/charyf/utils/configuration.rb +36 -0
- data/lib/charyf/utils/error_handler.rb +26 -0
- data/lib/charyf/utils/extension/configurable.rb +41 -0
- data/lib/charyf/utils/extension/configuration.rb +63 -0
- data/lib/charyf/utils/extension.rb +129 -0
- data/lib/charyf/utils/generator/actions.rb +281 -0
- data/lib/charyf/utils/generator/base.rb +288 -0
- data/lib/charyf/utils/generators/app/USAGE +8 -0
- data/lib/charyf/utils/generators/app/app_generator.rb +274 -0
- data/lib/charyf/utils/generators/app/templates/Gemfile.erb +20 -0
- data/lib/charyf/utils/generators/app/templates/README.md +24 -0
- data/lib/charyf/utils/generators/app/templates/app/skill_controller.rb.tt +8 -0
- data/lib/charyf/utils/generators/app/templates/bin/charyf +5 -0
- data/lib/charyf/utils/generators/app/templates/config/application.rb.tt +32 -0
- data/lib/charyf/utils/generators/app/templates/config/boot.rb.tt +4 -0
- data/lib/charyf/utils/generators/app/templates/config/chapp.rb.tt +5 -0
- data/lib/charyf/utils/generators/app/templates/config/environments/development.rb.tt +2 -0
- data/lib/charyf/utils/generators/app/templates/config/environments/production.rb.tt +2 -0
- data/lib/charyf/utils/generators/app/templates/config/environments/test.rb.tt +2 -0
- data/lib/charyf/utils/generators/app/templates/config/load.rb.tt +17 -0
- data/lib/charyf/utils/generators/app/templates/gitignore +18 -0
- data/lib/charyf/utils/generators/app_base.rb +277 -0
- data/lib/charyf/utils/generators/defaults.rb +75 -0
- data/lib/charyf/utils/generators/intents/intents_generator.rb +41 -0
- data/lib/charyf/utils/generators/named_base.rb +73 -0
- data/lib/charyf/utils/generators/skill/skill_generator.rb +47 -0
- data/lib/charyf/utils/generators/skill/templates/controllers/skill_controller.rb.tt +10 -0
- data/lib/charyf/utils/generators/skill/templates/module.rb.tt +6 -0
- data/lib/charyf/utils/generators/skill/templates/skill.rb.tt +3 -0
- data/lib/charyf/utils/generators.rb +187 -0
- data/lib/charyf/utils/initializable.rb +95 -0
- data/lib/charyf/utils/logger.rb +26 -0
- data/lib/charyf/utils/machine.rb +129 -0
- data/lib/charyf/utils/parser/en_parser.rb +97 -0
- data/lib/charyf/utils/parser/parser.rb +37 -0
- data/lib/charyf/utils/ruby_version_check.rb +15 -0
- data/lib/charyf/utils/storage/provider.rb +44 -0
- data/lib/charyf/utils/strategy.rb +44 -0
- data/lib/charyf/utils/utils.rb +64 -0
- data/lib/charyf/utils.rb +2 -0
- data/lib/charyf/version.rb +19 -0
- data/lib/charyf.rb +18 -0
- data/lib/locale/en.yml +206 -0
- data/todo.md +3 -0
- metadata +272 -0
@@ -0,0 +1,64 @@
|
|
1
|
+
require 'pathname'
|
2
|
+
|
3
|
+
module Charyf
|
4
|
+
module Utils
|
5
|
+
|
6
|
+
class NotImplemented < StandardError; end
|
7
|
+
class InvalidPath < StandardError; end
|
8
|
+
class InvalidConfiguration < StandardError; end
|
9
|
+
class InvalidDefinitionError < StandardError; end
|
10
|
+
|
11
|
+
def self.find_root_with_flag(flag, root_path, default: nil, namespace: 'charyf') #:nodoc:
|
12
|
+
root_path = Pathname.new(root_path)
|
13
|
+
|
14
|
+
root_path = root_path.join(namespace) if namespace && File.directory?(root_path.join(namespace))
|
15
|
+
|
16
|
+
while root_path && File.directory?(root_path) && !File.exist?(root_path.join(flag))
|
17
|
+
parent = root_path.dirname
|
18
|
+
root_path = parent != root_path && parent
|
19
|
+
end
|
20
|
+
|
21
|
+
root = File.exist?("#{root_path}/#{flag}") ? root_path : default
|
22
|
+
raise InvalidPath.new("Could not find root path for #{self}") unless root
|
23
|
+
|
24
|
+
Pathname.new File.realpath root
|
25
|
+
end
|
26
|
+
|
27
|
+
# Requires files before recursion into directory
|
28
|
+
def self.require_recursive(path, condition: nil)
|
29
|
+
unless File.directory? path
|
30
|
+
require path if !condition || condition.call(path)
|
31
|
+
end
|
32
|
+
|
33
|
+
files = Dir[path.join('**')].select { |p| !File.directory?(p) }
|
34
|
+
dirs = Dir[path.join('**')].select { |p| File.directory?(p) }
|
35
|
+
|
36
|
+
(files + dirs).each do |item|
|
37
|
+
require_recursive Pathname.new(item), condition: condition
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
sig_self [['Symbol', 'Array'], 'Array'], 'Hash',
|
42
|
+
def self.create_action_filters(only = [], except = [])
|
43
|
+
if only && only != :all && !only.empty? && except && !except.empty?
|
44
|
+
raise InvalidDefinitionError.new("Define only or except, don't define both");
|
45
|
+
end
|
46
|
+
|
47
|
+
_only = except && except.empty? ? only.map(&:to_sym) : :all
|
48
|
+
_except = except.map(&:to_sym)
|
49
|
+
|
50
|
+
{
|
51
|
+
only: _only,
|
52
|
+
except: _except
|
53
|
+
}
|
54
|
+
end
|
55
|
+
|
56
|
+
sig_self ['Symbol', 'Hash'], ['TrueClass', 'FalseClass'],
|
57
|
+
def self.match_action_filters?(name, filters = {only: [], except: []} )
|
58
|
+
(filters[:only] == :all && !filters[:except].include?(name)) ||
|
59
|
+
((filters[:only] != :all) && (filters[:only] || []).include?(name))
|
60
|
+
|
61
|
+
end
|
62
|
+
|
63
|
+
end
|
64
|
+
end
|
data/lib/charyf/utils.rb
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
module Charyf
|
2
|
+
# Returns the version of the currently loaded Charyf as a <tt>Gem::Version</tt>
|
3
|
+
def self.gem_version
|
4
|
+
Gem::Version.new Charyf::VERSION::STRING
|
5
|
+
end
|
6
|
+
|
7
|
+
def self.version
|
8
|
+
Charyf::VERSION::STRING
|
9
|
+
end
|
10
|
+
|
11
|
+
module VERSION
|
12
|
+
MAJOR = 0
|
13
|
+
MINOR = 1
|
14
|
+
TINY = 1
|
15
|
+
PRE = nil
|
16
|
+
|
17
|
+
STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
|
18
|
+
end
|
19
|
+
end
|
data/lib/charyf.rb
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
require_relative 'charyf/version'
|
2
|
+
|
3
|
+
# Require dependencies on other gems
|
4
|
+
require_relative 'charyf/deps'
|
5
|
+
|
6
|
+
# Require utils
|
7
|
+
require_relative 'charyf/utils'
|
8
|
+
|
9
|
+
# Require charyf engine core
|
10
|
+
require_relative 'charyf/engine'
|
11
|
+
|
12
|
+
module Charyf
|
13
|
+
|
14
|
+
def self._gem_source
|
15
|
+
Pathname.new(__FILE__).dirname
|
16
|
+
end
|
17
|
+
|
18
|
+
end
|
data/lib/locale/en.yml
ADDED
@@ -0,0 +1,206 @@
|
|
1
|
+
---
|
2
|
+
en:
|
3
|
+
date:
|
4
|
+
abbr_day_names:
|
5
|
+
- Sun
|
6
|
+
- Mon
|
7
|
+
- Tue
|
8
|
+
- Wed
|
9
|
+
- Thu
|
10
|
+
- Fri
|
11
|
+
- Sat
|
12
|
+
abbr_month_names:
|
13
|
+
-
|
14
|
+
- Jan
|
15
|
+
- Feb
|
16
|
+
- Mar
|
17
|
+
- Apr
|
18
|
+
- May
|
19
|
+
- Jun
|
20
|
+
- Jul
|
21
|
+
- Aug
|
22
|
+
- Sep
|
23
|
+
- Oct
|
24
|
+
- Nov
|
25
|
+
- Dec
|
26
|
+
day_names:
|
27
|
+
- Sunday
|
28
|
+
- Monday
|
29
|
+
- Tuesday
|
30
|
+
- Wednesday
|
31
|
+
- Thursday
|
32
|
+
- Friday
|
33
|
+
- Saturday
|
34
|
+
formats:
|
35
|
+
default: "%Y-%m-%d"
|
36
|
+
long: "%B %d, %Y"
|
37
|
+
short: "%b %d"
|
38
|
+
month_names:
|
39
|
+
-
|
40
|
+
- January
|
41
|
+
- February
|
42
|
+
- March
|
43
|
+
- April
|
44
|
+
- May
|
45
|
+
- June
|
46
|
+
- July
|
47
|
+
- August
|
48
|
+
- September
|
49
|
+
- October
|
50
|
+
- November
|
51
|
+
- December
|
52
|
+
order:
|
53
|
+
- :year
|
54
|
+
- :month
|
55
|
+
- :day
|
56
|
+
datetime:
|
57
|
+
distance_in_words:
|
58
|
+
about_x_hours:
|
59
|
+
one: about 1 hour
|
60
|
+
other: about %{count} hours
|
61
|
+
about_x_months:
|
62
|
+
one: about 1 month
|
63
|
+
other: about %{count} months
|
64
|
+
about_x_years:
|
65
|
+
one: about 1 year
|
66
|
+
other: about %{count} years
|
67
|
+
almost_x_years:
|
68
|
+
one: almost 1 year
|
69
|
+
other: almost %{count} years
|
70
|
+
half_a_minute: half a minute
|
71
|
+
less_than_x_minutes:
|
72
|
+
one: less than a minute
|
73
|
+
other: less than %{count} minutes
|
74
|
+
less_than_x_seconds:
|
75
|
+
one: less than 1 second
|
76
|
+
other: less than %{count} seconds
|
77
|
+
over_x_years:
|
78
|
+
one: over 1 year
|
79
|
+
other: over %{count} years
|
80
|
+
x_days:
|
81
|
+
one: 1 day
|
82
|
+
other: "%{count} days"
|
83
|
+
x_minutes:
|
84
|
+
one: 1 minute
|
85
|
+
other: "%{count} minutes"
|
86
|
+
x_months:
|
87
|
+
one: 1 month
|
88
|
+
other: "%{count} months"
|
89
|
+
x_years:
|
90
|
+
one: 1 year
|
91
|
+
other: "%{count} years"
|
92
|
+
x_seconds:
|
93
|
+
one: 1 second
|
94
|
+
other: "%{count} seconds"
|
95
|
+
prompts:
|
96
|
+
day: Day
|
97
|
+
hour: Hour
|
98
|
+
minute: Minute
|
99
|
+
month: Month
|
100
|
+
second: Seconds
|
101
|
+
year: Year
|
102
|
+
errors:
|
103
|
+
format: "%{attribute} %{message}"
|
104
|
+
messages:
|
105
|
+
accepted: must be accepted
|
106
|
+
blank: can't be blank
|
107
|
+
present: must be blank
|
108
|
+
confirmation: doesn't match %{attribute}
|
109
|
+
empty: can't be empty
|
110
|
+
equal_to: must be equal to %{count}
|
111
|
+
even: must be even
|
112
|
+
exclusion: is reserved
|
113
|
+
greater_than: must be greater than %{count}
|
114
|
+
greater_than_or_equal_to: must be greater than or equal to %{count}
|
115
|
+
inclusion: is not included in the list
|
116
|
+
invalid: is invalid
|
117
|
+
less_than: must be less than %{count}
|
118
|
+
less_than_or_equal_to: must be less than or equal to %{count}
|
119
|
+
model_invalid: "Validation failed: %{errors}"
|
120
|
+
not_a_number: is not a number
|
121
|
+
not_an_integer: must be an integer
|
122
|
+
odd: must be odd
|
123
|
+
required: must exist
|
124
|
+
taken: has already been taken
|
125
|
+
too_long:
|
126
|
+
one: is too long (maximum is 1 character)
|
127
|
+
other: is too long (maximum is %{count} characters)
|
128
|
+
too_short:
|
129
|
+
one: is too short (minimum is 1 character)
|
130
|
+
other: is too short (minimum is %{count} characters)
|
131
|
+
wrong_length:
|
132
|
+
one: is the wrong length (should be 1 character)
|
133
|
+
other: is the wrong length (should be %{count} characters)
|
134
|
+
other_than: must be other than %{count}
|
135
|
+
template:
|
136
|
+
body: 'There were problems with the following fields:'
|
137
|
+
header:
|
138
|
+
one: 1 error prohibited this %{model} from being saved
|
139
|
+
other: "%{count} errors prohibited this %{model} from being saved"
|
140
|
+
helpers:
|
141
|
+
select:
|
142
|
+
prompt: Please select
|
143
|
+
submit:
|
144
|
+
create: Create %{model}
|
145
|
+
submit: Save %{model}
|
146
|
+
update: Update %{model}
|
147
|
+
number:
|
148
|
+
currency:
|
149
|
+
format:
|
150
|
+
delimiter: ","
|
151
|
+
format: "%u%n"
|
152
|
+
precision: 2
|
153
|
+
separator: "."
|
154
|
+
significant: false
|
155
|
+
strip_insignificant_zeros: false
|
156
|
+
unit: "$"
|
157
|
+
format:
|
158
|
+
delimiter: ","
|
159
|
+
precision: 3
|
160
|
+
separator: "."
|
161
|
+
significant: false
|
162
|
+
strip_insignificant_zeros: false
|
163
|
+
human:
|
164
|
+
decimal_units:
|
165
|
+
format: "%n %u"
|
166
|
+
units:
|
167
|
+
billion: Billion
|
168
|
+
million: Million
|
169
|
+
quadrillion: Quadrillion
|
170
|
+
thousand: Thousand
|
171
|
+
trillion: Trillion
|
172
|
+
unit: ''
|
173
|
+
format:
|
174
|
+
delimiter: ''
|
175
|
+
precision: 3
|
176
|
+
significant: true
|
177
|
+
strip_insignificant_zeros: true
|
178
|
+
storage_units:
|
179
|
+
format: "%n %u"
|
180
|
+
units:
|
181
|
+
byte:
|
182
|
+
one: Byte
|
183
|
+
other: Bytes
|
184
|
+
gb: GB
|
185
|
+
kb: KB
|
186
|
+
mb: MB
|
187
|
+
tb: TB
|
188
|
+
percentage:
|
189
|
+
format:
|
190
|
+
delimiter: ''
|
191
|
+
format: "%n%"
|
192
|
+
precision:
|
193
|
+
format:
|
194
|
+
delimiter: ''
|
195
|
+
support:
|
196
|
+
array:
|
197
|
+
last_word_connector: ", and "
|
198
|
+
two_words_connector: " and "
|
199
|
+
words_connector: ", "
|
200
|
+
time:
|
201
|
+
am: am
|
202
|
+
formats:
|
203
|
+
default: "%a, %d %b %Y %H:%M:%S %z"
|
204
|
+
long: "%B %d, %Y %H:%M"
|
205
|
+
short: "%d %b %H:%M"
|
206
|
+
pm: pm
|
data/todo.md
ADDED
metadata
ADDED
@@ -0,0 +1,272 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: charyf
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Richard Ludvigh
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2018-01-13 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: charyf_sig
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 1.1.2
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 1.1.2
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: i18n
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0.9'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0.9'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: colorize
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0.8'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0.8'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: thor
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 0.18.1
|
62
|
+
- - "<"
|
63
|
+
- !ruby/object:Gem::Version
|
64
|
+
version: '2.0'
|
65
|
+
type: :runtime
|
66
|
+
prerelease: false
|
67
|
+
version_requirements: !ruby/object:Gem::Requirement
|
68
|
+
requirements:
|
69
|
+
- - ">="
|
70
|
+
- !ruby/object:Gem::Version
|
71
|
+
version: 0.18.1
|
72
|
+
- - "<"
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: '2.0'
|
75
|
+
- !ruby/object:Gem::Dependency
|
76
|
+
name: bundler
|
77
|
+
requirement: !ruby/object:Gem::Requirement
|
78
|
+
requirements:
|
79
|
+
- - "~>"
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
version: 1.15.4
|
82
|
+
type: :development
|
83
|
+
prerelease: false
|
84
|
+
version_requirements: !ruby/object:Gem::Requirement
|
85
|
+
requirements:
|
86
|
+
- - "~>"
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: 1.15.4
|
89
|
+
- !ruby/object:Gem::Dependency
|
90
|
+
name: rake
|
91
|
+
requirement: !ruby/object:Gem::Requirement
|
92
|
+
requirements:
|
93
|
+
- - "~>"
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
version: '10.0'
|
96
|
+
type: :development
|
97
|
+
prerelease: false
|
98
|
+
version_requirements: !ruby/object:Gem::Requirement
|
99
|
+
requirements:
|
100
|
+
- - "~>"
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: '10.0'
|
103
|
+
- !ruby/object:Gem::Dependency
|
104
|
+
name: rspec
|
105
|
+
requirement: !ruby/object:Gem::Requirement
|
106
|
+
requirements:
|
107
|
+
- - "~>"
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '3.0'
|
110
|
+
type: :development
|
111
|
+
prerelease: false
|
112
|
+
version_requirements: !ruby/object:Gem::Requirement
|
113
|
+
requirements:
|
114
|
+
- - "~>"
|
115
|
+
- !ruby/object:Gem::Version
|
116
|
+
version: '3.0'
|
117
|
+
- !ruby/object:Gem::Dependency
|
118
|
+
name: pry
|
119
|
+
requirement: !ruby/object:Gem::Requirement
|
120
|
+
requirements:
|
121
|
+
- - "~>"
|
122
|
+
- !ruby/object:Gem::Version
|
123
|
+
version: '0.10'
|
124
|
+
type: :development
|
125
|
+
prerelease: false
|
126
|
+
version_requirements: !ruby/object:Gem::Requirement
|
127
|
+
requirements:
|
128
|
+
- - "~>"
|
129
|
+
- !ruby/object:Gem::Version
|
130
|
+
version: '0.10'
|
131
|
+
description: Your favorite modular chatbot ruby framework
|
132
|
+
email:
|
133
|
+
- richard.ludvigh@gmail.com
|
134
|
+
executables:
|
135
|
+
- charyf
|
136
|
+
extensions: []
|
137
|
+
extra_rdoc_files: []
|
138
|
+
files:
|
139
|
+
- Gemfile
|
140
|
+
- Gemfile.lock
|
141
|
+
- LICENSE.txt
|
142
|
+
- README.md
|
143
|
+
- Rakefile
|
144
|
+
- bin/charyf-debug
|
145
|
+
- bin/console
|
146
|
+
- bin/setup
|
147
|
+
- charyf.gemspec
|
148
|
+
- exe/charyf
|
149
|
+
- lib/charyf.rb
|
150
|
+
- lib/charyf/deps.rb
|
151
|
+
- lib/charyf/engine.rb
|
152
|
+
- lib/charyf/engine/all.rb
|
153
|
+
- lib/charyf/engine/charyf.rb
|
154
|
+
- lib/charyf/engine/context.rb
|
155
|
+
- lib/charyf/engine/controller/actions.rb
|
156
|
+
- lib/charyf/engine/controller/controller.rb
|
157
|
+
- lib/charyf/engine/controller/conversation.rb
|
158
|
+
- lib/charyf/engine/controller/helpers.rb
|
159
|
+
- lib/charyf/engine/controller/renderers.rb
|
160
|
+
- lib/charyf/engine/dispatcher/base.rb
|
161
|
+
- lib/charyf/engine/dispatcher/default.rb
|
162
|
+
- lib/charyf/engine/intent/intent.rb
|
163
|
+
- lib/charyf/engine/intent/processors/dummy.rb
|
164
|
+
- lib/charyf/engine/intent/processors/helpers.rb
|
165
|
+
- lib/charyf/engine/intent/processors/processor.rb
|
166
|
+
- lib/charyf/engine/interface/interface.rb
|
167
|
+
- lib/charyf/engine/interface/program.rb
|
168
|
+
- lib/charyf/engine/request.rb
|
169
|
+
- lib/charyf/engine/response.rb
|
170
|
+
- lib/charyf/engine/session/processors/default.rb
|
171
|
+
- lib/charyf/engine/session/processors/processor.rb
|
172
|
+
- lib/charyf/engine/session/session.rb
|
173
|
+
- lib/charyf/engine/skill/info.rb
|
174
|
+
- lib/charyf/engine/skill/routing.rb
|
175
|
+
- lib/charyf/engine/skill/skill.rb
|
176
|
+
- lib/charyf/support.rb
|
177
|
+
- lib/charyf/support/all.rb
|
178
|
+
- lib/charyf/support/hash.rb
|
179
|
+
- lib/charyf/support/object.rb
|
180
|
+
- lib/charyf/support/string.rb
|
181
|
+
- lib/charyf/support/string_inquirer.rb
|
182
|
+
- lib/charyf/utils.rb
|
183
|
+
- lib/charyf/utils/all.rb
|
184
|
+
- lib/charyf/utils/app_engine.rb
|
185
|
+
- lib/charyf/utils/app_engine/extensions.rb
|
186
|
+
- lib/charyf/utils/app_loader.rb
|
187
|
+
- lib/charyf/utils/application.rb
|
188
|
+
- lib/charyf/utils/application/bootstrap.rb
|
189
|
+
- lib/charyf/utils/application/configuration.rb
|
190
|
+
- lib/charyf/utils/charyf.rb
|
191
|
+
- lib/charyf/utils/cli.rb
|
192
|
+
- lib/charyf/utils/command.rb
|
193
|
+
- lib/charyf/utils/command/actions.rb
|
194
|
+
- lib/charyf/utils/command/base.rb
|
195
|
+
- lib/charyf/utils/command/behavior.rb
|
196
|
+
- lib/charyf/utils/command/environment_argument.rb
|
197
|
+
- lib/charyf/utils/commands.rb
|
198
|
+
- lib/charyf/utils/commands/all.rb
|
199
|
+
- lib/charyf/utils/commands/application/application_command.rb
|
200
|
+
- lib/charyf/utils/commands/cli/cli_command.rb
|
201
|
+
- lib/charyf/utils/commands/console/console_command.rb
|
202
|
+
- lib/charyf/utils/commands/destroy/destroy_command.rb
|
203
|
+
- lib/charyf/utils/commands/generate/generate_command.rb
|
204
|
+
- lib/charyf/utils/commands/help/USAGE
|
205
|
+
- lib/charyf/utils/commands/help/help.rb
|
206
|
+
- lib/charyf/utils/configuration.rb
|
207
|
+
- lib/charyf/utils/error_handler.rb
|
208
|
+
- lib/charyf/utils/extension.rb
|
209
|
+
- lib/charyf/utils/extension/configurable.rb
|
210
|
+
- lib/charyf/utils/extension/configuration.rb
|
211
|
+
- lib/charyf/utils/generator/actions.rb
|
212
|
+
- lib/charyf/utils/generator/base.rb
|
213
|
+
- lib/charyf/utils/generators.rb
|
214
|
+
- lib/charyf/utils/generators/app/USAGE
|
215
|
+
- lib/charyf/utils/generators/app/app_generator.rb
|
216
|
+
- lib/charyf/utils/generators/app/templates/Gemfile.erb
|
217
|
+
- lib/charyf/utils/generators/app/templates/README.md
|
218
|
+
- lib/charyf/utils/generators/app/templates/app/skill_controller.rb.tt
|
219
|
+
- lib/charyf/utils/generators/app/templates/bin/charyf
|
220
|
+
- lib/charyf/utils/generators/app/templates/config/application.rb.tt
|
221
|
+
- lib/charyf/utils/generators/app/templates/config/boot.rb.tt
|
222
|
+
- lib/charyf/utils/generators/app/templates/config/chapp.rb.tt
|
223
|
+
- lib/charyf/utils/generators/app/templates/config/environments/development.rb.tt
|
224
|
+
- lib/charyf/utils/generators/app/templates/config/environments/production.rb.tt
|
225
|
+
- lib/charyf/utils/generators/app/templates/config/environments/test.rb.tt
|
226
|
+
- lib/charyf/utils/generators/app/templates/config/load.rb.tt
|
227
|
+
- lib/charyf/utils/generators/app/templates/gitignore
|
228
|
+
- lib/charyf/utils/generators/app_base.rb
|
229
|
+
- lib/charyf/utils/generators/defaults.rb
|
230
|
+
- lib/charyf/utils/generators/intents/intents_generator.rb
|
231
|
+
- lib/charyf/utils/generators/named_base.rb
|
232
|
+
- lib/charyf/utils/generators/skill/skill_generator.rb
|
233
|
+
- lib/charyf/utils/generators/skill/templates/controllers/skill_controller.rb.tt
|
234
|
+
- lib/charyf/utils/generators/skill/templates/module.rb.tt
|
235
|
+
- lib/charyf/utils/generators/skill/templates/skill.rb.tt
|
236
|
+
- lib/charyf/utils/initializable.rb
|
237
|
+
- lib/charyf/utils/logger.rb
|
238
|
+
- lib/charyf/utils/machine.rb
|
239
|
+
- lib/charyf/utils/parser/en_parser.rb
|
240
|
+
- lib/charyf/utils/parser/parser.rb
|
241
|
+
- lib/charyf/utils/ruby_version_check.rb
|
242
|
+
- lib/charyf/utils/storage/provider.rb
|
243
|
+
- lib/charyf/utils/strategy.rb
|
244
|
+
- lib/charyf/utils/utils.rb
|
245
|
+
- lib/charyf/version.rb
|
246
|
+
- lib/locale/en.yml
|
247
|
+
- todo.md
|
248
|
+
homepage: https://github.com/Charyf/charyf-core
|
249
|
+
licenses:
|
250
|
+
- MIT
|
251
|
+
metadata: {}
|
252
|
+
post_install_message:
|
253
|
+
rdoc_options: []
|
254
|
+
require_paths:
|
255
|
+
- lib
|
256
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
257
|
+
requirements:
|
258
|
+
- - ">="
|
259
|
+
- !ruby/object:Gem::Version
|
260
|
+
version: '2.1'
|
261
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
262
|
+
requirements:
|
263
|
+
- - ">="
|
264
|
+
- !ruby/object:Gem::Version
|
265
|
+
version: '0'
|
266
|
+
requirements: []
|
267
|
+
rubyforge_project:
|
268
|
+
rubygems_version: 2.6.8
|
269
|
+
signing_key:
|
270
|
+
specification_version: 4
|
271
|
+
summary: Your favorite modular chatbot ruby framework
|
272
|
+
test_files: []
|