docdiff 0.6.6 → 0.6.7

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: 610b5b95840b0bc6c176dca519ba0b29f9da90a443f6e84026cded3619154d75
4
- data.tar.gz: bd0ea4e230932dadc8bdf6ab4ecb112b56e1594111ebae3903b03c88bcd68394
3
+ metadata.gz: a0780c057df7a736c77e7e4b3542a18a1ce9335140c1ef141885b1acb06d1b12
4
+ data.tar.gz: f479c7a739f14c5c3b78d0d5078515982ceb3f61a40c23ec96f5803b4865e837
5
5
  SHA512:
6
- metadata.gz: 6b281546af7612221702b0579ce26e99504ed76d5198c2894cff6c85371529b48bc3140acce1297f5191b0e3321f5c31a7aa3b222ed100941e1161856d08d521
7
- data.tar.gz: aa76e99c2d89826abccf7dbbe64d3979d51389e87c79d491d309dc3589f096b0fdde16c84d0b840f6637dc21dac24bf52b3c9b6b68b6f774bf142db392506eb9
6
+ metadata.gz: 6dfa6dd69a1d3e5f4cdb7024c66a628090a9cbce23c7486471e1cd0f3cf242edb6485628218205b0ab2f5e8a8357b551f97a8c12db6c10aa25e844f406f8e19c
7
+ data.tar.gz: cefeb857d6939c609a13d620a16c2db8db43d1c86a140ebb65a4d2c73a20be3023be0333821d13fc1b42c0a63f550229d2e8890f97fdfae5cb3decc94d0ae11c
data/doc/news.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # News
2
2
 
3
+ ### 0.6.7 (2026-02-25)
4
+
5
+ * User-visible changes:
6
+ - none
7
+ * Developer-related changes:
8
+ - Fixed CLI test failures in a pristine environment without a system-wide configuration file.
9
+
3
10
  ### 0.6.6 (2026-02-18)
4
11
 
5
12
  * User-visible changes:
data/lib/docdiff/cli.rb CHANGED
@@ -158,8 +158,10 @@ class DocDiff
158
158
  "config file not found: #{filename.inspect}"
159
159
  in Errno::EACCES
160
160
  "permission denied for reading: #{filename.inspect}"
161
+ in NilClass
162
+ nil
161
163
  else
162
- "something unexpected happened: #{filename.inspect}"
164
+ "#{exception}: something unexpected happened: #{filename.inspect}"
163
165
  end
164
166
  if content
165
167
  config = parse_config_file_content(content)
@@ -195,10 +197,12 @@ class DocDiff
195
197
  EOS
196
198
  end
197
199
 
198
- filename = existing_system_config_file_names.first
199
- config, message = read_config_from_file(filename)
200
- $stderr.print(message) if command_line_config[:verbose]
201
- config
200
+ unless existing_system_config_file_names.empty?
201
+ filename = existing_system_config_file_names.first
202
+ config, message = read_config_from_file(filename)
203
+ $stderr.print(message) if command_line_config[:verbose]
204
+ config
205
+ end
202
206
  end
203
207
 
204
208
  user_config =
@@ -218,10 +222,12 @@ class DocDiff
218
222
  EOS
219
223
  end
220
224
 
221
- filename = existing_user_config_file_names.first
222
- config, message = read_config_from_file(filename)
223
- $stderr.print(message) if command_line_config[:verbose]
224
- config
225
+ unless existing_user_config_file_names.empty?
226
+ filename = existing_user_config_file_names.first
227
+ config, message = read_config_from_file(filename)
228
+ $stderr.print(message) if command_line_config[:verbose]
229
+ config
230
+ end
225
231
  end
226
232
 
227
233
  config_from_specified_file =
@@ -1,3 +1,3 @@
1
1
  module Docdiff
2
- VERSION = "0.6.6"
2
+ VERSION = "0.6.7"
3
3
  end
data/lib/docdiff/view.rb CHANGED
@@ -23,7 +23,7 @@ class String
23
23
  end
24
24
 
25
25
  class DocDiff
26
- class Difference
26
+ class Difference < Array
27
27
  def to_view(encoding, eol)
28
28
  View.new(self, encoding, eol)
29
29
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: docdiff
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.6
4
+ version: 0.6.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hisashi Morita
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2026-02-17 00:00:00.000000000 Z
10
+ date: 2026-02-25 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: test-unit