roda-sprockets 1.0.0 → 1.0.1

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
  SHA256:
3
- metadata.gz: e60bfe5e2c8adb6d2276d1c3ca69eb489201fda460d32cf9a93987603afcfcea
4
- data.tar.gz: 9d0201eb062793f1c1de05661cb4db699153cb11e8de5ec01b897fcad4928cce
3
+ metadata.gz: 206ac0ccb23a8c14334933207d7b4c05d9d1800cdfdfa60363baad72475eda25
4
+ data.tar.gz: 611361f41adbc1ede9f5bed7745d4ba279be8752ec5d5e3ef6334ba1ab61c4a2
5
5
  SHA512:
6
- metadata.gz: 8f0ab041fbc6da153ef2b61dcf215daf104e4029059090dfde0f64b760a9f542f7d3ddb244d89d0aa359e4bea3d82cc6dfa7cdc3acf6456aa13beb3244285ce7
7
- data.tar.gz: df03c4d605741ae5163803a542cf3f4b6a2ae8fa6505ead89a5277a0dd902038e96198868fd15200a2756a1f1d4f82b0adc27cc928dc6cb9db41475ed03601ff
6
+ metadata.gz: fc69e2766b243deda0b241d7370b92eb1060b42fc9b5b1f9c21743ec67e2bcb658ee1b25835f02b0d0798bd2c6c77094f38ba049ce1bfeca9f0f26b7d37deab0
7
+ data.tar.gz: 3ce5844c80721baee05d8642a4a1bc4eedcf0241ab3537061f1d7e7297d356335fa0a3d9d02472c7b56a119ef442c8d94d579faed04aba4e589990c0ea898f56
data/README.md CHANGED
@@ -50,6 +50,7 @@ end
50
50
  * `digest` (bool) - digest your assets for unique filenames, default: true
51
51
  * `opal` (bool) - Opal support, default: false
52
52
  * `debug` (bool) - debug mode, default: false
53
+ * `cache` - a `Sprockets::Cache` instance
53
54
 
54
55
  ### Templates:
55
56
 
@@ -19,6 +19,7 @@ class Roda
19
19
  digest: true,
20
20
  opal: false,
21
21
  debug: false,
22
+ cache: nil,
22
23
  }.freeze
23
24
 
24
25
  def self.load_dependencies(app, _opts = nil)
@@ -71,6 +72,10 @@ class Roda
71
72
  end
72
73
  end
73
74
 
75
+ if options[:cache]
76
+ options[:sprockets].cache = options[:cache]
77
+ end
78
+
74
79
  options[:sprockets_helpers] = ::Sprockets::Helpers::Settings.new
75
80
 
76
81
  options[:sprockets_helpers].environment = options[:sprockets]
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = "roda-sprockets"
7
- spec.version = '1.0.0'
7
+ spec.version = '1.0.1'
8
8
  spec.authors = ["cj", "hmdne"]
9
9
  spec.email = ["cjlazell@gmail.com"]
10
10
  spec.summary = %q{Use sprockets to serve assets in roda.}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: roda-sprockets
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - cj
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-09-01 00:00:00.000000000 Z
12
+ date: 2020-09-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: roda