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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ded7fa663ae45d1237cff7a95e1c2f0e6c25c063
4
- data.tar.gz: f6b83760913ad2efe6034d4209169677fde4bba7
3
+ metadata.gz: cec58cb42d4c3b2c4bf3b360ca7d6dfe51671225
4
+ data.tar.gz: a36ac232c3c43bc6628887c30e61f751b05fedbc
5
5
  SHA512:
6
- metadata.gz: 0d443c33070cfe6a70f02c8165ce33b70d8f3cb30503251ec66af0ec605d9f807404a0b8866d47ddcda2b06d8864361e6fa49a1fffb3e0b37d25262105af314c
7
- data.tar.gz: d9c5c793f9667cb8d53e87d1fcdac5d44de89902d2429c1310f399ad50510c5d6fbc75610635cb21e293111d57dc2516b8e1e016e38dd2e2d431ed544c783ca7
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)
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = "pleasant-lawyer-cli"
5
- spec.version = "0.2.0"
5
+ spec.version = "0.3.0"
6
6
  spec.authors = ["Nick Johnstone"]
7
7
  spec.email = ["ncwjohnstone@gmail.com"]
8
8
 
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.2.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-05-11 00:00:00.000000000 Z
11
+ date: 2016-07-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pleasant-lawyer