guard-sprockets 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 29e994249a106a797aa8d40fbfff3c1cf4288c23
4
- data.tar.gz: b328c9901b2ac758aef46c226f3a5314ffe9ba8c
3
+ metadata.gz: f7c20c40f1789c7833e27d4f5d3c93156d7b7ba1
4
+ data.tar.gz: 6f11461a65d6cb280b0eeb14dedbbb1423f3e905
5
5
  SHA512:
6
- metadata.gz: 7569a35af03ff5c73e3299a33ce9a73be7a19275f762d3a6bc0555b3d22fe503bbfd632fb9ed79b3551f10ee1d8a2959dd89b3c38006226d921e131496976daf
7
- data.tar.gz: dafc1cb3b4ccbbfb1ac5d84d8fc3629078c9499318f7a3c94f64f2d1f5c0030bd8ba36b766d53f824958eb915eb5d574d1eccdd4f0841b467c77e415fe85918d
6
+ metadata.gz: 6fb256635be6f6bd575627e5ae5a7f93b09fba17008c152c8b23797c710ad794e39973e7d14817dacca5c6e300e047de011546753ee8972c6d1ee0df937a0641
7
+ data.tar.gz: 18ba0a97ca56248b62f13b245fe0ade48619e7655a6cd99b9befd31bd668c7a6d5ae9b118c090510c59bcd594b9e2fa6ee1defd0324ccc6a59d422df79420efc
data/README.md CHANGED
@@ -55,8 +55,10 @@ Please read [Guard doc](https://github.com/guard/guard#readme) for more informat
55
55
  destination: 'public/js' # change the destination folder in which the compiled assets are saved, default: 'public/javascripts'
56
56
  asset_paths: 'app/js' # add a directory (or on array of directories) to Sprockets' environment's load path, default: ['app/assets/javascripts']
57
57
  asset_paths: ['app/js', 'lib/js'] # asset_paths can be a String or an Array
58
- minify: true # minify the JavaScript files content using Uglifier, default: false
59
- # be sure to add: "gem 'uglifier'" in your Gemfile
58
+ minify: true # minify the JavaScript files content using Uglifier, default: false
59
+ # be sure to add: "gem 'uglifier'" in your Gemfile
60
+ css_minify: true # minify the CSS files content using YUI Compressor, default: false
61
+ # be sure to add: "gem 'yui-compressor'" in your Gemfile
60
62
  keep_paths: true # retain the directory structure of an asset's path relative to the asset_path, default: false
61
63
  # this prevents assets with the same basename, but placed different folders, from overwriting each other in the destination folder
62
64
  # e.x. with this option set to true: app/js/vendor/rails/turbolinks.js.coffee -> public/js/vendor/rails/turbolinks.js
@@ -87,7 +89,7 @@ For questions please join us in our [Google group](http://groups.google.com/grou
87
89
 
88
90
  ## Maintainer
89
91
 
90
- [Rémy Coutable](https://github.com/rymai) ([@rymai](http://twitter.com/rymai), [rym.ai](http://rym.ai))
92
+ [Rémy Coutable](https://github.com/rymai)
91
93
 
92
94
  ## Contributors
93
95
 
@@ -26,12 +26,24 @@ module Guard
26
26
  begin
27
27
  require 'uglifier'
28
28
  @sprockets.js_compressor = ::Uglifier.new
29
- UI.info 'Sprockets will compress output.'
29
+ UI.info 'Sprockets will compress JavaScript output.'
30
30
  rescue LoadError => ex
31
- UI.error "minify: Uglifier cannot be loaded. No compression will be used.\nPlease include 'uglifier' in your Gemfile."
31
+ UI.error "minify: Uglifier cannot be loaded. No JavaScript compression will be used.\nPlease include 'uglifier' in your Gemfile."
32
32
  UI.debug ex.message
33
- end
33
+ end
34
34
  end
35
+
36
+ if @options.delete(:css_minify)
37
+ begin
38
+ require 'yui/compressor'
39
+ @sprockets.css_compressor = YUI::CssCompressor.new
40
+ UI.info 'Sprockets will compress CSS output.'
41
+ rescue LoadError => ex
42
+ UI.error "minify: yui-compressor cannot be loaded. No CSS compression will be used.\nPlease include 'yui-compressor' in your Gemfile."
43
+ UI.debug ex.message
44
+ end
45
+ end
46
+
35
47
  end
36
48
 
37
49
  def start
@@ -1,5 +1,5 @@
1
1
  module Guard
2
2
  module SprocketsVersion
3
- VERSION = '1.0.0'
3
+ VERSION = '1.1.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: guard-sprockets
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aaron Cruz
@@ -9,76 +9,76 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-10-05 00:00:00.000000000 Z
12
+ date: 2014-01-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: guard
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - ~>
18
+ - - "~>"
19
19
  - !ruby/object:Gem::Version
20
20
  version: '2.0'
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
- - - ~>
25
+ - - "~>"
26
26
  - !ruby/object:Gem::Version
27
27
  version: '2.0'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: execjs
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
- - - ~>
32
+ - - "~>"
33
33
  - !ruby/object:Gem::Version
34
34
  version: '2.0'
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
- - - ~>
39
+ - - "~>"
40
40
  - !ruby/object:Gem::Version
41
41
  version: '2.0'
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: sprockets
44
44
  requirement: !ruby/object:Gem::Requirement
45
45
  requirements:
46
- - - ~>
46
+ - - "~>"
47
47
  - !ruby/object:Gem::Version
48
48
  version: '2.0'
49
49
  type: :runtime
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
- - - ~>
53
+ - - "~>"
54
54
  - !ruby/object:Gem::Version
55
55
  version: '2.0'
56
56
  - !ruby/object:Gem::Dependency
57
57
  name: bundler
58
58
  requirement: !ruby/object:Gem::Requirement
59
59
  requirements:
60
- - - '>='
60
+ - - ">="
61
61
  - !ruby/object:Gem::Version
62
62
  version: '0'
63
63
  type: :development
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
66
66
  requirements:
67
- - - '>='
67
+ - - ">="
68
68
  - !ruby/object:Gem::Version
69
69
  version: '0'
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: rspec
72
72
  requirement: !ruby/object:Gem::Requirement
73
73
  requirements:
74
- - - '>='
74
+ - - ">="
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  type: :development
78
78
  prerelease: false
79
79
  version_requirements: !ruby/object:Gem::Requirement
80
80
  requirements:
81
- - - '>='
81
+ - - ">="
82
82
  - !ruby/object:Gem::Version
83
83
  version: '0'
84
84
  description: Guard::Sprockets automatically packages your JavaScript files together.
@@ -88,12 +88,12 @@ executables: []
88
88
  extensions: []
89
89
  extra_rdoc_files: []
90
90
  files:
91
- - lib/guard/sprockets/templates/Guardfile
92
- - lib/guard/sprockets/version.rb
93
- - lib/guard/sprockets.rb
94
91
  - CHANGELOG.md
95
92
  - LICENSE
96
93
  - README.md
94
+ - lib/guard/sprockets.rb
95
+ - lib/guard/sprockets/templates/Guardfile
96
+ - lib/guard/sprockets/version.rb
97
97
  homepage: https://rubygems.org/gems/guard-sprockets
98
98
  licenses:
99
99
  - MIT
@@ -104,17 +104,17 @@ require_paths:
104
104
  - lib
105
105
  required_ruby_version: !ruby/object:Gem::Requirement
106
106
  requirements:
107
- - - '>='
107
+ - - ">="
108
108
  - !ruby/object:Gem::Version
109
109
  version: 1.9.2
110
110
  required_rubygems_version: !ruby/object:Gem::Requirement
111
111
  requirements:
112
- - - '>='
112
+ - - ">="
113
113
  - !ruby/object:Gem::Version
114
114
  version: '0'
115
115
  requirements: []
116
116
  rubyforge_project:
117
- rubygems_version: 2.0.7
117
+ rubygems_version: 2.2.0
118
118
  signing_key:
119
119
  specification_version: 4
120
120
  summary: Guard gem for Sprockets