nhkore 0.3.8 → 0.3.9

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: c63efbc2f65cfe83c7b55e53a0dfca329c2aded4c22ae05c2fb50583876452b4
4
- data.tar.gz: 87c5116e11cb7e2dd4a5cdb86d6fc1a80ea58dd4efa7bc27ad448c25c4fad724
3
+ metadata.gz: 4a7084fd097785a525cbe62fe59eaaa5a659c84a1673cb8663b3413b70e4e3a9
4
+ data.tar.gz: 7fd6c701cacc6bcbc2b55d8c33a1f9cefcbff36e39b2ebbb42022ce438188920
5
5
  SHA512:
6
- metadata.gz: 68eb93da6d8f5c8ba3c4c58e0a9a71803dd4eefc6063df4ead9f0d06c0f1ba59892f5ddb43a9735c30ceaf85db63ed80c1b155bac1d5f0daf73f9cebbc7f6c6e
7
- data.tar.gz: 33e9f4f770bceb2c0eb5d6d62781af400bc2b66f4ba4d4092b01b224bc365edef98cc47032f4b2389e04664f6cabcd2c02024139971bee207a121570805a6015
6
+ metadata.gz: e14fa1030416d99ad30c55ecb97b58135641e8008a485fe081104ab3cd177495889c3132015a8310b7aa9eee22e502e83de8378faee48c64785ed502eada4727
7
+ data.tar.gz: 16a856938c0a598122671cdf39ebaf569a9ec9d260a32f5830b9a21b1a3cf45b0940289c4136c273de1358211653ab3e250dd22bede936d312d4989edbb37cdd
data/CHANGELOG.md CHANGED
@@ -5,10 +5,16 @@ All notable changes to this project will be documented in this file.
5
5
  Format is based on [Keep a Changelog v1.0.0](https://keepachangelog.com/en/1.0.0),
6
6
  and this project adheres to [Semantic Versioning v2.0.0](https://semver.org/spec/v2.0.0.html).
7
7
 
8
- ## [[Unreleased]](https://github.com/esotericpig/nhkore/compare/v0.3.8...HEAD)
8
+ ## [[Unreleased]](https://github.com/esotericpig/nhkore/compare/v0.3.9...HEAD)
9
9
  -
10
10
 
11
11
 
12
+ ## [v0.3.9] - 2021-06-26
13
+
14
+ ### Fixed
15
+ - Reverted `App#refresh_cmd()` back to not copying over the `default_proc` (from v0.3.8). Because the old code didn't know about this, it created some unintended issues with command options. Nothing major, but for example, specifying `output.html` with the `sift` command would not produce HTML output (however, using the `-e html` option still worked). This is the only instance that I know of, but reverting the code back in case of more instances. In the future, I'll need to thoroughly test all CLI options after changing `App#refresh_cmd()` to copy over the `default_proc`, but for now, not worrying about it (as it's not necessary).
16
+
17
+
12
18
  ## [v0.3.8] - 2021-06-26
13
19
 
14
20
  ### Fixed
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- nhkore (0.3.8)
4
+ nhkore (0.3.9)
5
5
  attr_bool (~> 0.2)
6
6
  bimyou_segmenter (~> 1.2)
7
7
  cri (~> 2.15)
data/lib/nhkore/app.rb CHANGED
@@ -506,14 +506,20 @@ module NHKore
506
506
  new_opts[key] = value
507
507
  end
508
508
 
509
- # Cri has a default proc for default values
510
- # that doesn't store the keys.
511
- new_opts.default_proc = proc do |hash,key|
512
- # :max_retry => %s(max-retry)
513
- key = key.to_s.gsub('_','-').to_sym
514
-
515
- opts.default_proc.call(hash,key)
516
- end
509
+ # For now don't set the default proc, as the original code
510
+ # did not have this in mind.
511
+ # Specifically, SiftCmd.build_sift_filename() is affected by
512
+ # this due to relying on @cmd_opts[:ext] to be nil.
513
+ # It's easy to change this one instance, but I'm not sure
514
+ # at the moment where else might be affected
515
+ ## Cri has a default proc for default values
516
+ ## that doesn't store the keys.
517
+ #new_opts.default_proc = proc do |hash,key|
518
+ # # :max_retry => %s(max-retry)
519
+ # key = key.to_s.gsub('_','-').to_sym
520
+ #
521
+ # opts.default_proc.call(hash,key)
522
+ #end
517
523
 
518
524
  @cmd = cmd
519
525
  @cmd_args = args
@@ -10,5 +10,5 @@
10
10
 
11
11
 
12
12
  module NHKore
13
- VERSION = '0.3.8'
13
+ VERSION = '0.3.9'
14
14
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nhkore
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.8
4
+ version: 0.3.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jonathan Bradley Whited
@@ -398,7 +398,7 @@ metadata:
398
398
  changelog_uri: https://github.com/esotericpig/nhkore/blob/master/CHANGELOG.md
399
399
  post_install_message: |2+
400
400
 
401
- NHKore v0.3.8
401
+ NHKore v0.3.9
402
402
 
403
403
  You can now use [nhkore] on the command line.
404
404
 
@@ -413,7 +413,7 @@ rdoc_options:
413
413
  - "--hyperlink-all"
414
414
  - "--show-hash"
415
415
  - "--title"
416
- - NHKore v0.3.8 Doc
416
+ - NHKore v0.3.9 Doc
417
417
  - "--main"
418
418
  - README.md
419
419
  require_paths: