ngmin-rails 0.3.8 → 0.3.8.1
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.
- checksums.yaml +4 -4
- data/README.md +18 -12
- data/lib/ngmin/rails/railtie.rb +1 -1
- data/lib/ngmin/rails/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1cd5e0bf3ec10f68f5836db26375819f04226a63
|
|
4
|
+
data.tar.gz: 832ba355efca94a0d3940639788cf07fb2cef193
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 29a7b94ba32e769ddc4e200a8bee32124570e6914b0575dbe6cba5e4124559eee83b3b7e191ca3b0ee46c197a39ca2ffc40fdca201fc02c9aa8552c40c07515d
|
|
7
|
+
data.tar.gz: e28f548110296eeb88e86cf0f9e8db063b643aeaaf4a8b3088cb079fc0f24dfb9f03112a1e9a0411c4d75892bd1d928222d927dbebe8cfb966cfc9894057eeea
|
data/README.md
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
ngmin-rails
|
|
2
|
+
===========
|
|
2
3
|
|
|
3
4
|
Use <https://github.com/btford/ngmin> in the Rails asset pipeline.
|
|
4
5
|
|
|
5
|
-
|
|
6
|
+
Installation
|
|
7
|
+
------------
|
|
6
8
|
|
|
7
9
|
Add this line to your application's Gemfile:
|
|
8
10
|
|
|
@@ -12,18 +14,22 @@ And then execute:
|
|
|
12
14
|
|
|
13
15
|
$ bundle
|
|
14
16
|
|
|
15
|
-
|
|
17
|
+
That's it! ngmin-rails integrates seamlessly into the Rails asset pipeline; your JavaScript or CoffeeScript assets will automatically be run through the ngmin pre-minifier.
|
|
16
18
|
|
|
17
|
-
|
|
19
|
+
Versioning
|
|
20
|
+
----------
|
|
18
21
|
|
|
19
|
-
|
|
22
|
+
The ngmin-rails version number mirrors the version number for the version of ngmin that is bundled with it.
|
|
20
23
|
|
|
21
|
-
|
|
24
|
+
Hacking
|
|
25
|
+
-------
|
|
22
26
|
|
|
23
|
-
|
|
27
|
+
### Upgrading ngmin
|
|
24
28
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
29
|
+
The actual ngmin project is bundled into this gem via [Browserify](https://github.com/substack/node-browserify). You can update to the latest version of ngmin via Rake:
|
|
30
|
+
|
|
31
|
+
rake ngmin:build
|
|
32
|
+
|
|
33
|
+
### Test Application
|
|
34
|
+
|
|
35
|
+
There is a Rails 3 application bundled in `example/` that you can use to test the asset pipeline integration. Don't forget to remove `tmp/cache/assets` after upgrading to the latest version of ngmin.
|
data/lib/ngmin/rails/railtie.rb
CHANGED
|
@@ -3,7 +3,7 @@ require 'ngmin/processor'
|
|
|
3
3
|
module Ngmin
|
|
4
4
|
module Rails
|
|
5
5
|
class Railtie < ::Rails::Railtie
|
|
6
|
-
initializer "ngmin-rails.add_ngmin_postprocessor" do |app|
|
|
6
|
+
initializer "ngmin-rails.add_ngmin_postprocessor", :group => :all do |app|
|
|
7
7
|
app.assets.register_postprocessor 'application/javascript', Ngmin::Processor
|
|
8
8
|
end
|
|
9
9
|
end
|
data/lib/ngmin/rails/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ngmin-rails
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.8
|
|
4
|
+
version: 0.3.8.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jason Morrison
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2013-
|
|
12
|
+
date: 2013-06-03 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rails
|