runfile 0.3.6 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/run! +10 -0
- data/lib/runfile/runfile_helper.rb +4 -3
- data/lib/runfile/runner.rb +1 -1
- data/lib/runfile/version.rb +1 -1
- metadata +6 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8573e778f7613b6aa1f2195701e35e9c43a41d39
|
4
|
+
data.tar.gz: a718391979ede594e166b07f4fab511f039b7814
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 070d0ed20712692a1a9d99de2126943eb496fb81c542f6115b90e46060d23a069958fcaac1741ff2033443d88cb6b983193332787a7d950729aa26b8a6acc7b9
|
7
|
+
data.tar.gz: 8a0a80e643101d1073b472490d775ebfcb0f143bb8472767dd72d8c528f7fba07588319d9205128cefd4ddf35969ce4ccb564783771d738277b18306b01a0082
|
data/bin/run!
ADDED
@@ -58,7 +58,7 @@ module Runfile
|
|
58
58
|
result = []
|
59
59
|
dirs = runfile_folders
|
60
60
|
dirs.each do |d|
|
61
|
-
found = Dir[File.join(d, '
|
61
|
+
found = Dir[File.join(d, '**/*.runfile')]
|
62
62
|
result << found unless found.empty?
|
63
63
|
end
|
64
64
|
return result.empty? ? false : result.flatten.uniq
|
@@ -85,7 +85,8 @@ module Runfile
|
|
85
85
|
|
86
86
|
# Output the list of available runfiles
|
87
87
|
def say_runfile_list(runfiles)
|
88
|
-
|
88
|
+
runfile_paths = runfiles.map { |f| File.dirname f }
|
89
|
+
max = runfile_paths.max_by(&:length).size
|
89
90
|
width, height = detect_terminal_size
|
90
91
|
runfiles.each do |f|
|
91
92
|
f[/([^\/]+).runfile$/]
|
@@ -93,7 +94,7 @@ module Runfile
|
|
93
94
|
spacer_size = width - max - command.size - 6
|
94
95
|
spacer_size = [1, spacer_size].max
|
95
96
|
spacer = '.' * spacer_size
|
96
|
-
say " !txtgrn!#{command}!txtrst! #{spacer} #{f}"
|
97
|
+
say " !txtgrn!#{command}!txtrst! #{spacer} #{File.dirname f}"
|
97
98
|
end
|
98
99
|
end
|
99
100
|
|
data/lib/runfile/runner.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.
|
4
|
+
version: 0.4.0
|
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: 2015-10-
|
11
|
+
date: 2015-10-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: colsole
|
@@ -66,16 +66,18 @@ dependencies:
|
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0.2'
|
69
|
-
description:
|
70
|
-
inside.
|
69
|
+
description: Build command line applications per project with ease. Rake-inspired,
|
70
|
+
Docopt inside.
|
71
71
|
email: db@dannyben.com
|
72
72
|
executables:
|
73
73
|
- run
|
74
|
+
- run!
|
74
75
|
extensions: []
|
75
76
|
extra_rdoc_files: []
|
76
77
|
files:
|
77
78
|
- README.md
|
78
79
|
- bin/run
|
80
|
+
- bin/run!
|
79
81
|
- lib/runfile.rb
|
80
82
|
- lib/runfile/action.rb
|
81
83
|
- lib/runfile/docopt_helper.rb
|