cr.rb 3.18.1 → 3.18.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 +5 -3
  3. data/lib/cr.rb +13 -0
  4. metadata +7 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e8620a7da50111e5878c738f5edc8dcc00bfac6277b492f26956d6b9169c1292
4
- data.tar.gz: 59a5b65f6df5b5639e4443437804d17453bc68ca7a188b03fecf5db024f3e2cd
3
+ metadata.gz: ca8565c920ad88810679a65744a52f0c9497ef3a75bab525fae5b501349912b7
4
+ data.tar.gz: f6d7f3c3f85caa6382f13492a94a34725600cb5ea57757442cd76a9b69360461
5
5
  SHA512:
6
- metadata.gz: b59a74fd932bfc899663e81ff8df996290049e083981315e1579775d5e0b376bed4636b3bd35ae6b47c9de6ab529d5208459f9bcb8b3b2410a8cb391a083aca0
7
- data.tar.gz: ef015873cd33e7e3b24f6a85382bc02e028cd1252a9a45354deff37cdc74c9ec901b3a94e33a74af3400217d92cda202eedb64c07ff4c849322c0d834ac7caa6
6
+ metadata.gz: 7c0482249c89b01522d0cb563fe4e0e647c4c4cbb602090fb1ba740fc366c892c039b02242987031494b6077df0365ff5416ccb00eb61b929a085760349f5a00
7
+ data.tar.gz: c775012412a10c1fea53f43055f7bd95add6ba9954327d77f182f157556c346de160855348847004aa634700494bdc486eed937b632ae1b5cac31c0c90ca1da4
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-04-12>
7
+ # Last modified : <2022-04-15>
8
8
  #
9
9
  # cr:
10
10
  #
@@ -14,6 +14,7 @@
14
14
  #
15
15
  # ------------------------------------------------------
16
16
 
17
+ require 'cr'
17
18
  require 'tomlrb'
18
19
  require 'fileutils'
19
20
 
@@ -26,8 +27,6 @@ CRYPTIC_DEFAULT_DICTS = {
26
27
  medicine: "https://github.com/cryptic-resolver/cryptic_medicine.git"
27
28
  }
28
29
 
29
- CR_GEM_VERSION = "3.18.1"
30
-
31
30
 
32
31
  ####################
33
32
  # helper: for color
@@ -156,6 +155,9 @@ def add_dict(repo)
156
155
  exit -1
157
156
  end
158
157
 
158
+ # Ensure the cr home dir exists
159
+ FileUtils.mkdir_p(CRYPTIC_RESOLVER_HOME)
160
+
159
161
  begin
160
162
  puts "cr: Adding new dictionary..."
161
163
  `git -C #{CRYPTIC_RESOLVER_HOME} clone #{repo} -q`
data/lib/cr.rb ADDED
@@ -0,0 +1,13 @@
1
+ # ------------------------------------------------------
2
+ # File : cr.rb
3
+ # Authors : ccmywish <ccmywish@qq.com>
4
+ # Created on : <2022-04-15>
5
+ # Last modified : <2022-04-15>
6
+ #
7
+ # cr:
8
+ #
9
+ # This file is just a lib
10
+ #
11
+ # ------------------------------------------------------
12
+
13
+ CR_GEM_VERSION = "3.18.2"
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: 3.18.1
4
+ version: 3.18.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-04-12 00:00:00.000000000 Z
11
+ date: 2022-04-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tomlrb
@@ -48,12 +48,13 @@ extensions: []
48
48
  extra_rdoc_files: []
49
49
  files:
50
50
  - bin/cr
51
- homepage: https://github.com/cryptic-resolver/cr
51
+ - lib/cr.rb
52
+ homepage: https://github.com/cryptic-resolver/cr.rb
52
53
  licenses:
53
54
  - MIT
54
55
  metadata:
55
- bug_tracker_uri: https://github.com/cryptic-resolver/cr/issues
56
- source_code_uri: https://github.com/cryptic-resolver/cr
56
+ bug_tracker_uri: https://github.com/cryptic-resolver/cr.rb/issues
57
+ source_code_uri: https://github.com/cryptic-resolver/cr.rb
57
58
  post_install_message:
58
59
  rdoc_options: []
59
60
  require_paths:
@@ -69,7 +70,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
69
70
  - !ruby/object:Gem::Version
70
71
  version: '0'
71
72
  requirements: []
72
- rubygems_version: 3.3.7
73
+ rubygems_version: 3.3.11
73
74
  signing_key:
74
75
  specification_version: 4
75
76
  summary: 'cr: Cryptic Resolver'