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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/gb2260 +26 -0
  3. data/lib/gb2260/version.rb +1 -1
  4. metadata +5 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9276a8f0617a83bb3e145ddd208a29c24205232e25ad0ed8de61cd5d07ed03be
4
- data.tar.gz: aa1f68ed9bad4767ddbb12fc13a31212b5ddc1f5f5b8033a249acb8e6cd99f75
3
+ metadata.gz: 77d39fd78efd30085e079e24423e188db3b414a10e2a1c03edacbf1d7804e39a
4
+ data.tar.gz: efdd77243aeb33f2594faa521a9d13a2ff193309b2f457b72bdf3b065d751dcd
5
5
  SHA512:
6
- metadata.gz: 9c29bd89ca48de1b6b999cf03b2b900acc8303d44f75c2a842e9a9487edbb4c539a566b66d702f1350582d8763ef008397ba78813978f83b071db9ac76a0dd63
7
- data.tar.gz: 7ef4f639923a46c2915023cb2186116ed54e3df67ba4c61ba4bdb096d6c2ad40630046e3089540dc3a68bec38532319d79c0fa5873eae325ebc12aed2a603b25
6
+ metadata.gz: 275c03c218d3f29bda2096ec34267e9e80e08675efa8fa7212810cfbc75129487a212072139240013fcc7fa556e8b81fc60e8a02d1fb5bf358dc8f245b3eb8e5
7
+ data.tar.gz: 1bc3a5a3c2f7455790edd90aaf34a2cd4fe24b82888cfdc6f7e0609932cbe0a9ceb9552e97f8b0bee96587453cd80988b4de78be499ecc517608c6198bf01041
@@ -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
@@ -1,3 +1,3 @@
1
1
  module GB2260
2
- VERSION = '1.0.1'
2
+ VERSION = '1.0.2'
3
3
  end
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.1
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-10 00:00:00.000000000 Z
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