sprockets-derailleur 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Sprockets::Derailleur
2
2
 
3
- TODO: Write a gem description
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
- TODO: Write usage instructions here
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
 
@@ -1,5 +1,5 @@
1
1
  module Sprockets
2
2
  module Derailleur
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
@@ -16,4 +16,6 @@ Gem::Specification.new do |gem|
16
16
  gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
17
17
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
18
18
  gem.require_paths = ["lib"]
19
+
20
+ gem.add_dependency 'sprockets', "~>2.4.0"
19
21
  end
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: 29
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
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