lita-dpextend 0.1.5 → 0.1.6

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
  SHA1:
3
- metadata.gz: 8f72452992e6f1ec4b70d01641a47d4393a94a8f
4
- data.tar.gz: b74d0a2bcc17a973d26127cff02433b0ca886e07
3
+ metadata.gz: c5804a722868401d21b93b971beb231b354df839
4
+ data.tar.gz: f66c7c1ccd603fae087bb83e7038f3176e6a7a70
5
5
  SHA512:
6
- metadata.gz: 3da0586299b6b9484f59e05c81095baf8ac30ce3e05db69fdb1bb2ebae32cd921db9aaa715532d5512f73098fcbb633d368e5ea071a270b06d2f07e39dfc52d6
7
- data.tar.gz: fe9dfa26ef5b7cc74e15b5456dbfa71655048fefbab949548d8b4ae4c65c83c2262fddcaea72d7c095bc22c675cb2b890195b5d1d415e88cd79ce0d7d513d004
6
+ metadata.gz: 79123745ba7270eb10e60563fc6259b6926ef342c67130a287b7f43ba67f346296e6d706c358580f8a20ba9afe7de79279e7d6f04f799aa1e1276b1303ff8934
7
+ data.tar.gz: bd18442250308b85c34ebab37e99735dc3dd7ece931725034661619b606ec68370b6cbe8aedfe21612daceff6c89e1b52e7b8538004e643f9bc91119a1ebce3a
@@ -2,6 +2,7 @@ module Xtend
2
2
  module ApiAiHandler
3
3
  def should_reply?(message)
4
4
  # don't reply if user don't be authenticated (solve duplicated answers problem)
5
+ puts "API AI AUTH? #{message&.source&.user&.metadata['cpf'] || 'NOPS'}"
5
6
  return unless message&.source&.user&.metadata['cpf']
6
7
  true
7
8
  end
@@ -2,7 +2,7 @@ module Xtend
2
2
  module LitaWizard
3
3
  # rubocop:disable Style/CyclomaticComplexity
4
4
  def handle_message
5
- if message.body =~ /(^cancelar$|^abortar$|^não$|^nao$|^pare$|^para$)/
5
+ if message.body =~ /(^\/cancelar$|^cancelar$|^abortar$|^não$|^nao$|^pare$|^para$)/
6
6
  send_message abort_message
7
7
  abort_wizard
8
8
  destroy
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'lita-dpextend'
3
- spec.version = '0.1.5'
3
+ spec.version = '0.1.6'
4
4
  spec.authors = ['Luiz Carvalho']
5
5
  spec.email = ['maximusmano@gmail.com']
6
6
  spec.description = 'Override methods to using best of Lita'
@@ -4,4 +4,5 @@ require 'pry'
4
4
 
5
5
  # A compatibility mode is provided for older plugins upgrading from Lita 3. Since this plugin
6
6
  # was generated with Lita 4, the compatibility mode should be left disabled.
7
+ Lita.config.redis[:host] = ENV['REDIS_HOST'] || '127.0.0.1'
7
8
  Lita.version_3_compatibility_mode = false
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lita-dpextend
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luiz Carvalho
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-06-19 00:00:00.000000000 Z
11
+ date: 2017-07-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lita