cybrid_api_organization_ruby 0.123.229 → 0.123.231

Sign up to get free protection for your applications and to get access to all the features.
Files changed (124) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +2 -2
  3. data/README.md +5 -5
  4. data/cybrid_api_organization_ruby.gemspec +1 -1
  5. data/lib/cybrid_api_organization_ruby/api/organizations_organization_api.rb +1 -1
  6. data/lib/cybrid_api_organization_ruby/api/subscription_deliveries_organization_api.rb +1 -1
  7. data/lib/cybrid_api_organization_ruby/api/subscription_events_organization_api.rb +1 -1
  8. data/lib/cybrid_api_organization_ruby/api/subscriptions_organization_api.rb +1 -1
  9. data/lib/cybrid_api_organization_ruby/api_client.rb +1 -1
  10. data/lib/cybrid_api_organization_ruby/api_error.rb +1 -1
  11. data/lib/cybrid_api_organization_ruby/configuration.rb +1 -1
  12. data/lib/cybrid_api_organization_ruby/models/error_response_organization_model.rb +1 -1
  13. data/lib/cybrid_api_organization_ruby/models/organization_organization_model.rb +1 -1
  14. data/lib/cybrid_api_organization_ruby/models/patch_organization_organization_model.rb +1 -1
  15. data/lib/cybrid_api_organization_ruby/models/post_subscription_delivery_organization_model.rb +1 -1
  16. data/lib/cybrid_api_organization_ruby/models/post_subscription_organization_model.rb +1 -1
  17. data/lib/cybrid_api_organization_ruby/models/subscription_delivery_list_organization_model.rb +1 -1
  18. data/lib/cybrid_api_organization_ruby/models/subscription_delivery_organization_model.rb +1 -1
  19. data/lib/cybrid_api_organization_ruby/models/subscription_environment_organization_model.rb +1 -1
  20. data/lib/cybrid_api_organization_ruby/models/subscription_event_list_organization_model.rb +1 -1
  21. data/lib/cybrid_api_organization_ruby/models/subscription_event_organization_model.rb +1 -1
  22. data/lib/cybrid_api_organization_ruby/models/subscription_list_organization_model.rb +1 -1
  23. data/lib/cybrid_api_organization_ruby/models/subscription_organization_model.rb +1 -1
  24. data/lib/cybrid_api_organization_ruby/models/subscription_state_organization_model.rb +1 -1
  25. data/lib/cybrid_api_organization_ruby/models/subscription_type_organization_model.rb +1 -1
  26. data/lib/cybrid_api_organization_ruby/version.rb +2 -2
  27. data/lib/cybrid_api_organization_ruby.rb +1 -1
  28. data/spec/api/organizations_organization_api_spec.rb +1 -1
  29. data/spec/api/subscription_deliveries_organization_api_spec.rb +1 -1
  30. data/spec/api/subscription_events_organization_api_spec.rb +1 -1
  31. data/spec/api/subscriptions_organization_api_spec.rb +1 -1
  32. data/spec/api_client_spec.rb +1 -1
  33. data/spec/configuration_spec.rb +1 -1
  34. data/spec/models/error_response_organization_model_spec.rb +1 -1
  35. data/spec/models/organization_organization_model_spec.rb +1 -1
  36. data/spec/models/patch_organization_organization_model_spec.rb +1 -1
  37. data/spec/models/post_subscription_delivery_organization_model_spec.rb +1 -1
  38. data/spec/models/post_subscription_organization_model_spec.rb +1 -1
  39. data/spec/models/subscription_delivery_list_organization_model_spec.rb +1 -1
  40. data/spec/models/subscription_delivery_organization_model_spec.rb +1 -1
  41. data/spec/models/subscription_environment_organization_model_spec.rb +1 -1
  42. data/spec/models/subscription_event_list_organization_model_spec.rb +1 -1
  43. data/spec/models/subscription_event_organization_model_spec.rb +1 -1
  44. data/spec/models/subscription_list_organization_model_spec.rb +1 -1
  45. data/spec/models/subscription_organization_model_spec.rb +1 -1
  46. data/spec/models/subscription_state_organization_model_spec.rb +1 -1
  47. data/spec/models/subscription_type_organization_model_spec.rb +1 -1
  48. data/spec/spec_helper.rb +1 -1
  49. data/vendor/bundle/ruby/3.3.0/cache/diff-lcs-1.6.0.gem +0 -0
  50. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/byebug-11.1.3/gem_make.out +5 -5
  51. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/date-3.4.1/gem_make.out +5 -5
  52. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/jaro_winkler-1.5.6/gem_make.out +5 -5
  53. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/psych-5.2.3/gem_make.out +5 -5
  54. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/racc-1.8.1/gem_make.out +5 -5
  55. data/vendor/bundle/ruby/3.3.0/extensions/x86_64-linux/3.3.0/stringio-3.1.2/gem_make.out +5 -5
  56. data/vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.6.0/CHANGELOG.md +491 -0
  57. data/vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.6.0/CODE_OF_CONDUCT.md +128 -0
  58. data/vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.6.0/CONTRIBUTING.md +74 -0
  59. data/vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.6.0/CONTRIBUTORS.md +48 -0
  60. data/vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.6.0/Contributing.md +74 -0
  61. data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/Manifest.txt +7 -4
  62. data/vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.6.0/README.md +92 -0
  63. data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/Rakefile +12 -44
  64. data/vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.6.0/SECURITY.md +41 -0
  65. data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/docs/artistic.txt +1 -1
  66. data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/lib/diff/lcs/change.rb +1 -1
  67. data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/lib/diff/lcs/htmldiff.rb +2 -0
  68. data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/lib/diff/lcs/hunk.rb +38 -22
  69. data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/lib/diff/lcs/ldiff.rb +60 -50
  70. data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/lib/diff/lcs.rb +10 -9
  71. data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/spec/hunk_spec.rb +1 -1
  72. data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/spec/issues_spec.rb +32 -32
  73. data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/spec/ldiff_spec.rb +21 -10
  74. data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/spec/patch_spec.rb +1 -1
  75. data/vendor/bundle/ruby/3.3.0/specifications/{diff-lcs-1.5.1.gemspec → diff-lcs-1.6.0.gemspec} +11 -10
  76. metadata +66 -63
  77. data/vendor/bundle/ruby/3.3.0/cache/diff-lcs-1.5.1.gem +0 -0
  78. data/vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.5.1/Code-of-Conduct.md +0 -74
  79. data/vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.5.1/Contributing.md +0 -121
  80. data/vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.5.1/History.md +0 -431
  81. data/vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.5.1/README.rdoc +0 -84
  82. /data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/.rspec +0 -0
  83. /data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1/License.md → diff-lcs-1.6.0/LICENCE.md} +0 -0
  84. /data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/bin/htmldiff +0 -0
  85. /data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/bin/ldiff +0 -0
  86. /data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/docs/COPYING.txt +0 -0
  87. /data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/lib/diff/lcs/array.rb +0 -0
  88. /data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/lib/diff/lcs/backports.rb +0 -0
  89. /data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/lib/diff/lcs/block.rb +0 -0
  90. /data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/lib/diff/lcs/callbacks.rb +0 -0
  91. /data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/lib/diff/lcs/internals.rb +0 -0
  92. /data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/lib/diff/lcs/string.rb +0 -0
  93. /data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/lib/diff-lcs.rb +0 -0
  94. /data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/spec/change_spec.rb +0 -0
  95. /data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/spec/diff_spec.rb +0 -0
  96. /data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/spec/fixtures/aX +0 -0
  97. /data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/spec/fixtures/bXaX +0 -0
  98. /data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/spec/fixtures/ds1.csv +0 -0
  99. /data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/spec/fixtures/ds2.csv +0 -0
  100. /data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/spec/fixtures/ldiff/output.diff +0 -0
  101. /data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/spec/fixtures/ldiff/output.diff-c +0 -0
  102. /data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/spec/fixtures/ldiff/output.diff-e +0 -0
  103. /data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/spec/fixtures/ldiff/output.diff-f +0 -0
  104. /data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/spec/fixtures/ldiff/output.diff-u +0 -0
  105. /data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/spec/fixtures/ldiff/output.diff.chef +0 -0
  106. /data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/spec/fixtures/ldiff/output.diff.chef-c +0 -0
  107. /data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/spec/fixtures/ldiff/output.diff.chef-e +0 -0
  108. /data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/spec/fixtures/ldiff/output.diff.chef-f +0 -0
  109. /data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/spec/fixtures/ldiff/output.diff.chef-u +0 -0
  110. /data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/spec/fixtures/ldiff/output.diff.chef2 +0 -0
  111. /data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/spec/fixtures/ldiff/output.diff.chef2-c +0 -0
  112. /data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/spec/fixtures/ldiff/output.diff.chef2-d +0 -0
  113. /data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/spec/fixtures/ldiff/output.diff.chef2-e +0 -0
  114. /data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/spec/fixtures/ldiff/output.diff.chef2-f +0 -0
  115. /data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/spec/fixtures/ldiff/output.diff.chef2-u +0 -0
  116. /data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/spec/fixtures/new-chef +0 -0
  117. /data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/spec/fixtures/new-chef2 +0 -0
  118. /data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/spec/fixtures/old-chef +0 -0
  119. /data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/spec/fixtures/old-chef2 +0 -0
  120. /data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/spec/lcs_spec.rb +0 -0
  121. /data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/spec/sdiff_spec.rb +0 -0
  122. /data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/spec/spec_helper.rb +0 -0
  123. /data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/spec/traverse_balanced_spec.rb +0 -0
  124. /data/vendor/bundle/ruby/3.3.0/gems/{diff-lcs-1.5.1 → diff-lcs-1.6.0}/spec/traverse_sequences_spec.rb +0 -0
@@ -1,7 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require "optparse"
4
- require "ostruct"
5
4
  require "diff/lcs/hunk"
6
5
 
7
6
  module Diff::LCS::Ldiff # :nodoc:
@@ -18,14 +17,20 @@ ldiff #{Diff::LCS::VERSION}
18
17
  MIT licence.
19
18
  COPYRIGHT
20
19
  # standard:enable Layout/HeredocIndentation
21
- end
22
20
 
23
- class << Diff::LCS::Ldiff
24
- attr_reader :format, :lines # :nodoc:
25
- attr_reader :file_old, :file_new # :nodoc:
26
- attr_reader :data_old, :data_new # :nodoc:
21
+ InputInfo = Struct.new(:filename, :data, :stat) do
22
+ def initialize(filename)
23
+ super(filename, ::File.read(filename), ::File.stat(filename))
24
+ end
25
+ end
26
+
27
+ class << self
28
+ attr_reader :format, :lines # :nodoc:
29
+ attr_reader :file_old, :file_new # :nodoc:
30
+ attr_reader :data_old, :data_new # :nodoc:
31
+ end
27
32
 
28
- def run(args, _input = $stdin, output = $stdout, error = $stderr) # :nodoc:
33
+ def self.run(args, _input = $stdin, output = $stdout, error = $stderr) # :nodoc:
29
34
  @binary = nil
30
35
 
31
36
  args.options do |o|
@@ -86,8 +91,18 @@ class << Diff::LCS::Ldiff
86
91
  @lines ||= 0
87
92
 
88
93
  file_old, file_new = *ARGV
94
+ diff?(
95
+ InputInfo.new(file_old),
96
+ InputInfo.new(file_new),
97
+ @format,
98
+ output,
99
+ binary: @binary,
100
+ lines: @lines
101
+ ) ? 1 : 0
102
+ end
89
103
 
90
- case @format
104
+ def self.diff?(info_old, info_new, format, output, binary: nil, lines: 0)
105
+ case format
91
106
  when :context
92
107
  char_old = "*" * 3
93
108
  char_new = "-" * 3
@@ -100,74 +115,69 @@ class << Diff::LCS::Ldiff
100
115
  # items we've read from each file will differ by FLD (could be 0).
101
116
  file_length_difference = 0
102
117
 
103
- data_old = File.read(file_old)
104
- data_new = File.read(file_new)
105
-
106
118
  # Test binary status
107
- if @binary.nil?
108
- old_txt = data_old[0, 4096].scan(/\0/).empty?
109
- new_txt = data_new[0, 4096].scan(/\0/).empty?
110
- @binary = !old_txt || !new_txt
111
- end
112
-
113
- unless @binary
114
- data_old = data_old.lines.to_a
115
- data_new = data_new.lines.to_a
119
+ if binary.nil?
120
+ old_bin = info_old.data[0, 4096].include?("\0")
121
+ new_bin = info_new.data[0, 4096].include?("\0")
122
+ binary = old_bin || new_bin
116
123
  end
117
124
 
118
125
  # diff yields lots of pieces, each of which is basically a Block object
119
- if @binary
120
- diffs = (data_old == data_new)
126
+ if binary
127
+ has_diffs = (info_old.data != info_new.data)
128
+ if format != :report
129
+ if has_diffs
130
+ output << "Binary files #{info_old.filename} and #{info_new.filename} differ\n"
131
+ return true
132
+ end
133
+ return false
134
+ end
121
135
  else
136
+ data_old = info_old.data.lines.to_a
137
+ data_new = info_new.data.lines.to_a
122
138
  diffs = Diff::LCS.diff(data_old, data_new)
123
- diffs = nil if diffs.empty?
139
+ return false if diffs.empty?
124
140
  end
125
141
 
126
- return 0 unless diffs
127
-
128
- if @format == :report
129
- output << "Files #{file_old} and #{file_new} differ\n"
130
- return 1
131
- end
132
-
133
- if (@format == :unified) || (@format == :context)
134
- ft = File.stat(file_old).mtime.localtime.strftime("%Y-%m-%d %H:%M:%S.000000000 %z")
135
- output << "#{char_old} #{file_old}\t#{ft}\n"
136
- ft = File.stat(file_new).mtime.localtime.strftime("%Y-%m-%d %H:%M:%S.000000000 %z")
137
- output << "#{char_new} #{file_new}\t#{ft}\n"
142
+ case format
143
+ when :report
144
+ output << "Files #{info_old.filename} and #{info_new.filename} differ\n"
145
+ return true
146
+ when :unified, :context
147
+ ft = info_old.stat.mtime.localtime.strftime("%Y-%m-%d %H:%M:%S.000000000 %z")
148
+ output << "#{char_old} #{info_old.filename}\t#{ft}\n"
149
+ ft = info_new.stat.mtime.localtime.strftime("%Y-%m-%d %H:%M:%S.000000000 %z")
150
+ output << "#{char_new} #{info_new.filename}\t#{ft}\n"
151
+ when :ed
152
+ real_output = output
153
+ output = []
138
154
  end
139
155
 
140
156
  # Loop over hunks. If a hunk overlaps with the last hunk, join them.
141
157
  # Otherwise, print out the old one.
142
158
  oldhunk = hunk = nil
143
-
144
- if @format == :ed
145
- real_output = output
146
- output = []
147
- end
148
-
149
159
  diffs.each do |piece|
150
- begin # rubocop:disable Style/RedundantBegin
151
- hunk = Diff::LCS::Hunk.new(data_old, data_new, piece, @lines, file_length_difference)
160
+ begin
161
+ hunk = Diff::LCS::Hunk.new(data_old, data_new, piece, lines, file_length_difference)
152
162
  file_length_difference = hunk.file_length_difference
153
163
 
154
164
  next unless oldhunk
155
- next if @lines.positive? && hunk.merge(oldhunk)
165
+ next if lines.positive? && hunk.merge(oldhunk)
156
166
 
157
- output << oldhunk.diff(@format)
158
- output << "\n" if @format == :unified
167
+ output << oldhunk.diff(format)
168
+ output << "\n" if format == :unified
159
169
  ensure
160
170
  oldhunk = hunk
161
171
  end
162
172
  end
163
173
 
164
- last = oldhunk.diff(@format, true)
165
- last << "\n" if last.respond_to?(:end_with?) && !last.end_with?("\n")
174
+ last = oldhunk.diff(format, true)
175
+ last << "\n" unless last.is_a?(Diff::LCS::Hunk) || last.empty? || last.end_with?("\n")
166
176
 
167
177
  output << last
168
178
 
169
- output.reverse_each { |e| real_output << e.diff(:ed_finish) } if @format == :ed
179
+ output.reverse_each { |e| real_output << e.diff(:ed_finish, e == output[0]) } if format == :ed
170
180
 
171
- 1
181
+ true
172
182
  end
173
183
  end
@@ -49,7 +49,7 @@ module Diff; end unless defined? Diff
49
49
  # a x b y c z p d q
50
50
  # a b c a x b y c z
51
51
  module Diff::LCS
52
- VERSION = "1.5.1"
52
+ VERSION = "1.6.0"
53
53
  end
54
54
 
55
55
  require "diff/lcs/callbacks"
@@ -62,11 +62,12 @@ module Diff::LCS
62
62
  # lcs = seq1.lcs(seq2)
63
63
  #
64
64
  # A note when using objects: Diff::LCS only works properly when each object
65
- # can be used as a key in a Hash, which typically means that the objects must
66
- # implement Object#eql? in a way that two identical values compare
67
- # identically for key purposes. That is:
65
+ # can be used as a key in a Hash. This means that those objects must implement
66
+ # the methods +#hash+ and +#eql?+ such that two objects containing identical values
67
+ # compare identically for key purposes. That is:
68
68
  #
69
- # O.new('a').eql?(O.new('a')) == true
69
+ # O.new('a').eql?(O.new('a')) == true &&
70
+ # O.new('a').hash == O.new('a').hash
70
71
  def lcs(other, &block) # :yields: self[i] if there are matched subsequences
71
72
  Diff::LCS.lcs(self, other, &block)
72
73
  end
@@ -256,7 +257,7 @@ class << Diff::LCS
256
257
  #
257
258
  # The methods for <tt>callbacks#match</tt>, <tt>callbacks#discard_a</tt>, and
258
259
  # <tt>callbacks#discard_b</tt> are invoked with an event comprising the
259
- # action ("=", "+", or "-", respectively), the indicies +i+ and +j+, and the
260
+ # action ("=", "+", or "-", respectively), the indexes +i+ and +j+, and the
260
261
  # elements <tt>A[i]</tt> and <tt>B[j]</tt>. Return values are discarded by
261
262
  # #traverse_sequences.
262
263
  #
@@ -421,7 +422,7 @@ class << Diff::LCS
421
422
  # occurred.
422
423
  #
423
424
  # #traverse_balanced might be a bit slower than #traverse_sequences,
424
- # noticable only while processing huge amounts of data.
425
+ # noticeable only while processing huge amounts of data.
425
426
  #
426
427
  # == Algorithm
427
428
  #
@@ -465,7 +466,7 @@ class << Diff::LCS
465
466
  # The methods for <tt>callbacks#match</tt>, <tt>callbacks#discard_a</tt>,
466
467
  # <tt>callbacks#discard_b</tt>, and <tt>callbacks#change</tt> are invoked
467
468
  # with an event comprising the action ("=", "+", "-", or "!", respectively),
468
- # the indicies +i+ and +j+, and the elements <tt>A[i]</tt> and <tt>B[j]</tt>.
469
+ # the indexes +i+ and +j+, and the elements <tt>A[i]</tt> and <tt>B[j]</tt>.
469
470
  # Return values are discarded by #traverse_balanced.
470
471
  #
471
472
  # === Context
@@ -482,7 +483,7 @@ class << Diff::LCS
482
483
 
483
484
  # Process all the lines in the match vector.
484
485
  loop do
485
- # Find next match indices +ma+ and +mb+
486
+ # Find next match indexes +ma+ and +mb+
486
487
  loop do
487
488
  ma += 1
488
489
  break unless ma < matches.size && matches[ma].nil?
@@ -72,7 +72,7 @@ if String.method_defined?(:encoding)
72
72
 
73
73
  it "produces a unified diff" do
74
74
  expected = <<-EXPECTED.gsub(/^\s+/, "").encode("UTF-16LE").chomp
75
- @@ -1 +1,2 @@
75
+ @@ -0,0 +1 @@
76
76
  +Tu a un carte avec {count} items
77
77
  EXPECTED
78
78
 
@@ -68,38 +68,6 @@ describe "Diff::LCS Issues" do
68
68
  end
69
69
  end
70
70
 
71
- describe "issue #60" do
72
- it "should produce unified output with correct context" do
73
- # standard:disable Layout/HeredocIndentation
74
- old_data = <<-DATA_OLD.strip.split("\n").map(&:chomp)
75
- {
76
- "name": "x",
77
- "description": "hi"
78
- }
79
- DATA_OLD
80
-
81
- new_data = <<-DATA_NEW.strip.split("\n").map(&:chomp)
82
- {
83
- "name": "x",
84
- "description": "lo"
85
- }
86
- DATA_NEW
87
-
88
- diff = ::Diff::LCS.diff(old_data, new_data)
89
- hunk = ::Diff::LCS::Hunk.new(old_data, new_data, diff.first, 3, 0)
90
-
91
- expect(hunk.diff(:unified)).to eq(<<-EXPECTED.chomp)
92
- @@ -1,5 +1,5 @@
93
- {
94
- "name": "x",
95
- - "description": "hi"
96
- + "description": "lo"
97
- }
98
- EXPECTED
99
- # standard:enable Layout/HeredocIndentation
100
- end
101
- end
102
-
103
71
  describe "issue #65" do
104
72
  def diff_lines(old_lines, new_lines)
105
73
  file_length_difference = 0
@@ -157,4 +125,36 @@ describe "Diff::LCS Issues" do
157
125
  # standard:enable Layout/HeredocIndentation
158
126
  end
159
127
  end
128
+
129
+ describe "issue #107 (replaces issue #60)" do
130
+ it "should produce unified output with correct context" do
131
+ # standard:disable Layout/HeredocIndentation
132
+ old_data = <<-DATA_OLD.strip.split("\n").map(&:chomp)
133
+ {
134
+ "name": "x",
135
+ "description": "hi"
136
+ }
137
+ DATA_OLD
138
+
139
+ new_data = <<-DATA_NEW.strip.split("\n").map(&:chomp)
140
+ {
141
+ "name": "x",
142
+ "description": "lo"
143
+ }
144
+ DATA_NEW
145
+
146
+ diff = ::Diff::LCS.diff(old_data, new_data)
147
+ hunk = ::Diff::LCS::Hunk.new(old_data, new_data, diff.first, 3, 0)
148
+
149
+ expect(hunk.diff(:unified)).to eq(<<-EXPECTED.chomp)
150
+ @@ -1,4 +1,4 @@
151
+ {
152
+ "name": "x",
153
+ - "description": "hi"
154
+ + "description": "lo"
155
+ }
156
+ EXPECTED
157
+ # standard:enable Layout/HeredocIndentation
158
+ end
159
+ end
160
160
  end
@@ -7,9 +7,16 @@ RSpec.describe "bin/ldiff" do
7
7
 
8
8
  # standard:disable Style/HashSyntax
9
9
  fixtures = [
10
- {:name => "output.diff", :left => "aX", :right => "bXaX"},
11
- {:name => "output.diff.chef", :left => "old-chef", :right => "new-chef"},
12
- {:name => "output.diff.chef2", :left => "old-chef2", :right => "new-chef2"}
10
+ {:name => "diff", :left => "aX", :right => "bXaX", :diff => 1},
11
+ {:name => "diff.missing_new_line1", :left => "four_lines", :right => "four_lines_with_missing_new_line", :diff => 1},
12
+ {:name => "diff.missing_new_line2", :left => "four_lines_with_missing_new_line", :right => "four_lines", :diff => 1},
13
+ {:name => "diff.issue95_trailing_context", :left => "123_x", :right => "456_x", :diff => 1},
14
+ {:name => "diff.four_lines.vs.empty", :left => "four_lines", :right => "empty", :diff => 1},
15
+ {:name => "diff.empty.vs.four_lines", :left => "empty", :right => "four_lines", :diff => 1},
16
+ {:name => "diff.bin1", :left => "file1.bin", :right => "file1.bin", :diff => 0},
17
+ {:name => "diff.bin2", :left => "file1.bin", :right => "file2.bin", :diff => 1},
18
+ {:name => "diff.chef", :left => "old-chef", :right => "new-chef", :diff => 1},
19
+ {:name => "diff.chef2", :left => "old-chef2", :right => "new-chef2", :diff => 1}
13
20
  ].product([nil, "-e", "-f", "-c", "-u"]).map { |(fixture, flag)|
14
21
  fixture = fixture.dup
15
22
  fixture[:flag] = flag
@@ -24,11 +31,14 @@ RSpec.describe "bin/ldiff" do
24
31
  "spec/fixtures/#{fixture[:right]}",
25
32
  "#",
26
33
  "=>",
27
- "spec/fixtures/ldiff/#{fixture[:name]}#{fixture[:flag]}"
34
+ "spec/fixtures/ldiff/output.#{fixture[:name]}#{fixture[:flag]}"
28
35
  ].join(" ")
29
36
 
30
37
  it desc do
31
- expect(run_ldiff(fixture)).to eq(read_fixture(fixture))
38
+ stdout, stderr, status = run_ldiff(fixture)
39
+ expect(status).to eq(fixture[:diff])
40
+ expect(stderr).to eq(read_fixture(fixture, mode: "error", allow_missing: true))
41
+ expect(stdout).to eq(read_fixture(fixture, mode: "output", allow_missing: false))
32
42
  end
33
43
  end
34
44
 
@@ -36,10 +46,13 @@ RSpec.describe "bin/ldiff" do
36
46
  test_ldiff(fixture)
37
47
  end
38
48
 
39
- def read_fixture(options)
49
+ def read_fixture(options, mode: "output", allow_missing: false)
40
50
  fixture = options.fetch(:name)
41
51
  flag = options.fetch(:flag)
42
- name = "spec/fixtures/ldiff/#{fixture}#{flag}"
52
+ name = "spec/fixtures/ldiff/#{mode}.#{fixture}#{flag}"
53
+
54
+ return "" if !::File.exist?(name) && allow_missing
55
+
43
56
  data = IO.__send__(IO.respond_to?(:binread) ? :binread : :read, name)
44
57
  clean_data(data, flag)
45
58
  end
@@ -82,8 +95,6 @@ RSpec.describe "bin/ldiff" do
82
95
  system("ruby -Ilib bin/ldiff #{flag} spec/fixtures/#{left} spec/fixtures/#{right}")
83
96
  end
84
97
 
85
- expect(stderr).to be_empty if RUBY_VERSION >= "1.9"
86
- expect(stdout).not_to be_empty
87
- clean_data(stdout, flag)
98
+ [clean_data(stdout, flag), stderr, $?.exitstatus]
88
99
  end
89
100
  end
@@ -181,7 +181,7 @@ describe "Diff::LCS.patch" do
181
181
  # above.
182
182
  describe "fix bug 891: patchsets do not contain the last equal part" do
183
183
  before :each do
184
- @s1 = %w[a b c d e f g h i j k] # rubocop:disable Layout/SpaceInsideArrayPercentLiteral
184
+ @s1 = %w[a b c d e f g h i j k] # standard:disable Layout/SpaceInsideArrayPercentLiteral
185
185
  @s2 = %w[a b c d D e f g h i j k]
186
186
  end
187
187
 
@@ -1,25 +1,25 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: diff-lcs 1.5.1 ruby lib
2
+ # stub: diff-lcs 1.6.0 ruby lib
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "diff-lcs".freeze
6
- s.version = "1.5.1".freeze
6
+ s.version = "1.6.0".freeze
7
7
 
8
8
  s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
9
- s.metadata = { "bug_tracker_uri" => "https://github.com/halostatue/diff-lcs/issues", "homepage_uri" => "https://github.com/halostatue/diff-lcs", "rubygems_mfa_required" => "true", "source_code_uri" => "https://github.com/halostatue/diff-lcs" } if s.respond_to? :metadata=
9
+ s.metadata = { "changelog_uri" => "https://github.com/halostatue/diff-lcs/blob/main/CHANGELOG.md", "rubygems_mfa_required" => "true" } if s.respond_to? :metadata=
10
10
  s.require_paths = ["lib".freeze]
11
11
  s.authors = ["Austin Ziegler".freeze]
12
- s.date = "2024-01-31"
13
- s.description = "Diff::LCS computes the difference between two Enumerable sequences using the\nMcIlroy-Hunt longest common subsequence (LCS) algorithm. It includes utilities\nto create a simple HTML diff output format and a standard diff-like tool.\n\nThis is release 1.4.3, providing a simple extension that allows for\nDiff::LCS::Change objects to be treated implicitly as arrays and fixes a\nnumber of formatting issues.\n\nRuby versions below 2.5 are soft-deprecated, which means that older versions\nare no longer part of the CI test suite. If any changes have been introduced\nthat break those versions, bug reports and patches will be accepted, but it\nwill be up to the reporter to verify any fixes prior to release. The next\nmajor release will completely break compatibility.".freeze
12
+ s.date = "2025-02-13"
13
+ s.description = "Diff::LCS computes the difference between two Enumerable sequences using the\nMcIlroy-Hunt longest common subsequence (LCS) algorithm. It includes utilities\nto create a simple HTML diff output format and a standard diff-like tool.\n\nThis is release 1.4.3, providing a simple extension that allows for\nDiff::LCS::Change objects to be treated implicitly as arrays and fixes a number\nof formatting issues.\n\nRuby versions below 2.5 are soft-deprecated, which means that older versions are\nno longer part of the CI test suite. If any changes have been introduced that\nbreak those versions, bug reports and patches will be accepted, but it will be\nup to the reporter to verify any fixes prior to release. The next major release\nwill completely break compatibility.".freeze
14
14
  s.email = ["halostatue@gmail.com".freeze]
15
15
  s.executables = ["htmldiff".freeze, "ldiff".freeze]
16
- s.extra_rdoc_files = ["Code-of-Conduct.md".freeze, "Contributing.md".freeze, "History.md".freeze, "License.md".freeze, "Manifest.txt".freeze, "README.rdoc".freeze, "docs/COPYING.txt".freeze, "docs/artistic.txt".freeze]
17
- s.files = ["Code-of-Conduct.md".freeze, "Contributing.md".freeze, "History.md".freeze, "License.md".freeze, "Manifest.txt".freeze, "README.rdoc".freeze, "bin/htmldiff".freeze, "bin/ldiff".freeze, "docs/COPYING.txt".freeze, "docs/artistic.txt".freeze]
16
+ s.extra_rdoc_files = ["CHANGELOG.md".freeze, "CODE_OF_CONDUCT.md".freeze, "CONTRIBUTING.md".freeze, "CONTRIBUTORS.md".freeze, "Contributing.md".freeze, "LICENCE.md".freeze, "Manifest.txt".freeze, "README.md".freeze, "SECURITY.md".freeze, "docs/COPYING.txt".freeze, "docs/artistic.txt".freeze]
17
+ s.files = ["CHANGELOG.md".freeze, "CODE_OF_CONDUCT.md".freeze, "CONTRIBUTING.md".freeze, "CONTRIBUTORS.md".freeze, "Contributing.md".freeze, "LICENCE.md".freeze, "Manifest.txt".freeze, "README.md".freeze, "SECURITY.md".freeze, "bin/htmldiff".freeze, "bin/ldiff".freeze, "docs/COPYING.txt".freeze, "docs/artistic.txt".freeze]
18
18
  s.homepage = "https://github.com/halostatue/diff-lcs".freeze
19
- s.licenses = ["MIT".freeze, "Artistic-2.0".freeze, "GPL-2.0-or-later".freeze]
20
- s.rdoc_options = ["--main".freeze, "README.rdoc".freeze]
19
+ s.licenses = ["MIT".freeze, "Artistic-1.0-Perl".freeze, "GPL-2.0-or-later".freeze]
20
+ s.rdoc_options = ["--main".freeze, "README.md".freeze]
21
21
  s.required_ruby_version = Gem::Requirement.new(">= 1.8".freeze)
22
- s.rubygems_version = "3.5.3".freeze
22
+ s.rubygems_version = "3.5.22".freeze
23
23
  s.summary = "Diff::LCS computes the difference between two Enumerable sequences using the McIlroy-Hunt longest common subsequence (LCS) algorithm".freeze
24
24
 
25
25
  s.installed_by_version = "3.5.23".freeze
@@ -34,4 +34,5 @@ Gem::Specification.new do |s|
34
34
  s.add_development_dependency(%q<rspec>.freeze, [">= 2.0".freeze, "< 4".freeze])
35
35
  s.add_development_dependency(%q<rake>.freeze, [">= 10.0".freeze, "< 14".freeze])
36
36
  s.add_development_dependency(%q<rdoc>.freeze, [">= 6.3.1".freeze, "< 7".freeze])
37
+ s.add_development_dependency(%q<simplecov>.freeze, ["~> 0.21".freeze])
37
38
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cybrid_api_organization_ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.123.229
4
+ version: 0.123.231
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cybrid
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-02-12 00:00:00.000000000 Z
11
+ date: 2025-02-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -140,7 +140,7 @@ files:
140
140
  - vendor/bundle/ruby/3.3.0/cache/byebug-11.1.3.gem
141
141
  - vendor/bundle/ruby/3.3.0/cache/coderay-1.1.3.gem
142
142
  - vendor/bundle/ruby/3.3.0/cache/date-3.4.1.gem
143
- - vendor/bundle/ruby/3.3.0/cache/diff-lcs-1.5.1.gem
143
+ - vendor/bundle/ruby/3.3.0/cache/diff-lcs-1.6.0.gem
144
144
  - vendor/bundle/ruby/3.3.0/cache/ethon-0.16.0.gem
145
145
  - vendor/bundle/ruby/3.3.0/cache/ffi-1.17.1-x86_64-linux-gnu.gem
146
146
  - vendor/bundle/ruby/3.3.0/cache/jaro_winkler-1.5.6.gem
@@ -410,65 +410,68 @@ files:
410
410
  - vendor/bundle/ruby/3.3.0/gems/date-3.4.1/ext/date/zonetab.list
411
411
  - vendor/bundle/ruby/3.3.0/gems/date-3.4.1/lib/date.rb
412
412
  - vendor/bundle/ruby/3.3.0/gems/date-3.4.1/lib/date_core.so
413
- - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.5.1/.rspec
414
- - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.5.1/Code-of-Conduct.md
415
- - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.5.1/Contributing.md
416
- - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.5.1/History.md
417
- - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.5.1/License.md
418
- - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.5.1/Manifest.txt
419
- - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.5.1/README.rdoc
420
- - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.5.1/Rakefile
421
- - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.5.1/bin/htmldiff
422
- - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.5.1/bin/ldiff
423
- - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.5.1/docs/COPYING.txt
424
- - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.5.1/docs/artistic.txt
425
- - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.5.1/lib/diff-lcs.rb
426
- - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.5.1/lib/diff/lcs.rb
427
- - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.5.1/lib/diff/lcs/array.rb
428
- - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.5.1/lib/diff/lcs/backports.rb
429
- - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.5.1/lib/diff/lcs/block.rb
430
- - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.5.1/lib/diff/lcs/callbacks.rb
431
- - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.5.1/lib/diff/lcs/change.rb
432
- - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.5.1/lib/diff/lcs/htmldiff.rb
433
- - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.5.1/lib/diff/lcs/hunk.rb
434
- - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.5.1/lib/diff/lcs/internals.rb
435
- - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.5.1/lib/diff/lcs/ldiff.rb
436
- - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.5.1/lib/diff/lcs/string.rb
437
- - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.5.1/spec/change_spec.rb
438
- - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.5.1/spec/diff_spec.rb
439
- - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.5.1/spec/fixtures/aX
440
- - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.5.1/spec/fixtures/bXaX
441
- - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.5.1/spec/fixtures/ds1.csv
442
- - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.5.1/spec/fixtures/ds2.csv
443
- - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.5.1/spec/fixtures/ldiff/output.diff
444
- - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.5.1/spec/fixtures/ldiff/output.diff-c
445
- - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.5.1/spec/fixtures/ldiff/output.diff-e
446
- - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.5.1/spec/fixtures/ldiff/output.diff-f
447
- - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.5.1/spec/fixtures/ldiff/output.diff-u
448
- - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.5.1/spec/fixtures/ldiff/output.diff.chef
449
- - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.5.1/spec/fixtures/ldiff/output.diff.chef-c
450
- - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.5.1/spec/fixtures/ldiff/output.diff.chef-e
451
- - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.5.1/spec/fixtures/ldiff/output.diff.chef-f
452
- - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.5.1/spec/fixtures/ldiff/output.diff.chef-u
453
- - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.5.1/spec/fixtures/ldiff/output.diff.chef2
454
- - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.5.1/spec/fixtures/ldiff/output.diff.chef2-c
455
- - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.5.1/spec/fixtures/ldiff/output.diff.chef2-d
456
- - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.5.1/spec/fixtures/ldiff/output.diff.chef2-e
457
- - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.5.1/spec/fixtures/ldiff/output.diff.chef2-f
458
- - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.5.1/spec/fixtures/ldiff/output.diff.chef2-u
459
- - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.5.1/spec/fixtures/new-chef
460
- - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.5.1/spec/fixtures/new-chef2
461
- - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.5.1/spec/fixtures/old-chef
462
- - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.5.1/spec/fixtures/old-chef2
463
- - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.5.1/spec/hunk_spec.rb
464
- - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.5.1/spec/issues_spec.rb
465
- - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.5.1/spec/lcs_spec.rb
466
- - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.5.1/spec/ldiff_spec.rb
467
- - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.5.1/spec/patch_spec.rb
468
- - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.5.1/spec/sdiff_spec.rb
469
- - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.5.1/spec/spec_helper.rb
470
- - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.5.1/spec/traverse_balanced_spec.rb
471
- - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.5.1/spec/traverse_sequences_spec.rb
413
+ - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.6.0/.rspec
414
+ - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.6.0/CHANGELOG.md
415
+ - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.6.0/CODE_OF_CONDUCT.md
416
+ - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.6.0/CONTRIBUTING.md
417
+ - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.6.0/CONTRIBUTORS.md
418
+ - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.6.0/Contributing.md
419
+ - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.6.0/LICENCE.md
420
+ - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.6.0/Manifest.txt
421
+ - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.6.0/README.md
422
+ - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.6.0/Rakefile
423
+ - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.6.0/SECURITY.md
424
+ - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.6.0/bin/htmldiff
425
+ - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.6.0/bin/ldiff
426
+ - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.6.0/docs/COPYING.txt
427
+ - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.6.0/docs/artistic.txt
428
+ - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.6.0/lib/diff-lcs.rb
429
+ - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.6.0/lib/diff/lcs.rb
430
+ - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.6.0/lib/diff/lcs/array.rb
431
+ - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.6.0/lib/diff/lcs/backports.rb
432
+ - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.6.0/lib/diff/lcs/block.rb
433
+ - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.6.0/lib/diff/lcs/callbacks.rb
434
+ - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.6.0/lib/diff/lcs/change.rb
435
+ - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.6.0/lib/diff/lcs/htmldiff.rb
436
+ - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.6.0/lib/diff/lcs/hunk.rb
437
+ - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.6.0/lib/diff/lcs/internals.rb
438
+ - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.6.0/lib/diff/lcs/ldiff.rb
439
+ - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.6.0/lib/diff/lcs/string.rb
440
+ - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.6.0/spec/change_spec.rb
441
+ - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.6.0/spec/diff_spec.rb
442
+ - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.6.0/spec/fixtures/aX
443
+ - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.6.0/spec/fixtures/bXaX
444
+ - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.6.0/spec/fixtures/ds1.csv
445
+ - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.6.0/spec/fixtures/ds2.csv
446
+ - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.6.0/spec/fixtures/ldiff/output.diff
447
+ - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.6.0/spec/fixtures/ldiff/output.diff-c
448
+ - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.6.0/spec/fixtures/ldiff/output.diff-e
449
+ - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.6.0/spec/fixtures/ldiff/output.diff-f
450
+ - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.6.0/spec/fixtures/ldiff/output.diff-u
451
+ - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.6.0/spec/fixtures/ldiff/output.diff.chef
452
+ - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.6.0/spec/fixtures/ldiff/output.diff.chef-c
453
+ - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.6.0/spec/fixtures/ldiff/output.diff.chef-e
454
+ - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.6.0/spec/fixtures/ldiff/output.diff.chef-f
455
+ - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.6.0/spec/fixtures/ldiff/output.diff.chef-u
456
+ - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.6.0/spec/fixtures/ldiff/output.diff.chef2
457
+ - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.6.0/spec/fixtures/ldiff/output.diff.chef2-c
458
+ - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.6.0/spec/fixtures/ldiff/output.diff.chef2-d
459
+ - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.6.0/spec/fixtures/ldiff/output.diff.chef2-e
460
+ - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.6.0/spec/fixtures/ldiff/output.diff.chef2-f
461
+ - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.6.0/spec/fixtures/ldiff/output.diff.chef2-u
462
+ - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.6.0/spec/fixtures/new-chef
463
+ - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.6.0/spec/fixtures/new-chef2
464
+ - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.6.0/spec/fixtures/old-chef
465
+ - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.6.0/spec/fixtures/old-chef2
466
+ - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.6.0/spec/hunk_spec.rb
467
+ - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.6.0/spec/issues_spec.rb
468
+ - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.6.0/spec/lcs_spec.rb
469
+ - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.6.0/spec/ldiff_spec.rb
470
+ - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.6.0/spec/patch_spec.rb
471
+ - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.6.0/spec/sdiff_spec.rb
472
+ - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.6.0/spec/spec_helper.rb
473
+ - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.6.0/spec/traverse_balanced_spec.rb
474
+ - vendor/bundle/ruby/3.3.0/gems/diff-lcs-1.6.0/spec/traverse_sequences_spec.rb
472
475
  - vendor/bundle/ruby/3.3.0/gems/ethon-0.16.0/.github/workflows/ruby.yml
473
476
  - vendor/bundle/ruby/3.3.0/gems/ethon-0.16.0/.gitignore
474
477
  - vendor/bundle/ruby/3.3.0/gems/ethon-0.16.0/.rspec
@@ -2164,7 +2167,7 @@ files:
2164
2167
  - vendor/bundle/ruby/3.3.0/specifications/byebug-11.1.3.gemspec
2165
2168
  - vendor/bundle/ruby/3.3.0/specifications/coderay-1.1.3.gemspec
2166
2169
  - vendor/bundle/ruby/3.3.0/specifications/date-3.4.1.gemspec
2167
- - vendor/bundle/ruby/3.3.0/specifications/diff-lcs-1.5.1.gemspec
2170
+ - vendor/bundle/ruby/3.3.0/specifications/diff-lcs-1.6.0.gemspec
2168
2171
  - vendor/bundle/ruby/3.3.0/specifications/ethon-0.16.0.gemspec
2169
2172
  - vendor/bundle/ruby/3.3.0/specifications/ffi-1.17.1-x86_64-linux-gnu.gemspec
2170
2173
  - vendor/bundle/ruby/3.3.0/specifications/jaro_winkler-1.5.6.gemspec