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.
Files changed (4) hide show
  1. data/History.rdoc +5 -0
  2. data/bin/mini +7 -7
  3. data/mini.gemspec +1 -1
  4. metadata +1 -1
data/History.rdoc CHANGED
@@ -1,4 +1,9 @@
1
1
 
2
+ === 0.0.9 / 2009-03-09
3
+
4
+ * Refactor #dest_for
5
+ * Fixed bug that was preventing sass to compile
6
+
2
7
  === 0.0.8 / 2009-03-09
3
8
 
4
9
  * Fixed typo in #project_url helper
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.8'
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.gsub! 'assets/', './'
41
- path.gsub! '.sass', '.css'
42
- path.gsub! '.haml', '.html'
43
- path
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
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{mini}
5
- s.version = "0.0.8"
5
+ s.version = "0.0.9"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["TJ Holowaychuk"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: visionmedia-mini
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - TJ Holowaychuk