action_bot 0.1.17 → 0.1.18

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6cd02a083032cf1a30af35a8ce7bcce03388aa458c3a5d287e64da7180164806
4
- data.tar.gz: c06bf08cf2a2309b25bfc447f61e452e22112c02a9d425ddb470d2e5458e444d
3
+ metadata.gz: f267e3093741e98e9812f5a8e43871e3fe03a0634d58972cb86dd5cc3834230b
4
+ data.tar.gz: 01767005c9771cf1395453ec27ae3f7cd6525a8db0a5413668bf3322e717de97
5
5
  SHA512:
6
- metadata.gz: 58dbd5b967385bf66d0b4d38e28f14af9c82e0132ddd1460bccbe59375f7306581d2eae577804d82db418638c5a1115bb3cd7bc870270f53de7bd96e8b6b226c
7
- data.tar.gz: f726602ffa3fc327c238725bf93cc46d2bda35f9ba23803afec5b5477b1a0ee4c7453ee7764d53d4dc8752257540a4424b8ee0c70770f96264323f538db70dd6
6
+ metadata.gz: 8b403d696bc7d517a88137f65ebde2c11207eadc0b38296a1b35b3f4629a87134751806c75e2421f1df6df21b26c4399fef5f40b030e4f5cfbef5d6d7d273973
7
+ data.tar.gz: fc9f146bbec3739c4c7f7967a797d50722e45acefca89dc73e6763f9ccf23ceaae41b86e5f0224a071190e32eb3f5d8fd04316f1af2ee0b7354214ed11429872
@@ -12,7 +12,7 @@ class AppConfigurator
12
12
  def self.configure_db
13
13
  DBConfigurator.configure do |configuration|
14
14
  configuration.db_url = config.db_url
15
- end
15
+ end if config.db_url
16
16
  end
17
17
 
18
18
  def self.configure_i18n
@@ -17,7 +17,7 @@ class ExampleLongPollingBot < ActionBot::Base
17
17
  end
18
18
 
19
19
  def run
20
- action hello: :world, params: {
20
+ on @message == 'hello_world', hello: :world, params: {
21
21
  tg_chat_id: tg_chat_id
22
22
  }
23
23
  end
@@ -7,11 +7,11 @@ AppConfigurator.configure do |config|
7
7
  end
8
8
 
9
9
  # Configure database
10
- config.db_url = begin
11
- YAML::load(IO.read('config/secrets/database.yml'))["database_url"]
12
- rescue Errno::ENOENT
13
- ENV["DATABASE_URL"]
14
- end
10
+ # config.db_url = begin
11
+ # YAML::load(IO.read('config/secrets/database.yml'))["database_url"]
12
+ # rescue Errno::ENOENT
13
+ # ENV["DATABASE_URL"]
14
+ # end
15
15
 
16
16
  # Configure i18n
17
17
  config.i18n_locale = :en
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: action_bot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.17
4
+ version: 0.1.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sergey Barseek