beans_rails 0.0.0 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.0
1
+ 0.1.0
data/beans_rails.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{beans_rails}
8
- s.version = "0.0.0"
8
+ s.version = "0.1.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Jeff Kreeftmeijer"]
12
- s.date = %q{2009-12-08}
12
+ s.date = %q{2009-12-11}
13
13
  s.default_executable = %q{beans_rails}
14
14
  s.description = %q{the 80beans rails project template (and generator)}
15
15
  s.email = %q{jeff@80beans.com}
@@ -28,16 +28,15 @@ Gem::Specification.new do |s|
28
28
  "bin/beans_rails",
29
29
  "templates/.gitignore",
30
30
  "templates/Capfile",
31
- "templates/Gemfile",
32
31
  "templates/config/database.yml",
33
32
  "templates/config/deploy.rb",
34
- "templates/deploy/beans_server.rb",
35
- "templates/deploy/config/staging.yml",
36
- "templates/deploy/production.rb",
37
- "templates/deploy/staging.rb",
38
- "templates/deploy/templates/database.erb",
39
- "templates/deploy/templates/public_keys.txt",
40
- "templates/deploy/templates/staging_vhost.erb"
33
+ "templates/config/deploy/config/staging.yml",
34
+ "templates/config/deploy/production.rb",
35
+ "templates/config/deploy/staging.rb",
36
+ "templates/config/deploy/templates/database.erb",
37
+ "templates/config/deploy/templates/public_keys.txt",
38
+ "templates/config/deploy/templates/staging_vhost.erb",
39
+ "templates/recipes/beans_server.rb"
41
40
  ]
42
41
  s.homepage = %q{http://github.com/80beans/beans_rails}
43
42
  s.rdoc_options = ["--charset=UTF-8"]
data/beans_rails.rb CHANGED
@@ -1,4 +1,4 @@
1
- TEMPLATES_DIR = 'http://github.com/80beans/beans_rails/raw/bundler/templates/'
1
+ TEMPLATES_DIR = 'http://github.com/80beans/beans_rails/raw/master/templates/'
2
2
 
3
3
  class Rails::TemplateRunner
4
4
  def app_name
@@ -15,23 +15,23 @@ end
15
15
 
16
16
  # removing unnecessary files
17
17
 
18
- ['README', 'doc/*', 'log/*', 'test', 'public/index.html', 'public/images/rails.png'].each { |file| run "rm -rf #{file}" }
18
+ ['README', 'doc/*', 'test', 'public/index.html', 'public/images/rails.png'].each { |file| run "rm -rf #{file}" }
19
19
 
20
- # create the needed directories
21
- ['config', 'deploy', 'deploy/config', 'deploy/templates'].each { |dir| run "mkdir #{dir}"}
20
+ # add the required gems to the environment file and install
22
21
 
23
- # install bundler
22
+ gem 'capistrano'
23
+ gem 'capistrano-ext', :lib => 'capistrano'
24
+ gem 'haml'
25
+ gem 'paperclip'
26
+ gem 'rspec'
27
+ gem 'rspec-rails', :lib => 'spec'
28
+ gem 'will_paginate'
24
29
 
25
- gem 'bundler'
26
30
  rake "gems:install", :sudo => true
27
31
 
28
- # copy the .gitignore, database.yml and Gemfile to the app
32
+ # copy the .gitignore and database.yml to the app
29
33
 
30
- ['Gemfile', '.gitignore', 'config/database.yml' ].each { |file| template_file(file) }
31
-
32
- # bundle the gems
33
-
34
- run 'gem bundle'
34
+ ['.gitignore', 'config/database.yml'].each { |file| template_file(file) }
35
35
 
36
36
  # generating rspec stuff
37
37
 
@@ -40,17 +40,22 @@ generate :rspec
40
40
  # capistrano
41
41
 
42
42
  if yes?('Add capistrano configuration?')
43
- [
44
- 'Capfile',
45
- 'config/deploy.rb',
46
- 'deploy/beans_server.rb',
47
- 'deploy/production.rb',
48
- 'deploy/staging.rb',
49
- 'deploy/config/staging.yml',
50
- 'deploy/templates/database.erb',
51
- 'deploy/templates/public_keys.txt',
52
- 'deploy/templates/staging_vhost.erb'
53
- ].each { |file| template_file(file) }
43
+
44
+ # create the needed directories
45
+ ['config/deploy', 'config/deploy/config', 'config/deploy/templates', 'recipes'].each { |dir| run "mkdir #{dir}"}
46
+
47
+ # move the templates to the app
48
+ [
49
+ 'Capfile',
50
+ 'config/deploy.rb',
51
+ 'config/deploy/production.rb',
52
+ 'config/deploy/staging.rb',
53
+ 'config/deploy/config/staging.yml',
54
+ 'config/deploy/templates/database.erb',
55
+ 'config/deploy/templates/public_keys.txt',
56
+ 'config/deploy/templates/staging_vhost.erb',
57
+ 'recipes/beans_server.rb'
58
+ ].each { |file| template_file(file) }
54
59
  end
55
60
 
56
61
  # git
@@ -9,4 +9,4 @@ test:
9
9
  encoding: utf8
10
10
  database: {{app_name}}_test
11
11
  username: root
12
- password:
12
+ password:
@@ -4,4 +4,4 @@ apache:
4
4
 
5
5
  mysql:
6
6
  user: root
7
- pass:
7
+ pass:
File without changes
File without changes
@@ -2,7 +2,7 @@ set :default_stage, 'staging'
2
2
 
3
3
  require 'erb'
4
4
  require 'capistrano/ext/multistage' # needs the capistrano-ext gem
5
- require 'config/deploy/beans_server'
5
+ require 'recipes/beans_server'
6
6
 
7
7
  set :application, '{{app_name}}'
8
8
 
File without changes
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: beans_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeff Kreeftmeijer
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-12-08 00:00:00 +01:00
12
+ date: 2009-12-11 00:00:00 +01:00
13
13
  default_executable: beans_rails
14
14
  dependencies: []
15
15
 
@@ -32,16 +32,15 @@ files:
32
32
  - bin/beans_rails
33
33
  - templates/.gitignore
34
34
  - templates/Capfile
35
- - templates/Gemfile
36
35
  - templates/config/database.yml
37
36
  - templates/config/deploy.rb
38
- - templates/deploy/beans_server.rb
39
- - templates/deploy/config/staging.yml
40
- - templates/deploy/production.rb
41
- - templates/deploy/staging.rb
42
- - templates/deploy/templates/database.erb
43
- - templates/deploy/templates/public_keys.txt
44
- - templates/deploy/templates/staging_vhost.erb
37
+ - templates/config/deploy/config/staging.yml
38
+ - templates/config/deploy/production.rb
39
+ - templates/config/deploy/staging.rb
40
+ - templates/config/deploy/templates/database.erb
41
+ - templates/config/deploy/templates/public_keys.txt
42
+ - templates/config/deploy/templates/staging_vhost.erb
43
+ - templates/recipes/beans_server.rb
45
44
  has_rdoc: true
46
45
  homepage: http://github.com/80beans/beans_rails
47
46
  licenses: []
data/templates/Gemfile DELETED
@@ -1,8 +0,0 @@
1
- gem 'rails', '2.3.5'
2
- gem 'capistrano'
3
- gem 'capistrano-ext'
4
- gem 'haml'
5
- gem 'paperclip'
6
- gem 'rspec'
7
- gem 'rspec-rails'
8
- gem 'will_paginate'