runfile 0.7.0 → 0.7.1
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/README.md +1 -1
- data/lib/runfile/runfile_helper.rb +4 -4
- data/lib/runfile/settings.rb +4 -0
- data/lib/runfile/version.rb +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: c5508b3065740db4ea5b4456a3a7867454e2c1a2
|
4
|
+
data.tar.gz: ab269e6c6dcfdc189c3855bb2b4b8b7f6e181ce7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c4a7562a2b700b3e9bc61a93acb987593529abe0c1b4d00e748adb08d02adb030321f3bfd59b81c2b256ac39417f0bcb26da92b1d5d52923cf036d855bbfb97e
|
7
|
+
data.tar.gz: 9a3152f5b67b0ec9258bfd607540e8598eae111626fd02f86be1b2c7efb2f5bb9677e5f9f0b34ab47ad6e697e72b3b74bd80bf5e0b1973e6d63942469a16c745
|
data/README.md
CHANGED
@@ -5,20 +5,20 @@ module Runfile
|
|
5
5
|
|
6
6
|
# The RunfileHelper class assists in:
|
7
7
|
# 1. Finding named.runfiles
|
8
|
-
# 2. Creating new runfiles (`run
|
8
|
+
# 2. Creating new runfiles (`run new`)
|
9
9
|
# 3. Showing a list of found system runfiles in a colorful help
|
10
10
|
class RunfileHelper
|
11
11
|
include SettingsMixin
|
12
12
|
|
13
13
|
# Handle the case when `run` is called without a Runfile
|
14
|
-
# present. We will let the user know they can type `run
|
14
|
+
# present. We will let the user know they can type `run new`
|
15
15
|
# to create a new sample Runfile.
|
16
16
|
# If the first argument matches the name of a *.runfile name,
|
17
17
|
# we will return it to the caller. Otherwise, we return false
|
18
18
|
# to indicate "no further handling is needed".
|
19
19
|
def handle(argv)
|
20
20
|
# make a new runfile
|
21
|
-
if argv[0] == "
|
21
|
+
if argv[0] == "new" && !settings_present?
|
22
22
|
make_runfile argv[1]
|
23
23
|
return false
|
24
24
|
end
|
@@ -74,7 +74,7 @@ module Runfile
|
|
74
74
|
def show_make_help(runfiles, compact=false)
|
75
75
|
say "!txtpur!Runfile engine v#{Runfile::VERSION}" unless compact
|
76
76
|
if runfiles.size < 3 and !compact
|
77
|
-
say "\nTip: Type '!txtblu!run
|
77
|
+
say "\nTip: Type '!txtblu!run new!txtrst!' or '!txtblu!run new name!txtrst!' to create a runfile.\nFor global access, place !txtblu!named.runfiles!txtrst! in ~/runfile/ or in /etc/runfile/."
|
78
78
|
end
|
79
79
|
if runfiles.empty?
|
80
80
|
say "\n!txtred!Runfile not found."
|
data/lib/runfile/settings.rb
CHANGED
data/lib/runfile/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: runfile
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Danny Ben Shitrit
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-05-
|
11
|
+
date: 2016-05-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: colsole
|