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.
- checksums.yaml +4 -4
- data/bin/cr +13 -10
- data/lib/cr.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 86ac16436cda04a1ca727329c6508f8c228d5049beb47ba02da193a684b1174d
|
4
|
+
data.tar.gz: f303ed5311033dbcab4a66eec6ad786633c02e4967e286711681b77b4a01a726
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
733
|
-
|
734
|
-
|
735
|
-
|
736
|
-
extra_lib.
|
737
|
-
wc =
|
738
|
-
|
739
|
-
|
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