sprockets-derailleur 0.0.1 → 0.0.2
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.
- data/README.md +13 -2
- data/lib/sprockets-derailleur/version.rb +1 -1
- data/sprockets-derailleur.gemspec +2 -0
- metadata +20 -5
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Sprockets::Derailleur
|
2
2
|
|
3
|
-
|
3
|
+
Speed up Manifest::Compile by forking processes
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
@@ -16,9 +16,20 @@ Or install it yourself as:
|
|
16
16
|
|
17
17
|
$ gem install sprockets-derailleur
|
18
18
|
|
19
|
+
Require `sprockets-derailleur` in environment file:
|
20
|
+
|
21
|
+
require 'sprockets-derailleur'
|
22
|
+
|
19
23
|
## Usage
|
20
24
|
|
21
|
-
|
25
|
+
Determine how many workers you want to use first. On OSX you can determine the number of physical CPUs this way:
|
26
|
+
|
27
|
+
processes = Integer `sysctl -n hw.physicalcpu 2>/dev/null` rescue 1
|
28
|
+
|
29
|
+
Then initialize the manifest with the workers you just determined:
|
30
|
+
|
31
|
+
manifest = Sprockets::Manifest.new(Application::Sprockets, 'public/assets', processes)
|
32
|
+
|
22
33
|
|
23
34
|
## Contributing
|
24
35
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sprockets-derailleur
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 2
|
10
|
+
version: 0.0.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Steel Fu
|
@@ -16,8 +16,23 @@ bindir: bin
|
|
16
16
|
cert_chain: []
|
17
17
|
|
18
18
|
date: 2013-01-03 00:00:00 Z
|
19
|
-
dependencies:
|
20
|
-
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
21
|
+
name: sprockets
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
+
none: false
|
25
|
+
requirements:
|
26
|
+
- - ~>
|
27
|
+
- !ruby/object:Gem::Version
|
28
|
+
hash: 31
|
29
|
+
segments:
|
30
|
+
- 2
|
31
|
+
- 4
|
32
|
+
- 0
|
33
|
+
version: 2.4.0
|
34
|
+
type: :runtime
|
35
|
+
version_requirements: *id001
|
21
36
|
description: Speed up sprockets compiling by forking processes
|
22
37
|
email:
|
23
38
|
- steelfu@gmail.com
|