dialog_ruby 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile +3 -0
- data/dialog_ruby.gemspec +8 -7
- data/{lib/lang → lang}/global_ru.yml +0 -0
- data/lib/{lib/dialect → dialect}/canvas/canvas.rb +0 -0
- data/lib/{lib/dialect → dialect}/canvas/element/convert/SearchBaloo.rb +0 -0
- data/lib/{lib/dialect → dialect}/canvas/element/data/search.rb +0 -0
- data/lib/{lib/dialect → dialect}/canvas/element/send/Inline_query_result.rb +0 -0
- data/lib/{lib/dialect → dialect}/canvas/element/send/bot_message.rb +0 -0
- data/lib/{lib/dialect → dialect}/canvas/element/send/keyboards.rb +0 -0
- data/lib/{lib/dialect → dialect}/canvas/element/send/recognize.rb +0 -0
- data/lib/{lib/dialect → dialect}/canvas/element/send/restrict.rb +0 -0
- data/lib/{lib/dialect → dialect}/canvas/element/send/tdlib_chat.rb +0 -0
- data/lib/{lib/dialect → dialect}/canvas/element/send/tdlib_message.rb +0 -0
- data/lib/{lib/dialect → dialect}/canvas/mod/send/_Inline_query_result.rb +0 -0
- data/lib/{lib/dialect → dialect}/canvas/mod/send/_keyboards.rb +0 -0
- data/lib/{lib/dialect → dialect}/canvas/mod/send/func.rb +0 -0
- data/lib/{lib/dialect → dialect}/canvas/mod/send/general/_heads.rb +0 -0
- data/lib/{lib/dialect → dialect}/canvas/mod/send/general/chat.rb +0 -0
- data/lib/{lib/dialect → dialect}/canvas/mod/send/general/common.rb +0 -0
- data/lib/{lib/dialect → dialect}/canvas/mod/send/general/message.rb +0 -0
- data/lib/{lib/dialect → dialect}/canvas/mod/send/general/user.rb +0 -0
- data/lib/{lib/dialect → dialect}/canvas/mod/send/inline_query_result/common.rb +0 -0
- data/lib/{lib/dialect → dialect}/codegen/codegen.rb +0 -0
- data/lib/{lib/dialect → dialect}/codegen/erb/data/1.ModReceive2GetData.erb +0 -0
- data/lib/{lib/dialect → dialect}/codegen/erb/data/2.GetData2Elements.erb +0 -0
- data/lib/{lib/dialect → dialect}/codegen/erb/data/3.GenData2Dest.erb +0 -0
- data/lib/{lib/dialect → dialect}/codegen/erb/functional/1.Expect2Events.erb +0 -0
- data/lib/{lib/dialect → dialect}/codegen/erb/functional/2.1.Events2AppEvent.erb +0 -0
- data/lib/{lib/dialect → dialect}/codegen/erb/functional/2.2.1.Events2ModReceive.erb +0 -0
- data/lib/{lib/dialect → dialect}/codegen/erb/functional/2.2.2.ModReceive2AppEvent.erb +0 -0
- data/lib/{lib/dialect → dialect}/codegen/erb/functional/3.Appevent2EventBus.erb +0 -0
- data/lib/{lib/dialect → dialect}/codegen/erb/functional/4.1.AppEvent2Elements.erb +0 -0
- data/lib/{lib/dialect → dialect}/codegen/erb/functional/5.1.Element2ModElements.erb +0 -0
- data/lib/{lib/dialect → dialect}/codegen/erb/functional/5.2.Element2ModSend.erb +0 -0
- data/lib/{lib/dialect → dialect}/codegen/erb/functional/7.ElementChains.erb +0 -0
- data/lib/{lib/dialect → dialect}/codegen/repack/constructor/DockedGroupings2AppFunctions.rb +0 -0
- data/lib/{lib/dialect → dialect}/codegen/repack/constructor/Element2ModSend.rb +0 -0
- data/lib/{lib/dialect → dialect}/codegen/repack/constructor/ElementsInElements.rb +0 -0
- data/lib/{lib/dialect → dialect}/codegen/repack/functional/1.Expect2Events.rb +0 -0
- data/lib/{lib/dialect → dialect}/codegen/repack/functional/2.2.1.Events2ModReceive.rb +0 -0
- data/lib/{lib/dialect → dialect}/codegen/repack/functional/2.2.2.ModReceive2AppEvent.rb +0 -0
- data/lib/{lib/dialect → dialect}/codegen/repack/functional/5.1.Element2ModElements.rb +0 -0
- data/lib/{lib/dialect → dialect}/codegen/repack/functional/5.2.Element2ModSend.rb +0 -0
- data/lib/{lib/dialect → dialect}/codegen/repack/functional/7.ElementChains.rb +0 -0
- data/lib/{lib/dialect → dialect}/codegen/run.rb +0 -0
- data/lib/dialog_ruby.rb +1 -10
- data/lib/{lib/metamess → metamess}/_run.rb +0 -0
- data/lib/{lib/metamess → metamess}/content/content_o-command_f.rb +0 -0
- data/lib/{lib/metamess → metamess}/content/content_o-media_f.rb +0 -0
- data/lib/{lib/metamess → metamess}/content/content_o-simple_f.rb +0 -0
- data/lib/{lib/metamess → metamess}/content/content_o.rb +0 -0
- data/lib/{lib/metamess → metamess}/event/notify_o-chatmember_f.rb +0 -0
- data/lib/{lib/metamess → metamess}/event/notify_o-chattitle_f.rb +0 -0
- data/lib/{lib/metamess → metamess}/event/notify_o-create_f.rb +0 -0
- data/lib/{lib/metamess → metamess}/event/notify_o-migrate_f.rb +0 -0
- data/lib/{lib/metamess → metamess}/event/notify_o-pinned_f.rb +0 -0
- data/lib/{lib/metamess → metamess}/event/notify_o.rb +0 -0
- data/lib/{lib/metamess → metamess}/event_c.rb +0 -0
- data/lib/{lib/metamess → metamess}/func.rb +0 -0
- data/lib/{lib/metamess → metamess}/service/service_o-callback_f.rb +0 -0
- data/lib/{lib/metamess → metamess}/service/service_o-inline_f.rb +0 -0
- data/lib/{lib/metamess → metamess}/service/service_o.rb +0 -0
- data/lib/{lib/naming.rb → naming.rb} +0 -0
- data/lib/{lib/storage → storage}/redis/redisPubSub.rb +0 -0
- data/lib/{lib/storage → storage}/redis/rediscached.rb +0 -0
- data/lib/{lib/tdlib → tdlib}/auth.rb +0 -0
- data/lib/{lib/tdlib → tdlib}/func.rb +0 -0
- data/lib/{lib/tdlib → tdlib}/init.rb +0 -0
- data/lib/{lib/telegram → telegram}/botapi.rb +0 -0
- data/lib/{lib/telegram → telegram}/infra_info.rb +0 -0
- data/lib/{lib/telegram → telegram}/wrappers.rb +0 -0
- data/lib/{lib/tooling → tooling}/lang.rb +0 -0
- data/lib/{lib/tooling → tooling}/log.rb +0 -0
- data/lib/{lib/tooling → tooling}/ruby.rb +0 -0
- data/lib/version.rb +1 -1
- metadata +103 -110
- data/dialog.sh +0 -51
- data/lib/architecture.md +0 -22
- data/lib/exec.sh +0 -61
- data/lib/exec_conf/cli_config +0 -7
- data/lib/exec_conf/dialog__sync.service +0 -14
- data/lib/exec_conf/dialog__sync.timer +0 -11
- data/lib/exec_conf/dialog_bot@.path +0 -6
- data/lib/exec_conf/dialog_bot@.service +0 -18
- data/lib/exec_conf/dialog_bot_dev@.path +0 -6
- data/lib/exec_conf/dialog_bot_dev_pre@.service +0 -16
- data/lib/exec_conf/dialog_bot_pre@.service +0 -16
- data/lib/exec_conf/dialog_redis@.service +0 -14
- data/lib/exec_conf/post-merge +0 -5
- data/lib/exec_conf/redis_global.conf +0 -49
- data/lib/exec_conf/redis_local.conf +0 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 749c550efa8829bebe3024bde08989106ef143e18dfd2e67706038498d82478f
|
|
4
|
+
data.tar.gz: 36a4af7ae289de96e113de5501d1eeec8212dd868b279874ad2ce0b14c25c7b5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e6fdf9f81ac7d87b16b014032970e36929f73815827d4e574786c61ec6f4ac5c0fcdda352181e04ac8c8457cfa2d3ee5488af33132979adfa9fa17172e45fcb8
|
|
7
|
+
data.tar.gz: 6008b7d4634bd20dbef89bac2eecd3d9c626a6292130ac022287cbfd53f299adadfe674cfa6fafa2edd6f1d9e723ba5c9594093ac37ce3ecd1d03dcbb0dbe7b1
|
data/Gemfile
CHANGED
data/dialog_ruby.gemspec
CHANGED
|
@@ -21,18 +21,19 @@ Gem::Specification.new do |s|
|
|
|
21
21
|
s.require_paths = ['lib'.freeze]
|
|
22
22
|
|
|
23
23
|
#Innosense
|
|
24
|
-
s.add_runtime_dependency 'dialect_lookup', '~> 0.
|
|
24
|
+
s.add_runtime_dependency 'dialect_lookup', '~> 0.1'
|
|
25
25
|
s.add_runtime_dependency 'dialog_bot_ruby', '~> 0'
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
#External
|
|
29
29
|
s.add_runtime_dependency 'tdlib-ruby', '~> 0'
|
|
30
|
-
s.add_runtime_dependency 'i18n', '~>
|
|
31
|
-
s.add_runtime_dependency 'redis', '~> 0'
|
|
32
|
-
s.add_runtime_dependency 'concurrent',
|
|
33
|
-
s.add_runtime_dependency 'oj', '~>
|
|
34
|
-
s.add_runtime_dependency 'sidekiq-cron', '~> 0'
|
|
35
|
-
s.add_runtime_dependency 'sidekiq
|
|
30
|
+
s.add_runtime_dependency 'i18n', '~> 1.1'
|
|
31
|
+
s.add_runtime_dependency 'redis', '~> 4.0'
|
|
32
|
+
s.add_runtime_dependency 'concurrent-ruby', '~> 1.0.5'
|
|
33
|
+
s.add_runtime_dependency 'oj', '~> 3.6'
|
|
34
|
+
s.add_runtime_dependency 'sidekiq-cron', '~> 1.0'
|
|
35
|
+
s.add_runtime_dependency 'sidekiq', '~> 5.2'
|
|
36
|
+
s.add_runtime_dependency 'dry-configurable', '~> 0.7'
|
|
36
37
|
|
|
37
38
|
end
|
|
38
39
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
data/lib/dialog_ruby.rb
CHANGED
|
@@ -47,13 +47,4 @@ require 'dry-types'
|
|
|
47
47
|
### CODE
|
|
48
48
|
require_relative './configuration.rb'
|
|
49
49
|
require_relative './dialogStart.rb'
|
|
50
|
-
Dir.glob(File.join("#{Dialog.config.path.run}
|
|
51
|
-
|
|
52
|
-
case Dialog.config.run.scope
|
|
53
|
-
when 'init'
|
|
54
|
-
Dialog.tdlibAuth
|
|
55
|
-
when 'start'
|
|
56
|
-
Dialog.start
|
|
57
|
-
when 'stop'
|
|
58
|
-
true
|
|
59
|
-
end
|
|
50
|
+
Dir.glob(File.join("#{Dialog.config.path.run}/**", "*.rb")).each{|f| require f}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
data/lib/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: dialog_ruby
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Eugene Istomin
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-10-
|
|
11
|
+
date: 2018-10-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: dialect_lookup
|
|
@@ -16,20 +16,14 @@ dependencies:
|
|
|
16
16
|
requirements:
|
|
17
17
|
- - "~>"
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
|
-
version: '0.
|
|
20
|
-
- - ">="
|
|
21
|
-
- !ruby/object:Gem::Version
|
|
22
|
-
version: 0.0.1
|
|
19
|
+
version: '0.1'
|
|
23
20
|
type: :runtime
|
|
24
21
|
prerelease: false
|
|
25
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
26
23
|
requirements:
|
|
27
24
|
- - "~>"
|
|
28
25
|
- !ruby/object:Gem::Version
|
|
29
|
-
version: '0.
|
|
30
|
-
- - ">="
|
|
31
|
-
- !ruby/object:Gem::Version
|
|
32
|
-
version: 0.0.1
|
|
26
|
+
version: '0.1'
|
|
33
27
|
- !ruby/object:Gem::Dependency
|
|
34
28
|
name: dialog_bot_ruby
|
|
35
29
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -64,84 +58,98 @@ dependencies:
|
|
|
64
58
|
requirements:
|
|
65
59
|
- - "~>"
|
|
66
60
|
- !ruby/object:Gem::Version
|
|
67
|
-
version: '
|
|
61
|
+
version: '1.1'
|
|
68
62
|
type: :runtime
|
|
69
63
|
prerelease: false
|
|
70
64
|
version_requirements: !ruby/object:Gem::Requirement
|
|
71
65
|
requirements:
|
|
72
66
|
- - "~>"
|
|
73
67
|
- !ruby/object:Gem::Version
|
|
74
|
-
version: '
|
|
68
|
+
version: '1.1'
|
|
75
69
|
- !ruby/object:Gem::Dependency
|
|
76
70
|
name: redis
|
|
77
71
|
requirement: !ruby/object:Gem::Requirement
|
|
78
72
|
requirements:
|
|
79
73
|
- - "~>"
|
|
80
74
|
- !ruby/object:Gem::Version
|
|
81
|
-
version: '0'
|
|
75
|
+
version: '4.0'
|
|
82
76
|
type: :runtime
|
|
83
77
|
prerelease: false
|
|
84
78
|
version_requirements: !ruby/object:Gem::Requirement
|
|
85
79
|
requirements:
|
|
86
80
|
- - "~>"
|
|
87
81
|
- !ruby/object:Gem::Version
|
|
88
|
-
version: '0'
|
|
82
|
+
version: '4.0'
|
|
89
83
|
- !ruby/object:Gem::Dependency
|
|
90
|
-
name: concurrent
|
|
84
|
+
name: concurrent-ruby
|
|
91
85
|
requirement: !ruby/object:Gem::Requirement
|
|
92
86
|
requirements:
|
|
93
87
|
- - "~>"
|
|
94
88
|
- !ruby/object:Gem::Version
|
|
95
|
-
version:
|
|
89
|
+
version: 1.0.5
|
|
96
90
|
type: :runtime
|
|
97
91
|
prerelease: false
|
|
98
92
|
version_requirements: !ruby/object:Gem::Requirement
|
|
99
93
|
requirements:
|
|
100
94
|
- - "~>"
|
|
101
95
|
- !ruby/object:Gem::Version
|
|
102
|
-
version:
|
|
96
|
+
version: 1.0.5
|
|
103
97
|
- !ruby/object:Gem::Dependency
|
|
104
98
|
name: oj
|
|
105
99
|
requirement: !ruby/object:Gem::Requirement
|
|
106
100
|
requirements:
|
|
107
101
|
- - "~>"
|
|
108
102
|
- !ruby/object:Gem::Version
|
|
109
|
-
version: '
|
|
103
|
+
version: '3.6'
|
|
110
104
|
type: :runtime
|
|
111
105
|
prerelease: false
|
|
112
106
|
version_requirements: !ruby/object:Gem::Requirement
|
|
113
107
|
requirements:
|
|
114
108
|
- - "~>"
|
|
115
109
|
- !ruby/object:Gem::Version
|
|
116
|
-
version: '
|
|
110
|
+
version: '3.6'
|
|
117
111
|
- !ruby/object:Gem::Dependency
|
|
118
112
|
name: sidekiq-cron
|
|
119
113
|
requirement: !ruby/object:Gem::Requirement
|
|
120
114
|
requirements:
|
|
121
115
|
- - "~>"
|
|
122
116
|
- !ruby/object:Gem::Version
|
|
123
|
-
version: '0'
|
|
117
|
+
version: '1.0'
|
|
124
118
|
type: :runtime
|
|
125
119
|
prerelease: false
|
|
126
120
|
version_requirements: !ruby/object:Gem::Requirement
|
|
127
121
|
requirements:
|
|
128
122
|
- - "~>"
|
|
129
123
|
- !ruby/object:Gem::Version
|
|
130
|
-
version: '0'
|
|
124
|
+
version: '1.0'
|
|
131
125
|
- !ruby/object:Gem::Dependency
|
|
132
|
-
name: sidekiq
|
|
126
|
+
name: sidekiq
|
|
133
127
|
requirement: !ruby/object:Gem::Requirement
|
|
134
128
|
requirements:
|
|
135
129
|
- - "~>"
|
|
136
130
|
- !ruby/object:Gem::Version
|
|
137
|
-
version: '
|
|
131
|
+
version: '5.2'
|
|
138
132
|
type: :runtime
|
|
139
133
|
prerelease: false
|
|
140
134
|
version_requirements: !ruby/object:Gem::Requirement
|
|
141
135
|
requirements:
|
|
142
136
|
- - "~>"
|
|
143
137
|
- !ruby/object:Gem::Version
|
|
144
|
-
version: '
|
|
138
|
+
version: '5.2'
|
|
139
|
+
- !ruby/object:Gem::Dependency
|
|
140
|
+
name: dry-configurable
|
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
|
142
|
+
requirements:
|
|
143
|
+
- - "~>"
|
|
144
|
+
- !ruby/object:Gem::Version
|
|
145
|
+
version: '0.7'
|
|
146
|
+
type: :runtime
|
|
147
|
+
prerelease: false
|
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
149
|
+
requirements:
|
|
150
|
+
- - "~>"
|
|
151
|
+
- !ruby/object:Gem::Version
|
|
152
|
+
version: '0.7'
|
|
145
153
|
description: Communication prototyping platform
|
|
146
154
|
email:
|
|
147
155
|
- info@innosense.org
|
|
@@ -158,96 +166,81 @@ files:
|
|
|
158
166
|
- _dev/ru.yml
|
|
159
167
|
- _dev/sidekiq.rb
|
|
160
168
|
- _dev/tdlib.rb
|
|
161
|
-
- dialog.sh
|
|
162
169
|
- dialog_ruby.gemspec
|
|
163
|
-
-
|
|
170
|
+
- lang/global_ru.yml
|
|
164
171
|
- lib/configuration.rb
|
|
172
|
+
- lib/dialect/canvas/canvas.rb
|
|
173
|
+
- lib/dialect/canvas/element/convert/SearchBaloo.rb
|
|
174
|
+
- lib/dialect/canvas/element/data/search.rb
|
|
175
|
+
- lib/dialect/canvas/element/send/Inline_query_result.rb
|
|
176
|
+
- lib/dialect/canvas/element/send/bot_message.rb
|
|
177
|
+
- lib/dialect/canvas/element/send/keyboards.rb
|
|
178
|
+
- lib/dialect/canvas/element/send/recognize.rb
|
|
179
|
+
- lib/dialect/canvas/element/send/restrict.rb
|
|
180
|
+
- lib/dialect/canvas/element/send/tdlib_chat.rb
|
|
181
|
+
- lib/dialect/canvas/element/send/tdlib_message.rb
|
|
182
|
+
- lib/dialect/canvas/mod/send/_Inline_query_result.rb
|
|
183
|
+
- lib/dialect/canvas/mod/send/_keyboards.rb
|
|
184
|
+
- lib/dialect/canvas/mod/send/func.rb
|
|
185
|
+
- lib/dialect/canvas/mod/send/general/_heads.rb
|
|
186
|
+
- lib/dialect/canvas/mod/send/general/chat.rb
|
|
187
|
+
- lib/dialect/canvas/mod/send/general/common.rb
|
|
188
|
+
- lib/dialect/canvas/mod/send/general/message.rb
|
|
189
|
+
- lib/dialect/canvas/mod/send/general/user.rb
|
|
190
|
+
- lib/dialect/canvas/mod/send/inline_query_result/common.rb
|
|
191
|
+
- lib/dialect/codegen/codegen.rb
|
|
192
|
+
- lib/dialect/codegen/erb/data/1.ModReceive2GetData.erb
|
|
193
|
+
- lib/dialect/codegen/erb/data/2.GetData2Elements.erb
|
|
194
|
+
- lib/dialect/codegen/erb/data/3.GenData2Dest.erb
|
|
195
|
+
- lib/dialect/codegen/erb/functional/1.Expect2Events.erb
|
|
196
|
+
- lib/dialect/codegen/erb/functional/2.1.Events2AppEvent.erb
|
|
197
|
+
- lib/dialect/codegen/erb/functional/2.2.1.Events2ModReceive.erb
|
|
198
|
+
- lib/dialect/codegen/erb/functional/2.2.2.ModReceive2AppEvent.erb
|
|
199
|
+
- lib/dialect/codegen/erb/functional/3.Appevent2EventBus.erb
|
|
200
|
+
- lib/dialect/codegen/erb/functional/4.1.AppEvent2Elements.erb
|
|
201
|
+
- lib/dialect/codegen/erb/functional/5.1.Element2ModElements.erb
|
|
202
|
+
- lib/dialect/codegen/erb/functional/5.2.Element2ModSend.erb
|
|
203
|
+
- lib/dialect/codegen/erb/functional/7.ElementChains.erb
|
|
204
|
+
- lib/dialect/codegen/repack/constructor/DockedGroupings2AppFunctions.rb
|
|
205
|
+
- lib/dialect/codegen/repack/constructor/Element2ModSend.rb
|
|
206
|
+
- lib/dialect/codegen/repack/constructor/ElementsInElements.rb
|
|
207
|
+
- lib/dialect/codegen/repack/functional/1.Expect2Events.rb
|
|
208
|
+
- lib/dialect/codegen/repack/functional/2.2.1.Events2ModReceive.rb
|
|
209
|
+
- lib/dialect/codegen/repack/functional/2.2.2.ModReceive2AppEvent.rb
|
|
210
|
+
- lib/dialect/codegen/repack/functional/5.1.Element2ModElements.rb
|
|
211
|
+
- lib/dialect/codegen/repack/functional/5.2.Element2ModSend.rb
|
|
212
|
+
- lib/dialect/codegen/repack/functional/7.ElementChains.rb
|
|
213
|
+
- lib/dialect/codegen/run.rb
|
|
165
214
|
- lib/dialogStart.rb
|
|
166
215
|
- lib/dialog_ruby.rb
|
|
167
|
-
- lib/
|
|
168
|
-
- lib/
|
|
169
|
-
- lib/
|
|
170
|
-
- lib/
|
|
171
|
-
- lib/
|
|
172
|
-
- lib/
|
|
173
|
-
- lib/
|
|
174
|
-
- lib/
|
|
175
|
-
- lib/
|
|
176
|
-
- lib/
|
|
177
|
-
- lib/
|
|
178
|
-
- lib/
|
|
179
|
-
- lib/
|
|
180
|
-
- lib/
|
|
181
|
-
- lib/
|
|
182
|
-
- lib/
|
|
183
|
-
- lib/
|
|
184
|
-
- lib/
|
|
185
|
-
- lib/
|
|
186
|
-
- lib/
|
|
187
|
-
- lib/
|
|
188
|
-
- lib/
|
|
189
|
-
- lib/
|
|
190
|
-
- lib/
|
|
191
|
-
- lib/
|
|
192
|
-
- lib/
|
|
193
|
-
- lib/
|
|
194
|
-
- lib/
|
|
195
|
-
- lib/lib/dialect/canvas/mod/send/general/chat.rb
|
|
196
|
-
- lib/lib/dialect/canvas/mod/send/general/common.rb
|
|
197
|
-
- lib/lib/dialect/canvas/mod/send/general/message.rb
|
|
198
|
-
- lib/lib/dialect/canvas/mod/send/general/user.rb
|
|
199
|
-
- lib/lib/dialect/canvas/mod/send/inline_query_result/common.rb
|
|
200
|
-
- lib/lib/dialect/codegen/codegen.rb
|
|
201
|
-
- lib/lib/dialect/codegen/erb/data/1.ModReceive2GetData.erb
|
|
202
|
-
- lib/lib/dialect/codegen/erb/data/2.GetData2Elements.erb
|
|
203
|
-
- lib/lib/dialect/codegen/erb/data/3.GenData2Dest.erb
|
|
204
|
-
- lib/lib/dialect/codegen/erb/functional/1.Expect2Events.erb
|
|
205
|
-
- lib/lib/dialect/codegen/erb/functional/2.1.Events2AppEvent.erb
|
|
206
|
-
- lib/lib/dialect/codegen/erb/functional/2.2.1.Events2ModReceive.erb
|
|
207
|
-
- lib/lib/dialect/codegen/erb/functional/2.2.2.ModReceive2AppEvent.erb
|
|
208
|
-
- lib/lib/dialect/codegen/erb/functional/3.Appevent2EventBus.erb
|
|
209
|
-
- lib/lib/dialect/codegen/erb/functional/4.1.AppEvent2Elements.erb
|
|
210
|
-
- lib/lib/dialect/codegen/erb/functional/5.1.Element2ModElements.erb
|
|
211
|
-
- lib/lib/dialect/codegen/erb/functional/5.2.Element2ModSend.erb
|
|
212
|
-
- lib/lib/dialect/codegen/erb/functional/7.ElementChains.erb
|
|
213
|
-
- lib/lib/dialect/codegen/repack/constructor/DockedGroupings2AppFunctions.rb
|
|
214
|
-
- lib/lib/dialect/codegen/repack/constructor/Element2ModSend.rb
|
|
215
|
-
- lib/lib/dialect/codegen/repack/constructor/ElementsInElements.rb
|
|
216
|
-
- lib/lib/dialect/codegen/repack/functional/1.Expect2Events.rb
|
|
217
|
-
- lib/lib/dialect/codegen/repack/functional/2.2.1.Events2ModReceive.rb
|
|
218
|
-
- lib/lib/dialect/codegen/repack/functional/2.2.2.ModReceive2AppEvent.rb
|
|
219
|
-
- lib/lib/dialect/codegen/repack/functional/5.1.Element2ModElements.rb
|
|
220
|
-
- lib/lib/dialect/codegen/repack/functional/5.2.Element2ModSend.rb
|
|
221
|
-
- lib/lib/dialect/codegen/repack/functional/7.ElementChains.rb
|
|
222
|
-
- lib/lib/dialect/codegen/run.rb
|
|
223
|
-
- lib/lib/metamess/_run.rb
|
|
224
|
-
- lib/lib/metamess/content/content_o-command_f.rb
|
|
225
|
-
- lib/lib/metamess/content/content_o-media_f.rb
|
|
226
|
-
- lib/lib/metamess/content/content_o-simple_f.rb
|
|
227
|
-
- lib/lib/metamess/content/content_o.rb
|
|
228
|
-
- lib/lib/metamess/event/notify_o-chatmember_f.rb
|
|
229
|
-
- lib/lib/metamess/event/notify_o-chattitle_f.rb
|
|
230
|
-
- lib/lib/metamess/event/notify_o-create_f.rb
|
|
231
|
-
- lib/lib/metamess/event/notify_o-migrate_f.rb
|
|
232
|
-
- lib/lib/metamess/event/notify_o-pinned_f.rb
|
|
233
|
-
- lib/lib/metamess/event/notify_o.rb
|
|
234
|
-
- lib/lib/metamess/event_c.rb
|
|
235
|
-
- lib/lib/metamess/func.rb
|
|
236
|
-
- lib/lib/metamess/service/service_o-callback_f.rb
|
|
237
|
-
- lib/lib/metamess/service/service_o-inline_f.rb
|
|
238
|
-
- lib/lib/metamess/service/service_o.rb
|
|
239
|
-
- lib/lib/naming.rb
|
|
240
|
-
- lib/lib/storage/redis/redisPubSub.rb
|
|
241
|
-
- lib/lib/storage/redis/rediscached.rb
|
|
242
|
-
- lib/lib/tdlib/auth.rb
|
|
243
|
-
- lib/lib/tdlib/func.rb
|
|
244
|
-
- lib/lib/tdlib/init.rb
|
|
245
|
-
- lib/lib/telegram/botapi.rb
|
|
246
|
-
- lib/lib/telegram/infra_info.rb
|
|
247
|
-
- lib/lib/telegram/wrappers.rb
|
|
248
|
-
- lib/lib/tooling/lang.rb
|
|
249
|
-
- lib/lib/tooling/log.rb
|
|
250
|
-
- lib/lib/tooling/ruby.rb
|
|
216
|
+
- lib/metamess/_run.rb
|
|
217
|
+
- lib/metamess/content/content_o-command_f.rb
|
|
218
|
+
- lib/metamess/content/content_o-media_f.rb
|
|
219
|
+
- lib/metamess/content/content_o-simple_f.rb
|
|
220
|
+
- lib/metamess/content/content_o.rb
|
|
221
|
+
- lib/metamess/event/notify_o-chatmember_f.rb
|
|
222
|
+
- lib/metamess/event/notify_o-chattitle_f.rb
|
|
223
|
+
- lib/metamess/event/notify_o-create_f.rb
|
|
224
|
+
- lib/metamess/event/notify_o-migrate_f.rb
|
|
225
|
+
- lib/metamess/event/notify_o-pinned_f.rb
|
|
226
|
+
- lib/metamess/event/notify_o.rb
|
|
227
|
+
- lib/metamess/event_c.rb
|
|
228
|
+
- lib/metamess/func.rb
|
|
229
|
+
- lib/metamess/service/service_o-callback_f.rb
|
|
230
|
+
- lib/metamess/service/service_o-inline_f.rb
|
|
231
|
+
- lib/metamess/service/service_o.rb
|
|
232
|
+
- lib/naming.rb
|
|
233
|
+
- lib/storage/redis/redisPubSub.rb
|
|
234
|
+
- lib/storage/redis/rediscached.rb
|
|
235
|
+
- lib/tdlib/auth.rb
|
|
236
|
+
- lib/tdlib/func.rb
|
|
237
|
+
- lib/tdlib/init.rb
|
|
238
|
+
- lib/telegram/botapi.rb
|
|
239
|
+
- lib/telegram/infra_info.rb
|
|
240
|
+
- lib/telegram/wrappers.rb
|
|
241
|
+
- lib/tooling/lang.rb
|
|
242
|
+
- lib/tooling/log.rb
|
|
243
|
+
- lib/tooling/ruby.rb
|
|
251
244
|
- lib/version.rb
|
|
252
245
|
- logo.png
|
|
253
246
|
homepage: https://gitlab.com/Innosense/MVP/dialog_ruby
|
data/dialog.sh
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
#!/bin/bash
|
|
2
|
-
######## ####### ######## ####### ######## ########
|
|
3
|
-
## / / / / License \ \ \ \
|
|
4
|
-
## Copyleft culture, Copyright (C) is prohibited here
|
|
5
|
-
## This work is licensed under a CC BY-SA 4.0
|
|
6
|
-
## Creative Commons Attribution-ShareAlike 4.0 License
|
|
7
|
-
## Refer to the http://creativecommons.org/licenses/by-sa/4.0/
|
|
8
|
-
######## ####### ######## ####### ######## ########
|
|
9
|
-
## / / / / Code Climate \ \ \ \
|
|
10
|
-
## Language = bash
|
|
11
|
-
## Indent = space; 2 chars;
|
|
12
|
-
######## ####### ######## ####### ######## ########
|
|
13
|
-
set -e
|
|
14
|
-
|
|
15
|
-
## PRE - ENV ##
|
|
16
|
-
. ./engine/exec.sh
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
if [[ -z $Type ]]; then
|
|
20
|
-
DialogMsg="Please specify type"
|
|
21
|
-
echo $DialogMsg; select Type in bot cli; do break ; done
|
|
22
|
-
fi
|
|
23
|
-
|
|
24
|
-
if [[ -z $Mode ]]; then
|
|
25
|
-
DialogMsg="Please specify mode: "
|
|
26
|
-
echo $DialogMsg; select Mode in dev prod; do break ; done
|
|
27
|
-
fi
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
if [[ -z $BotFullname ]]; then
|
|
31
|
-
DialogMsg="Please specify BotFullname"
|
|
32
|
-
echo $DialogMsg; select BotFullname in `ls ./_env/*.bot|sed -e 's/.*.\///'`; do break ; done
|
|
33
|
-
fi
|
|
34
|
-
|
|
35
|
-
. ./_env/$BotFullname
|
|
36
|
-
botRunInit
|
|
37
|
-
|
|
38
|
-
# if ! [[ -z $CliId ]]; then
|
|
39
|
-
# if test -f /tmp/dialog_env_${CliId}.sh; then
|
|
40
|
-
# . /tmp/dialog_env_${CliId}.sh
|
|
41
|
-
# else
|
|
42
|
-
# cliRunInit
|
|
43
|
-
# cliExportEnv
|
|
44
|
-
# fi
|
|
45
|
-
# fi
|
|
46
|
-
|
|
47
|
-
DialogBotExec
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
data/lib/architecture.md
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
## Передаваемые объекты
|
|
2
|
-
|
|
3
|
-
# lib/runtime/base.rb
|
|
4
|
-
Namespace: Bot::
|
|
5
|
-
|
|
6
|
-
Vars owns:
|
|
7
|
-
args[:bot].freeze
|
|
8
|
-
args[:globals].freeze
|
|
9
|
-
args[:rmsg].freeze
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
# lib/runtime/metamess.rb
|
|
13
|
-
Namespace: Bot::Metamess.
|
|
14
|
-
|
|
15
|
-
Vars owns:
|
|
16
|
-
args[:mmsg].freeze
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
# shared
|
|
20
|
-
args[:smsg] - sending messages to telegram servers
|
|
21
|
-
args[:api] - data echange for botapi, cleared after botapi
|
|
22
|
-
args[:x] - object exchange, cleared after each step (metamess, ..)
|
data/lib/exec.sh
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
######## ####### ######## ####### ######## ########
|
|
2
|
-
## / / / / License \ \ \ \
|
|
3
|
-
## Copyleft culture, Copyright (C) is prohibited here
|
|
4
|
-
## This work is licensed under a CC BY-SA 4.0
|
|
5
|
-
## Creative Commons Attribution-ShareAlike 4.0 License
|
|
6
|
-
## Refer to the http://creativecommons.org/licenses/by-sa/4.0/
|
|
7
|
-
######## ####### ######## ####### ######## ########
|
|
8
|
-
## / / / / Code Climate \ \ \ \
|
|
9
|
-
## Language = bash
|
|
10
|
-
## Indent = space; 2 chars;
|
|
11
|
-
######## ####### ######## ####### ######## ########
|
|
12
|
-
set -e
|
|
13
|
-
|
|
14
|
-
runInitMain() (
|
|
15
|
-
if [ ! -f ~/.config/systemd/user/dialog_bot@.service ] || [ ! -f ~/.config/systemd/user/dialog_redis@.service ] ; then
|
|
16
|
-
cp ./engine/exec_conf/dialog*@.service ~/.config/systemd/user
|
|
17
|
-
sed -i "s#{RunPath}#`echo $PWD`#" ~/.config/systemd/user/dialog*@.service
|
|
18
|
-
fi
|
|
19
|
-
systemctl --user daemon-reload
|
|
20
|
-
)
|
|
21
|
-
|
|
22
|
-
botRunInit() (
|
|
23
|
-
runInitMain
|
|
24
|
-
mkdir -p ~/.config/systemd/user ./_data/${BotFullname}
|
|
25
|
-
|
|
26
|
-
if [ ! -f ./_data/${BotFullname}/redis.conf ]; then
|
|
27
|
-
cp ./engine/exec_conf/redis_local.conf ./_data/${BotFullname}/redis.conf
|
|
28
|
-
sed -i "s/{INSTANCE}/${BotFullname}/" ./_data/${BotFullname}/redis.conf
|
|
29
|
-
fi
|
|
30
|
-
systemctl --user daemon-reload
|
|
31
|
-
)
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
#####
|
|
35
|
-
DialogBotExec() (
|
|
36
|
-
systemctl --user restart dialog_redis@${BotFullname}
|
|
37
|
-
systemctl --user restart dialog_bot@${BotFullname}
|
|
38
|
-
|
|
39
|
-
case $Mode in
|
|
40
|
-
'prod')
|
|
41
|
-
echo "Ready!"
|
|
42
|
-
systemctl --user enable dialog_redis@${BotFullname}
|
|
43
|
-
systemctl --user enable dialog_bot@${BotFullname}
|
|
44
|
-
;;
|
|
45
|
-
'dev')
|
|
46
|
-
mkdir -p /tmp/_render
|
|
47
|
-
|
|
48
|
-
inotifywait -r -e DELETE --format '%w %f' -m ./engine |\
|
|
49
|
-
(
|
|
50
|
-
while read; do
|
|
51
|
-
echo "Bot restarting"
|
|
52
|
-
systemctl --user restart dialog_bot@${BotFullname}
|
|
53
|
-
done
|
|
54
|
-
)
|
|
55
|
-
|
|
56
|
-
systemctl --user stop dialog_bot@${BotFullname}
|
|
57
|
-
systemctl --user stop dialog_redis@${BotFullname}
|
|
58
|
-
;;
|
|
59
|
-
esac
|
|
60
|
-
)
|
|
61
|
-
#####
|
data/lib/exec_conf/cli_config
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
[Unit]
|
|
2
|
-
Description= Dialog sync
|
|
3
|
-
After=syslog.target network.target
|
|
4
|
-
|
|
5
|
-
[Service]
|
|
6
|
-
Type=oneshot
|
|
7
|
-
WorkingDirectory={RunPath}
|
|
8
|
-
ExecStart=/usr/bin/git pull
|
|
9
|
-
StandardOutput=syslog
|
|
10
|
-
StandardError=syslog
|
|
11
|
-
SyslogIdentifier=dialog_sync
|
|
12
|
-
|
|
13
|
-
[Install]
|
|
14
|
-
WantedBy=multi-user.target
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
[Unit]
|
|
2
|
-
Description= Dialog (Telegram Bot abstraction layer) - instance %i
|
|
3
|
-
After=syslog.target network.target
|
|
4
|
-
|
|
5
|
-
[Service]
|
|
6
|
-
Type=simple
|
|
7
|
-
WorkingDirectory={RunPath}
|
|
8
|
-
EnvironmentFile={RunPath}/_env/%i
|
|
9
|
-
ExecStart=/usr/bin/ruby.ruby2.5 ./dialog.rb start bot %i
|
|
10
|
-
RestartSec=5
|
|
11
|
-
TimeoutStopSec=5
|
|
12
|
-
Restart=on-failure
|
|
13
|
-
StandardOutput=syslog
|
|
14
|
-
StandardError=syslog
|
|
15
|
-
SyslogIdentifier=dialog_%i
|
|
16
|
-
|
|
17
|
-
[Install]
|
|
18
|
-
WantedBy=multi-user.target
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
[Unit]
|
|
2
|
-
Description= Dialog (Telegram Bot abstraction layer) - instance %i
|
|
3
|
-
After=syslog.target network.target
|
|
4
|
-
|
|
5
|
-
[Service]
|
|
6
|
-
Type=oneshot
|
|
7
|
-
WorkingDirectory={RunPath}
|
|
8
|
-
EnvironmentFile={RunPath}/_env/%i
|
|
9
|
-
ExecStartPre=/usr/bin/ruby.ruby2.5 ./dialog.rb start dev_offline %i
|
|
10
|
-
ExecStart=/usr/bin/systemctl --user restart dialog_bot@%i
|
|
11
|
-
StandardOutput=syslog
|
|
12
|
-
StandardError=syslog
|
|
13
|
-
SyslogIdentifier=dialog_dev_pre_%i
|
|
14
|
-
|
|
15
|
-
[Install]
|
|
16
|
-
WantedBy=multi-user.target
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
[Unit]
|
|
2
|
-
Description= Dialog (Telegram Bot abstraction layer) - instance %i
|
|
3
|
-
After=syslog.target network.target
|
|
4
|
-
|
|
5
|
-
[Service]
|
|
6
|
-
Type=oneshot
|
|
7
|
-
WorkingDirectory={RunPath}
|
|
8
|
-
EnvironmentFile={RunPath}/_env/%i
|
|
9
|
-
ExecStartPre=/usr/bin/ruby.ruby2.5 ./dialog.rb start check %i
|
|
10
|
-
ExecStart=/usr/bin/systemctl --user restart dialog_bot@%i
|
|
11
|
-
StandardOutput=syslog
|
|
12
|
-
StandardError=syslog
|
|
13
|
-
SyslogIdentifier=dialog_pre_%i
|
|
14
|
-
|
|
15
|
-
[Install]
|
|
16
|
-
WantedBy=multi-user.target
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
[Unit]
|
|
2
|
-
Description=Redis
|
|
3
|
-
After=network.target
|
|
4
|
-
PartOf=redis.target
|
|
5
|
-
|
|
6
|
-
[Service]
|
|
7
|
-
Type=simple
|
|
8
|
-
#PrivateTmp=true
|
|
9
|
-
PIDFile={RunPath}/_data/%i/redis.pid
|
|
10
|
-
ExecStart=/usr/sbin/redis-server ./_data/%i/redis.conf
|
|
11
|
-
Restart=on-failure
|
|
12
|
-
|
|
13
|
-
[Install]
|
|
14
|
-
WantedBy=multi-user.target
|
data/lib/exec_conf/post-merge
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
daemonize no
|
|
2
|
-
port 0
|
|
3
|
-
unixsocketperm 700
|
|
4
|
-
loglevel notice
|
|
5
|
-
syslog-enabled yes
|
|
6
|
-
syslog-facility local1
|
|
7
|
-
databases 2
|
|
8
|
-
save 600 1
|
|
9
|
-
save 300 5
|
|
10
|
-
save 180 10
|
|
11
|
-
save 60 50
|
|
12
|
-
save 10 100
|
|
13
|
-
|
|
14
|
-
stop-writes-on-bgsave-error yes
|
|
15
|
-
rdbcompression yes
|
|
16
|
-
rdbchecksum yes
|
|
17
|
-
dbfilename dump.rdb
|
|
18
|
-
appendonly no
|
|
19
|
-
appendfsync everysec
|
|
20
|
-
no-appendfsync-on-rewrite no
|
|
21
|
-
maxclients 1000
|
|
22
|
-
|
|
23
|
-
auto-aof-rewrite-percentage 100
|
|
24
|
-
auto-aof-rewrite-min-size 64mb
|
|
25
|
-
aof-rewrite-incremental-fsync yes
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
aof-load-truncated yes
|
|
29
|
-
lua-time-limit 5000
|
|
30
|
-
slowlog-log-slower-than 10000
|
|
31
|
-
slowlog-max-len 128
|
|
32
|
-
latency-monitor-threshold 0
|
|
33
|
-
notify-keyspace-events ""
|
|
34
|
-
|
|
35
|
-
hash-max-ziplist-entries 512
|
|
36
|
-
hash-max-ziplist-value 64
|
|
37
|
-
list-max-ziplist-entries 512
|
|
38
|
-
list-max-ziplist-value 64
|
|
39
|
-
set-max-intset-entries 512
|
|
40
|
-
|
|
41
|
-
zset-max-ziplist-entries 128
|
|
42
|
-
zset-max-ziplist-value 64
|
|
43
|
-
hll-sparse-max-bytes 3000
|
|
44
|
-
activerehashing yes
|
|
45
|
-
client-output-buffer-limit normal 0 0 0
|
|
46
|
-
client-output-buffer-limit slave 256mb 64mb 60
|
|
47
|
-
client-output-buffer-limit pubsub 32mb 8mb 60
|
|
48
|
-
|
|
49
|
-
hz 10
|