bulldozer 1.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (108) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +5 -0
  3. data/.ruby-version +1 -0
  4. data/.travis.yml +12 -0
  5. data/CONTRIBUTING.md +59 -0
  6. data/Gemfile +3 -0
  7. data/LICENSE +21 -0
  8. data/NEWS.md +638 -0
  9. data/README.md +225 -0
  10. data/RELEASING.md +18 -0
  11. data/Rakefile +8 -0
  12. data/USAGE +13 -0
  13. data/bin/bulldozer +23 -0
  14. data/bin/rake +16 -0
  15. data/bin/rspec +16 -0
  16. data/bin/setup +13 -0
  17. data/bulldozer.gemspec +35 -0
  18. data/docker-compose.yml +8 -0
  19. data/dockerfile +11 -0
  20. data/lib/bulldozer.rb +24 -0
  21. data/lib/bulldozer/actions.rb +85 -0
  22. data/lib/bulldozer/adapters/heroku.rb +123 -0
  23. data/lib/bulldozer/app_builder.rb +321 -0
  24. data/lib/bulldozer/generators/analytics_generator.rb +24 -0
  25. data/lib/bulldozer/generators/app_generator.rb +231 -0
  26. data/lib/bulldozer/generators/base.rb +20 -0
  27. data/lib/bulldozer/generators/ci_generator.rb +22 -0
  28. data/lib/bulldozer/generators/db_optimizations_generator.rb +30 -0
  29. data/lib/bulldozer/generators/factories_generator.rb +22 -0
  30. data/lib/bulldozer/generators/forms_generator.rb +18 -0
  31. data/lib/bulldozer/generators/jobs_generator.rb +38 -0
  32. data/lib/bulldozer/generators/js_driver_generator.rb +15 -0
  33. data/lib/bulldozer/generators/json_generator.rb +10 -0
  34. data/lib/bulldozer/generators/lint_generator.rb +9 -0
  35. data/lib/bulldozer/generators/production/deployment_generator.rb +27 -0
  36. data/lib/bulldozer/generators/production/email_generator.rb +37 -0
  37. data/lib/bulldozer/generators/production/force_tls_generator.rb +11 -0
  38. data/lib/bulldozer/generators/production/manifest_generator.rb +24 -0
  39. data/lib/bulldozer/generators/production/timeout_generator.rb +21 -0
  40. data/lib/bulldozer/generators/staging/pull_requests_generator.rb +33 -0
  41. data/lib/bulldozer/generators/static_generator.rb +10 -0
  42. data/lib/bulldozer/generators/stylesheet_base_generator.rb +31 -0
  43. data/lib/bulldozer/generators/testing_generator.rb +55 -0
  44. data/lib/bulldozer/generators/views_generator.rb +30 -0
  45. data/lib/bulldozer/version.rb +8 -0
  46. data/spec/adapters/heroku_spec.rb +72 -0
  47. data/spec/fakes/bin/heroku +5 -0
  48. data/spec/fakes/bin/hub +5 -0
  49. data/spec/features/api_spec.rb +18 -0
  50. data/spec/features/cli_help_spec.rb +36 -0
  51. data/spec/features/github_spec.rb +16 -0
  52. data/spec/features/heroku_spec.rb +71 -0
  53. data/spec/features/json_spec.rb +15 -0
  54. data/spec/features/new_project_spec.rb +341 -0
  55. data/spec/features/production/deployment_spec.rb +22 -0
  56. data/spec/features/production/email_spec.rb +47 -0
  57. data/spec/features/production/manifest_spec.rb +35 -0
  58. data/spec/features/staging/pull_requests_spec.rb +22 -0
  59. data/spec/spec_helper.rb +21 -0
  60. data/spec/support/be_executable_matcher.rb +7 -0
  61. data/spec/support/bulldozer.rb +182 -0
  62. data/spec/support/contain_json_matcher.rb +24 -0
  63. data/spec/support/exist_as_a_file_matcher.rb +7 -0
  64. data/spec/support/fake_github.rb +21 -0
  65. data/spec/support/fake_heroku.rb +53 -0
  66. data/spec/support/generators.rb +5 -0
  67. data/spec/support/match_contents_matcher.rb +6 -0
  68. data/spec/support/project_files.rb +13 -0
  69. data/templates/Gemfile.erb +51 -0
  70. data/templates/Procfile +2 -0
  71. data/templates/README.md.erb +28 -0
  72. data/templates/_analytics.html.erb +8 -0
  73. data/templates/_css_overrides.html.erb +7 -0
  74. data/templates/_flashes.html.erb +7 -0
  75. data/templates/_javascript.html.erb +3 -0
  76. data/templates/action_mailer.rb +5 -0
  77. data/templates/active_job.rb +13 -0
  78. data/templates/application.scss +8 -0
  79. data/templates/bin_deploy +12 -0
  80. data/templates/bin_setup +28 -0
  81. data/templates/bin_setup_review_app.erb +22 -0
  82. data/templates/browserslist +3 -0
  83. data/templates/bulldozer_gitignore +18 -0
  84. data/templates/bulldozer_layout.html.erb.erb +21 -0
  85. data/templates/bundler_audit.rake +4 -0
  86. data/templates/chromedriver.rb +17 -0
  87. data/templates/circle.yml.erb +6 -0
  88. data/templates/config_locales_en.yml.erb +19 -0
  89. data/templates/dev.rake +12 -0
  90. data/templates/dotfiles/.ctags +2 -0
  91. data/templates/dotfiles/.env +13 -0
  92. data/templates/email.rb +3 -0
  93. data/templates/errors.rb +34 -0
  94. data/templates/factories.rb +2 -0
  95. data/templates/factory_bot_rspec.rb +5 -0
  96. data/templates/flashes_helper.rb +5 -0
  97. data/templates/hound.yml +14 -0
  98. data/templates/i18n.rb +3 -0
  99. data/templates/json_encoding.rb +1 -0
  100. data/templates/postgresql_database.yml.erb +19 -0
  101. data/templates/puma.rb +28 -0
  102. data/templates/rack_mini_profiler.rb +5 -0
  103. data/templates/rails_helper.rb +22 -0
  104. data/templates/secrets.yml +8 -0
  105. data/templates/shoulda_matchers_config_rspec.rb +6 -0
  106. data/templates/smtp.rb +9 -0
  107. data/templates/spec_helper.rb +28 -0
  108. metadata +197 -0
@@ -0,0 +1,6 @@
1
+ Shoulda::Matchers.configure do |config|
2
+ config.integrate do |with|
3
+ with.test_framework :rspec
4
+ with.library :rails
5
+ end
6
+ end
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: []