asset_finder 1.3.0 → 1.4.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: 8c521924efaffad48737b7b0ad0d70fcac2926831a4ca1c6f8092c1e4305cb99
4
- data.tar.gz: 63ba755332fa3d2a1d12284de822ba80f24529d6072f9daf0c541853e6cafae5
3
+ metadata.gz: 292da1b10522e96a042f08c29ce112a39698fdb8534846cdd38e1f72ea8ced85
4
+ data.tar.gz: 63570c20523521c1e20dfa0a76984f03152b76967b3467ed35cdb5b77bcc0673
5
5
  SHA512:
6
- metadata.gz: e02fc7e56645a6d47f3fcf84dd073fddaad53ed5a789acc9591985783704ef7064f15d60ef6a28ede8a060bddf1d099e6f88edd0db090b7e25a96c9899673828
7
- data.tar.gz: 33b991a9c7d2c6886a9c619452f2835e796b253d74410e518a8aa14aaed76ff30a93f8a490c58e72a3f3c9cce0dccb3596afdf96eac010476e4c8c9a55666ea5
6
+ metadata.gz: 478f389b7ebd3a4dcb40e0241ccc2c38eafb71ca96105c2505dc74455c58e5784957e38738ebdd7f3c7a3b159928f5425670217ef9314f3dcef8706c9febfa84
7
+ data.tar.gz: bf7b00fd244d9549d9c3a0ff8d5c7800a9318475aaf81adc4c498351b3748c34b903940ee6f36637c215ae3020d7c1d20eadaf63224028a41b03fed3405bda2d
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
19
19
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
20
  spec.require_paths = ["lib"]
21
21
 
22
- spec.add_dependency 'railties', '>= 3.1', '< 7.0'
22
+ spec.add_dependency 'railties', '>= 6.0', '< 7.0'
23
23
  spec.add_development_dependency "bundler"
24
24
  spec.add_development_dependency "rake"
25
25
  spec.add_development_dependency "rspec"
@@ -15,7 +15,7 @@ module AssetFinder
15
15
  def normalize(path)
16
16
  @patterns.each do |pattern|
17
17
  if path.match(pattern)
18
- return $1.sub(@root_dir, '') + '.js'
18
+ return $1.delete_prefix(@root_dir).delete_suffix('/index') + '.js'
19
19
  end
20
20
  end
21
21
  nil
@@ -1,3 +1,3 @@
1
1
  module AssetFinder
2
- VERSION = "1.3.0"
2
+ VERSION = "1.4.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: asset_finder
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takahiro Ooishi
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '3.1'
19
+ version: '6.0'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: '7.0'
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '3.1'
29
+ version: '6.0'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: '7.0'