fluby 0.5.4 → 0.5.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.
- data/lib/fluby.rb +2 -2
- data/lib/templates/Rakefile +10 -1
- metadata +1 -1
data/lib/fluby.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
module Fluby
|
2
2
|
NAME = 'fluby'
|
3
|
-
VERSION = '0.5.
|
3
|
+
VERSION = '0.5.5'
|
4
4
|
|
5
5
|
def self.create_project(name)
|
6
6
|
require "fileutils"
|
@@ -18,7 +18,7 @@ module Fluby
|
|
18
18
|
FileUtils.mkdir [@project_folder,"#{@project_folder}/deploy","#{@project_folder}/assets"]
|
19
19
|
|
20
20
|
# Make files
|
21
|
-
["Rakefile","README"].each do |file|
|
21
|
+
["Rakefile","README"].each do |file|
|
22
22
|
render_template file
|
23
23
|
end
|
24
24
|
|
data/lib/templates/Rakefile
CHANGED
@@ -47,6 +47,7 @@ task :compile do
|
|
47
47
|
end
|
48
48
|
end
|
49
49
|
|
50
|
+
<% if RUBY_PLATFORM =~ /darwin/ %>
|
50
51
|
task :notify do
|
51
52
|
msg = "Finished compiling in #{@end - @start}s."
|
52
53
|
if @nodebug
|
@@ -54,6 +55,7 @@ task :notify do
|
|
54
55
|
end
|
55
56
|
%x(growlnotify --name Rake -m '#{msg}' 'Rake')
|
56
57
|
end
|
58
|
+
<% end %>
|
57
59
|
|
58
60
|
task :nodebug do
|
59
61
|
@nodebug = true
|
@@ -64,7 +66,14 @@ task :test => [:compile] do
|
|
64
66
|
%x(open deploy/index.html)
|
65
67
|
end
|
66
68
|
|
69
|
+
<% if RUBY_PLATFORM =~ /darwin/ %>
|
67
70
|
desc "Build a release version of <%= @project_name %> (with trace() disabled)"
|
68
71
|
task :release => [:nodebug,:compile,:notify]
|
69
72
|
|
70
|
-
task :default => [:compile,:notify,:test]
|
73
|
+
task :default => [:compile,:notify,:test]
|
74
|
+
<% else %>
|
75
|
+
desc "Build a release version of <%= @project_name %> (with trace() disabled)"
|
76
|
+
task :release => [:nodebug,:compile]
|
77
|
+
|
78
|
+
task :default => [:compile,:test]
|
79
|
+
<% end %>
|