Skip to content

Commit

Permalink
v0.2.3 - Add installer to app auto installers
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryccoo committed Apr 16, 2018
1 parent b8932ec commit c3673e0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions lib/witai/charyf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ class Extension < ::Charyf::Extension
require_relative 'charyf/generators/install/install_generator'
end

#
# Installers are automatically run if this gem is present during generation of new application
#
config.generators.installers << 'witai:install'

config.api_key = nil

end
Expand Down
2 changes: 1 addition & 1 deletion lib/witai/charyf/generators/install/install_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def initializer
end

def finalize
return unless behavior == :invoke
return if behavior != :invoke || options[:autorun]

say_status 'notice', "Wit installed" +
"\n\t\tDo not forget to set wit intent processor in application configuration" +
Expand Down
2 changes: 1 addition & 1 deletion lib/witai/charyf/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module WitAI
module Charyf
VERSION = "0.2.2"
VERSION = "0.2.3"
end
end

0 comments on commit c3673e0

Please sign in to comment.