roda-sprockets 1.0.1 → 1.0.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 206ac0ccb23a8c14334933207d7b4c05d9d1800cdfdfa60363baad72475eda25
4
- data.tar.gz: 611361f41adbc1ede9f5bed7745d4ba279be8752ec5d5e3ef6334ba1ab61c4a2
3
+ metadata.gz: 64c7457f4f6cca73af4aede33d7fbbe2922aac43a05a399af1658a2fa54250ec
4
+ data.tar.gz: d14d895b6704ae71b20958df0e3d0fa054054b25862b529d6b94b15a6acbbb3d
5
5
  SHA512:
6
- metadata.gz: fc69e2766b243deda0b241d7370b92eb1060b42fc9b5b1f9c21743ec67e2bcb658ee1b25835f02b0d0798bd2c6c77094f38ba049ce1bfeca9f0f26b7d37deab0
7
- data.tar.gz: 3ce5844c80721baee05d8642a4a1bc4eedcf0241ab3537061f1d7e7297d356335fa0a3d9d02472c7b56a119ef442c8d94d579faed04aba4e589990c0ea898f56
6
+ metadata.gz: 4e2fa406bc9c3d22c508e683bbe65e5424361b3cf73c6c10e09f470c2fe43bd288789a6c11df8d5c3deea7d3f28ece35cfc609f6942cbe2046309384aae05535
7
+ data.tar.gz: 565f7f00f965f808cde41a95c9c1309cbfea91068f4f9090760b0d47e58bef41966855836c32f8981db72322f899aee32d109de046d3327d47a378330b330b92
@@ -35,7 +35,9 @@ class Roda
35
35
  options = app.opts[:sprockets].merge! plugin_options
36
36
  DEFAULTS.each { |k, v| options[k] = v unless options.key?(k) }
37
37
 
38
- options[:root] = app.opts[:root] if !options[:root]
38
+ if !options[:root]
39
+ options[:root] = app.opts[:root] || Dir.pwd
40
+ end
39
41
 
40
42
  %i(root public_path).each { |type| raise "#{type} needs to be set." unless options[type] }
41
43
 
@@ -123,7 +125,7 @@ class Roda
123
125
  Opal.require(#{file.to_json});
124
126
  </script>
125
127
  END
126
- .gsub(/\s+/, ' ')
128
+ .gsub(/\s+/, ' ').chop
127
129
  end
128
130
  end
129
131
 
@@ -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.1'
7
+ spec.version = '1.0.2'
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,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: roda-sprockets
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - cj
8
8
  - hmdne
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-09-16 00:00:00.000000000 Z
12
+ date: 2021-08-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: roda
@@ -101,7 +101,7 @@ homepage: https://github.com/hmdne/roda-sprockets
101
101
  licenses:
102
102
  - MIT
103
103
  metadata: {}
104
- post_install_message:
104
+ post_install_message:
105
105
  rdoc_options: []
106
106
  require_paths:
107
107
  - lib
@@ -116,8 +116,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
116
116
  - !ruby/object:Gem::Version
117
117
  version: '0'
118
118
  requirements: []
119
- rubygems_version: 3.1.2
120
- signing_key:
119
+ rubygems_version: 3.2.22
120
+ signing_key:
121
121
  specification_version: 4
122
122
  summary: Use sprockets to serve assets in roda.
123
123
  test_files: []