pleasant-lawyer-cli 0.2.0 → 0.3.0
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.
- checksums.yaml +4 -4
- data/exe/pl +7 -2
- data/exe/plco +8 -2
- data/pleasant-lawyer-cli.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cec58cb42d4c3b2c4bf3b360ca7d6dfe51671225
|
4
|
+
data.tar.gz: a36ac232c3c43bc6628887c30e61f751b05fedbc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 75a8fdc07a51d5cd97860fc26658ba5478b864dcfce5176944e92c3ae3c373953682eca3e5c11caaa5a013f3a990a5301cdd99e940983c0a457a74bec5cbd9c1
|
7
|
+
data.tar.gz: 812007d1887651373878342925eb48355bcee0ee24404dac8d42c47cd1188a4eabbb9816f24d2aa739753bb37d37f1e38636bf1743248b4e6d1405012627c766
|
data/exe/pl
CHANGED
@@ -2,8 +2,6 @@
|
|
2
2
|
|
3
3
|
require "pleasant_lawyer_cli"
|
4
4
|
|
5
|
-
input = ARGV.join ' '
|
6
|
-
|
7
5
|
help = <<-HELP
|
8
6
|
Please provide a pleasant lawyer name or beetil number as input
|
9
7
|
|
@@ -12,6 +10,13 @@ E.g:
|
|
12
10
|
pl 60254 # => famous money
|
13
11
|
HELP
|
14
12
|
|
13
|
+
if ARGV.length == 1 && %w(-h --help).include?(ARGV[0])
|
14
|
+
puts help
|
15
|
+
exit 0
|
16
|
+
end
|
17
|
+
|
18
|
+
input = ARGV.join ' '
|
19
|
+
|
15
20
|
fail help if input.empty?
|
16
21
|
|
17
22
|
output = PleasantLawyer.convert(input)
|
data/exe/plco
CHANGED
@@ -2,8 +2,6 @@
|
|
2
2
|
|
3
3
|
require "pleasant_lawyer_cli"
|
4
4
|
|
5
|
-
git_input = ARGV.select { |arg| /^-/ =~ arg }.join ' '
|
6
|
-
pl_input = ARGV.reject { |arg| /^-/ =~ arg }.join ' '
|
7
5
|
|
8
6
|
help = <<-HELP
|
9
7
|
Please provide a pleasant lawyer name or beetil number as input
|
@@ -12,6 +10,14 @@ E.g:
|
|
12
10
|
plco famous money # checks out b_60254
|
13
11
|
HELP
|
14
12
|
|
13
|
+
if ARGV.length == 1 && %w(-h --help).include?(ARGV[0])
|
14
|
+
puts help
|
15
|
+
exit 0
|
16
|
+
end
|
17
|
+
|
18
|
+
git_input = ARGV.select { |arg| /^-/ =~ arg }.join ' '
|
19
|
+
pl_input = ARGV.reject { |arg| /^-/ =~ arg }.join ' '
|
20
|
+
|
15
21
|
fail help if pl_input.empty?
|
16
22
|
|
17
23
|
output = PleasantLawyer.convert(pl_input)
|
data/pleasant-lawyer-cli.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pleasant-lawyer-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nick Johnstone
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-07-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pleasant-lawyer
|