roda-sprockets 2.0.0rc1 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +2 -2
- data/README.md +2 -2
- data/examples/opal-doc/app.rb +1 -1
- data/examples/opal-exception/app.rb +1 -1
- data/examples/sass/app.rb +1 -1
- data/lib/roda/plugins/sprockets.rb +3 -3
- data/roda-sprockets.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fd58a6b5449b9ba795b8a6d89873786092742e2fc5e747801c7050725a838dfd
|
4
|
+
data.tar.gz: 2fd13d4132906fb1d2bb84b614b3abcb8a25075d16764adcb1368b4fd224c199
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 68c501fc657c52cffe278758acd7fb855ffd83a90eb5a3eb1defdf39c111be43857e75be41a18123cb68a42c22058ee4d94f52fd3bd5d6689f75695251b83d18
|
7
|
+
data.tar.gz: 8835e128d39fd716d6de20e9404ff1a0ef01a5b256bc159aa090cd4e1bea8d34f8d77442ea1867fb6c8976de383f2a986e886c7700aeaaa3610bfff02a6e2336
|
data/CHANGELOG.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
v2.0.0
|
2
2
|
|
3
|
-
- :debug argument now defaults to true, if RACK_ENV is development,
|
4
|
-
otherwise - also false in rake tasks (#10)
|
3
|
+
- :debug argument now defaults to true, if RACK_ENV is development or test,
|
4
|
+
false otherwise - also false in rake tasks (#10)
|
5
5
|
- add sprockets_env class method, so you can shorten code like
|
6
6
|
`App.sprockets_options[:sprockets]` to just `App.sprockets_env` (#11)
|
7
7
|
|
data/README.md
CHANGED
@@ -27,7 +27,7 @@ class App < Roda
|
|
27
27
|
|
28
28
|
route do |r|
|
29
29
|
r.public
|
30
|
-
r.sprockets if ENV['RACK_ENV']
|
30
|
+
r.sprockets if %w[development test].include? ENV['RACK_ENV']
|
31
31
|
end
|
32
32
|
end
|
33
33
|
```
|
@@ -57,7 +57,7 @@ end
|
|
57
57
|
* `host` - for hosting your assets on a different server
|
58
58
|
* `digest` (bool) - digest your assets for unique filenames, default: true
|
59
59
|
* `opal` (bool) - Opal support, default: false
|
60
|
-
* `debug` (bool) - debug mode, default: true if RACK_ENV is development,
|
60
|
+
* `debug` (bool) - debug mode, default: true if RACK_ENV is development or test,
|
61
61
|
false otherwise (in rake tasks it's false too)
|
62
62
|
* `cache` - a `Sprockets::Cache` instance, default: nil (no cache)
|
63
63
|
|
data/examples/opal-doc/app.rb
CHANGED
data/examples/sass/app.rb
CHANGED
@@ -28,7 +28,7 @@ class Roda
|
|
28
28
|
else
|
29
29
|
app.opts[:sprockets] = plugin_options.dup
|
30
30
|
end
|
31
|
-
options = app.opts[:sprockets]
|
31
|
+
options = app.opts[:sprockets]
|
32
32
|
DEFAULTS.each { |k, v| options[k] = v unless options.key?(k) }
|
33
33
|
|
34
34
|
if !options[:root]
|
@@ -36,7 +36,7 @@ class Roda
|
|
36
36
|
end
|
37
37
|
|
38
38
|
if options[:debug].nil?
|
39
|
-
if ENV['RACK_ENV']
|
39
|
+
if %w[development test].include? ENV['RACK_ENV']
|
40
40
|
options[:debug] = true
|
41
41
|
else
|
42
42
|
options[:debug] = false
|
@@ -84,7 +84,7 @@ class Roda
|
|
84
84
|
|
85
85
|
options[:sprockets_helpers].environment = options[:sprockets]
|
86
86
|
options[:sprockets_helpers].digest = options[:digest]
|
87
|
-
options[:sprockets_helpers].prefix = options[:path_prefix]
|
87
|
+
options[:sprockets_helpers].prefix = options[:path_prefix]
|
88
88
|
options[:sprockets_helpers].debug = options[:debug]
|
89
89
|
|
90
90
|
unless options[:debug]
|
data/roda-sprockets.gemspec
CHANGED
@@ -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 = '2.0.
|
7
|
+
spec.version = '2.0.0'
|
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: 2.0.
|
4
|
+
version: 2.0.0
|
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: 2021-
|
12
|
+
date: 2021-09-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: roda
|
@@ -144,9 +144,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
144
144
|
version: '0'
|
145
145
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
146
146
|
requirements:
|
147
|
-
- - "
|
147
|
+
- - ">="
|
148
148
|
- !ruby/object:Gem::Version
|
149
|
-
version:
|
149
|
+
version: '0'
|
150
150
|
requirements: []
|
151
151
|
rubygems_version: 3.2.22
|
152
152
|
signing_key:
|