File tree 7 files changed +382
-3
lines changed
lib/generators/katapult/basics
7 files changed +382
-3
lines changed Original file line number Diff line number Diff line change 4
4
.config
5
5
.yardoc
6
6
Gemfile.lock
7
+ ! lib /generators /katapult /basics /templates /Gemfile.lock
7
8
InstalledFiles
8
9
_yardoc
9
10
coverage
Original file line number Diff line number Diff line change @@ -74,14 +74,15 @@ when 'new'
74
74
# Do not use `basics_command` as commit message, it contains the db password!
75
75
util . git_commit 'rails generate katapult:basics' , '--quiet'
76
76
77
- util . pink <<-INSTRUCTIONS
77
+ util . pink <<-' INSTRUCTIONS'
78
78
Application initialization done.
79
79
80
80
Next steps:
81
81
82
+ - Run `bundle update` if you want to use the latest versions of all gems
83
+ - Configure public/robots.txt
82
84
- Model your application in lib/katapult/application_model.rb and transform it
83
85
into code by running `katapult fire`
84
- - Configure public/robots.txt
85
86
- Write a README
86
87
INSTRUCTIONS
87
88
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ Feature: Preparation of a new Rails app (basics generator)
25
25
26
26
And the configured Rails version should be listed in the Gemfile.lock
27
27
And the file "Gemfile" should contain "gem 'katapult', path: '../../..'"
28
+ And a file named "Gemfile.lock" should exist
28
29
29
30
And the file "app/controllers/application_controller.rb" should contain:
30
31
"""
Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ Feature: Katapult binary `katapult`
48
48
And the output should contain "Model your application in lib/katapult/application_model.rb"
49
49
And the output should contain "Configure public/robots.txt"
50
50
And the output should contain "Write a README"
51
+ And the output should contain "Run `bundle update`"
51
52
52
53
When I cd to "binary_test"
53
54
Then the file "Gemfile" should contain "gem 'katapult'"
Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ def enhance_gemfile
40
40
# installed with a custom :path option
41
41
@katapult = File . readlines ( 'Gemfile' ) . find { |line | line =~ /^gem 'katapult'/ }
42
42
template 'Gemfile' , force : true
43
+ template 'Gemfile.lock' , force : true
43
44
end
44
45
45
46
def bundle_install
You can’t perform that action at this time.
0 commit comments