bnr_generator 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/bnr-generator/version.rb +1 -1
- data/lib/bnr_command.rb +9 -3
- data/lib/templates/Procfile +1 -0
- data/lib/templates/README.md +3 -1
- metadata +10 -9
data/lib/bnr_command.rb
CHANGED
@@ -19,14 +19,16 @@ class BnrCommand < Thor
|
|
19
19
|
gsub_file "Gemfile", /^ *$\n/, ''
|
20
20
|
append_to_file "Gemfile" do
|
21
21
|
<<-EOF
|
22
|
-
gem 'slim'
|
23
|
-
gem 'slim-rails'
|
24
22
|
gem 'bootstrap-sass', '~> 2.0.4.0'
|
23
|
+
gem 'foreman'
|
24
|
+
gem 'thin'
|
25
|
+
gem 'slim-rails'
|
25
26
|
group :test, :development do
|
26
27
|
gem 'rspec-rails'
|
27
28
|
gem 'factory_girl_rails'
|
28
29
|
gem 'forgery'
|
29
30
|
gem 'heroku'
|
31
|
+
gem 'zonebie'
|
30
32
|
end
|
31
33
|
group :test do
|
32
34
|
gem 'capybara'
|
@@ -61,6 +63,8 @@ end
|
|
61
63
|
config.after(:each) do
|
62
64
|
DatabaseCleaner.clean
|
63
65
|
end
|
66
|
+
|
67
|
+
config.order = "random"
|
64
68
|
EOF
|
65
69
|
end
|
66
70
|
append_to_file 'spec/spec_helper.rb', "\nCapybara.javascript_driver = :webkit\n"
|
@@ -68,7 +72,7 @@ end
|
|
68
72
|
<<-EOF
|
69
73
|
require 'simplecov'
|
70
74
|
SimpleCov.start
|
71
|
-
|
75
|
+
Zonebie.set_random_timezone
|
72
76
|
EOF
|
73
77
|
end
|
74
78
|
append_to_file '.gitignore', "\ncoverage\n.rvmrc"
|
@@ -96,6 +100,8 @@ SimpleCov.start
|
|
96
100
|
remove_file "#{name}/config/routes.rb"
|
97
101
|
template "templates/routes.rb.erb", "#{name}/config/routes.rb"
|
98
102
|
|
103
|
+
template "templates/Procfile", "#{name}/Procfile"
|
104
|
+
|
99
105
|
inside name do
|
100
106
|
rvm_run 'rake db:migrate'
|
101
107
|
rvm_run 'git add .'
|
@@ -0,0 +1 @@
|
|
1
|
+
web: bundle exec rails server thin -p $PORT
|
data/lib/templates/README.md
CHANGED
@@ -19,7 +19,9 @@ bundle install
|
|
19
19
|
# Get the database ready
|
20
20
|
# ex: bundle exec rake db:create:all db:schema:load db:test:prepare
|
21
21
|
|
22
|
-
# Start the app and other processes
|
22
|
+
# Start the app and other processes
|
23
|
+
|
24
|
+
bundle exec foreman start
|
23
25
|
|
24
26
|
# setup other services like Solr, Redis, etc...
|
25
27
|
```
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bnr_generator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2013-01-02 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
16
|
-
requirement: &
|
16
|
+
requirement: &70286032861800 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 3.2.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70286032861800
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: thor
|
27
|
-
requirement: &
|
27
|
+
requirement: &70286032895820 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70286032895820
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: heroku
|
38
|
-
requirement: &
|
38
|
+
requirement: &70286032893620 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ! '>='
|
@@ -43,7 +43,7 @@ dependencies:
|
|
43
43
|
version: '0'
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70286032893620
|
47
47
|
description: Tool to generate a rails project ready for development
|
48
48
|
email:
|
49
49
|
- aubrey@bignerdranch.com
|
@@ -63,6 +63,7 @@ files:
|
|
63
63
|
- bnr-generator.gemspec
|
64
64
|
- lib/bnr-generator/version.rb
|
65
65
|
- lib/bnr_command.rb
|
66
|
+
- lib/templates/Procfile
|
66
67
|
- lib/templates/README.md
|
67
68
|
- lib/templates/application.css.scss
|
68
69
|
- lib/templates/application.js.coffee
|
@@ -84,7 +85,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
84
85
|
version: '0'
|
85
86
|
segments:
|
86
87
|
- 0
|
87
|
-
hash:
|
88
|
+
hash: 1897498371364409817
|
88
89
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
89
90
|
none: false
|
90
91
|
requirements:
|
@@ -93,7 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
93
94
|
version: '0'
|
94
95
|
segments:
|
95
96
|
- 0
|
96
|
-
hash:
|
97
|
+
hash: 1897498371364409817
|
97
98
|
requirements: []
|
98
99
|
rubyforge_project:
|
99
100
|
rubygems_version: 1.8.15
|