js_dependency 0.2.3 → 0.2.3.1

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: 7b8953dd4a8b764b770e0f8cb04d2699f5b5c8bf5248b49b13e7be9292458146
4
- data.tar.gz: ce935f0e5035762546570a0bce1971cf82279ebdfe39af47fbc225c0c836e907
3
+ metadata.gz: 9a59fced735fccc952d4f31d5dc27e41637ef5ee67bc5f5b7eb8038f5458808c
4
+ data.tar.gz: b4e713344b1a58d6dac1143068a20cf1e43bad0158c50c4ef28c1e8cd0b7ddc8
5
5
  SHA512:
6
- metadata.gz: 8fca2ad58152cb2f955c7df0bb067f8b6fcbdeecd7bf44716a11eac776c433325b87b7f5ff240c261efe31c81d8484bf2642aa819437c7c56ec8e45bb90a2fb6
7
- data.tar.gz: c0d65e0fddd984a85fcf2c26d4233bec7b9d90f8c999d370c876889b813d182beaf0eecc6aefe815496f4bd4db2fa5a0e9cc12b912c267df0c111a8bb707c053
6
+ metadata.gz: f2432b1e03352673908567cfc7f0ec5798bae146201db548c48899b1601e6d79680a3bef33daec2b82fa00bc541ff0b099757d65ded91f9801f026dcc5d52a56
7
+ data.tar.gz: 9f952a5dc433c9e687c12505dbb47136cbf8da671f5981cf008d1f002d282c3195f14976a94a911364c581adc55f36c68cb1e0d0459961328a49fa44b5e8bc4f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.2.3.1] - 2022-07-21
4
+
5
+ - Revert for script tag with line brake.
6
+ - Fix exclude pattern.
7
+
3
8
  ## [0.2.3] - 2022-07-21
4
9
 
5
10
  - Fix for script tag with line brake.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- js_dependency (0.2.3)
4
+ js_dependency (0.2.3.1)
5
5
  pathname
6
6
  thor
7
7
  yaml
@@ -10,7 +10,7 @@ module JsDependency
10
10
  # @return [Array<String>]
11
11
  def call
12
12
  str = @str
13
- scripts = str.gsub(%r{<script.*>(.+)</script>}m).with_object([]) do |_, list|
13
+ scripts = str.gsub(%r{<script>(.+)</script>}m).with_object([]) do |_, list|
14
14
  list << Regexp.last_match(1)
15
15
  end
16
16
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module JsDependency
4
- VERSION = "0.2.3"
4
+ VERSION = "0.2.3.1"
5
5
  end
data/lib/js_dependency.rb CHANGED
@@ -130,7 +130,7 @@ module JsDependency
130
130
  end
131
131
 
132
132
  list += extract_parent_paths(temp_pathname.to_s, index).each do |parent_path|
133
- next if excludes&.any? { |ignore| parent_path.to_s.include?(ignore) }
133
+ next if excludes&.any? { |ignore| parent_path.to_s.include?(ignore) || temp_pathname.to_s.include?(ignore) }
134
134
 
135
135
  yield parent_path, temp_pathname.to_s
136
136
  end
@@ -153,7 +153,7 @@ module JsDependency
153
153
  end
154
154
 
155
155
  list += extract_children_paths(temp_pathname.to_s, index).each do |child_path|
156
- next if excludes&.any? { |ignore| child_path.to_s.include?(ignore) }
156
+ next if excludes&.any? { |ignore| child_path.to_s.include?(ignore) || temp_pathname.to_s.include?(ignore) }
157
157
 
158
158
  yield temp_pathname.to_s, child_path
159
159
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: js_dependency
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - junara
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-07-20 00:00:00.000000000 Z
11
+ date: 2022-07-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pathname