bulldozer 1.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +5 -0
- data/.ruby-version +1 -0
- data/.travis.yml +12 -0
- data/CONTRIBUTING.md +59 -0
- data/Gemfile +3 -0
- data/LICENSE +21 -0
- data/NEWS.md +638 -0
- data/README.md +225 -0
- data/RELEASING.md +18 -0
- data/Rakefile +8 -0
- data/USAGE +13 -0
- data/bin/bulldozer +23 -0
- data/bin/rake +16 -0
- data/bin/rspec +16 -0
- data/bin/setup +13 -0
- data/bulldozer.gemspec +35 -0
- data/docker-compose.yml +8 -0
- data/dockerfile +11 -0
- data/lib/bulldozer.rb +24 -0
- data/lib/bulldozer/actions.rb +85 -0
- data/lib/bulldozer/adapters/heroku.rb +123 -0
- data/lib/bulldozer/app_builder.rb +321 -0
- data/lib/bulldozer/generators/analytics_generator.rb +24 -0
- data/lib/bulldozer/generators/app_generator.rb +231 -0
- data/lib/bulldozer/generators/base.rb +20 -0
- data/lib/bulldozer/generators/ci_generator.rb +22 -0
- data/lib/bulldozer/generators/db_optimizations_generator.rb +30 -0
- data/lib/bulldozer/generators/factories_generator.rb +22 -0
- data/lib/bulldozer/generators/forms_generator.rb +18 -0
- data/lib/bulldozer/generators/jobs_generator.rb +38 -0
- data/lib/bulldozer/generators/js_driver_generator.rb +15 -0
- data/lib/bulldozer/generators/json_generator.rb +10 -0
- data/lib/bulldozer/generators/lint_generator.rb +9 -0
- data/lib/bulldozer/generators/production/deployment_generator.rb +27 -0
- data/lib/bulldozer/generators/production/email_generator.rb +37 -0
- data/lib/bulldozer/generators/production/force_tls_generator.rb +11 -0
- data/lib/bulldozer/generators/production/manifest_generator.rb +24 -0
- data/lib/bulldozer/generators/production/timeout_generator.rb +21 -0
- data/lib/bulldozer/generators/staging/pull_requests_generator.rb +33 -0
- data/lib/bulldozer/generators/static_generator.rb +10 -0
- data/lib/bulldozer/generators/stylesheet_base_generator.rb +31 -0
- data/lib/bulldozer/generators/testing_generator.rb +55 -0
- data/lib/bulldozer/generators/views_generator.rb +30 -0
- data/lib/bulldozer/version.rb +8 -0
- data/spec/adapters/heroku_spec.rb +72 -0
- data/spec/fakes/bin/heroku +5 -0
- data/spec/fakes/bin/hub +5 -0
- data/spec/features/api_spec.rb +18 -0
- data/spec/features/cli_help_spec.rb +36 -0
- data/spec/features/github_spec.rb +16 -0
- data/spec/features/heroku_spec.rb +71 -0
- data/spec/features/json_spec.rb +15 -0
- data/spec/features/new_project_spec.rb +341 -0
- data/spec/features/production/deployment_spec.rb +22 -0
- data/spec/features/production/email_spec.rb +47 -0
- data/spec/features/production/manifest_spec.rb +35 -0
- data/spec/features/staging/pull_requests_spec.rb +22 -0
- data/spec/spec_helper.rb +21 -0
- data/spec/support/be_executable_matcher.rb +7 -0
- data/spec/support/bulldozer.rb +182 -0
- data/spec/support/contain_json_matcher.rb +24 -0
- data/spec/support/exist_as_a_file_matcher.rb +7 -0
- data/spec/support/fake_github.rb +21 -0
- data/spec/support/fake_heroku.rb +53 -0
- data/spec/support/generators.rb +5 -0
- data/spec/support/match_contents_matcher.rb +6 -0
- data/spec/support/project_files.rb +13 -0
- data/templates/Gemfile.erb +51 -0
- data/templates/Procfile +2 -0
- data/templates/README.md.erb +28 -0
- data/templates/_analytics.html.erb +8 -0
- data/templates/_css_overrides.html.erb +7 -0
- data/templates/_flashes.html.erb +7 -0
- data/templates/_javascript.html.erb +3 -0
- data/templates/action_mailer.rb +5 -0
- data/templates/active_job.rb +13 -0
- data/templates/application.scss +8 -0
- data/templates/bin_deploy +12 -0
- data/templates/bin_setup +28 -0
- data/templates/bin_setup_review_app.erb +22 -0
- data/templates/browserslist +3 -0
- data/templates/bulldozer_gitignore +18 -0
- data/templates/bulldozer_layout.html.erb.erb +21 -0
- data/templates/bundler_audit.rake +4 -0
- data/templates/chromedriver.rb +17 -0
- data/templates/circle.yml.erb +6 -0
- data/templates/config_locales_en.yml.erb +19 -0
- data/templates/dev.rake +12 -0
- data/templates/dotfiles/.ctags +2 -0
- data/templates/dotfiles/.env +13 -0
- data/templates/email.rb +3 -0
- data/templates/errors.rb +34 -0
- data/templates/factories.rb +2 -0
- data/templates/factory_bot_rspec.rb +5 -0
- data/templates/flashes_helper.rb +5 -0
- data/templates/hound.yml +14 -0
- data/templates/i18n.rb +3 -0
- data/templates/json_encoding.rb +1 -0
- data/templates/postgresql_database.yml.erb +19 -0
- data/templates/puma.rb +28 -0
- data/templates/rack_mini_profiler.rb +5 -0
- data/templates/rails_helper.rb +22 -0
- data/templates/secrets.yml +8 -0
- data/templates/shoulda_matchers_config_rspec.rb +6 -0
- data/templates/smtp.rb +9 -0
- data/templates/spec_helper.rb +28 -0
- metadata +197 -0
data/templates/smtp.rb
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
SMTP_SETTINGS = {
|
2
|
+
address: ENV.fetch("SMTP_ADDRESS"), # example: "smtp.sendgrid.net"
|
3
|
+
authentication: :plain,
|
4
|
+
domain: ENV.fetch("SMTP_DOMAIN"), # example: "heroku.com"
|
5
|
+
enable_starttls_auto: true,
|
6
|
+
password: ENV.fetch("SMTP_PASSWORD"),
|
7
|
+
port: "587",
|
8
|
+
user_name: ENV.fetch("SMTP_USERNAME")
|
9
|
+
}
|
@@ -0,0 +1,28 @@
|
|
1
|
+
if ENV.fetch("COVERAGE", false)
|
2
|
+
require "simplecov"
|
3
|
+
|
4
|
+
SimpleCov.start "rails"
|
5
|
+
end
|
6
|
+
|
7
|
+
require "webmock/rspec"
|
8
|
+
require "timecop"
|
9
|
+
|
10
|
+
# http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
|
11
|
+
RSpec.configure do |config|
|
12
|
+
config.expect_with :rspec do |expectations|
|
13
|
+
expectations.syntax = :expect
|
14
|
+
end
|
15
|
+
|
16
|
+
config.mock_with :rspec do |mocks|
|
17
|
+
mocks.syntax = :expect
|
18
|
+
mocks.verify_partial_doubles = true
|
19
|
+
end
|
20
|
+
|
21
|
+
config.example_status_persistence_file_path = "tmp/rspec_examples.txt"
|
22
|
+
config.order = :random
|
23
|
+
end
|
24
|
+
|
25
|
+
WebMock.disable_net_connect!(allow_localhost: true)
|
26
|
+
|
27
|
+
# Only allow Timecop with block syntax
|
28
|
+
Timecop.safe_mode = true
|
metadata
ADDED
@@ -0,0 +1,197 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: bulldozer
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.6.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- mpatrick
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2019-03-01 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bitters
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.7'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.7'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rails
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 5.2.0
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 5.2.0
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '3.2'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '3.2'
|
55
|
+
description: |
|
56
|
+
Bulldozer is a base Rails project that you can upgrade. It is used by
|
57
|
+
seasoned to get a jump start on a working app. Use Bulldozer if you're in a
|
58
|
+
rush to build something amazing; don't use it if you like missing deadlines.
|
59
|
+
email: support@seasoned.cc
|
60
|
+
executables:
|
61
|
+
- bulldozer
|
62
|
+
extensions: []
|
63
|
+
extra_rdoc_files:
|
64
|
+
- README.md
|
65
|
+
- LICENSE
|
66
|
+
files:
|
67
|
+
- ".gitignore"
|
68
|
+
- ".ruby-version"
|
69
|
+
- ".travis.yml"
|
70
|
+
- CONTRIBUTING.md
|
71
|
+
- Gemfile
|
72
|
+
- LICENSE
|
73
|
+
- NEWS.md
|
74
|
+
- README.md
|
75
|
+
- RELEASING.md
|
76
|
+
- Rakefile
|
77
|
+
- USAGE
|
78
|
+
- bin/bulldozer
|
79
|
+
- bin/rake
|
80
|
+
- bin/rspec
|
81
|
+
- bin/setup
|
82
|
+
- bulldozer.gemspec
|
83
|
+
- docker-compose.yml
|
84
|
+
- dockerfile
|
85
|
+
- lib/bulldozer.rb
|
86
|
+
- lib/bulldozer/actions.rb
|
87
|
+
- lib/bulldozer/adapters/heroku.rb
|
88
|
+
- lib/bulldozer/app_builder.rb
|
89
|
+
- lib/bulldozer/generators/analytics_generator.rb
|
90
|
+
- lib/bulldozer/generators/app_generator.rb
|
91
|
+
- lib/bulldozer/generators/base.rb
|
92
|
+
- lib/bulldozer/generators/ci_generator.rb
|
93
|
+
- lib/bulldozer/generators/db_optimizations_generator.rb
|
94
|
+
- lib/bulldozer/generators/factories_generator.rb
|
95
|
+
- lib/bulldozer/generators/forms_generator.rb
|
96
|
+
- lib/bulldozer/generators/jobs_generator.rb
|
97
|
+
- lib/bulldozer/generators/js_driver_generator.rb
|
98
|
+
- lib/bulldozer/generators/json_generator.rb
|
99
|
+
- lib/bulldozer/generators/lint_generator.rb
|
100
|
+
- lib/bulldozer/generators/production/deployment_generator.rb
|
101
|
+
- lib/bulldozer/generators/production/email_generator.rb
|
102
|
+
- lib/bulldozer/generators/production/force_tls_generator.rb
|
103
|
+
- lib/bulldozer/generators/production/manifest_generator.rb
|
104
|
+
- lib/bulldozer/generators/production/timeout_generator.rb
|
105
|
+
- lib/bulldozer/generators/staging/pull_requests_generator.rb
|
106
|
+
- lib/bulldozer/generators/static_generator.rb
|
107
|
+
- lib/bulldozer/generators/stylesheet_base_generator.rb
|
108
|
+
- lib/bulldozer/generators/testing_generator.rb
|
109
|
+
- lib/bulldozer/generators/views_generator.rb
|
110
|
+
- lib/bulldozer/version.rb
|
111
|
+
- spec/adapters/heroku_spec.rb
|
112
|
+
- spec/fakes/bin/heroku
|
113
|
+
- spec/fakes/bin/hub
|
114
|
+
- spec/features/api_spec.rb
|
115
|
+
- spec/features/cli_help_spec.rb
|
116
|
+
- spec/features/github_spec.rb
|
117
|
+
- spec/features/heroku_spec.rb
|
118
|
+
- spec/features/json_spec.rb
|
119
|
+
- spec/features/new_project_spec.rb
|
120
|
+
- spec/features/production/deployment_spec.rb
|
121
|
+
- spec/features/production/email_spec.rb
|
122
|
+
- spec/features/production/manifest_spec.rb
|
123
|
+
- spec/features/staging/pull_requests_spec.rb
|
124
|
+
- spec/spec_helper.rb
|
125
|
+
- spec/support/be_executable_matcher.rb
|
126
|
+
- spec/support/bulldozer.rb
|
127
|
+
- spec/support/contain_json_matcher.rb
|
128
|
+
- spec/support/exist_as_a_file_matcher.rb
|
129
|
+
- spec/support/fake_github.rb
|
130
|
+
- spec/support/fake_heroku.rb
|
131
|
+
- spec/support/generators.rb
|
132
|
+
- spec/support/match_contents_matcher.rb
|
133
|
+
- spec/support/project_files.rb
|
134
|
+
- templates/Gemfile.erb
|
135
|
+
- templates/Procfile
|
136
|
+
- templates/README.md.erb
|
137
|
+
- templates/_analytics.html.erb
|
138
|
+
- templates/_css_overrides.html.erb
|
139
|
+
- templates/_flashes.html.erb
|
140
|
+
- templates/_javascript.html.erb
|
141
|
+
- templates/action_mailer.rb
|
142
|
+
- templates/active_job.rb
|
143
|
+
- templates/application.scss
|
144
|
+
- templates/bin_deploy
|
145
|
+
- templates/bin_setup
|
146
|
+
- templates/bin_setup_review_app.erb
|
147
|
+
- templates/browserslist
|
148
|
+
- templates/bulldozer_gitignore
|
149
|
+
- templates/bulldozer_layout.html.erb.erb
|
150
|
+
- templates/bundler_audit.rake
|
151
|
+
- templates/chromedriver.rb
|
152
|
+
- templates/circle.yml.erb
|
153
|
+
- templates/config_locales_en.yml.erb
|
154
|
+
- templates/dev.rake
|
155
|
+
- templates/dotfiles/.ctags
|
156
|
+
- templates/dotfiles/.env
|
157
|
+
- templates/email.rb
|
158
|
+
- templates/errors.rb
|
159
|
+
- templates/factories.rb
|
160
|
+
- templates/factory_bot_rspec.rb
|
161
|
+
- templates/flashes_helper.rb
|
162
|
+
- templates/hound.yml
|
163
|
+
- templates/i18n.rb
|
164
|
+
- templates/json_encoding.rb
|
165
|
+
- templates/postgresql_database.yml.erb
|
166
|
+
- templates/puma.rb
|
167
|
+
- templates/rack_mini_profiler.rb
|
168
|
+
- templates/rails_helper.rb
|
169
|
+
- templates/secrets.yml
|
170
|
+
- templates/shoulda_matchers_config_rspec.rb
|
171
|
+
- templates/smtp.rb
|
172
|
+
- templates/spec_helper.rb
|
173
|
+
homepage: http://github.com/SeasonedSoftware/bulldozer
|
174
|
+
licenses:
|
175
|
+
- MIT
|
176
|
+
metadata: {}
|
177
|
+
post_install_message:
|
178
|
+
rdoc_options:
|
179
|
+
- "--charset=UTF-8"
|
180
|
+
require_paths:
|
181
|
+
- lib
|
182
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
183
|
+
requirements:
|
184
|
+
- - ">="
|
185
|
+
- !ruby/object:Gem::Version
|
186
|
+
version: 2.5.3
|
187
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
188
|
+
requirements:
|
189
|
+
- - ">="
|
190
|
+
- !ruby/object:Gem::Version
|
191
|
+
version: 2.7.4
|
192
|
+
requirements: []
|
193
|
+
rubygems_version: 3.0.1
|
194
|
+
signing_key:
|
195
|
+
specification_version: 4
|
196
|
+
summary: Generate a Rails app using seasoned's best practices.
|
197
|
+
test_files: []
|