cn-gb2260 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/gb2260 +26 -0
- data/lib/gb2260/version.rb +1 -1
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 77d39fd78efd30085e079e24423e188db3b414a10e2a1c03edacbf1d7804e39a
|
4
|
+
data.tar.gz: efdd77243aeb33f2594faa521a9d13a2ff193309b2f457b72bdf3b065d751dcd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 275c03c218d3f29bda2096ec34267e9e80e08675efa8fa7212810cfbc75129487a212072139240013fcc7fa556e8b81fc60e8a02d1fb5bf358dc8f245b3eb8e5
|
7
|
+
data.tar.gz: 1bc3a5a3c2f7455790edd90aaf34a2cd4fe24b82888cfdc6f7e0609932cbe0a9ceb9552e97f8b0bee96587453cd80988b4de78be499ecc517608c6198bf01041
|
data/bin/gb2260
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'gb2260'
|
4
|
+
require 'mercenary'
|
5
|
+
|
6
|
+
if Gem.try_activate('pry')
|
7
|
+
require 'pry'
|
8
|
+
end
|
9
|
+
|
10
|
+
Mercenary.program(:gb2260) do |program|
|
11
|
+
program.version GB2260::VERSION
|
12
|
+
program.syntax 'gb2260 latest.json'
|
13
|
+
|
14
|
+
program.action do |args, options|
|
15
|
+
args[0].then { |_| _ || Dir['.gb2260{/**/*,}.json'].last }
|
16
|
+
.then { |_| _ || %{#{Dir.home}/.gb2260.json} }
|
17
|
+
.then { |_| GB2260.load_file!(_) }
|
18
|
+
|
19
|
+
if defined?(Pry)
|
20
|
+
Pry.start
|
21
|
+
else
|
22
|
+
require 'irb'
|
23
|
+
IRB.start(__FILE__)
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
data/lib/gb2260/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cn-gb2260
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- matark
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-05-
|
11
|
+
date: 2019-05-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|
@@ -40,10 +40,12 @@ dependencies:
|
|
40
40
|
version: 0.3.6
|
41
41
|
description:
|
42
42
|
email: matark@naver.com
|
43
|
-
executables:
|
43
|
+
executables:
|
44
|
+
- gb2260
|
44
45
|
extensions: []
|
45
46
|
extra_rdoc_files: []
|
46
47
|
files:
|
48
|
+
- bin/gb2260
|
47
49
|
- lib/cn/gb2260.rb
|
48
50
|
- lib/gb2260.rb
|
49
51
|
- lib/gb2260/division.rb
|