-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bump rubocop from 1.65.1 to 1.66.1 #670
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gem compare parallel 1.26.1 1.26.3 Compared versions: ["1.26.1", "1.26.3"]
DIFFERENT date:
1.26.1: 2024-08-08 00:00:00 UTC
1.26.3: 2024-08-16 00:00:00 UTC
DIFFERENT metadata:
1.26.1: {"bug_tracker_uri"=>"https://github.com/grosser/parallel/issues", "documentation_uri"=>"https://github.com/grosser/parallel/blob/v1.26.1/Readme.md", "source_code_uri"=>"https://github.com/grosser/parallel/tree/v1.26.1", "wiki_uri"=>"https://github.com/grosser/parallel/wiki"}
1.26.3: {"bug_tracker_uri"=>"https://github.com/grosser/parallel/issues", "documentation_uri"=>"https://github.com/grosser/parallel/blob/v1.26.3/Readme.md", "source_code_uri"=>"https://github.com/grosser/parallel/tree/v1.26.3", "wiki_uri"=>"https://github.com/grosser/parallel/wiki"}
DIFFERENT version:
1.26.1: 1.26.1
1.26.3: 1.26.3
DIFFERENT files:
1.26.1->1.26.3:
* Changed:
lib/parallel.rb +12/-3
lib/parallel/version.rb +1/-1 |
gem compare --diff parallel 1.26.1 1.26.3 Compared versions: ["1.26.1", "1.26.3"]
DIFFERENT files:
1.26.1->1.26.3:
* Changed:
lib/parallel.rb
--- /tmp/d20240905-1807-911nml/parallel-1.26.1/lib/parallel.rb 2024-09-05 02:59:35.137195131 +0000
+++ /tmp/d20240905-1807-911nml/parallel-1.26.3/lib/parallel.rb 2024-09-05 02:59:35.137195131 +0000
@@ -340 +340,2 @@
- # Number of processors seen by the OS, used for process scheduling
+ # Number of processors seen by the OS or value considering CPU quota if the process is inside a cgroup,
+ # used for process scheduling
@@ -342,2 +343 @@
- require 'etc'
- @processor_count ||= Integer(ENV['PARALLEL_PROCESSOR_COUNT'] || Etc.nprocessors)
+ @processor_count ||= Integer(ENV['PARALLEL_PROCESSOR_COUNT'] || available_processor_count)
@@ -696,0 +697,9 @@
+ end
+
+ def available_processor_count
+ gem 'concurrent-ruby', '>= 1.3.4'
+ require 'concurrent-ruby'
+ Concurrent.available_processor_count.floor
+ rescue LoadError
+ require 'etc'
+ Etc.nprocessors
lib/parallel/version.rb
--- /tmp/d20240905-1807-911nml/parallel-1.26.1/lib/parallel/version.rb 2024-09-05 02:59:35.137195131 +0000
+++ /tmp/d20240905-1807-911nml/parallel-1.26.3/lib/parallel/version.rb 2024-09-05 02:59:35.137195131 +0000
@@ -3 +3 @@
- VERSION = Version = '1.26.1' # rubocop:disable Naming/ConstantName
+ VERSION = Version = '1.26.3' # rubocop:disable Naming/ConstantName |
gem compare parser 3.3.4.2 3.3.5.0 Compared versions: ["3.3.4.2", "3.3.5.0"]
DIFFERENT date:
3.3.4.2: 2024-08-08 00:00:00 UTC
3.3.5.0: 2024-09-04 00:00:00 UTC
DIFFERENT metadata:
3.3.4.2: {"bug_tracker_uri"=>"https://github.com/whitequark/parser/issues", "changelog_uri"=>"https://github.com/whitequark/parser/blob/v3.3.4.2/CHANGELOG.md", "documentation_uri"=>"https://www.rubydoc.info/gems/parser/3.3.4.2", "source_code_uri"=>"https://github.com/whitequark/parser/tree/v3.3.4.2"}
3.3.5.0: {"bug_tracker_uri"=>"https://github.com/whitequark/parser/issues", "changelog_uri"=>"https://github.com/whitequark/parser/blob/v3.3.5.0/CHANGELOG.md", "documentation_uri"=>"https://www.rubydoc.info/gems/parser/3.3.5.0", "source_code_uri"=>"https://github.com/whitequark/parser/tree/v3.3.5.0"}
DIFFERENT version:
3.3.4.2: 3.3.4.2
3.3.5.0: 3.3.5.0
DIFFERENT files:
3.3.4.2->3.3.5.0:
* Changed:
lib/parser/current.rb +1/-1
lib/parser/macruby.rb +1/-1
lib/parser/ruby18.rb +1/-1
lib/parser/ruby19.rb +1/-1
lib/parser/ruby20.rb +1/-1
lib/parser/ruby21.rb +1/-1
lib/parser/ruby22.rb +1/-1
lib/parser/ruby23.rb +1/-1
lib/parser/ruby24.rb +1/-1
lib/parser/ruby25.rb +1/-1
lib/parser/ruby26.rb +1/-1
lib/parser/ruby27.rb +1/-1
lib/parser/ruby30.rb +1/-1
lib/parser/ruby31.rb +1/-1
lib/parser/ruby32.rb +1/-1
lib/parser/ruby33.rb +1/-1
lib/parser/ruby34.rb +1/-1
lib/parser/rubymotion.rb +1/-1
lib/parser/runner.rb +8/-12
lib/parser/version.rb +1/-1 |
gem compare --diff parser 3.3.4.2 3.3.5.0 Compared versions: ["3.3.4.2", "3.3.5.0"]
DIFFERENT files:
3.3.4.2->3.3.5.0:
* Changed:
lib/parser/current.rb
--- /tmp/d20240905-1924-3vgusj/parser-3.3.4.2/lib/parser/current.rb 2024-09-05 02:59:41.585254831 +0000
+++ /tmp/d20240905-1924-3vgusj/parser-3.3.5.0/lib/parser/current.rb 2024-09-05 02:59:41.733256204 +0000
@@ -114 +114 @@
- current_version = '3.3.4'
+ current_version = '3.3.5'
lib/parser/macruby.rb
--- /tmp/d20240905-1924-3vgusj/parser-3.3.4.2/lib/parser/macruby.rb 2024-09-05 02:59:41.593254905 +0000
+++ /tmp/d20240905-1924-3vgusj/parser-3.3.5.0/lib/parser/macruby.rb 2024-09-05 02:59:41.737256242 +0000
@@ -4 +4 @@
-# This file is automatically generated by Racc 1.7.3
+# This file is automatically generated by Racc 1.8.1
lib/parser/ruby18.rb
--- /tmp/d20240905-1924-3vgusj/parser-3.3.4.2/lib/parser/ruby18.rb 2024-09-05 02:59:41.593254905 +0000
+++ /tmp/d20240905-1924-3vgusj/parser-3.3.5.0/lib/parser/ruby18.rb 2024-09-05 02:59:41.741256278 +0000
@@ -4 +4 @@
-# This file is automatically generated by Racc 1.7.3
+# This file is automatically generated by Racc 1.8.1
lib/parser/ruby19.rb
--- /tmp/d20240905-1924-3vgusj/parser-3.3.4.2/lib/parser/ruby19.rb 2024-09-05 02:59:41.597254942 +0000
+++ /tmp/d20240905-1924-3vgusj/parser-3.3.5.0/lib/parser/ruby19.rb 2024-09-05 02:59:41.741256278 +0000
@@ -4 +4 @@
-# This file is automatically generated by Racc 1.7.3
+# This file is automatically generated by Racc 1.8.1
lib/parser/ruby20.rb
--- /tmp/d20240905-1924-3vgusj/parser-3.3.4.2/lib/parser/ruby20.rb 2024-09-05 02:59:41.597254942 +0000
+++ /tmp/d20240905-1924-3vgusj/parser-3.3.5.0/lib/parser/ruby20.rb 2024-09-05 02:59:41.741256278 +0000
@@ -4 +4 @@
-# This file is automatically generated by Racc 1.7.3
+# This file is automatically generated by Racc 1.8.1
lib/parser/ruby21.rb
--- /tmp/d20240905-1924-3vgusj/parser-3.3.4.2/lib/parser/ruby21.rb 2024-09-05 02:59:41.597254942 +0000
+++ /tmp/d20240905-1924-3vgusj/parser-3.3.5.0/lib/parser/ruby21.rb 2024-09-05 02:59:41.745256315 +0000
@@ -4 +4 @@
-# This file is automatically generated by Racc 1.7.3
+# This file is automatically generated by Racc 1.8.1
lib/parser/ruby22.rb
--- /tmp/d20240905-1924-3vgusj/parser-3.3.4.2/lib/parser/ruby22.rb 2024-09-05 02:59:41.601254979 +0000
+++ /tmp/d20240905-1924-3vgusj/parser-3.3.5.0/lib/parser/ruby22.rb 2024-09-05 02:59:41.745256315 +0000
@@ -4 +4 @@
-# This file is automatically generated by Racc 1.7.3
+# This file is automatically generated by Racc 1.8.1
lib/parser/ruby23.rb
--- /tmp/d20240905-1924-3vgusj/parser-3.3.4.2/lib/parser/ruby23.rb 2024-09-05 02:59:41.601254979 +0000
+++ /tmp/d20240905-1924-3vgusj/parser-3.3.5.0/lib/parser/ruby23.rb 2024-09-05 02:59:41.749256352 +0000
@@ -4 +4 @@
-# This file is automatically generated by Racc 1.7.3
+# This file is automatically generated by Racc 1.8.1
lib/parser/ruby24.rb
--- /tmp/d20240905-1924-3vgusj/parser-3.3.4.2/lib/parser/ruby24.rb 2024-09-05 02:59:41.605255016 +0000
+++ /tmp/d20240905-1924-3vgusj/parser-3.3.5.0/lib/parser/ruby24.rb 2024-09-05 02:59:41.749256352 +0000
@@ -4 +4 @@
-# This file is automatically generated by Racc 1.7.3
+# This file is automatically generated by Racc 1.8.1
lib/parser/ruby25.rb
--- /tmp/d20240905-1924-3vgusj/parser-3.3.4.2/lib/parser/ruby25.rb 2024-09-05 02:59:41.605255016 +0000
+++ /tmp/d20240905-1924-3vgusj/parser-3.3.5.0/lib/parser/ruby25.rb 2024-09-05 02:59:41.749256352 +0000
@@ -4 +4 @@
-# This file is automatically generated by Racc 1.7.3
+# This file is automatically generated by Racc 1.8.1
lib/parser/ruby26.rb
--- /tmp/d20240905-1924-3vgusj/parser-3.3.4.2/lib/parser/ruby26.rb 2024-09-05 02:59:41.609255053 +0000
+++ /tmp/d20240905-1924-3vgusj/parser-3.3.5.0/lib/parser/ruby26.rb 2024-09-05 02:59:41.753256389 +0000
@@ -4 +4 @@
-# This file is automatically generated by Racc 1.7.3
+# This file is automatically generated by Racc 1.8.1
lib/parser/ruby27.rb
--- /tmp/d20240905-1924-3vgusj/parser-3.3.4.2/lib/parser/ruby27.rb 2024-09-05 02:59:41.609255053 +0000
+++ /tmp/d20240905-1924-3vgusj/parser-3.3.5.0/lib/parser/ruby27.rb 2024-09-05 02:59:41.753256389 +0000
@@ -4 +4 @@
-# This file is automatically generated by Racc 1.7.3
+# This file is automatically generated by Racc 1.8.1
lib/parser/ruby30.rb
--- /tmp/d20240905-1924-3vgusj/parser-3.3.4.2/lib/parser/ruby30.rb 2024-09-05 02:59:41.613255091 +0000
+++ /tmp/d20240905-1924-3vgusj/parser-3.3.5.0/lib/parser/ruby30.rb 2024-09-05 02:59:41.757256427 +0000
@@ -4 +4 @@
-# This file is automatically generated by Racc 1.7.3
+# This file is automatically generated by Racc 1.8.1
lib/parser/ruby31.rb
--- /tmp/d20240905-1924-3vgusj/parser-3.3.4.2/lib/parser/ruby31.rb 2024-09-05 02:59:41.613255091 +0000
+++ /tmp/d20240905-1924-3vgusj/parser-3.3.5.0/lib/parser/ruby31.rb 2024-09-05 02:59:41.761256464 +0000
@@ -4 +4 @@
-# This file is automatically generated by Racc 1.7.3
+# This file is automatically generated by Racc 1.8.1
lib/parser/ruby32.rb
--- /tmp/d20240905-1924-3vgusj/parser-3.3.4.2/lib/parser/ruby32.rb 2024-09-05 02:59:41.617255128 +0000
+++ /tmp/d20240905-1924-3vgusj/parser-3.3.5.0/lib/parser/ruby32.rb 2024-09-05 02:59:41.761256464 +0000
@@ -4 +4 @@
-# This file is automatically generated by Racc 1.7.3
+# This file is automatically generated by Racc 1.8.1
lib/parser/ruby33.rb
--- /tmp/d20240905-1924-3vgusj/parser-3.3.4.2/lib/parser/ruby33.rb 2024-09-05 02:59:41.617255128 +0000
+++ /tmp/d20240905-1924-3vgusj/parser-3.3.5.0/lib/parser/ruby33.rb 2024-09-05 02:59:41.765256501 +0000
@@ -4 +4 @@
-# This file is automatically generated by Racc 1.7.3
+# This file is automatically generated by Racc 1.8.1
lib/parser/ruby34.rb
--- /tmp/d20240905-1924-3vgusj/parser-3.3.4.2/lib/parser/ruby34.rb 2024-09-05 02:59:41.621255165 +0000
+++ /tmp/d20240905-1924-3vgusj/parser-3.3.5.0/lib/parser/ruby34.rb 2024-09-05 02:59:41.765256501 +0000
@@ -4 +4 @@
-# This file is automatically generated by Racc 1.7.3
+# This file is automatically generated by Racc 1.8.1
lib/parser/rubymotion.rb
--- /tmp/d20240905-1924-3vgusj/parser-3.3.4.2/lib/parser/rubymotion.rb 2024-09-05 02:59:41.621255165 +0000
+++ /tmp/d20240905-1924-3vgusj/parser-3.3.5.0/lib/parser/rubymotion.rb 2024-09-05 02:59:41.769256538 +0000
@@ -4 +4 @@
-# This file is automatically generated by Racc 1.7.3
+# This file is automatically generated by Racc 1.8.1
lib/parser/runner.rb
--- /tmp/d20240905-1924-3vgusj/parser-3.3.4.2/lib/parser/runner.rb 2024-09-05 02:59:41.625255202 +0000
+++ /tmp/d20240905-1924-3vgusj/parser-3.3.5.0/lib/parser/runner.rb 2024-09-05 02:59:41.769256538 +0000
@@ -3 +2,0 @@
-require 'benchmark'
@@ -223,5 +222,4 @@
- parsing_time =
- Benchmark.measure do
- process_fragments
- process_files
- end
+ time_start = Process.clock_gettime(Process::CLOCK_MONOTONIC)
+ process_fragments
+ process_files
+ time_elapsed = Process.clock_gettime(Process::CLOCK_MONOTONIC) - time_start
@@ -230 +228 @@
- report_with_time(parsing_time)
+ report_with_time(time_elapsed)
@@ -281,4 +279,2 @@
- def report_with_time(parsing_time)
- cpu_time = parsing_time.utime
-
- speed = '%.3f' % (@source_size / cpu_time / 1000)
+ def report_with_time(time_elapsed)
+ speed = '%.3f' % (@source_size / time_elapsed / 1000)
@@ -286 +282 @@
- " in #{'%.2f' % cpu_time} seconds (#{speed} kchars/s)."
+ " in #{'%.2f' % time_elapsed} seconds (#{speed} kchars/s)."
lib/parser/version.rb
--- /tmp/d20240905-1924-3vgusj/parser-3.3.4.2/lib/parser/version.rb 2024-09-05 02:59:41.629255239 +0000
+++ /tmp/d20240905-1924-3vgusj/parser-3.3.5.0/lib/parser/version.rb 2024-09-05 02:59:41.773256575 +0000
@@ -4 +4 @@
- VERSION = '3.3.4.2'
+ VERSION = '3.3.5.0' |
gem compare rexml 3.3.4 3.3.7 Compared versions: ["3.3.4", "3.3.7"]
DIFFERENT date:
3.3.4: 2024-08-01 00:00:00 UTC
3.3.7: 2024-09-04 00:00:00 UTC
DIFFERENT metadata:
3.3.4: {"changelog_uri"=>"https://github.com/ruby/rexml/releases/tag/v3.3.4"}
3.3.7: {"changelog_uri"=>"https://github.com/ruby/rexml/releases/tag/v3.3.7"}
DIFFERENT version:
3.3.4: 3.3.4
3.3.7: 3.3.7
DIFFERENT files:
3.3.4->3.3.7:
* Changed:
NEWS.md +78/-0
lib/rexml/attribute.rb +3/-2
lib/rexml/document.rb +5/-1
lib/rexml/element.rb +14/-16
lib/rexml/entity.rb +9/-48
lib/rexml/parsers/baseparser.rb +108/-36
lib/rexml/parsers/pullparser.rb +8/-0
lib/rexml/parsers/sax2parser.rb +8/-0
lib/rexml/parsers/streamparser.rb +15/-9
lib/rexml/parsers/treeparser.rb +0/-7
lib/rexml/rexml.rb +1/-1
lib/rexml/text.rb +5/-3
DIFFERENT extra_rdoc_files:
3.3.4->3.3.7:
* Changed:
NEWS.md +78/-0
DIFFERENT runtime dependencies:
3.3.4->3.3.7:
* Deleted:
strscan [">= 0"] (runtime) |
gem compare --diff rexml 3.3.4 3.3.7 Compared versions: ["3.3.4", "3.3.7"]
DIFFERENT files:
3.3.4->3.3.7:
* Changed:
NEWS.md
--- /tmp/d20240905-2120-3brdgm/rexml-3.3.4/NEWS.md 2024-09-05 02:59:47.793311064 +0000
+++ /tmp/d20240905-2120-3brdgm/rexml-3.3.7/NEWS.md 2024-09-05 02:59:47.801311135 +0000
@@ -2,0 +3,78 @@
+## 3.3.7 - 2024-09-04 {#version-3-3-7}
+
+### Improvements
+
+ * Added local entity expansion limit methods
+ * GH-192
+ * GH-202
+ * Reported by takuya kodama.
+ * Patch by NAITOH Jun.
+
+ * Removed explicit strscan dependency
+ * GH-204
+ * Patch by Bo Anderson.
+
+### Thanks
+
+ * takuya kodama
+
+ * NAITOH Jun
+
+ * Bo Anderson
+
+## 3.3.6 - 2024-08-22 {#version-3-3-6}
+
+### Improvements
+
+ * Removed duplicated entity expansions for performance.
+ * GH-194
+ * Patch by Viktor Ivarsson.
+
+ * Improved namespace conflicted attribute check performance. It was
+ too slow for deep elements.
+ * Reported by l33thaxor.
+
+### Fixes
+
+ * Fixed a bug that default entity expansions are counted for
+ security check. Default entity expansions should not be counted
+ because they don't have a security risk.
+ * GH-198
+ * GH-199
+ * Patch Viktor Ivarsson
+
+ * Fixed a parser bug that parameter entity references in internal
+ subsets are expanded. It's not allowed in the XML specification.
+ * GH-191
+ * Patch by NAITOH Jun.
+
+ * Fixed a stream parser bug that user-defined entity references in
+ text aren't expanded.
+ * GH-200
+ * Patch by NAITOH Jun.
+
+### Thanks
+
+ * Viktor Ivarsson
+
+ * NAITOH Jun
+
+ * l33thaxor
+
+## 3.3.5 - 2024-08-12 {#version-3-3-5}
+
+### Fixes
+
+ * Fixed a bug that `REXML::Security.entity_expansion_text_limit`
+ check has wrong text size calculation in SAX and pull parsers.
+ * GH-193
+ * GH-195
+ * Reported by Viktor Ivarsson.
+ * Patch by NAITOH Jun.
+
+### Thanks
+
+ * Viktor Ivarsson
+
+ * NAITOH Jun
+
lib/rexml/attribute.rb
--- /tmp/d20240905-2120-3brdgm/rexml-3.3.4/lib/rexml/attribute.rb 2024-09-05 02:59:47.793311064 +0000
+++ /tmp/d20240905-2120-3brdgm/rexml-3.3.7/lib/rexml/attribute.rb 2024-09-05 02:59:47.805311171 +0000
@@ -151,2 +151,3 @@
- @unnormalized = Text::unnormalize( @normalized, doctype )
- @unnormalized
+
+ @unnormalized = Text::unnormalize(@normalized, doctype,
+ entity_expansion_text_limit: @element&.document&.entity_expansion_text_limit)
lib/rexml/document.rb
--- /tmp/d20240905-2120-3brdgm/rexml-3.3.4/lib/rexml/document.rb 2024-09-05 02:59:47.797311099 +0000
+++ /tmp/d20240905-2120-3brdgm/rexml-3.3.7/lib/rexml/document.rb 2024-09-05 02:59:47.805311171 +0000
@@ -93,0 +94,2 @@
+ @entity_expansion_limit = Security.entity_expansion_limit
+ @entity_expansion_text_limit = Security.entity_expansion_text_limit
@@ -433,0 +436,2 @@
+ attr_writer :entity_expansion_limit
+ attr_accessor :entity_expansion_text_limit
@@ -437 +441 @@
- if @entity_expansion_count > Security.entity_expansion_limit
+ if @entity_expansion_count > @entity_expansion_limit
lib/rexml/element.rb
--- /tmp/d20240905-2120-3brdgm/rexml-3.3.4/lib/rexml/element.rb 2024-09-05 02:59:47.797311099 +0000
+++ /tmp/d20240905-2120-3brdgm/rexml-3.3.7/lib/rexml/element.rb 2024-09-05 02:59:47.809311208 +0000
@@ -444,3 +444,8 @@
- return elements[1] if self.kind_of? Document
- return self if parent.kind_of? Document or parent.nil?
- return parent.root
+ target = self
+ while target
+ return target.elements[1] if target.kind_of? Document
+ parent = target.parent
+ return target if parent.kind_of? Document or parent.nil?
+ target = parent
+ end
+ nil
@@ -622,2 +627,6 @@
- ns = attributes[ prefix ]
- ns = parent.namespace(prefix) if ns.nil? and parent
+ ns = nil
+ target = self
+ while ns.nil? and target
+ ns = target.attributes[prefix]
+ target = target.parent
+ end
@@ -2378,11 +2386,0 @@
- # Check for conflicting namespaces
- if value.prefix != "xmlns" and old_attr.prefix != "xmlns"
- old_namespace = old_attr.namespace
- new_namespace = value.namespace
- if old_namespace == new_namespace
- raise ParseException.new(
- "Namespace conflict in adding attribute \"#{value.name}\": "+
- "Prefix \"#{old_attr.prefix}\" = \"#{old_namespace}\" and "+
- "prefix \"#{value.prefix}\" = \"#{new_namespace}\"")
- end
- end
lib/rexml/entity.rb
--- /tmp/d20240905-2120-3brdgm/rexml-3.3.4/lib/rexml/entity.rb 2024-09-05 02:59:47.797311099 +0000
+++ /tmp/d20240905-2120-3brdgm/rexml-3.3.7/lib/rexml/entity.rb 2024-09-05 02:59:47.809311208 +0000
@@ -14,0 +15 @@
+ PEREFERENCE_RE = /#{PEREFERENCE}/um
@@ -22 +23 @@
- attr_reader :name, :external, :ref, :ndata, :pubid
+ attr_reader :name, :external, :ref, :ndata, :pubid, :value
@@ -71,2 +72 @@
- # all entities -- both %ent; and &ent; entities. This differs from
- # +value()+ in that +value+ only replaces %ent; entities.
+ # &ent; entities.
@@ -74,5 +74,6 @@
- document.record_entity_expansion unless document.nil?
- v = value()
- return nil if v.nil?
- @unnormalized = Text::unnormalize(v, parent)
- @unnormalized
+ document&.record_entity_expansion
+
+ return nil if @value.nil?
+
+ @unnormalized = Text::unnormalize(@value, parent,
+ entity_expansion_text_limit: document&.entity_expansion_text_limit)
@@ -122,40 +122,0 @@
- rv
- end
-
- PEREFERENCE_RE = /#{PEREFERENCE}/um
- # Returns the value of this entity. At the moment, only internal entities
- # are processed. If the value contains internal references (IE,
- # %blah;), those are replaced with their values. IE, if the doctype
- # contains:
- # <!ENTITY % foo "bar">
- # <!ENTITY yada "nanoo %foo; nanoo>
- # then:
- # doctype.entity('yada').value #-> "nanoo bar nanoo"
- def value
- @resolved_value ||= resolve_value
- end
-
- def parent=(other)
- @resolved_value = nil
- super
- end
-
- private
- def resolve_value
- return nil if @value.nil?
- return @value unless @value.match?(PEREFERENCE_RE)
-
- matches = @value.scan(PEREFERENCE_RE)
- rv = @value.clone
- if @parent
- sum = 0
- matches.each do |entity_reference|
- entity_value = @parent.entity( entity_reference[0] )
- if sum + entity_value.bytesize > Security.entity_expansion_text_limit
- raise "entity expansion has grown too large"
- else
- sum += entity_value.bytesize
- end
- rv.gsub!( /%#{entity_reference.join};/um, entity_value )
- end
- end
lib/rexml/parsers/baseparser.rb
--- /tmp/d20240905-2120-3brdgm/rexml-3.3.4/lib/rexml/parsers/baseparser.rb 2024-09-05 02:59:47.797311099 +0000
+++ /tmp/d20240905-2120-3brdgm/rexml-3.3.7/lib/rexml/parsers/baseparser.rb 2024-09-05 02:59:47.809311208 +0000
@@ -10,0 +11,16 @@
+ unless [].respond_to?(:tally)
+ module EnumerableTally
+ refine Enumerable do
+ def tally
+ counts = {}
+ each do |item|
+ counts[item] ||= 0
+ counts[item] += 1
+ end
+ counts
+ end
+ end
+ end
+ using EnumerableTally
+ end
+
@@ -127,0 +144 @@
+ PEREFERENCE_PATTERN = /#{PEREFERENCE}/um
@@ -149,0 +167,2 @@
+ @entity_expansion_limit = Security.entity_expansion_limit
+ @entity_expansion_text_limit = Security.entity_expansion_text_limit
@@ -157,0 +177,2 @@
+ attr_writer :entity_expansion_limit
+ attr_writer :entity_expansion_text_limit
@@ -167 +188,2 @@
- @nsstack = []
+ @namespaces = {}
+ @namespaces_restore_stack = []
@@ -234,0 +257,4 @@
+ unless @tags.empty?
+ path = "/" + @tags.join("/")
+ raise ParseException.new("Missing end tag for '#{path}'", @source)
+ end
@@ -267 +292,0 @@
- @nsstack.unshift(Set.new)
@@ -336,0 +362,2 @@
+ elsif Private::PEREFERENCE_PATTERN.match?(match[2])
+ raise REXML::ParseException.new("Parameter entity references forbidden in internal subset: #{match[2]}", @source)
@@ -359 +386 @@
- @nsstack[0] << $1
+ @namespaces[$1] = val
@@ -412 +439 @@
- @nsstack.shift
+ @namespaces_restore_stack.pop
@@ -457,2 +484,2 @@
- @nsstack.unshift(curr_ns=Set.new)
- attributes, closed = parse_attributes(@prefixes, curr_ns)
+ push_namespaces_restore
+ attributes, closed = parse_attributes(@prefixes)
@@ -461 +488 @@
- unless @nsstack.find{|k| k.member?(prefix)}
+ unless @namespaces.key?(prefix)
@@ -468 +495 @@
- @nsstack.shift
+ pop_namespaces_restore
@@ -508,9 +535,7 @@
- value = nil
- value = entities[ reference ] if entities
- if value
- record_entity_expansion
- else
- value = DEFAULT_ENTITIES[ reference ]
- value = value[2] if value
- end
- unnormalize( value, entities ) if value
+ return unless entities
+
+ value = entities[ reference ]
+ return if value.nil?
+
+ record_entity_expansion
+ unnormalize( value, entities )
@@ -549,0 +575,5 @@
+ if filter
+ matches.reject! do |entity_reference|
+ filter.include?(entity_reference)
+ end
+ end
@@ -551,14 +581,13 @@
- sum = 0
- matches.each do |entity_reference|
- unless filter and filter.include?(entity_reference)
- entity_value = entity( entity_reference, entities )
- if entity_value
- re = Private::DEFAULT_ENTITIES_PATTERNS[entity_reference] || /&#{entity_reference};/
- rv.gsub!( re, entity_value )
- sum += rv.bytesize
- if sum > Security.entity_expansion_text_limit
- raise "entity expansion has grown too large"
- end
- else
- er = DEFAULT_ENTITIES[entity_reference]
- rv.gsub!( er[0], er[2] ) if er
+ matches.tally.each do |entity_reference, n|
+ entity_expansion_count_before = @entity_expansion_count
+ entity_value = entity( entity_reference, entities )
+ if entity_value
+ if n > 1
+ entity_expansion_count_delta =
+ @entity_expansion_count - entity_expansion_count_before
+ record_entity_expansion(entity_expansion_count_delta * (n - 1))
+ end
+ re = Private::DEFAULT_ENTITIES_PATTERNS[entity_reference] || /&#{entity_reference};/
+ rv.gsub!( re, entity_value )
+ if rv.bytesize > @entity_expansion_text_limit
+ raise "entity expansion has grown too large"
@@ -565,0 +595,3 @@
+ else
+ er = DEFAULT_ENTITIES[entity_reference]
+ rv.gsub!( er[0], er[2] ) if er
@@ -573,0 +606,25 @@
+ def add_namespace(prefix, uri)
+ @namespaces_restore_stack.last[prefix] = @namespaces[prefix]
+ if uri.nil?
+ @namespaces.delete(prefix)
+ else
+ @namespaces[prefix] = uri
+ end
+ end
+
+ def push_namespaces_restore
+ namespaces_restore = {}
+ @namespaces_restore_stack.push(namespaces_restore)
+ namespaces_restore
+ end
+
+ def pop_namespaces_restore
+ namespaces_restore = @namespaces_restore_stack.pop
+ namespaces_restore.each do |prefix, uri|
+ if uri.nil?
+ @namespaces.delete(prefix)
+ else
+ @namespaces[prefix] = uri
+ end
+ end
+ end
@@ -575,3 +632,3 @@
- def record_entity_expansion
- @entity_expansion_count += 1
- if @entity_expansion_count > Security.entity_expansion_limit
+ def record_entity_expansion(delta=1)
+ @entity_expansion_count += delta
+ if @entity_expansion_count > @entity_expansion_limit
@@ -702 +759 @@
- def parse_attributes(prefixes, curr_ns)
+ def parse_attributes(prefixes)
@@ -703,0 +761 @@
+ expanded_names = {}
@@ -745 +803 @@
- curr_ns << local_part
+ add_namespace(local_part, value)
@@ -752,0 +811,14 @@
+ end
+
+ unless prefix == "xmlns"
+ uri = @namespaces[prefix]
+ expanded_name = [uri, local_part]
+ existing_prefix = expanded_names[expanded_name]
+ if existing_prefix
+ message = "Namespace conflict in adding attribute " +
+ "\"#{local_part}\": " +
+ "Prefix \"#{existing_prefix}\" = \"#{uri}\" and " +
+ "prefix \"#{prefix}\" = \"#{uri}\""
+ raise REXML::ParseException.new(message, @source, self)
+ end
+ expanded_names[expanded_name] = prefix
lib/rexml/parsers/pullparser.rb
--- /tmp/d20240905-2120-3brdgm/rexml-3.3.4/lib/rexml/parsers/pullparser.rb 2024-09-05 02:59:47.797311099 +0000
+++ /tmp/d20240905-2120-3brdgm/rexml-3.3.7/lib/rexml/parsers/pullparser.rb 2024-09-05 02:59:47.809311208 +0000
@@ -53,0 +54,8 @@
+ def entity_expansion_limit=( limit )
+ @parser.entity_expansion_limit = limit
+ end
+
+ def entity_expansion_text_limit=( limit )
+ @parser.entity_expansion_text_limit = limit
+ end
+
lib/rexml/parsers/sax2parser.rb
--- /tmp/d20240905-2120-3brdgm/rexml-3.3.4/lib/rexml/parsers/sax2parser.rb 2024-09-05 02:59:47.797311099 +0000
+++ /tmp/d20240905-2120-3brdgm/rexml-3.3.7/lib/rexml/parsers/sax2parser.rb 2024-09-05 02:59:47.809311208 +0000
@@ -28,0 +29,8 @@
+ def entity_expansion_limit=( limit )
+ @parser.entity_expansion_limit = limit
+ end
+
+ def entity_expansion_text_limit=( limit )
+ @parser.entity_expansion_text_limit = limit
+ end
+
lib/rexml/parsers/streamparser.rb
--- /tmp/d20240905-2120-3brdgm/rexml-3.3.4/lib/rexml/parsers/streamparser.rb 2024-09-05 02:59:47.801311135 +0000
+++ /tmp/d20240905-2120-3brdgm/rexml-3.3.7/lib/rexml/parsers/streamparser.rb 2024-09-05 02:59:47.809311208 +0000
@@ -10 +10 @@
- @tag_stack = []
+ @entities = {}
@@ -16,0 +17,12 @@
+ def entity_expansion_count
+ @parser.entity_expansion_count
+ end
+
+ def entity_expansion_limit=( limit )
+ @parser.entity_expansion_limit = limit
+ end
+
+ def entity_expansion_text_limit=( limit )
+ @parser.entity_expansion_text_limit = limit
+ end
+
@@ -23,5 +34,0 @@
- unless @tag_stack.empty?
- tag_path = "/" + @tag_stack.join("/")
- raise ParseException.new("Missing end tag for '#{tag_path}'",
- @parser.source)
- end
@@ -30 +36,0 @@
- @tag_stack << event[1]
@@ -37 +42,0 @@
- @tag_stack.pop
@@ -39 +44 @@
- unnormalized = @parser.unnormalize( event[1] )
+ unnormalized = @parser.unnormalize( event[1], @entities )
@@ -50,0 +56 @@
+ @entities[ event[1] ] = event[2] if event.size == 3
lib/rexml/parsers/treeparser.rb
--- /tmp/d20240905-2120-3brdgm/rexml-3.3.4/lib/rexml/parsers/treeparser.rb 2024-09-05 02:59:47.801311135 +0000
+++ /tmp/d20240905-2120-3brdgm/rexml-3.3.7/lib/rexml/parsers/treeparser.rb 2024-09-05 02:59:47.809311208 +0000
@@ -18 +17,0 @@
- tag_stack = []
@@ -26,4 +24,0 @@
- unless tag_stack.empty?
- raise ParseException.new("No close tag for #{@build_context.xpath}",
- @parser.source, @parser)
- end
@@ -32 +26,0 @@
- tag_stack.push(event[1])
@@ -38 +31,0 @@
- tag_stack.pop
lib/rexml/rexml.rb
--- /tmp/d20240905-2120-3brdgm/rexml-3.3.4/lib/rexml/rexml.rb 2024-09-05 02:59:47.801311135 +0000
+++ /tmp/d20240905-2120-3brdgm/rexml-3.3.7/lib/rexml/rexml.rb 2024-09-05 02:59:47.809311208 +0000
@@ -34 +34 @@
- VERSION = "3.3.4"
+ VERSION = "3.3.7"
lib/rexml/text.rb
--- /tmp/d20240905-2120-3brdgm/rexml-3.3.4/lib/rexml/text.rb 2024-09-05 02:59:47.801311135 +0000
+++ /tmp/d20240905-2120-3brdgm/rexml-3.3.7/lib/rexml/text.rb 2024-09-05 02:59:47.813311243 +0000
@@ -271 +271,2 @@
- @unnormalized ||= Text::unnormalize( @string, doctype )
+ @unnormalized ||= Text::unnormalize(@string, doctype,
+ entity_expansion_text_limit: document&.entity_expansion_text_limit)
@@ -414 +415,2 @@
- def Text::unnormalize( string, doctype=nil, filter=nil, illegal=nil )
+ def Text::unnormalize( string, doctype=nil, filter=nil, illegal=nil, entity_expansion_text_limit: nil )
+ entity_expansion_text_limit ||= Security.entity_expansion_text_limit
@@ -418 +420 @@
- if sum + s.bytesize > Security.entity_expansion_text_limit
+ if sum + s.bytesize > entity_expansion_text_limit |
gem compare rubocop 1.65.1 1.66.1 Compared versions: ["1.65.1", "1.66.1"]
DIFFERENT date:
1.65.1: 2024-08-01 00:00:00 UTC
1.66.1: 2024-09-04 00:00:00 UTC
DIFFERENT metadata:
1.65.1: {"homepage_uri"=>"https://rubocop.org/", "changelog_uri"=>"https://github.com/rubocop/rubocop/releases/tag/v1.65.1", "source_code_uri"=>"https://github.com/rubocop/rubocop/", "documentation_uri"=>"https://docs.rubocop.org/rubocop/1.65/", "bug_tracker_uri"=>"https://github.com/rubocop/rubocop/issues", "rubygems_mfa_required"=>"true"}
1.66.1: {"homepage_uri"=>"https://rubocop.org/", "changelog_uri"=>"https://github.com/rubocop/rubocop/releases/tag/v1.66.1", "source_code_uri"=>"https://github.com/rubocop/rubocop/", "documentation_uri"=>"https://docs.rubocop.org/rubocop/1.66/", "bug_tracker_uri"=>"https://github.com/rubocop/rubocop/issues", "rubygems_mfa_required"=>"true"}
DIFFERENT rubygems_version:
1.65.1: 3.3.7
1.66.1: 3.4.22
DIFFERENT version:
1.65.1: 1.65.1
1.66.1: 1.66.1
DIFFERENT files:
1.65.1->1.66.1:
* Added:
lib/rubocop/cop/lint/useless_numeric_operation.rb +77/-0
lib/rubocop/cop/style/redundant_interpolation_unfreeze.rb +46/-0
* Changed:
README.md +66/-66
config/default.yml +18/-2
exe/rubocop +4/-3
lib/rubocop.rb +2/-1
lib/rubocop/comment_config.rb +1/-1
lib/rubocop/config.rb +5/-1
lib/rubocop/config_loader.rb +14/-8
lib/rubocop/config_loader_resolver.rb +1/-2
lib/rubocop/config_validator.rb +1/-1
lib/rubocop/cop/base.rb +4/-0
lib/rubocop/cop/correctors/line_break_corrector.rb +2/-0
lib/rubocop/cop/documentation.rb +18/-1
lib/rubocop/cop/internal_affairs/empty_line_between_expect_offense_and_correction.rb +2/-1
lib/rubocop/cop/internal_affairs/node_matcher_directive.rb +1/-1
lib/rubocop/cop/internal_affairs/undefined_config.rb +11/-1
lib/rubocop/cop/layout/block_alignment.rb +30/-12
lib/rubocop/cop/layout/empty_line_between_defs.rb +2/-1
lib/rubocop/cop/layout/empty_lines_around_exception_handling_keywords.rb +8/-3
lib/rubocop/cop/layout/first_array_element_indentation.rb +0/-3
lib/rubocop/cop/layout/line_length.rb +14/-14
lib/rubocop/cop/lint/empty_conditional_body.rb +27/-6
lib/rubocop/cop/lint/float_comparison.rb +1/-3
lib/rubocop/cop/lint/implicit_string_concatenation.rb +4/-2
lib/rubocop/cop/lint/useless_assignment.rb +18/-11
lib/rubocop/cop/lint/void.rb +30/-8
lib/rubocop/cop/metrics/block_length.rb +6/-5
lib/rubocop/cop/metrics/class_length.rb +6/-5
lib/rubocop/cop/metrics/method_length.rb +6/-5
lib/rubocop/cop/metrics/module_length.rb +6/-5
lib/rubocop/cop/mixin/annotation_comment.rb +0/-2
lib/rubocop/cop/mixin/frozen_string_literal.rb +19/-9
lib/rubocop/cop/mixin/line_length_help.rb +7/-2
lib/rubocop/cop/mixin/string_literals_help.rb +12/-0
lib/rubocop/cop/naming/accessor_method_name.rb +5/-0
lib/rubocop/cop/naming/predicate_name.rb +1/-1
lib/rubocop/cop/style/alias.rb +1/-1
lib/rubocop/cop/style/arguments_forwarding.rb +8/-3
lib/rubocop/cop/style/empty_else.rb +6/-5
lib/rubocop/cop/style/empty_heredoc.rb +1/-14
lib/rubocop/cop/style/empty_literal.rb +31/-22
lib/rubocop/cop/style/format_string_token.rb +2/-2
lib/rubocop/cop/style/guard_clause.rb +2/-0
lib/rubocop/cop/style/identical_conditional_branches.rb +1/-1
lib/rubocop/cop/style/if_with_semicolon.rb +45/-6
lib/rubocop/cop/style/in_pattern_then.rb +6/-2
lib/rubocop/cop/style/magic_comment_format.rb +1/-1
lib/rubocop/cop/style/map_into_array.rb +12/-5
lib/rubocop/cop/style/method_call_without_args_parentheses.rb +2/-2
lib/rubocop/cop/style/multiple_comparison.rb +3/-11
lib/rubocop/cop/style/numeric_predicate.rb +2/-2
lib/rubocop/cop/style/one_line_conditional.rb +1/-1
lib/rubocop/cop/style/parallel_assignment.rb +5/-4
lib/rubocop/cop/style/quoted_symbols.rb +0/-2
lib/rubocop/cop/style/redundant_condition.rb +3/-2
lib/rubocop/cop/style/redundant_regexp_argument.rb +4/-1
lib/rubocop/cop/style/safe_navigation.rb +2/-2
lib/rubocop/cop/team.rb +6/-2
lib/rubocop/formatter/junit_formatter.rb +70/-23
lib/rubocop/lockfile.rb +6/-4
lib/rubocop/remote_config.rb +5/-1
lib/rubocop/result_cache.rb +2/-8
lib/rubocop/rspec/shared_contexts.rb +2/-2
lib/rubocop/server/cache.rb +1/-1
lib/rubocop/target_ruby.rb +7/-3
lib/rubocop/version.rb +1/-1
lib/rubocop/yaml_duplication_checker.rb +1/-0
DIFFERENT extra_rdoc_files:
1.65.1->1.66.1:
* Changed:
README.md +66/-66
DIFFERENT runtime dependencies:
1.65.1->1.66.1:
* Deleted:
rexml [">= 3.2.5", "< 4.0"] (runtime)
* Updated:
rubocop-ast from: [">= 1.31.1", "< 2.0"] to: [">= 1.32.2", "< 2.0"] |
|
gem compare rubocop-ast 1.32.0 1.32.3 Compared versions: ["1.32.0", "1.32.3"]
DIFFERENT date:
1.32.0: 2024-08-05 00:00:00 UTC
1.32.3: 2024-09-04 00:00:00 UTC
DIFFERENT rubygems_version:
1.32.0: 3.5.11
1.32.3: 3.6.0.dev
DIFFERENT version:
1.32.0: 1.32.0
1.32.3: 1.32.3
DIFFERENT files:
1.32.0->1.32.3:
* Added:
lib/rubocop/ast/utilities/simple_forwardable.rb +16/-0
* Changed:
README.md +1/-1
lib/rubocop/ast.rb +1/-0
lib/rubocop/ast/node/def_node.rb +1/-1
lib/rubocop/ast/node/ensure_node.rb +8/-0
lib/rubocop/ast/node/mixin/collection_node.rb +1/-1
lib/rubocop/ast/node_pattern.rb +1/-1
lib/rubocop/ast/node_pattern/compiler.rb +1/-1
lib/rubocop/ast/node_pattern/lexer.rex.rb +2/-1
lib/rubocop/ast/node_pattern/node.rb +1/-1
lib/rubocop/ast/node_pattern/parser.racc.rb +40/-42
lib/rubocop/ast/node_pattern/parser.rb +1/-1
lib/rubocop/ast/version.rb +1/-1
DIFFERENT extra_rdoc_files:
1.32.0->1.32.3:
* Changed:
README.md +1/-1 |
gem compare --diff rubocop-ast 1.32.0 1.32.3 Compared versions: ["1.32.0", "1.32.3"]
DIFFERENT files:
1.32.0->1.32.3:
* Added:
lib/rubocop/ast/utilities/simple_forwardable.rb
--- /tmp/20240905-4031-2amai7 2024-09-05 03:00:02.933447913 +0000
+++ /tmp/d20240905-4031-2cgayp/rubocop-ast-1.32.3/lib/rubocop/ast/utilities/simple_forwardable.rb 2024-09-05 03:00:02.933447913 +0000
@@ -0,0 +1,16 @@
+# frozen_string_literal: true
+
+module RuboCop
+ # Similar to `Forwardable#def_delegators`, but simpler & faster
+ module SimpleForwardable
+ def def_delegators(accessor, *methods)
+ methods.each do |method|
+ class_eval(<<~RUBY, __FILE__, __LINE__ + 1)
+ def #{method}(...) # def example(...)
+ #{accessor}.#{method}(...) # foo.example(...)
+ end # end
+ RUBY
+ end
+ end
+ end
+end
* Changed:
README.md
--- /tmp/d20240905-4031-2cgayp/rubocop-ast-1.32.0/README.md 2024-09-05 03:00:02.905447646 +0000
+++ /tmp/d20240905-4031-2cgayp/rubocop-ast-1.32.3/README.md 2024-09-05 03:00:02.917447761 +0000
@@ -4 +4 @@
-[![CI](https://github.com/rubocop/rubocop-ast/workflows/CI/badge.svg)](https://github.com/rubocop/rubocop-ast/actions?query=workflow%3ACI)
+[![CI](https://github.com/rubocop/rubocop-ast/actions/workflows/rubocop.yml/badge.svg)](https://github.com/rubocop/rubocop-ast/actions/workflows/rubocop.yml)
lib/rubocop/ast.rb
--- /tmp/d20240905-4031-2cgayp/rubocop-ast-1.32.0/lib/rubocop/ast.rb 2024-09-05 03:00:02.905447646 +0000
+++ /tmp/d20240905-4031-2cgayp/rubocop-ast-1.32.3/lib/rubocop/ast.rb 2024-09-05 03:00:02.917447761 +0000
@@ -7,0 +8 @@
+require_relative 'ast/utilities/simple_forwardable'
lib/rubocop/ast/node/def_node.rb
--- /tmp/d20240905-4031-2cgayp/rubocop-ast-1.32.0/lib/rubocop/ast/node/def_node.rb 2024-09-05 03:00:02.909447685 +0000
+++ /tmp/d20240905-4031-2cgayp/rubocop-ast-1.32.3/lib/rubocop/ast/node/def_node.rb 2024-09-05 03:00:02.921447798 +0000
@@ -16 +16 @@
- method?(:initialize) || assignment_method?
+ (def_type? && method?(:initialize)) || assignment_method?
lib/rubocop/ast/node/ensure_node.rb
--- /tmp/d20240905-4031-2cgayp/rubocop-ast-1.32.0/lib/rubocop/ast/node/ensure_node.rb 2024-09-05 03:00:02.909447685 +0000
+++ /tmp/d20240905-4031-2cgayp/rubocop-ast-1.32.3/lib/rubocop/ast/node/ensure_node.rb 2024-09-05 03:00:02.921447798 +0000
@@ -14,0 +15,8 @@
+
+ # Checks whether this node body is a void context.
+ # Always `true` for `ensure`.
+ #
+ # @return [true] whether the `ensure` node body is a void context
+ def void_context?
+ true
+ end
lib/rubocop/ast/node/mixin/collection_node.rb
--- /tmp/d20240905-4031-2cgayp/rubocop-ast-1.32.0/lib/rubocop/ast/node/mixin/collection_node.rb 2024-09-05 03:00:02.909447685 +0000
+++ /tmp/d20240905-4031-2cgayp/rubocop-ast-1.32.3/lib/rubocop/ast/node/mixin/collection_node.rb 2024-09-05 03:00:02.925447837 +0000
@@ -7 +7 @@
- extend Forwardable
+ extend SimpleForwardable
lib/rubocop/ast/node_pattern.rb
--- /tmp/d20240905-4031-2cgayp/rubocop-ast-1.32.0/lib/rubocop/ast/node_pattern.rb 2024-09-05 03:00:02.913447722 +0000
+++ /tmp/d20240905-4031-2cgayp/rubocop-ast-1.32.3/lib/rubocop/ast/node_pattern.rb 2024-09-05 03:00:02.929447875 +0000
@@ -51 +51 @@
- extend Forwardable
+ extend SimpleForwardable
lib/rubocop/ast/node_pattern/compiler.rb
--- /tmp/d20240905-4031-2cgayp/rubocop-ast-1.32.0/lib/rubocop/ast/node_pattern/compiler.rb 2024-09-05 03:00:02.913447722 +0000
+++ /tmp/d20240905-4031-2cgayp/rubocop-ast-1.32.3/lib/rubocop/ast/node_pattern/compiler.rb 2024-09-05 03:00:02.929447875 +0000
@@ -12 +12 @@
- extend Forwardable
+ extend SimpleForwardable
lib/rubocop/ast/node_pattern/lexer.rex.rb
--- /tmp/d20240905-4031-2cgayp/rubocop-ast-1.32.0/lib/rubocop/ast/node_pattern/lexer.rex.rb 2024-09-05 03:00:02.917447761 +0000
+++ /tmp/d20240905-4031-2cgayp/rubocop-ast-1.32.3/lib/rubocop/ast/node_pattern/lexer.rex.rb 2024-09-05 03:00:02.929447875 +0000
@@ -5 +5 @@
-# Generated by: oedipus_lex version 2.6.2.
+# Generated by: oedipus_lex version 2.6.0.
@@ -71,0 +72 @@
+
lib/rubocop/ast/node_pattern/node.rb
--- /tmp/d20240905-4031-2cgayp/rubocop-ast-1.32.0/lib/rubocop/ast/node_pattern/node.rb 2024-09-05 03:00:02.917447761 +0000
+++ /tmp/d20240905-4031-2cgayp/rubocop-ast-1.32.3/lib/rubocop/ast/node_pattern/node.rb 2024-09-05 03:00:02.929447875 +0000
@@ -8 +8 @@
- extend Forwardable
+ extend SimpleForwardable
lib/rubocop/ast/node_pattern/parser.racc.rb
--- /tmp/d20240905-4031-2cgayp/rubocop-ast-1.32.0/lib/rubocop/ast/node_pattern/parser.racc.rb 2024-09-05 03:00:02.917447761 +0000
+++ /tmp/d20240905-4031-2cgayp/rubocop-ast-1.32.3/lib/rubocop/ast/node_pattern/parser.racc.rb 2024-09-05 03:00:02.929447875 +0000
@@ -4,2 +4,2 @@
-# This file is automatically generated by Racc 1.8.1
-# from Racc grammar file "parser.y".
+# This file is automatically generated by Racc 1.5.0
+# from Racc grammar file "".
@@ -17,2 +17,2 @@
- 60, 22, 20, 4, 24, 5, 40, 6, 7, 8,
- 28, 23, 56, 50, 40, 61, 43, 66, 51, 51,
+ 60, 22, 20, 4, 40, 5, 43, 6, 7, 8,
+ 28, 23, 56, 50, 66, 61, 24, 51, 51, 40,
@@ -25 +25 @@
- 20, 4, nil, 5, nil, 6, 7, 8, 28, 23,
+ 20, 4, nil, 5, nil, 6, 7, 8, 9, 23,
@@ -36 +36 @@
- 20, 4, nil, 5, nil, 6, 7, 8, 9, 23,
+ 20, 4, nil, 5, nil, 6, 7, 8, 28, 23,
@@ -50,2 +50,2 @@
- 9, 23, -1, -1, -1, -2, -2, -2, 47, 48,
- 49 ]
+ 9, 23, 47, 48, 49, -1, -1, -1, -2, -2,
+ -2 ]
@@ -55,2 +55,2 @@
- 54, 42, 42, 42, 1, 42, 10, 42, 42, 42,
- 42, 42, 42, 30, 11, 54, 24, 62, 30, 63,
+ 54, 42, 42, 42, 11, 42, 24, 42, 42, 42,
+ 42, 42, 42, 30, 62, 54, 1, 63, 30, 10,
@@ -59 +59,12 @@
- 59, 59, 59, nil, nil, 59, 0, 0, 0, 0,
+ 59, 59, 59, nil, nil, 59, 5, 5, 5, 5,
+ 5, 5, 5, 5, 5, 5, nil, 5, 5, 5,
+ nil, 5, nil, 5, 5, 5, 5, 5, 6, 6,
+ 6, 6, 6, 6, 6, 6, 6, 6, nil, 6,
+ 6, 6, nil, 6, nil, 6, 6, 6, 6, 6,
+ 7, 7, 7, 7, 7, 7, 7, 7, 7, 7,
+ nil, 7, 7, 7, nil, 7, nil, 7, 7, 7,
+ 7, 7, 8, 8, 8, 8, 8, 8, 8, 8,
+ 8, 8, nil, 8, 8, 8, nil, 8, nil, 8,
+ 8, 8, 8, 8, 9, 9, 9, 9, 9, 9,
+ 9, 9, 9, 9, nil, 9, 9, 9, nil, 9,
+ nil, 9, 9, 9, 9, 9, 0, 0, 0, 0,
@@ -64,11 +74,0 @@
- 5, 5, 5, 5, 5, 5, 5, 5, 5, 5,
- nil, 5, 5, 5, nil, 5, nil, 5, 5, 5,
- 5, 5, 6, 6, 6, 6, 6, 6, 6, 6,
- 6, 6, nil, 6, 6, 6, nil, 6, nil, 6,
- 6, 6, 6, 6, 7, 7, 7, 7, 7, 7,
- 7, 7, 7, 7, nil, 7, 7, 7, nil, 7,
- nil, 7, 7, 7, 7, 7, 8, 8, 8, 8,
- 8, 8, 8, 8, 8, 8, nil, 8, 8, 8,
- nil, 8, nil, 8, 8, 8, 8, 8, 9, 9,
- 9, 9, 9, 9, 9, 9, 9, 9, nil, 9,
- 9, 9, nil, 9, nil, 9, 9, 9, 9, 9,
@@ -88,2 +88,2 @@
- 61, 61, 25, 25, 25, 26, 26, 26, 29, 29,
- 29 ]
+ 61, 61, 29, 29, 29, 25, 25, 25, 26, 26,
+ 26 ]
@@ -92,3 +92,3 @@
- 54, 14, nil, nil, 76, 98, 120, 142, 164, 186,
- 4, 12, nil, nil, nil, nil, nil, nil, nil, nil,
- nil, nil, nil, nil, 26, 315, 318, 208, 230, 321,
+ 164, 26, nil, nil, 186, 54, 76, 98, 120, 142,
+ 17, 2, nil, nil, nil, nil, nil, nil, nil, nil,
+ nil, nil, nil, nil, 16, 318, 321, 208, 230, 315,
@@ -98 +98 @@
- nil, 318, 1, -1, nil, nil, nil ]
+ nil, 318, -2, -3, nil, nil, nil ]
@@ -110,5 +110,5 @@
- 1, 33, 27, 25, 26, 34, 35, 36, 37, 38,
- 42, 32, 39, 41, 46, 63, 62, 64, 54, nil,
- nil, nil, nil, nil, nil, nil, 25, 26, 38, nil,
- nil, nil, nil, 53, 45, nil, nil, nil, nil, nil,
- 55, 25, 26, nil, nil, nil, 59, nil, nil, 57,
+ 1, 33, 64, 32, 25, 34, 35, 36, 37, 38,
+ 54, 26, 39, 41, 27, 42, 46, 63, 62, nil,
+ nil, nil, nil, nil, nil, nil, 45, 25, 38, nil,
+ nil, nil, nil, 53, 26, nil, nil, nil, nil, nil,
+ 55, 57, 25, nil, nil, nil, 59, nil, nil, 26,
@@ -119,5 +119,5 @@
- 1, 5, 4, 2, 3, 1, 1, 1, 1, 1,
- 8, 9, 6, 6, 10, 11, 12, 13, 14, nil,
- nil, nil, nil, nil, nil, nil, 2, 3, 1, nil,
- nil, nil, nil, 1, 9, nil, nil, nil, nil, nil,
- 1, 2, 3, nil, nil, nil, 5, nil, nil, 9,
+ 1, 5, 13, 9, 2, 1, 1, 1, 1, 1,
+ 14, 3, 6, 6, 4, 8, 10, 11, 12, nil,
+ nil, nil, nil, nil, nil, nil, 9, 2, 1, nil,
+ nil, nil, nil, 1, 3, nil, nil, nil, nil, nil,
+ 1, 9, 2, nil, nil, nil, 5, nil, nil, 3,
@@ -128,2 +128,2 @@
- nil, 0, -1, 0, -2, -4, 2, nil, -13, 7,
- -15, -44, -43, -42, -22 ]
+ nil, 0, 0, 7, 10, -4, 2, nil, -8, -1,
+ -13, -42, -41, -57, -30 ]
@@ -242 +241,0 @@
-Ractor.make_shareable(Racc_arg) if defined?(Ractor)
@@ -293 +291,0 @@
-Ractor.make_shareable(Racc_token_to_s_table) if defined?(Ractor)
lib/rubocop/ast/node_pattern/parser.rb
--- /tmp/d20240905-4031-2cgayp/rubocop-ast-1.32.0/lib/rubocop/ast/node_pattern/parser.rb 2024-09-05 03:00:02.917447761 +0000
+++ /tmp/d20240905-4031-2cgayp/rubocop-ast-1.32.3/lib/rubocop/ast/node_pattern/parser.rb 2024-09-05 03:00:02.929447875 +0000
@@ -14 +14 @@
- extend Forwardable
+ extend SimpleForwardable
lib/rubocop/ast/version.rb
--- /tmp/d20240905-4031-2cgayp/rubocop-ast-1.32.0/lib/rubocop/ast/version.rb 2024-09-05 03:00:02.917447761 +0000
+++ /tmp/d20240905-4031-2cgayp/rubocop-ast-1.32.3/lib/rubocop/ast/version.rb 2024-09-05 03:00:02.933447913 +0000
@@ -6 +6 @@
- STRING = '1.32.0'
+ STRING = '1.32.3'
|
dependabot
bot
force-pushed
the
dependabot/bundler/rubocop-1.66.1
branch
from
September 9, 2024 05:02
f34ed0a
to
980d705
Compare
dependabot
bot
force-pushed
the
dependabot/bundler/rubocop-1.66.1
branch
2 times, most recently
from
September 22, 2024 20:34
08b4650
to
8743808
Compare
@dependabot rebase |
Looks like this PR is already up-to-date with main! If you'd still like to recreate it from scratch, overwriting any edits, you can request |
dentarg
approved these changes
Sep 22, 2024
Bumps [rubocop](https://github.com/rubocop/rubocop) from 1.65.1 to 1.66.1. - [Release notes](https://github.com/rubocop/rubocop/releases) - [Changelog](https://github.com/rubocop/rubocop/blob/master/CHANGELOG.md) - [Commits](rubocop/rubocop@v1.65.1...v1.66.1) --- updated-dependencies: - dependency-name: rubocop dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]>
dependabot
bot
force-pushed
the
dependabot/bundler/rubocop-1.66.1
branch
from
September 22, 2024 20:38
8743808
to
72bbabd
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Bumps rubocop from 1.65.1 to 1.66.1.
Release notes
Sourced from rubocop's releases.
... (truncated)
Changelog
Sourced from rubocop's changelog.
... (truncated)
Commits
ba8e7be
Cut 1.66.12900c91
Update Changelog08bed81
Fix an error forStyle/IfWithSemicolon
c2ae362
Don't parse YAML twice5f3481f
Userubocop-ast
SimpleForwardable
5e65a39
Merge pull request #13185 from vlad-pisanov/vp_map_into_array_2d18b3c9
Fix false negatives inStyle/MapIntoArray
autocorrection when using `ensure...3277118
[Fix #13182] Tweak the doc forStyle/RedundantInterpolationUnfreeze
9a38b11
Merge pull request #13179 from Earlopain/node-matcher-directiry-errorfd4f4d7
Fix an error forInternalAffairs/NodeMatcherDirective
when no second argumentDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebase
will rebase this PR@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it@dependabot merge
will merge this PR after your CI passes on it@dependabot squash and merge
will squash and merge this PR after your CI passes on it@dependabot cancel merge
will cancel a previously requested merge and block automerging@dependabot reopen
will reopen this PR if it is closed@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditions
will show all of the ignore conditions of the specified dependency@dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)