jammit 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
data/jammit.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'jammit'
3
- s.version = '0.2.1' # Keep version in sync with jammit.rb
3
+ s.version = '0.2.2' # Keep version in sync with jammit.rb
4
4
  s.date = '2009-11-18'
5
5
 
6
6
  s.homepage = "http://documentcloud.github.com/jammit/"
@@ -41,7 +41,7 @@ module Jammit
41
41
  def initialize
42
42
  @css_compressor = YUI::CssCompressor.new
43
43
  flavor = Jammit.javascript_compressor
44
- js_options = DEFAULT_OPTIONS[flavor].merge(Jammit.compressor_options)
44
+ js_options = (DEFAULT_OPTIONS[flavor] || {}).merge(Jammit.compressor_options)
45
45
  @js_compressor = flavor == :closure ?
46
46
  Closure::Compiler.new(js_options) :
47
47
  YUI::JavaScriptCompressor.new(js_options)
data/lib/jammit.rb CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.push File.expand_path(File.dirname(__FILE__))
4
4
  # to all of the configuration options.
5
5
  module Jammit
6
6
 
7
- VERSION = "0.2.1"
7
+ VERSION = "0.2.2"
8
8
 
9
9
  ROOT = File.expand_path(File.dirname(__FILE__) + '/..')
10
10
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jammit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Ashkenas