js_dependency 0.2.2 → 0.2.3

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: d88ba49b09bf39f743538394281ad7d7956abfd3a3a86e7b34fb88c1ad995f98
4
- data.tar.gz: 75928de5c657b2af3599606343798f17bfc2839e4967b46a9c9274eef0819218
3
+ metadata.gz: 7b8953dd4a8b764b770e0f8cb04d2699f5b5c8bf5248b49b13e7be9292458146
4
+ data.tar.gz: ce935f0e5035762546570a0bce1971cf82279ebdfe39af47fbc225c0c836e907
5
5
  SHA512:
6
- metadata.gz: 27bbd73e5ecd0f49ff5c82608abf7f553802fdce21878dd18036e1d675c09f526a92e152c08aab3ec9b9293c4a446d51b27fa8ceb75bd19a074ab097d9e5248d
7
- data.tar.gz: 5f328e13c00a1a50352c910902a42323caf558cdd22441218cc03048bebc41da85aea3b767948ce951b373037d7404e57ae293d4e85e12d1f930baef21a2d312
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 14:57:17 UTC using RuboCop version 1.31.2.
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: 5
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: 5
34
+ # Offense count: 6
35
35
  # Configuration parameters: IgnoredMethods.
36
36
  Metrics/PerceivedComplexity:
37
37
  Max: 16
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.2.3] - 2022-07-21
4
+
5
+ - Fix for script tag with line brake.
6
+
3
7
  ## [0.2.2] - 2022-07-21
4
8
 
5
9
  - Add CLI option parameter "exclude".
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- js_dependency (0.2.2)
4
+ js_dependency (0.2.3)
5
5
  pathname
6
6
  thor
7
7
  yaml
@@ -7,7 +7,7 @@ module JsDependency
7
7
  @str = str
8
8
  end
9
9
 
10
- # rubocop:disable Metrics/MethodLength, Metrics/AbcSize, Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity
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, Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity
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>(.+)</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.2"
4
+ VERSION = "0.2.3"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: js_dependency
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - junara