visionmedia-mini 0.0.8 → 0.0.9
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/History.rdoc +5 -0
- data/bin/mini +7 -7
- data/mini.gemspec +1 -1
- metadata +1 -1
data/History.rdoc
CHANGED
data/bin/mini
CHANGED
@@ -6,7 +6,7 @@ require 'commander'
|
|
6
6
|
require 'bind'
|
7
7
|
|
8
8
|
program :name, 'mini'
|
9
|
-
program :version, '0.0.
|
9
|
+
program :version, '0.0.9'
|
10
10
|
program :description, 'Github project page framework'
|
11
11
|
|
12
12
|
def current_branch
|
@@ -20,10 +20,10 @@ end
|
|
20
20
|
class CompileHaml < Bind::Actions::RefreshBrowsers
|
21
21
|
def call file
|
22
22
|
options = []
|
23
|
-
options << '-r assets/helpers' if File.exists? 'assets/helpers.rb'
|
24
23
|
type = sass?(file) ? :sass : :haml
|
24
|
+
options << '-r assets/helpers' if File.exists? 'assets/helpers.rb' and type != :sass
|
25
25
|
dest = dest_for file.path
|
26
|
-
FileUtils.mkdir_p File.dirname(dest) unless File.directory? File.dirname(dest)
|
26
|
+
FileUtils.mkdir_p File.dirname(dest) unless File.directory? File.dirname(dest)
|
27
27
|
`#{type} #{file.path} #{dest} #{ options.join(' ') }`
|
28
28
|
super
|
29
29
|
end
|
@@ -37,10 +37,10 @@ class CompileHaml < Bind::Actions::RefreshBrowsers
|
|
37
37
|
end
|
38
38
|
|
39
39
|
def dest_for path
|
40
|
-
path.
|
41
|
-
|
42
|
-
|
43
|
-
|
40
|
+
path.
|
41
|
+
gsub('assets/', './').
|
42
|
+
gsub('.sass', '.css').
|
43
|
+
gsub('.haml', '.html')
|
44
44
|
end
|
45
45
|
end
|
46
46
|
|
data/mini.gemspec
CHANGED