haml-edge 2.3.196 → 2.3.197

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/EDGE_GEM_VERSION +1 -1
  2. data/VERSION +1 -1
  3. data/lib/haml/exec.rb +6 -0
  4. metadata +2 -2
data/EDGE_GEM_VERSION CHANGED
@@ -1 +1 @@
1
- 2.3.196
1
+ 2.3.197
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.3.196
1
+ 2.3.197
data/lib/haml/exec.rb CHANGED
@@ -591,6 +591,9 @@ END
591
591
  'By default, this is inferred from the input filename.',
592
592
  'If there is none, defaults to css.') do |name|
593
593
  @options[:from] = name.downcase.to_sym
594
+ unless [:css, :scss, :sass].include?(@options[:from])
595
+ raise "Unknown format for sass-convert --from: #{name}"
596
+ end
594
597
  end
595
598
 
596
599
  opts.on('-T', '--to FORMAT',
@@ -598,6 +601,9 @@ END
598
601
  'By default, this is inferred from the output filename.',
599
602
  'If there is none, defaults to sass.') do |name|
600
603
  @options[:to] = name.downcase.to_sym
604
+ unless [:scss, :sass].include?(@options[:to])
605
+ raise "Unknown format for sass-convert --to: #{name}"
606
+ end
601
607
  end
602
608
 
603
609
  opts.on('-R', '--recursive',
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: haml-edge
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.196
4
+ version: 2.3.197
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Weizenbaum
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2010-04-10 00:00:00 -04:00
13
+ date: 2010-04-11 00:00:00 -04:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency