func_bot 0.1.4 → 0.1.5
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.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: dec89531581e54e3e4c5fb9db21095ab99919347c0f34193eb58c4db0295f558
|
|
4
|
+
data.tar.gz: 51dca7a8ba3d57e22f8873ba16afba9b22671cc50a3f065d561d3b493a3fba1b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3f9395775b04bbf6794c30147c7112589611b7c887c2d708819f073f3ff89e674fbfab8bdd5fb318fdef9a0cbafbb474c83f99d2402017b64abc150d3f3c9252
|
|
7
|
+
data.tar.gz: 2efacabefb1a867d761de2ee0614a5be5c7c66b834ddb36c20a41363b006987d6662cd351aa201400597942486492119312550d04859525166f085e3c70cb7c3
|
data/lib/func_bot/version.rb
CHANGED
|
@@ -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
|
|
@@ -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 "
|
|
7
|
-
puts "
|
|
8
|
-
puts "
|
|
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
|