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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 508fedb44f1daee79f32b2ef1746fb5a266aa771465dc44b42a9d2de03787d6a
4
- data.tar.gz: 15678eedb2c7d2aa7d5e8c1136dd2b16c77d4336514e689875488a7ec593e934
3
+ metadata.gz: fd58a6b5449b9ba795b8a6d89873786092742e2fc5e747801c7050725a838dfd
4
+ data.tar.gz: 2fd13d4132906fb1d2bb84b614b3abcb8a25075d16764adcb1368b4fd224c199
5
5
  SHA512:
6
- metadata.gz: eac697f7e01b05019e19a48704088910ceb1451ad2d6e40dccfc3ee8d8c67ef3b301d61876ca6089b4ce8454f19a1b02afbe3065abd812fdd804017188ddd838
7
- data.tar.gz: c25b68ac51d50b091f398a5d98780f15987c20643535e289ed034d60929229ca0af556545dd6268981c83921dd763080c1a572306e5ef009161c37c20b57716c
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, false
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'] == 'development'
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
 
@@ -8,7 +8,7 @@ class App < Roda
8
8
 
9
9
  route do |r|
10
10
  r.public
11
- r.sprockets if ENV['RACK_ENV'] == 'development'
11
+ r.sprockets if %w[development test].include? ENV['RACK_ENV']
12
12
 
13
13
  r.root do
14
14
  <<~END
@@ -9,7 +9,7 @@ class App < Roda
9
9
 
10
10
  route do |r|
11
11
  r.public
12
- r.sprockets if ENV['RACK_ENV'] == 'development'
12
+ r.sprockets if %w[development test].include? ENV['RACK_ENV']
13
13
 
14
14
  r.root do
15
15
  <<~END
data/examples/sass/app.rb CHANGED
@@ -6,7 +6,7 @@ class App < Roda
6
6
 
7
7
  route do |r|
8
8
  r.public
9
- r.sprockets if ENV['RACK_ENV'] == 'development'
9
+ r.sprockets if %w[development test].include? ENV['RACK_ENV']
10
10
 
11
11
  r.root do
12
12
  <<~END
@@ -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].merge! plugin_options
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'] == 'development'
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] unless options[:path_prefix].nil?
87
+ options[:sprockets_helpers].prefix = options[:path_prefix]
88
88
  options[:sprockets_helpers].debug = options[:debug]
89
89
 
90
90
  unless options[:debug]
@@ -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.0rc1'
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.0rc1
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-08-23 00:00:00.000000000 Z
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: 1.3.1
149
+ version: '0'
150
150
  requirements: []
151
151
  rubygems_version: 3.2.22
152
152
  signing_key: