rails_external_assets 0.5.0 → 0.6.0
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/CHANGELOG.md +6 -0
- data/README.md +6 -0
- data/lib/rails_external_assets/asset_finder.rb +1 -1
- data/lib/rails_external_assets/configuration.rb +4 -3
- data/lib/rails_external_assets/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: b6ed90eb040aa0979bf74cf38d8f4ed99b2ea2a1
|
4
|
+
data.tar.gz: 425a0d0b5d05a44bfb6398cae1b7207acdc885cf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bbbe4f03fb9e2655671ff017f8d813f3ffff3642aa967788168878addcb8eec2d55d571f1f806320d1ac585f20669970923a7f07fb4dc4c3541093cad1935cdc
|
7
|
+
data.tar.gz: f4f99eff62b0e9fb33268417fe025a9b491fe0489584a0cac9ecff8982cb107e074632a03804a97b3dff99d3f5ff95cdee6c98b5cbe7c682ff2af0ea69427710
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 0.6.0 (2018-5-24)
|
4
|
+
|
5
|
+
Added:
|
6
|
+
|
7
|
+
- Option `cache_manifest` to specify whether or not to cache the manifest. This can now be set to false to handle manifest changes in development. [714b51c](../../commit/714b51c)
|
8
|
+
|
3
9
|
## 0.5.0 (2018-4-24)
|
4
10
|
|
5
11
|
Added:
|
data/README.md
CHANGED
@@ -146,6 +146,12 @@ Note that in a Rails environment, `assets:clobber` will also remove all the file
|
|
146
146
|
|
147
147
|
> Defaults to `echo "You did not define a build script"`
|
148
148
|
|
149
|
+
**cache_manifest**
|
150
|
+
|
151
|
+
This is specifies whether the manifest should be cached. This should probably be false for development and true in production.
|
152
|
+
|
153
|
+
> Defaults to `true`
|
154
|
+
|
149
155
|
## Development
|
150
156
|
|
151
157
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
@@ -16,7 +16,7 @@ module RailsExternalAssets
|
|
16
16
|
end
|
17
17
|
|
18
18
|
def asset_manifest
|
19
|
-
return @@manifest_file
|
19
|
+
return @@manifest_file if @@manifest_file && RailsExternalAssets.config.cache_manifest
|
20
20
|
manifest_file = RailsExternalAssets.config.manifest_file
|
21
21
|
throw_invalid_manifest(manifest_file) unless File.file? manifest_file
|
22
22
|
@@manifest_file = JSON.parse(File.read manifest_file)
|
@@ -8,8 +8,7 @@ module RailsExternalAssets
|
|
8
8
|
end
|
9
9
|
|
10
10
|
def self.reset
|
11
|
-
@config = Configuration.new
|
12
|
-
end
|
11
|
+
@config = Configuration.new end
|
13
12
|
|
14
13
|
def self.configure
|
15
14
|
yield(config)
|
@@ -19,7 +18,8 @@ module RailsExternalAssets
|
|
19
18
|
attr_accessor :base_path,
|
20
19
|
:manifest_file,
|
21
20
|
:sprockets_directives,
|
22
|
-
:build_script
|
21
|
+
:build_script,
|
22
|
+
:cache_manifest
|
23
23
|
|
24
24
|
def initialize
|
25
25
|
# base path should be off Rails public/
|
@@ -30,6 +30,7 @@ module RailsExternalAssets
|
|
30
30
|
{ mime_type: 'text/css', comments: ['//', ['/*', '*/']] }
|
31
31
|
]
|
32
32
|
@build_script = 'echo "You did not define a build script"'
|
33
|
+
@cache_manifest = true
|
33
34
|
end
|
34
35
|
end
|
35
36
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_external_assets
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jonathan Lehman
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-05-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|