cr.rb 4.0.0 → 4.0.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 +5 -5
- data/lib/cr.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2811ddb169f1ca4949a47d60e08006bd28917364665a3a671f5636d125a77748
|
4
|
+
data.tar.gz: 72da546f8d2b6db90048a80c9262656753336562c5818df03adbe9664b087049
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f33e9d3f280699821c93d6af0e01230a8718205568abb5d7a20246d0196dc96ce0312a2648e21ef2a15b5cd04946e256caee1edac947eb2d3d8b8efeef334ebd
|
7
|
+
data.tar.gz: 22c013e6d42eb7db35a7dcf258d018e373d7f1a659a374abf0ece8b8085c2ef5fd7916d9132528af2802e96434fe57b59e145ee641434a661ac502868779eeed
|
data/bin/cr
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
# File : cr.rb
|
5
5
|
# Authors : ccmywish <ccmywish@qq.com>
|
6
6
|
# Created on : <2021-07-08>
|
7
|
-
# Last modified : <2022-11-
|
7
|
+
# Last modified : <2022-11-29>
|
8
8
|
#
|
9
9
|
# cr:
|
10
10
|
#
|
@@ -133,7 +133,7 @@ def add_default_dicts_if_none_exists
|
|
133
133
|
puts "cr: Add done"
|
134
134
|
word_count(p: false)
|
135
135
|
puts
|
136
|
-
puts "#{$
|
136
|
+
puts "#{$DefaultLibWordCount} words added"
|
137
137
|
|
138
138
|
# Really added
|
139
139
|
return true
|
@@ -224,9 +224,9 @@ def add_dict(repo)
|
|
224
224
|
|
225
225
|
# github/com/ccmywish/ruby_knowledge(.git)
|
226
226
|
dict = repo.split('/')[-1].delete_suffix('.git')
|
227
|
-
count_dict_words(CR_DEFAULT_LIBRARY ,dict)
|
227
|
+
wc = count_dict_words(CR_DEFAULT_LIBRARY ,dict)
|
228
228
|
puts
|
229
|
-
puts "
|
229
|
+
puts "#{wc} words added"
|
230
230
|
|
231
231
|
end
|
232
232
|
|
@@ -396,7 +396,7 @@ def pp_same_info(library, dict, word, cache_content, same_key, own_name)
|
|
396
396
|
end
|
397
397
|
|
398
398
|
if info.nil?
|
399
|
-
puts red("
|
399
|
+
puts red("WARN: Synonym jumps to the wrong place `#{same}`,
|
400
400
|
Please consider fixing this in `#{x}.toml` of the dictionary `#{dict}`")
|
401
401
|
# exit
|
402
402
|
return false
|
data/lib/cr.rb
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
# File : cr.rb
|
3
3
|
# Authors : ccmywish <ccmywish@qq.com>
|
4
4
|
# Created on : <2022-04-15>
|
5
|
-
# Last modified : <2022-11-
|
5
|
+
# Last modified : <2022-11-29>
|
6
6
|
#
|
7
7
|
# cr:
|
8
8
|
#
|
@@ -10,7 +10,7 @@
|
|
10
10
|
#
|
11
11
|
# ------------------------------------------------------
|
12
12
|
|
13
|
-
CR_GEM_VERSION = "4.0.
|
13
|
+
CR_GEM_VERSION = "4.0.2"
|
14
14
|
|
15
15
|
|
16
16
|
CR_OFFICIAL_DICTS = <<-EOF
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cr.rb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.
|
4
|
+
version: 4.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ccmywish
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-11-
|
11
|
+
date: 2022-11-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tomlrb
|