pleasant-lawyer-cli 0.1.4 → 0.2.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: 1b615685d7ab69f52c89c2b3b09789f0daa570e2
4
- data.tar.gz: 0c2afc8f9b1023f6356c7cb47b1344b8fb6b4440
3
+ metadata.gz: ded7fa663ae45d1237cff7a95e1c2f0e6c25c063
4
+ data.tar.gz: f6b83760913ad2efe6034d4209169677fde4bba7
5
5
  SHA512:
6
- metadata.gz: 24b2abee0fc968cfdff00e2f46039f05e4907313ff633c5319c32958a0a40ae0333a09ca1931702b50499d5882711db5a082bd2d733253b9788644a433ce92b4
7
- data.tar.gz: 9046231923312b0fdc54849015bc09dc3fabfbc6e74d55421cebefc299b6b68513658be75e246722adf6356a9330d91ebcb51f73d9d8f84e1d397c8ab00c6b06
6
+ metadata.gz: 0d443c33070cfe6a70f02c8165ce33b70d8f3cb30503251ec66af0ec605d9f807404a0b8866d47ddcda2b06d8864361e6fa49a1fffb3e0b37d25262105af314c
7
+ data.tar.gz: d9c5c793f9667cb8d53e87d1fcdac5d44de89902d2429c1310f399ad50510c5d6fbc75610635cb21e293111d57dc2516b8e1e016e38dd2e2d431ed544c783ca7
data/README.md CHANGED
@@ -28,6 +28,9 @@ better night
28
28
  ```shell
29
29
  $ plco better night
30
30
  # checks out b_58631
31
+
32
+ $ plco -b wee sock
33
+ # checks out b_53962 as a new branch
31
34
  ```
32
35
 
33
36
  ## Contributing
data/exe/plco CHANGED
@@ -2,7 +2,8 @@
2
2
 
3
3
  require "pleasant_lawyer_cli"
4
4
 
5
- input = ARGV.join ' '
5
+ git_input = ARGV.select { |arg| /^-/ =~ arg }.join ' '
6
+ pl_input = ARGV.reject { |arg| /^-/ =~ arg }.join ' '
6
7
 
7
8
  help = <<-HELP
8
9
  Please provide a pleasant lawyer name or beetil number as input
@@ -11,9 +12,9 @@ E.g:
11
12
  plco famous money # checks out b_60254
12
13
  HELP
13
14
 
14
- fail help if input.empty?
15
+ fail help if pl_input.empty?
15
16
 
16
- output = PleasantLawyer.convert(input)
17
+ output = PleasantLawyer.convert(pl_input)
17
18
 
18
- `git checkout b_#{output}`
19
+ `git checkout #{git_input} b_#{output}`
19
20
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = "pleasant-lawyer-cli"
5
- spec.version = "0.1.4"
5
+ spec.version = "0.2.0"
6
6
  spec.authors = ["Nick Johnstone"]
7
7
  spec.email = ["ncwjohnstone@gmail.com"]
8
8
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pleasant-lawyer-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Johnstone