rib 1.1.4 → 1.1.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.
- checksums.yaml +4 -4
- data/CHANGES.md +5 -0
- data/lib/rib/runner.rb +4 -3
- data/lib/rib/version.rb +1 -1
- data/rib.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6a6d86b4e55eea04dd23d8266b12321528ec904a
|
4
|
+
data.tar.gz: 54976f794a02b314f56804d825f73844ac244094
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fd709b042a0e5217c6b0c0539e3be2fc84a8c60cf3e34fb26bc561e41757306fae9fc05dd58a90536d360bb2e4a67c99e0a011783305b1516975633fbca960f5
|
7
|
+
data.tar.gz: d5e2de88b7978bdf29fd9bdb97de590a120e64bfe3f760f21a38829e1ebb953c357bb48ed02c60133d63bf31289602c1c1bd561ef96d4755a6fc11421005cc91
|
data/CHANGES.md
CHANGED
data/lib/rib/runner.rb
CHANGED
@@ -54,13 +54,14 @@ module Rib::Runner
|
|
54
54
|
'min' => 'Run the minimum essence' ,
|
55
55
|
'auto' => 'Run as Rails or Ramaze console (auto-detect)',
|
56
56
|
'rails' => 'Run as Rails console' ,
|
57
|
-
'ramaze' => 'Run as Ramaze console'
|
57
|
+
'ramaze' => 'Run as Ramaze console' ,
|
58
|
+
'rack' => 'Run as Rack console' }
|
58
59
|
end
|
59
60
|
|
60
61
|
# Extract the text below __END__ in the bin file as the description
|
61
62
|
def command_descriptions_find path
|
62
63
|
File.read(path) =~ /Gem\.bin_path\(['"](.+)['"], ['"](.+)['"],/
|
63
|
-
File.read(Gem.bin_path($1, $2))[/\n__END__\n(.+)$/m, 1].strip
|
64
|
+
(File.read(Gem.bin_path($1, $2))[/\n__END__\n(.+)$/m, 1] || '').strip
|
64
65
|
end
|
65
66
|
|
66
67
|
def run argv=ARGV
|
@@ -148,7 +149,7 @@ module Rib::Runner
|
|
148
149
|
"Usage: #{Rib.config[:name]}" \
|
149
150
|
" [ruby OPTIONS] [rib OPTIONS] [rib COMMANDS]\n" +
|
150
151
|
options.map{ |(name, desc)|
|
151
|
-
if
|
152
|
+
if name.end_with?(':')
|
152
153
|
name
|
153
154
|
else
|
154
155
|
sprintf(" %-*s %-*s", maxn, name, maxd, desc)
|
data/lib/rib/version.rb
CHANGED
data/rib.gemspec
CHANGED