help-anywhere 0.1.4b → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/help-anywhere/version.rb +1 -1
- data/lib/tasks/help-anywhere_tasks.rake +5 -4
- data/test/dummy/log/test.log +0 -3
- metadata +8 -5
@@ -1,4 +1,5 @@
|
|
1
1
|
#coding: utf-8
|
2
|
+
require 'colorize'
|
2
3
|
|
3
4
|
namespace :help_anywhere do
|
4
5
|
desc "Generate everything you need to run help-anywhere plugin."
|
@@ -9,7 +10,7 @@ namespace :help_anywhere do
|
|
9
10
|
filepath = File.join Dir.pwd, relpath
|
10
11
|
|
11
12
|
if File.exists?(filepath)
|
12
|
-
puts "[X] Skipping `#{relpath}`: File already exists"
|
13
|
+
puts "[X] ".white + "Skipping `#{relpath}`: File already exists".yellow
|
13
14
|
else
|
14
15
|
File.write filepath,
|
15
16
|
<<-RUBY
|
@@ -28,7 +29,7 @@ HelpAnywhere.configure do |config|
|
|
28
29
|
# routes.match '/admin/?/*/?...', 'admin_help_for_resource_$1_action_$2'
|
29
30
|
end
|
30
31
|
|
31
|
-
# Set here the method which is called to
|
32
|
+
# Set here the method which is called to allow or disallow edition mode
|
32
33
|
# You can create this method in your ApplicationController class.
|
33
34
|
# Default is a method which return always true: every one can edit help.
|
34
35
|
#
|
@@ -36,9 +37,9 @@ HelpAnywhere.configure do |config|
|
|
36
37
|
end
|
37
38
|
RUBY
|
38
39
|
|
39
|
-
puts "[»] create `#{relpath}`"
|
40
|
+
puts "[»]".white + " create `#{relpath}`".green
|
40
41
|
end
|
41
42
|
|
42
|
-
puts "[»] Done! please add `require help_anywhere` in both application.js and application.css, run migrations, enjoy!"
|
43
|
+
puts "[»]".white + "Done! please add `require help_anywhere` in both application.js and application.css, run migrations, enjoy!".green
|
43
44
|
end
|
44
45
|
end
|
data/test/dummy/log/test.log
CHANGED
@@ -6,6 +6,3 @@ Connecting to database specified by database.yml
|
|
6
6
|
Connecting to database specified by database.yml
|
7
7
|
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
8
8
|
[1m[35m (0.1ms)[0m rollback transaction
|
9
|
-
Connecting to database specified by database.yml
|
10
|
-
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
11
|
-
[1m[35m (0.1ms)[0m rollback transaction
|
metadata
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: help-anywhere
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
5
|
-
prerelease:
|
4
|
+
version: 0.1.4
|
5
|
+
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Yacine Petitprez
|
@@ -147,13 +147,16 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
147
147
|
version: '0'
|
148
148
|
segments:
|
149
149
|
- 0
|
150
|
-
hash:
|
150
|
+
hash: 590993615340362406
|
151
151
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
152
152
|
none: false
|
153
153
|
requirements:
|
154
|
-
- - ! '
|
154
|
+
- - ! '>='
|
155
155
|
- !ruby/object:Gem::Version
|
156
|
-
version:
|
156
|
+
version: '0'
|
157
|
+
segments:
|
158
|
+
- 0
|
159
|
+
hash: 590993615340362406
|
157
160
|
requirements: []
|
158
161
|
rubyforge_project:
|
159
162
|
rubygems_version: 1.8.23
|