tony 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/lib/tony/version.rb +1 -1
- data/spec/tony_spec.rb +10 -3
- data/tony.gemspec +1 -1
- metadata +4 -4
data/Gemfile.lock
CHANGED
data/lib/tony/version.rb
CHANGED
data/spec/tony_spec.rb
CHANGED
@@ -8,15 +8,22 @@ describe Tony do
|
|
8
8
|
mock_generator
|
9
9
|
end
|
10
10
|
|
11
|
+
def setup_arguments(arguments)
|
12
|
+
ARGV.clear
|
13
|
+
arguments.each do |argument|
|
14
|
+
ARGV.push(argument)
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
11
18
|
it "stores a list of used generators" do
|
12
|
-
|
19
|
+
setup_arguments(['generator'])
|
13
20
|
generator = mock_generator('generator')
|
14
21
|
Tony.stub!(:generators).and_return([generator])
|
15
22
|
Tony.used_generators.should == [generator]
|
16
23
|
end
|
17
24
|
|
18
25
|
it "stores a list of combination generators if all combinations are used" do
|
19
|
-
|
26
|
+
setup_arguments(['generator1', 'generator2'])
|
20
27
|
generator1 = mock_generator('generator1')
|
21
28
|
generator2 = mock_generator('generator2')
|
22
29
|
combination_generator = mock_generator('combination_generator', ['generator1', 'generator2'])
|
@@ -32,7 +39,7 @@ describe Tony do
|
|
32
39
|
end
|
33
40
|
|
34
41
|
it "outputs a list of generators" do
|
35
|
-
|
42
|
+
setup_arguments([])
|
36
43
|
generator = mock_generator('generator')
|
37
44
|
combination_generator = mock_generator('combination generator', ['generator'])
|
38
45
|
Tony.stub!(:generators).and_return([generator, combination_generator])
|
data/tony.gemspec
CHANGED
metadata
CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease: false
|
5
5
|
segments:
|
6
6
|
- 0
|
7
|
-
-
|
7
|
+
- 5
|
8
8
|
- 0
|
9
|
-
version: 0.
|
9
|
+
version: 0.5.0
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Andrew Vos
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2011-05-
|
17
|
+
date: 2011-05-13 00:00:00 +01:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
@@ -28,7 +28,7 @@ dependencies:
|
|
28
28
|
segments:
|
29
29
|
- 0
|
30
30
|
version: "0"
|
31
|
-
type: :
|
31
|
+
type: :development
|
32
32
|
version_requirements: *id001
|
33
33
|
description: A generator for ruby projects
|
34
34
|
email:
|