tony 0.3.0 → 0.4.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.2.0)
4
+ tony (0.3.0)
5
5
  rspec
6
6
 
7
7
  GEM
@@ -2,7 +2,7 @@ require 'fileutils'
2
2
 
3
3
  module Tony
4
4
  class Generator
5
- attr_accessor :name, :description, :files, :gems, :combination
5
+ attr_accessor :name, :description, :files, :combination
6
6
 
7
7
  def initialize(&block)
8
8
  yield self
@@ -0,0 +1,8 @@
1
+ Tony::generators << Tony::Generator.new do |options|
2
+ options.name = "heroku & sinatra"
3
+ options.combination = ['heroku', 'sinatra']
4
+ options.description = "Adds the sinatra gem to the heroku .gems file"
5
+ options.files = {
6
+ '.gems' => 'sinatra'
7
+ }
8
+ end
@@ -13,5 +13,4 @@ Tony::generators << Tony::Generator.new do |options|
13
13
  ].each do |path|
14
14
  options.files[path] = File.read(File.join(File.dirname(__FILE__), path))
15
15
  end
16
- options.gems = ['sinatra']
17
16
  end
data/lib/tony/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Tony
2
- VERSION = "0.3.0"
2
+ VERSION = "0.4.0"
3
3
  end
@@ -24,13 +24,6 @@ describe Tony::Generator do
24
24
  generator.combination.should == ['generator1', 'generator2']
25
25
  end
26
26
 
27
- it "stores gems" do
28
- generator = Tony::Generator.new do |options|
29
- options.gems = ["rspec", "sinatra"]
30
- end
31
- generator.gems.should == ["rspec", "sinatra"]
32
- end
33
-
34
27
  it "takes a description" do
35
28
  generator = Tony::Generator.new do |options|
36
29
  options.description = "description"
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
- - 3
7
+ - 4
8
8
  - 0
9
- version: 0.3.0
9
+ version: 0.4.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-11 00:00:00 +01:00
17
+ date: 2011-05-12 00:00:00 +01:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -49,7 +49,7 @@ files:
49
49
  - bin/tony
50
50
  - lib/tony.rb
51
51
  - lib/tony/generator.rb
52
- - lib/tony/generators/heroku/heroku_generator.rb
52
+ - lib/tony/generators/heroku_sinatra/heroku_sinatra_generator.rb
53
53
  - lib/tony/generators/rspec/Rakefile
54
54
  - lib/tony/generators/rspec/rspec_generator.rb
55
55
  - lib/tony/generators/rspec/spec/helper.rb
@@ -1,10 +0,0 @@
1
- Tony::generators << Tony::Generator.new do |options|
2
- options.name = "heroku"
3
- options.description = "Generates a heroku .gems file"
4
- gems = Tony.used_generators.map { |g|
5
- g.gems ||= []
6
- }.flatten
7
- options.files = {
8
- '.gems' => gems
9
- }
10
- end