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 CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- tony (0.3.0)
4
+ tony (0.4.0)
5
5
  rspec
6
6
 
7
7
  GEM
data/lib/tony/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Tony
2
- VERSION = "0.4.0"
2
+ VERSION = "0.5.0"
3
3
  end
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
- ARGV = ['generator']
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
- ARGV = ['generator1', 'generator2']
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
- ARGV = []
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
@@ -20,5 +20,5 @@ Gem::Specification.new do |s|
20
20
  s.require_paths = ["lib"]
21
21
  s.bindir = 'bin'
22
22
  s.executables = ['tony']
23
- s.add_dependency 'rspec'
23
+ s.add_development_dependency 'rspec'
24
24
  end
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
- - 4
7
+ - 5
8
8
  - 0
9
- version: 0.4.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-12 00:00:00 +01:00
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: :runtime
31
+ type: :development
32
32
  version_requirements: *id001
33
33
  description: A generator for ruby projects
34
34
  email: