lightning 0.3.3 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.rdoc +3 -0
- data/lib/lightning/commands.rb +1 -1
- data/lib/lightning/version.rb +1 -1
- data/test/commands_test.rb +4 -0
- metadata +5 -33
data/CHANGELOG.rdoc
CHANGED
data/lib/lightning/commands.rb
CHANGED
@@ -34,7 +34,7 @@ module Lightning
|
|
34
34
|
def run(argv=ARGV)
|
35
35
|
if (command = argv.shift) && (actual_command = unalias_command(command))
|
36
36
|
run_command(actual_command, argv)
|
37
|
-
elsif command && commands.include?(command)
|
37
|
+
elsif command && (commands << 'source_file').include?(command)
|
38
38
|
run_command(command, argv)
|
39
39
|
elsif %w{-v --version}.include?(command)
|
40
40
|
puts "lightning #{VERSION}"
|
data/lib/lightning/version.rb
CHANGED
data/test/commands_test.rb
CHANGED
@@ -56,6 +56,10 @@ context "Commands:" do
|
|
56
56
|
Commands.run ['-h']
|
57
57
|
end
|
58
58
|
|
59
|
+
test "with silent command" do
|
60
|
+
capture_stdout { Commands.run ['source_file'] }.should =~ /lightning_completions/
|
61
|
+
end
|
62
|
+
|
59
63
|
test "with invalid command prints messaged and usage" do
|
60
64
|
mock(Commands).print_help
|
61
65
|
capture_stdout { Commands.run ['to_s'] }.should =~ /Command 'to_s'/
|
metadata
CHANGED
@@ -1,13 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lightning
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 3
|
9
|
-
- 3
|
10
|
-
version: 0.3.3
|
4
|
+
prerelease:
|
5
|
+
version: 0.3.4
|
11
6
|
platform: ruby
|
12
7
|
authors:
|
13
8
|
- Gabriel Horner
|
@@ -15,7 +10,7 @@ autorequire:
|
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
12
|
|
18
|
-
date: 2011-
|
13
|
+
date: 2011-04-08 00:00:00 -04:00
|
19
14
|
default_executable:
|
20
15
|
dependencies:
|
21
16
|
- !ruby/object:Gem::Dependency
|
@@ -26,11 +21,6 @@ dependencies:
|
|
26
21
|
requirements:
|
27
22
|
- - ">="
|
28
23
|
- !ruby/object:Gem::Version
|
29
|
-
hash: 19
|
30
|
-
segments:
|
31
|
-
- 1
|
32
|
-
- 1
|
33
|
-
- 0
|
34
24
|
version: 1.1.0
|
35
25
|
type: :development
|
36
26
|
version_requirements: *id001
|
@@ -42,10 +32,6 @@ dependencies:
|
|
42
32
|
requirements:
|
43
33
|
- - ">="
|
44
34
|
- !ruby/object:Gem::Version
|
45
|
-
hash: 15
|
46
|
-
segments:
|
47
|
-
- 1
|
48
|
-
- 0
|
49
35
|
version: "1.0"
|
50
36
|
type: :development
|
51
37
|
version_requirements: *id002
|
@@ -57,9 +43,6 @@ dependencies:
|
|
57
43
|
requirements:
|
58
44
|
- - ">="
|
59
45
|
- !ruby/object:Gem::Version
|
60
|
-
hash: 3
|
61
|
-
segments:
|
62
|
-
- 0
|
63
46
|
version: "0"
|
64
47
|
type: :development
|
65
48
|
version_requirements: *id003
|
@@ -71,9 +54,6 @@ dependencies:
|
|
71
54
|
requirements:
|
72
55
|
- - ">="
|
73
56
|
- !ruby/object:Gem::Version
|
74
|
-
hash: 3
|
75
|
-
segments:
|
76
|
-
- 0
|
77
57
|
version: "0"
|
78
58
|
type: :development
|
79
59
|
version_requirements: *id004
|
@@ -140,7 +120,7 @@ licenses:
|
|
140
120
|
post_install_message:
|
141
121
|
rdoc_options:
|
142
122
|
- --title
|
143
|
-
- Lightning 0.3.
|
123
|
+
- Lightning 0.3.4 Documentation
|
144
124
|
require_paths:
|
145
125
|
- lib
|
146
126
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -148,25 +128,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
148
128
|
requirements:
|
149
129
|
- - ">="
|
150
130
|
- !ruby/object:Gem::Version
|
151
|
-
hash: 3
|
152
|
-
segments:
|
153
|
-
- 0
|
154
131
|
version: "0"
|
155
132
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
156
133
|
none: false
|
157
134
|
requirements:
|
158
135
|
- - ">="
|
159
136
|
- !ruby/object:Gem::Version
|
160
|
-
hash: 23
|
161
|
-
segments:
|
162
|
-
- 1
|
163
|
-
- 3
|
164
|
-
- 6
|
165
137
|
version: 1.3.6
|
166
138
|
requirements: []
|
167
139
|
|
168
140
|
rubyforge_project: tagaholic
|
169
|
-
rubygems_version: 1.
|
141
|
+
rubygems_version: 1.6.1
|
170
142
|
signing_key:
|
171
143
|
specification_version: 3
|
172
144
|
summary: Lightning is a commandline framework that generates shell functions which wrap around commands to autocomplete and translate full paths by their basenames.
|