js_dependency 0.2.3 → 0.2.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/Gemfile.lock +1 -1
- data/lib/js_dependency/extract_script_tag.rb +1 -1
- data/lib/js_dependency/version.rb +1 -1
- data/lib/js_dependency.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9a59fced735fccc952d4f31d5dc27e41637ef5ee67bc5f5b7eb8038f5458808c
|
4
|
+
data.tar.gz: b4e713344b1a58d6dac1143068a20cf1e43bad0158c50c4ef28c1e8cd0b7ddc8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f2432b1e03352673908567cfc7f0ec5798bae146201db548c48899b1601e6d79680a3bef33daec2b82fa00bc541ff0b099757d65ded91f9801f026dcc5d52a56
|
7
|
+
data.tar.gz: 9f952a5dc433c9e687c12505dbb47136cbf8da671f5981cf008d1f002d282c3195f14976a94a911364c581adc55f36c68cb1e0d0459961328a49fa44b5e8bc4f
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -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
|
13
|
+
scripts = str.gsub(%r{<script>(.+)</script>}m).with_object([]) do |_, list|
|
14
14
|
list << Regexp.last_match(1)
|
15
15
|
end
|
16
16
|
|
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-
|
11
|
+
date: 2022-07-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pathname
|