assette 0.0.11 → 0.0.12

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.11
1
+ 0.0.12
data/assette.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{assette}
8
- s.version = "0.0.11"
8
+ s.version = "0.0.12"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = [%q{Tal Atlas}]
@@ -17,7 +17,7 @@ module Assette
17
17
  class Config
18
18
  MULTIPLES = %w{file_path asset_host}.freeze
19
19
  SINGLES = %w{asset_dir templates_path template_format cache_method
20
- template_preloader template_partial asset_version_file}.freeze
20
+ template_preloader template_partial asset_version_file uglifier}.freeze
21
21
  BLOCKS = %w{after_compile}.freeze
22
22
 
23
23
  OPTIONS = begin
@@ -39,7 +39,8 @@ module Assette
39
39
  :file_paths => %w{public},
40
40
  :templates_path => 'app/templates',
41
41
  :template_format => 'AT.t[{*path*}] = {*template*};',
42
- :after_compile => Proc.new {}
42
+ :after_compile => Proc.new {},
43
+ :uglifier => {:copyright => false, :mangle => false}
43
44
  }.freeze
44
45
 
45
46
  def initialize args = {}
@@ -32,7 +32,7 @@ module Assette
32
32
  end
33
33
 
34
34
  def processor
35
- Uglifier.compile(@str, :copyright => false)
35
+ Uglifier.compile(@str, Assette.config.uglifier)
36
36
  end
37
37
 
38
38
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: assette
3
3
  version: !ruby/object:Gem::Version
4
- hash: 9
4
+ hash: 7
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 11
10
- version: 0.0.11
9
+ - 12
10
+ version: 0.0.12
11
11
  platform: ruby
12
12
  authors:
13
13
  - Tal Atlas