func_bot 0.1.4 → 0.1.5

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: b6f1906f61868b8d3ceaad0d239f927d3b962d36ffc811c474f49171e53b2925
4
- data.tar.gz: 06e384d423073541824b800a279554058b825d62d39fbaa41f26db905991569f
3
+ metadata.gz: dec89531581e54e3e4c5fb9db21095ab99919347c0f34193eb58c4db0295f558
4
+ data.tar.gz: 51dca7a8ba3d57e22f8873ba16afba9b22671cc50a3f065d561d3b493a3fba1b
5
5
  SHA512:
6
- metadata.gz: ea4c9ab74ea6cdbaff2b76e51ae2bd700136b7a1197a1538c3fd4822c63447c40a72d18366a7ace0e33845be2c085bc883c12ec083f0c46ab7265b5f7bc890c6
7
- data.tar.gz: 823923bfc4fca76b567f29de390d6580ada38ac2171f4600fb04bededfde893978ba9331d3e3761e100a99cc52836f70cfff271ba10b4d3e8db4ba8991e9a11c
6
+ metadata.gz: 3f9395775b04bbf6794c30147c7112589611b7c887c2d708819f073f3ff89e674fbfab8bdd5fb318fdef9a0cbafbb474c83f99d2402017b64abc150d3f3c9252
7
+ data.tar.gz: 2efacabefb1a867d761de2ee0614a5be5c7c66b834ddb36c20a41363b006987d6662cd351aa201400597942486492119312550d04859525166f085e3c70cb7c3
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module FuncBot
4
- VERSION = "0.1.4"
4
+ VERSION = "0.1.5"
5
5
  end
@@ -5,6 +5,7 @@ module FuncBot
5
5
  def generate_function
6
6
  template "function.rb", "app/lib/func_bot/functions/#{file_name}_function.rb"
7
7
  template "function_spec.rb", "spec/models/func_bot/functions/#{file_name}_function_spec.rb" if defined?(RSpec)
8
+ puts "Update the function list file at lib/func_bot/functions/list.yml with the details of your new function."
8
9
  end
9
10
 
10
11
  def append_to_functions_list
@@ -7,7 +7,6 @@ module FuncBot
7
7
  module Functions
8
8
  class WeatherFunction < BaseFunction
9
9
  def execute
10
- bot.include_functions = false
11
10
  weather_info = {
12
11
  location: parsed_response["location"],
13
12
  temperature: 98,
@@ -3,8 +3,8 @@ namespace :func_bot do
3
3
  task install: :environment do
4
4
  command = "rails g func_bot:install setup"
5
5
  system(command)
6
- puts "Your setup was successful!"
7
- puts "You can now run `rails g func_bot:function <function_name>` to generate a new function."
8
- puts "Please update the function list file at lib/func_bot/functions/list.yml with the functions you want to include."
6
+ puts "FuncBot successfully installed."
7
+ puts "♪┏(°.°)┛┗(°.°)┓┗(°.°)┛┏(°.°)┓ "
8
+ puts "Run `rails g func_bot:function <function_name>` to generate a new function."
9
9
  end
10
10
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: func_bot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - lbp