yuyi 1.0.4 → 1.0.5

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/.new +1 -1
  3. data/lib/yuyi/cli.rb +2 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2d42b24d7281505899a99092cf0deffad8806cfe
4
- data.tar.gz: e7f8ae082e4a25f178d530613624def9f28eedb0
3
+ metadata.gz: 9b2d0229ecf718448e96b1de7428f2e94f12661b
4
+ data.tar.gz: 7964b1e12e1555e61794ed0df22a2da7cb99b1b7
5
5
  SHA512:
6
- metadata.gz: e1a8ca7384b13712ec2b6f7929e3e6351ccf1f8e628c40729ee30e9a4746a489bc56bfad9bd396575b84290f2f8ee04751e404df7455b1a14c49c29d80767a34
7
- data.tar.gz: 3ef10a04e372744cc27f2b950b636b666674a2be54d61e7acfe9e8d7ca84945f1159658a784ab7feee48f462aa26d8316606031a9f6868da4f525c3d8de3af42
6
+ metadata.gz: 035894bc26587d0cb71e9b9e73543373b089366484579ca0faa06143b0b7816b7410f2d0838a1be743682e781f49c71d46ef5d1c7c97aea895b526a62f528262
7
+ data.tar.gz: 91fad596a4751d5e7019cbb55534f4a702decea4995af4b3949fb61020e15c52670fb231d99144396392a4590e2ec506b05586753f5c2ed97a071c85aedb13de
data/.new CHANGED
@@ -16,4 +16,4 @@ tasks:
16
16
  - spec/**/*.rb
17
17
  project_name: Yuyi
18
18
  type: ruby
19
- version: 1.0.4
19
+ version: 1.0.5
data/lib/yuyi/cli.rb CHANGED
@@ -23,7 +23,8 @@ module Yuyi::Cli
23
23
  # get the first argument as the command
24
24
  command, *rest = *args
25
25
 
26
- if command && !command.include?('-')
26
+ # if not an option, assume it is a custom path
27
+ if command && command[0] != '-'
27
28
  @path = command
28
29
  command, *rest = *rest
29
30
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yuyi
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Brewster