actionview-rev_manifest 0.2.1 → 0.2.2

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: c0b3ef0938f9f268db70328329e9fe04a0c50983
4
- data.tar.gz: 72888cc0aaffd79b5cc0df0d505052ef12cc0532
3
+ metadata.gz: 2b030f67bc8b5350ac6544628fd1e11f8ddbe50d
4
+ data.tar.gz: fd65be5a8bc2110f0362daab837f0b8927d7b219
5
5
  SHA512:
6
- metadata.gz: 4a25a0ce224cc805d995bd40cb052c1ab197da0c6ac1a788f76b4ea133b057e8c09ed5ffc60b4a41d04087b9d49447615b23e9767b4c46e619ea161509f04175
7
- data.tar.gz: 97343db89ab4c81195490f85fdeacc4d279d2ae7040f5f65354f145474780a442fa9404b47c4fd0961cd457cc3f8055036204b7cc61ee56ab730a01e32e1e57c
6
+ metadata.gz: ddd4a23b1f1309a2ba5f20be8af26fc0a52bb3e4df085c8a174dda83e79eda91ff056e7f30c35de41a4a7bce73b4dca2eaad211b1e6dec3d967f9cdabe36b434
7
+ data.tar.gz: f30437246b38faa422a3055688a483db80c3ee7bf9e5f10a623c0592e35c8bb18eb9ec2a9ff4d6b92bd66c18fa79b18bd0d68168ceb530b77a258da47bb1d5f3
data/README.md CHANGED
@@ -22,7 +22,7 @@ bundle install
22
22
  # config/environments/production.rb
23
23
 
24
24
  MyApp::Application.config do
25
- config.rev_manifest.enabled = true
25
+ config.rev_manifest.enable = true
26
26
  end
27
27
  ```
28
28
 
@@ -1,4 +1,3 @@
1
- require "rev_manifest/actionview/base"
2
1
  require "rev_manifest/railtie"
3
2
  require "rev_manifest/version"
4
3
 
@@ -1,6 +1,5 @@
1
- module ActionView
2
- class Base
3
- # @note Override {ActionView::Helpers::AssetUrlHelper#compute_asset_path}.
1
+ module RevManifest
2
+ module Helper
4
3
  def compute_asset_path(source, options = {})
5
4
  if RevManifest.include?(source)
6
5
  if RevManifest.enabled?
@@ -1,13 +1,16 @@
1
+ require "rev_manifest/helper"
2
+
1
3
  module RevManifest
2
4
  class Railtie < ::Rails::Railtie
3
5
  config.rev_manifest = ActiveSupport::OrderedOptions.new
4
6
 
5
- config.rev_manifest.enabled = false
7
+ config.rev_manifest.enable = false
6
8
  config.rev_manifest.sources = :all
7
9
 
8
10
  initializer "rev_manifest.config", group: :all do |app|
9
- RevManifest.enabled = app.config.rev_manifest.enabled
11
+ RevManifest.enabled = app.config.rev_manifest.enable
10
12
  RevManifest.sources = app.config.rev_manifest.sources
13
+ ActionView::Base.send(:prepend, RevManifest::Helper)
11
14
  end
12
15
  end
13
16
  end
@@ -1,3 +1,3 @@
1
1
  module RevManifest
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: actionview-rev_manifest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yuku Takahashi
@@ -81,7 +81,7 @@ files:
81
81
  - Rakefile
82
82
  - actionview-rev_manifest.gemspec
83
83
  - lib/actionview-rev_manifest.rb
84
- - lib/rev_manifest/actionview/base.rb
84
+ - lib/rev_manifest/helper.rb
85
85
  - lib/rev_manifest/railtie.rb
86
86
  - lib/rev_manifest/version.rb
87
87
  homepage: https://github.com/yuku-t/actionview-rev_manifest