cr.rb 4.0.0 → 4.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/cr +5 -5
  3. data/lib/cr.rb +2 -2
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 73a8c2e3c48e37093082730656fb581b77c4378e89e955f953e39c6705254824
4
- data.tar.gz: 3d306d7f27968e26d72d31f80b31d313af0020b64df51eaccc98acdc9f199229
3
+ metadata.gz: 2811ddb169f1ca4949a47d60e08006bd28917364665a3a671f5636d125a77748
4
+ data.tar.gz: 72da546f8d2b6db90048a80c9262656753336562c5818df03adbe9664b087049
5
5
  SHA512:
6
- metadata.gz: 37b7fb2cecca1f5a0bad2871735c54ecb508d6acbbcab671a9b0e062491883369295883f838b8a935d5882fe9d8a149640039e9e815a82579955e58cf3f32614
7
- data.tar.gz: 8dd10c73acc3d81b6379e397bb5bf3d8008c2f21c60cbb11824ea32789a19cee55c11903005ed84695fbc2754e7c976a08bcb1ac351dfee34bf096ef4c70f337
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-27>
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 "#{$TwoLibWordCount} words added"
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 "#$TwoLibWordCount words added"
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("Warn: Synonym jumps to the wrong place `#{same}`,
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-27>
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.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.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-27 00:00:00.000000000 Z
11
+ date: 2022-11-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tomlrb