wagon_rails 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/wagon_rails/app_builder.rb +4 -4
- data/lib/wagon_rails/generators/app_generator.rb +10 -6
- data/lib/wagon_rails/version.rb +1 -1
- data/wagon_rails.gemspec +1 -0
- metadata +15 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1c9245f9d65425d9377890688a8b974ba7821cd8
|
4
|
+
data.tar.gz: ac7583013a59dbb07df8193345b9d9aca377559a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2d08a10b4e055415a909ac49494006d4cf062e7ddb8b8d28ff24af1dc09dcdd3076840e4f7e69152537dbade8fc9c8bc58d8d7a30f381acc7f521c10776924aa
|
7
|
+
data.tar.gz: cf993b6829ee4a7d9e875620f671770326f06e4c32eaabd356b0e7be983d53e61dfbbbbeded3d4231309809912fec272a7e84d4a4ece0cccb56423829509120f
|
@@ -152,10 +152,6 @@ module WagonRails
|
|
152
152
|
copy_file 'Procfile', 'Procfile'
|
153
153
|
end
|
154
154
|
|
155
|
-
def setup_figaro
|
156
|
-
run 'touch config/application.yml'
|
157
|
-
end
|
158
|
-
|
159
155
|
def copy_application_yml
|
160
156
|
copy_file 'application.yml', 'config/application.yml'
|
161
157
|
end
|
@@ -303,6 +299,10 @@ production:
|
|
303
299
|
copy_file 'application_controller.rb', 'app/controllers/application_controller.rb'
|
304
300
|
end
|
305
301
|
|
302
|
+
def first_push
|
303
|
+
run "git push -u origin master"
|
304
|
+
end
|
305
|
+
|
306
306
|
private
|
307
307
|
|
308
308
|
def raise_on_missing_translations_in(environment)
|
@@ -1,3 +1,4 @@
|
|
1
|
+
require 'colorize'
|
1
2
|
require 'rails/generators'
|
2
3
|
require 'rails/generators/rails/app/app_generator'
|
3
4
|
|
@@ -43,6 +44,7 @@ module WagonRails
|
|
43
44
|
invoke :setup_database
|
44
45
|
invoke :create_github_repo
|
45
46
|
invoke :first_commit
|
47
|
+
invoke :first_push
|
46
48
|
invoke :create_heroku_app
|
47
49
|
invoke :outro
|
48
50
|
end
|
@@ -96,7 +98,6 @@ module WagonRails
|
|
96
98
|
build :fix_i18n_deprecation_warning
|
97
99
|
build :configure_puma
|
98
100
|
build :setup_foreman
|
99
|
-
build :setup_figaro
|
100
101
|
build :setup_paperclip
|
101
102
|
build :copy_application_yml
|
102
103
|
end
|
@@ -177,12 +178,15 @@ module WagonRails
|
|
177
178
|
build :commit, "New rails app generated with lewagon/wagon-rails gem"
|
178
179
|
end
|
179
180
|
|
181
|
+
def first_push
|
182
|
+
build :first_push
|
183
|
+
end
|
184
|
+
|
180
185
|
def outro
|
181
|
-
say "
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
end
|
186
|
+
say ""
|
187
|
+
say "----> Open config/initializers/devise.rb and update the `mailer_sender`"
|
188
|
+
say ""
|
189
|
+
say "Congratulations! You're ready to rock!".colorize(:green)
|
186
190
|
end
|
187
191
|
|
188
192
|
protected
|
data/lib/wagon_rails/version.rb
CHANGED
data/wagon_rails.gemspec
CHANGED
@@ -29,6 +29,7 @@ project without losing one day to set up everything.
|
|
29
29
|
|
30
30
|
s.add_dependency 'bundler', '~> 1.3'
|
31
31
|
s.add_dependency 'rails', WagonRails::RAILS_VERSION
|
32
|
+
s.add_dependency 'colorize', '~> 0.7'
|
32
33
|
|
33
34
|
# s.add_development_dependency 'rspec', '~> 2.0'
|
34
35
|
# s.add_development_dependency 'capybara', '~> 2.2', '>= 2.2.0'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wagon_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ssaunier
|
@@ -38,6 +38,20 @@ dependencies:
|
|
38
38
|
- - '='
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: 4.2.0
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: colorize
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0.7'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0.7'
|
41
55
|
description: |
|
42
56
|
WagonRails is a base Rails project with all the best practises and gems
|
43
57
|
taught at Le Wagon's FullStack Bootcamp. Students can jump start their
|