cr.rb 4.0.0.alpha.5 → 4.0.1

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 +4 -4
  3. data/lib/cr.rb +2 -2
  4. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b6efedf23b1d4b3539679386e6c0aa5afb823e32e71000d4ad0e743efd46eb1a
4
- data.tar.gz: ee4a8db242b5783824b1dc63c1515034744db1a50c554c31b8c8102047bc5c1e
3
+ metadata.gz: 75e41d2ee4973acc76cbcddf604809134a45a757ce0b893b5931ed9a03a352b9
4
+ data.tar.gz: 32514d8f92b3ea963cf1099acd62bfaafb1c0104caea7c3c553dcfa2830e13bc
5
5
  SHA512:
6
- metadata.gz: 6f657246ebbdcd609f31ac8c34bb1f91ae339cf708447c6609f3aa298ec90264b3f4c527169750d9d91f47e6041506acea2aaafd602411f816bf2a8333010cbd
7
- data.tar.gz: be590e4d9a10d9ea0371b8df3a48aa1da9d822a5f46000d6b145abdb1391232d8a15b48278af1aead6c7c69fd0ad0dc5b53a9f489961d5f99f909d9dde530ca3
6
+ metadata.gz: 8add6b41ff3bba2e864397dce4da9bc38c354dd68563e482adfa3b29a82154530d6149a3d74013e23739190a7c83fe1c344dbde84afccdf9e7e4ec5d19c06999
7
+ data.tar.gz: cc78a541d75b1ebfc5ade78b3c02940213de1223c4c01dc136d6997dec0ed44644e961e2cdb2fff7d7357f578943524e162b28418cc5f8bd52605be1a5847044
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-28>
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
 
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-28>
6
6
  #
7
7
  # cr:
8
8
  #
@@ -10,7 +10,7 @@
10
10
  #
11
11
  # ------------------------------------------------------
12
12
 
13
- CR_GEM_VERSION = "4.0.0.alpha.5"
13
+ CR_GEM_VERSION = "4.0.1"
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.alpha.5
4
+ version: 4.0.1
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-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tomlrb
@@ -66,9 +66,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
66
66
  version: '0'
67
67
  required_rubygems_version: !ruby/object:Gem::Requirement
68
68
  requirements:
69
- - - ">"
69
+ - - ">="
70
70
  - !ruby/object:Gem::Version
71
- version: 1.3.1
71
+ version: '0'
72
72
  requirements: []
73
73
  rubygems_version: 3.3.7
74
74
  signing_key: