turbo-sprockets-rails3 0.2.0 → 0.2.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.
data/README.md CHANGED
@@ -22,14 +22,15 @@ This gem only supports Rails `3.2.0` or higher.
22
22
 
23
23
  ## Usage
24
24
 
25
- Just drop the gem in your `Gemfile`:
25
+ Just drop the gem in your `Gemfile`, under the `:assets` group:
26
26
 
27
27
  ```ruby
28
- gem 'turbo-sprockets-rails3'
28
+ group :assets do
29
+ ...
30
+ gem 'turbo-sprockets-rails3'
31
+ end
29
32
  ```
30
33
 
31
- Warning: Don't add this gem to the `:assets` group. It must be available in the production environment, since it overrides path helpers and alters the manifest format. This is a common cause of `**** isn't precompiled` errors in production.
32
-
33
34
  Run `bundle` to install the gem, and you're done!
34
35
 
35
36
  Test it out by running `rake assets:precompile`. When it's finished, you should see a new file at `public/assets/sources_manifest.yml`, which includes the source fingerprints for your assets.
@@ -68,7 +68,8 @@ if defined?(Sprockets::StaticCompiler)
68
68
  end
69
69
 
70
70
  if @manifest
71
- write_manifest(@digests, @source_digests)
71
+ write_manifest(@digests)
72
+ write_sources_manifest(@source_digests)
72
73
  end
73
74
 
74
75
  # Store digests in Rails config. (Important if non-digest is run after primary)
@@ -80,11 +81,8 @@ if defined?(Sprockets::StaticCompiler)
80
81
  env.logger.debug "Processed #{'non-' unless @digest}digest assets in #{elapsed_time}ms"
81
82
  end
82
83
 
83
- def write_manifest(digests, source_digests)
84
+ def write_sources_manifest(source_digests)
84
85
  FileUtils.mkdir_p(@manifest_path)
85
- File.open("#{@manifest_path}/manifest.yml", 'wb') do |f|
86
- YAML.dump(digests, f)
87
- end
88
86
  File.open("#{@manifest_path}/sources_manifest.yml", 'wb') do |f|
89
87
  YAML.dump(source_digests, f)
90
88
  end
@@ -1,3 +1,3 @@
1
1
  module TurboSprockets
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: turbo-sprockets-rails3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: