beans_rails 0.0.0 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/beans_rails.gemspec +9 -10
- data/beans_rails.rb +28 -23
- data/templates/config/database.yml +1 -1
- data/templates/{deploy → config/deploy}/config/staging.yml +1 -1
- data/templates/{deploy → config/deploy}/production.rb +0 -0
- data/templates/{deploy → config/deploy}/staging.rb +0 -0
- data/templates/{deploy → config/deploy}/templates/database.erb +0 -0
- data/templates/{deploy → config/deploy}/templates/public_keys.txt +0 -0
- data/templates/{deploy → config/deploy}/templates/staging_vhost.erb +0 -0
- data/templates/config/deploy.rb +1 -1
- data/templates/{deploy → recipes}/beans_server.rb +0 -0
- metadata +9 -10
- data/templates/Gemfile +0 -8
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
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.
|
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-
|
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/
|
35
|
-
"templates/deploy/
|
36
|
-
"templates/deploy/
|
37
|
-
"templates/deploy/
|
38
|
-
"templates/deploy/templates/
|
39
|
-
"templates/deploy/templates/
|
40
|
-
"templates/
|
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/
|
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/*', '
|
18
|
+
['README', 'doc/*', 'test', 'public/index.html', 'public/images/rails.png'].each { |file| run "rm -rf #{file}" }
|
19
19
|
|
20
|
-
#
|
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
|
-
|
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
|
32
|
+
# copy the .gitignore and database.yml to the app
|
29
33
|
|
30
|
-
['
|
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
|
-
|
45
|
-
'config/deploy
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
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
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/templates/config/deploy.rb
CHANGED
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.
|
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-
|
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/
|
39
|
-
- templates/deploy/
|
40
|
-
- templates/deploy/
|
41
|
-
- templates/deploy/
|
42
|
-
- templates/deploy/templates/
|
43
|
-
- templates/deploy/templates/
|
44
|
-
- templates/
|
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: []
|