js_dependency 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop_todo.yml +3 -3
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/lib/js_dependency/extract_import_path.rb +2 -2
- data/lib/js_dependency/extract_script_tag.rb +1 -1
- data/lib/js_dependency/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7b8953dd4a8b764b770e0f8cb04d2699f5b5c8bf5248b49b13e7be9292458146
|
4
|
+
data.tar.gz: ce935f0e5035762546570a0bce1971cf82279ebdfe39af47fbc225c0c836e907
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8fca2ad58152cb2f955c7df0bb067f8b6fcbdeecd7bf44716a11eac776c433325b87b7f5ff240c261efe31c81d8484bf2642aa819437c7c56ec8e45bb90a2fb6
|
7
|
+
data.tar.gz: c0d65e0fddd984a85fcf2c26d4233bec7b9d90f8c999d370c876889b813d182beaf0eecc6aefe815496f4bd4db2fa5a0e9cc12b912c267df0c111a8bb707c053
|
data/.rubocop_todo.yml
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# This configuration was generated by
|
2
2
|
# `rubocop --auto-gen-config`
|
3
|
-
# on 2022-07-20
|
3
|
+
# on 2022-07-20 23:10:21 UTC using RuboCop version 1.31.2.
|
4
4
|
# The point is for the user to remove these configuration records
|
5
5
|
# one by one as the offenses are removed from the code base.
|
6
6
|
# Note that changes in the inspected code, or installation of new
|
@@ -11,7 +11,7 @@
|
|
11
11
|
Metrics/AbcSize:
|
12
12
|
Max: 37
|
13
13
|
|
14
|
-
# Offense count:
|
14
|
+
# Offense count: 6
|
15
15
|
# Configuration parameters: IgnoredMethods.
|
16
16
|
Metrics/CyclomaticComplexity:
|
17
17
|
Max: 15
|
@@ -31,7 +31,7 @@ Metrics/ModuleLength:
|
|
31
31
|
Metrics/ParameterLists:
|
32
32
|
Max: 9
|
33
33
|
|
34
|
-
# Offense count:
|
34
|
+
# Offense count: 6
|
35
35
|
# Configuration parameters: IgnoredMethods.
|
36
36
|
Metrics/PerceivedComplexity:
|
37
37
|
Max: 16
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -7,7 +7,7 @@ module JsDependency
|
|
7
7
|
@str = str
|
8
8
|
end
|
9
9
|
|
10
|
-
# rubocop:disable Metrics/MethodLength, Metrics/AbcSize
|
10
|
+
# rubocop:disable Metrics/MethodLength, Metrics/AbcSize
|
11
11
|
# @return [Array<String>]
|
12
12
|
def call
|
13
13
|
str = @str
|
@@ -68,7 +68,7 @@ module JsDependency
|
|
68
68
|
end
|
69
69
|
paths.uniq.sort
|
70
70
|
end
|
71
|
-
# rubocop:enable Metrics/MethodLength, Metrics/AbcSize
|
71
|
+
# rubocop:enable Metrics/MethodLength, Metrics/AbcSize
|
72
72
|
|
73
73
|
def self.call(str)
|
74
74
|
new(str).call
|
@@ -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
|
|