hamler 0.1.2 → 0.1.3

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 (3) hide show
  1. data/lib/hamler.rb +4 -2
  2. data/lib/hamler/version.rb +1 -1
  3. metadata +2 -2
data/lib/hamler.rb CHANGED
@@ -42,6 +42,8 @@ module Hamler
42
42
  ::Sass::Engine.new( source, :syntax => :scss, :quiet => true).render
43
43
  when '.coffee'
44
44
  ::CoffeeScript.compile source
45
+ else
46
+ source
45
47
  end
46
48
  template @@template, new_name
47
49
  end
@@ -85,13 +87,13 @@ module Hamler
85
87
  when '.coffee'
86
88
  '.js'
87
89
  else
88
- raise "do not what to do with #{old_ext}"
90
+ old_name.extname
89
91
  end
90
92
  end
91
93
 
92
94
  def root_task
93
95
  Pathname.new( source_root ).find \
94
- {|f| handle f }
96
+ {|f| handle f if f.file? }
95
97
  end
96
98
 
97
99
  end
@@ -1,3 +1,3 @@
1
1
  module Hamler
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hamler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-27 00:00:00.000000000 Z
12
+ date: 2013-03-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: thor