telegrator 0.2.0.rc1

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.
Files changed (38) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +9 -0
  3. data/.travis.yml +5 -0
  4. data/Gemfile +4 -0
  5. data/LICENSE.txt +21 -0
  6. data/README.md +67 -0
  7. data/Rakefile +10 -0
  8. data/bin/console +14 -0
  9. data/bin/setup +8 -0
  10. data/exe/telegrator +6 -0
  11. data/lib/telegrator/cli.rb +8 -0
  12. data/lib/telegrator/generators/base.rb +15 -0
  13. data/lib/telegrator/generators/bot/generator.rb +104 -0
  14. data/lib/telegrator/generators/bot/templates/Gemfile.tt +31 -0
  15. data/lib/telegrator/generators/bot/templates/Rakefile.tt +1 -0
  16. data/lib/telegrator/generators/bot/templates/app/commands/base.rb.tt +26 -0
  17. data/lib/telegrator/generators/bot/templates/app/commands/missing.rb.tt +7 -0
  18. data/lib/telegrator/generators/bot/templates/app/commands/start.rb.tt +7 -0
  19. data/lib/telegrator/generators/bot/templates/app/commands/stop.rb.tt +7 -0
  20. data/lib/telegrator/generators/bot/templates/app/commands.rb.tt +6 -0
  21. data/lib/telegrator/generators/bot/templates/app/keyboards/base.rb.tt +28 -0
  22. data/lib/telegrator/generators/bot/templates/app/keyboards.rb.tt +3 -0
  23. data/lib/telegrator/generators/bot/templates/app/models/base.rb.tt +5 -0
  24. data/lib/telegrator/generators/bot/templates/app/models/user.rb.tt +5 -0
  25. data/lib/telegrator/generators/bot/templates/app/models.rb.tt +4 -0
  26. data/lib/telegrator/generators/bot/templates/app/workers/base.rb.tt +6 -0
  27. data/lib/telegrator/generators/bot/templates/app/workers/processor.rb.tt +41 -0
  28. data/lib/telegrator/generators/bot/templates/app/workers.rb.tt +4 -0
  29. data/lib/telegrator/generators/bot/templates/bin/bot.tt +9 -0
  30. data/lib/telegrator/generators/bot/templates/config/boot.rb.tt +14 -0
  31. data/lib/telegrator/generators/bot/templates/config/initializers/01_env.rb.tt +3 -0
  32. data/lib/telegrator/generators/bot/templates/config/initializers/02_root.rb.tt +1 -0
  33. data/lib/telegrator/generators/bot/templates/config/initializers/bot.rb.tt +3 -0
  34. data/lib/telegrator/generators.rb +6 -0
  35. data/lib/telegrator/version.rb +3 -0
  36. data/lib/telegrator.rb +5 -0
  37. data/telegrator.gemspec +29 -0
  38. metadata +137 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: daec854c804de3d68236c33d1f620c7776beb2ba
4
+ data.tar.gz: a07185d871bb2d6170a62943dced3da72759e88c
5
+ SHA512:
6
+ metadata.gz: 965bbccc435df7898b449f8b42714b30329c5d4d2e32dd4bc5453556d2e45a12ae8f6d923f05ae88349b08f7b4485e43012c04e16b313d1691d9735090cde96a
7
+ data.tar.gz: 6d8d4059a44ab658be59a8ab08b8c56da41ed16daeb10d9c44d76f9790cfb94925ec63e7acf03b53505dffa850d5a491d6fb54a1ff7cb201461e1f6efcd48599
data/.gitignore ADDED
@@ -0,0 +1,9 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
data/.travis.yml ADDED
@@ -0,0 +1,5 @@
1
+ sudo: false
2
+ language: ruby
3
+ rvm:
4
+ - 2.3.4
5
+ before_install: gem install bundler -v 1.14.6
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in telegrator.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2017 Aleksey Ivanov
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,67 @@
1
+ # Telegrator
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/telegrator`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ TODO: Delete this and the text above, and describe your gem
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'telegrator'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install telegrator
22
+
23
+ ## Usage
24
+
25
+ You can easily set up a new bot project:
26
+
27
+ $ telegrator new foo_bot
28
+
29
+ This will generate a skeleton structure like this:
30
+ ```
31
+ foo_bot/
32
+ |__ app/
33
+ |__ commands/
34
+ |__ keyboards/
35
+ |__ models/
36
+ |__ workers/
37
+ |__ commands.rb
38
+ |__ keyboards.rb
39
+ |__ models.rb
40
+ |__ workers.rb
41
+ |__ bin/
42
+ |__ bot
43
+ |__ config/
44
+ |__ boot.rb
45
+ |__ initializers/
46
+ |__ ...
47
+ |__ log/
48
+ |__ .keep
49
+ |__ Gemfile
50
+ |__ Rakefile
51
+ ```
52
+
53
+ ## Development
54
+
55
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
56
+
57
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
58
+
59
+ ## Contributing
60
+
61
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/telegrator.
62
+
63
+
64
+ ## License
65
+
66
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
67
+
data/Rakefile ADDED
@@ -0,0 +1,10 @@
1
+ require "bundler/gem_tasks"
2
+ require "rake/testtask"
3
+
4
+ Rake::TestTask.new(:test) do |t|
5
+ t.libs << "test"
6
+ t.libs << "lib"
7
+ t.test_files = FileList['test/**/*_test.rb']
8
+ end
9
+
10
+ task :default => :test
data/bin/console ADDED
@@ -0,0 +1,14 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "telegrator"
5
+
6
+ # You can add fixtures and/or initialization code here to make experimenting
7
+ # with your gem easier. You can also use a different console, if you like.
8
+
9
+ # (If you use this, don't forget to add pry to your Gemfile!)
10
+ # require "pry"
11
+ # Pry.start
12
+
13
+ require "irb"
14
+ IRB.start(__FILE__)
data/bin/setup ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
data/exe/telegrator ADDED
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'telegrator'
4
+ require 'telegrator/cli'
5
+
6
+ Telegrator::CLI.start
@@ -0,0 +1,8 @@
1
+ require 'thor'
2
+
3
+ module Telegrator
4
+ class CLI < Thor
5
+ # register(class_name, subcommand_alias, usage_list_string, description_string)
6
+ register(Generators::Bot, 'bot', 'bot', 'Generate a skeleton for creating a new bot')
7
+ end
8
+ end
@@ -0,0 +1,15 @@
1
+ module Telegrator
2
+ module Generators
3
+ class Base < Thor::Group
4
+ class << self
5
+ def dispatch(command, given_args, given_opts, config)
6
+ if command.nil? && given_args.empty? && given_opts.empty?
7
+ given_args << '--help'
8
+ given_opts << '--help'
9
+ end
10
+ super
11
+ end
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,104 @@
1
+ module Telegrator
2
+ module Generators
3
+ class Bot < Base
4
+ include Thor::Actions
5
+
6
+ DATABASES = %w[postgresql mongodb]
7
+
8
+ # TODO: move to Base class
9
+ def self.source_root
10
+ File.expand_path('../templates', __FILE__)
11
+ end
12
+
13
+ def initialize(args = [], options = {}, config = {})
14
+ config[:destination_root] ||= args.first
15
+ super
16
+ end
17
+
18
+ class_option :database, type: :string, aliases: '-d', default: 'postgresql', enum: DATABASES,
19
+ desc: 'Preconfigure for selected database'
20
+
21
+ class_option :skip_capistrano, type: :boolean, default: false,
22
+ desc: 'Skip Capistrano'
23
+
24
+ class_option :skip_keyboards, type: :boolean, default: false,
25
+ desc: 'Skip keyboards'
26
+
27
+ class_option :skip_webhook, type: :boolean, default: false,
28
+ desc: 'Skip webhook'
29
+
30
+ class_option :help, type: :boolean, aliases: '-h',
31
+ desc: 'Show this help message and quit'
32
+
33
+ namespace 'bot'
34
+ desc 'Bot generator description'
35
+
36
+ argument :name
37
+
38
+ # === app/ directory ===
39
+ def create_app_dir
40
+ empty_directory 'app'
41
+ end
42
+
43
+ def create_commands
44
+ template 'app/commands.rb'
45
+ directory 'app/commands'
46
+ end
47
+
48
+ # TODO: inline keyboards
49
+
50
+ def create_keyboards
51
+ return if options[:skip_keyboards]
52
+ template 'app/keyboards.rb'
53
+ directory 'app/keyboards'
54
+ end
55
+
56
+ def create_models
57
+ template 'app/models.rb'
58
+ directory 'app/models'
59
+ end
60
+
61
+ def create_workers
62
+ template 'app/workers.rb'
63
+ directory 'app/workers'
64
+ end
65
+
66
+ # === bin/ directory ===
67
+ def create_bin_dir
68
+ directory 'bin'
69
+ end
70
+
71
+ # === config/ directory ===
72
+ def create_config_dir
73
+ directory 'config'
74
+ end
75
+
76
+ # === lib/ directory ===
77
+ def create_lib_dir
78
+ empty_directory 'lib/tasks'
79
+ end
80
+
81
+ # === log/ directory ===
82
+ def create_log_dir
83
+ empty_directory 'log'
84
+ create_file 'log/.keep'
85
+ end
86
+
87
+ def create_gemfile
88
+ template 'Gemfile.tt'
89
+ end
90
+
91
+ def create_rakefile
92
+ template 'Rakefile.tt'
93
+ end
94
+
95
+ private
96
+
97
+ DATABASES.each do |db|
98
+ define_method "#{db}?" do
99
+ options[:database] == db
100
+ end
101
+ end
102
+ end
103
+ end
104
+ end
@@ -0,0 +1,31 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gem 'dotenv'
4
+ gem 'rake'
5
+ gem 'sidekiq'
6
+ gem 'telegram-bot-ruby'
7
+
8
+ <%- if postgresql? -%>
9
+ gem 'pg'
10
+ gem 'sequel'
11
+ <%- elsif mongodb? -%>
12
+ gem 'mongoid'
13
+ <%- end -%>
14
+
15
+ <%- unless options.skip_webhook? -%>
16
+ gem 'puma'
17
+ gem 'rack-contrib'
18
+ <%- end -%>
19
+
20
+ <%- unless options.skip_capistrano? -%>
21
+ group :development do
22
+ gem 'capistrano'
23
+ gem 'capistrano-bundler'
24
+ gem 'capistrano-rbenv'
25
+ gem 'capistrano-sidekiq'
26
+
27
+ <%- unless options.skip_webhook? -%>
28
+ gem 'capistrano3-puma'
29
+ <%- end -%>
30
+ end
31
+ <%- end -%>
@@ -0,0 +1 @@
1
+ Rake.add_rakelib('lib/tasks')
@@ -0,0 +1,26 @@
1
+ module Commands
2
+ class Base
3
+ def self.invoke(*args)
4
+ new(*args).invoke
5
+ end
6
+
7
+ def initialize(message, user)
8
+ @message = message
9
+ @user = user
10
+ end
11
+
12
+ def invoke
13
+ raise NotImplementedError
14
+ end
15
+
16
+ private
17
+
18
+ def say(text)
19
+ send_message(@user.telegram_id, text)
20
+ end
21
+
22
+ def send_message(chat_id, text)
23
+ BOT.api.send_message(chat_id: chat_id, text: text, parse_mode: 'Markdown')
24
+ end
25
+ end
26
+ end
@@ -0,0 +1,7 @@
1
+ module Commands
2
+ class Missing < Base
3
+ def invoke
4
+ say 'Неизвестная команда.'
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,7 @@
1
+ module Commands
2
+ class Start < Base
3
+ def invoke
4
+ say 'Добро пожаловать.'
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,7 @@
1
+ module Commands
2
+ class Stop < Base
3
+ def invoke
4
+ say 'До свидания.'
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,6 @@
1
+ module Commands
2
+ autoload :Base, 'commands/base'
3
+ autoload :Start, 'commands/start'
4
+ autoload :Stop, 'commands/stop'
5
+ autoload :Missing, 'commands/missing'
6
+ end
@@ -0,0 +1,28 @@
1
+ module Keyboards
2
+ class Base
3
+ attr_reader :keyboard, :user
4
+
5
+ def self.show(*args)
6
+ new(*args).show
7
+ end
8
+
9
+ def initialize(user)
10
+ @keyboard = define_keyboard
11
+ @user = user
12
+ end
13
+
14
+ def show
15
+ BOT.api.send_message(chat_id: user.telegram_id, text: text, reply_markup: keyboard)
16
+ end
17
+
18
+ private
19
+
20
+ def define_keyboard
21
+ raise NotImplementedError
22
+ end
23
+
24
+ def text
25
+ raise NotImplementedError
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,3 @@
1
+ module Keyboards
2
+ autoload :Base, 'keyboards/base'
3
+ end
@@ -0,0 +1,5 @@
1
+ module Models
2
+ class Base < Sequel::Model
3
+ plugin :timestamps
4
+ end
5
+ end
@@ -0,0 +1,5 @@
1
+ module Models
2
+ class User < Base
3
+ set_dataset :users
4
+ end
5
+ end
@@ -0,0 +1,4 @@
1
+ module Models
2
+ autoload :Base, 'models/base'
3
+ autoload :User, 'models/user'
4
+ end
@@ -0,0 +1,6 @@
1
+ module Workers
2
+ class Base
3
+ include Sidekiq::Worker
4
+ sidekiq_options retry: false
5
+ end
6
+ end
@@ -0,0 +1,41 @@
1
+ module Workers
2
+ class Processor < Base
3
+ HANDLERS = {
4
+ '\A\/start(\s.*|\z)' => Commands::Start,
5
+ '\A\/stop\z' => Commands::Stop
6
+ }.freeze
7
+
8
+ def perform(message_dump)
9
+ process_message YAML.load(message_dump)
10
+ end
11
+
12
+ private
13
+
14
+ def process_message(message)
15
+ user = user_by_message(message)
16
+ command_klass(message).invoke(message, user)
17
+ end
18
+
19
+ def user_by_message(message)
20
+ from = message.from
21
+ user = Models::User.find_or_initialize_by(telegram_id: from.id)
22
+ if user.new_record?
23
+ user.update(first_name: from.first_name, last_name: from.last_name, username: from.username)
24
+ end
25
+ user
26
+ end
27
+
28
+ def command_klass(message)
29
+ command_klass_by_text(message.text) || Commands::Missing
30
+ end
31
+
32
+ def command_klass_by_text(text)
33
+ key = HANDLERS.keys.find { |regex| /#{regex}/ =~ prepare_text(text) }
34
+ HANDLERS[key]
35
+ end
36
+
37
+ def prepare_text(text)
38
+ text.strip
39
+ end
40
+ end
41
+ end
@@ -0,0 +1,4 @@
1
+ module Workers
2
+ autoload :Base, 'workers/base'
3
+ autoload :Processor, 'workers/processor'
4
+ end
@@ -0,0 +1,9 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require File.expand_path('../../config/boot', __FILE__)
4
+
5
+ BOT.run do |bot|
6
+ bot.listen do |message|
7
+ Workers::Processor.perform_async YAML.dump(message)
8
+ end
9
+ end
@@ -0,0 +1,14 @@
1
+ require 'bundler/setup'
2
+
3
+ Dir.glob(File.expand_path('../../config/initializers/*.rb', __FILE__)).sort.each do |f|
4
+ require f
5
+ end
6
+
7
+ $LOAD_PATH.unshift ROOT.join('app').to_s
8
+
9
+ require 'commands'
10
+ <%- unless options.skip_keyboards? -%>
11
+ require 'keyboards'
12
+ <%- end -%>
13
+ require 'models'
14
+ require 'workers'
@@ -0,0 +1,3 @@
1
+ require 'dotenv'
2
+
3
+ Dotenv.load
@@ -0,0 +1 @@
1
+ ROOT = Pathname.new(File.expand_path('../../../', __FILE__))
@@ -0,0 +1,3 @@
1
+ require 'telegram/bot'
2
+
3
+ BOT = Telegram::Bot::Client.new(ENV['BOT_TOKEN'], logger: Logger.new('log/bot.log'))
@@ -0,0 +1,6 @@
1
+ module Telegrator
2
+ module Generators
3
+ autoload :Base, 'telegrator/generators/base'
4
+ autoload :Bot, 'telegrator/generators/bot/generator'
5
+ end
6
+ end
@@ -0,0 +1,3 @@
1
+ module Telegrator
2
+ VERSION = '0.2.0.rc1'
3
+ end
data/lib/telegrator.rb ADDED
@@ -0,0 +1,5 @@
1
+ require 'telegrator/generators'
2
+ require 'telegrator/version'
3
+
4
+ module Telegrator
5
+ end
@@ -0,0 +1,29 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'telegrator/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = 'telegrator'
8
+ spec.version = Telegrator::VERSION
9
+ spec.authors = ['Aleksey Ivanov']
10
+ spec.email = ['ialexxei@gmail.com']
11
+
12
+ spec.summary = 'A generator to set up new Telegram bot easily'
13
+ spec.description = spec.summary
14
+ spec.homepage = 'https://github.com/ivanovaleksey/telegrator'
15
+ spec.license = 'MIT'
16
+
17
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
18
+ f.match(%r{^(test|spec|features)/})
19
+ end
20
+ spec.bindir = 'exe'
21
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
22
+ spec.require_paths = ['lib']
23
+
24
+ spec.add_runtime_dependency 'thor', '~> 0.19.1'
25
+
26
+ spec.add_development_dependency 'bundler', '~> 1.14'
27
+ spec.add_development_dependency 'rake', '~> 12.0'
28
+ spec.add_development_dependency 'minitest', '~> 5.0'
29
+ end
metadata ADDED
@@ -0,0 +1,137 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: telegrator
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.0.rc1
5
+ platform: ruby
6
+ authors:
7
+ - Aleksey Ivanov
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2017-05-01 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: thor
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 0.19.1
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 0.19.1
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.14'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.14'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '12.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '12.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: minitest
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '5.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '5.0'
69
+ description: A generator to set up new Telegram bot easily
70
+ email:
71
+ - ialexxei@gmail.com
72
+ executables:
73
+ - telegrator
74
+ extensions: []
75
+ extra_rdoc_files: []
76
+ files:
77
+ - ".gitignore"
78
+ - ".travis.yml"
79
+ - Gemfile
80
+ - LICENSE.txt
81
+ - README.md
82
+ - Rakefile
83
+ - bin/console
84
+ - bin/setup
85
+ - exe/telegrator
86
+ - lib/telegrator.rb
87
+ - lib/telegrator/cli.rb
88
+ - lib/telegrator/generators.rb
89
+ - lib/telegrator/generators/base.rb
90
+ - lib/telegrator/generators/bot/generator.rb
91
+ - lib/telegrator/generators/bot/templates/Gemfile.tt
92
+ - lib/telegrator/generators/bot/templates/Rakefile.tt
93
+ - lib/telegrator/generators/bot/templates/app/commands.rb.tt
94
+ - lib/telegrator/generators/bot/templates/app/commands/base.rb.tt
95
+ - lib/telegrator/generators/bot/templates/app/commands/missing.rb.tt
96
+ - lib/telegrator/generators/bot/templates/app/commands/start.rb.tt
97
+ - lib/telegrator/generators/bot/templates/app/commands/stop.rb.tt
98
+ - lib/telegrator/generators/bot/templates/app/keyboards.rb.tt
99
+ - lib/telegrator/generators/bot/templates/app/keyboards/base.rb.tt
100
+ - lib/telegrator/generators/bot/templates/app/models.rb.tt
101
+ - lib/telegrator/generators/bot/templates/app/models/base.rb.tt
102
+ - lib/telegrator/generators/bot/templates/app/models/user.rb.tt
103
+ - lib/telegrator/generators/bot/templates/app/workers.rb.tt
104
+ - lib/telegrator/generators/bot/templates/app/workers/base.rb.tt
105
+ - lib/telegrator/generators/bot/templates/app/workers/processor.rb.tt
106
+ - lib/telegrator/generators/bot/templates/bin/bot.tt
107
+ - lib/telegrator/generators/bot/templates/config/boot.rb.tt
108
+ - lib/telegrator/generators/bot/templates/config/initializers/01_env.rb.tt
109
+ - lib/telegrator/generators/bot/templates/config/initializers/02_root.rb.tt
110
+ - lib/telegrator/generators/bot/templates/config/initializers/bot.rb.tt
111
+ - lib/telegrator/version.rb
112
+ - telegrator.gemspec
113
+ homepage: https://github.com/ivanovaleksey/telegrator
114
+ licenses:
115
+ - MIT
116
+ metadata: {}
117
+ post_install_message:
118
+ rdoc_options: []
119
+ require_paths:
120
+ - lib
121
+ required_ruby_version: !ruby/object:Gem::Requirement
122
+ requirements:
123
+ - - ">="
124
+ - !ruby/object:Gem::Version
125
+ version: '0'
126
+ required_rubygems_version: !ruby/object:Gem::Requirement
127
+ requirements:
128
+ - - ">"
129
+ - !ruby/object:Gem::Version
130
+ version: 1.3.1
131
+ requirements: []
132
+ rubyforge_project:
133
+ rubygems_version: 2.6.11
134
+ signing_key:
135
+ specification_version: 4
136
+ summary: A generator to set up new Telegram bot easily
137
+ test_files: []