cr.rb 4.0.0.alpha.1 → 4.0.0.alpha.2

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/cr +13 -10
  3. data/lib/cr.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cf84244ffcf5db536a394a4c7c6ad9679485be53d56baf821bca8a228dd4241b
4
- data.tar.gz: 13393a7e9fd9e86d021ef39e830de56ffa548c8159cf172af61c6631e1d2ee93
3
+ metadata.gz: 86ac16436cda04a1ca727329c6508f8c228d5049beb47ba02da193a684b1174d
4
+ data.tar.gz: f303ed5311033dbcab4a66eec6ad786633c02e4967e286711681b77b4a01a726
5
5
  SHA512:
6
- metadata.gz: f0e9316fb7d0e073600e815292c6ef3279cec61275a94ded64ddde456784027eb15d62c239ce953f1036212a8429546240af33bba371667d3f4958a71c823afb
7
- data.tar.gz: fa316a2e6003409ba527d7ebb86ba474ebc97a3982e79826ed117a4c52b0bb6b3cfaf9b254c135db44484e9faaaee43d7fe6c956dd536dc234a934b38cf3ddc2
6
+ metadata.gz: 52f6b13011db64ac7c439e323ccf2093656b6dcc2e337815f68323a9bd5f79f3d33f0a2f1f2f6906c7d3d6e4e954c8a8573884268990c99ad7bd6426682de21e
7
+ data.tar.gz: 1474e51ef60c31035104a0c66b168a1545f90085b13d3d8e468aa182f67885b8af3dbd7f1ed462b7b1251f847240255f8e0bf817bf2b94c1fbf88a3ef15ff0c2
data/bin/cr CHANGED
@@ -716,7 +716,6 @@ def word_count(p:)
716
716
  is_there_any_dict?
717
717
 
718
718
  default_lib = Dir.children(CR_DEFAULT_LIBRARY)
719
- extra_lib = Dir.children(CR_EXTRA_LIBRARY)
720
719
 
721
720
  # Count default library
722
721
  unless default_lib.empty?
@@ -729,17 +728,21 @@ def word_count(p:)
729
728
  end
730
729
  end
731
730
 
732
- # Count extra library
733
- unless extra_lib.empty?
734
- wc = 0
735
- puts(bold(blue("\nExtra library:"))) if p
736
- extra_lib.each do |s|
737
- wc = count_dict_words(CR_EXTRA_LIBRARY,s)
738
- $ExtraLibWordCount += wc
739
- puts(" #{s.ljust(17)}: #{wc}") if p
731
+
732
+ if CR_EXTRA_LIBRARY
733
+ extra_lib = Dir.children(CR_EXTRA_LIBRARY)
734
+ # Count extra library
735
+ unless extra_lib.empty?
736
+ wc = 0
737
+ puts(bold(blue("\nExtra library:"))) if p
738
+ extra_lib.each do |s|
739
+ wc = count_dict_words(CR_EXTRA_LIBRARY,s)
740
+ $ExtraLibWordCount += wc
741
+ puts(" #{s.ljust(17)}: #{wc}") if p
742
+ end
740
743
  end
741
- $TwoLibWordCount = $DefaultLibWordCount + $ExtraLibWordCount
742
744
  end
745
+ $TwoLibWordCount = $DefaultLibWordCount + $ExtraLibWordCount
743
746
 
744
747
  if p
745
748
  puts
data/lib/cr.rb CHANGED
@@ -10,7 +10,7 @@
10
10
  #
11
11
  # ------------------------------------------------------
12
12
 
13
- CR_GEM_VERSION = "4.0.0.alpha.1"
13
+ CR_GEM_VERSION = "4.0.0.alpha.2"
14
14
 
15
15
 
16
16
  CR_OFFICIAL_DICTS = <<-EOF
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cr.rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0.alpha.1
4
+ version: 4.0.0.alpha.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - ccmywish