hosentrager 1.39.1
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 +11 -0
- data/CONTRIBUTING.md +51 -0
- data/Gemfile +3 -0
- data/LICENSE +21 -0
- data/NEWS.md +496 -0
- data/README.md +233 -0
- data/RELEASING.md +19 -0
- data/Rakefile +8 -0
- data/bin/rake +16 -0
- data/bin/rspec +16 -0
- data/bin/setup +13 -0
- data/bin/suspenders +23 -0
- data/lib/suspenders.rb +5 -0
- data/lib/suspenders/actions.rb +33 -0
- data/lib/suspenders/adapters/heroku.rb +135 -0
- data/lib/suspenders/app_builder.rb +522 -0
- data/lib/suspenders/generators/app_generator.rb +265 -0
- data/lib/suspenders/version.rb +5 -0
- data/spec/adapters/heroku_spec.rb +67 -0
- data/spec/fakes/bin/heroku +5 -0
- data/spec/fakes/bin/hub +5 -0
- data/spec/features/github_spec.rb +16 -0
- data/spec/features/heroku_spec.rb +103 -0
- data/spec/features/new_project_spec.rb +245 -0
- data/spec/spec_helper.rb +20 -0
- data/spec/support/fake_github.rb +21 -0
- data/spec/support/fake_heroku.rb +53 -0
- data/spec/support/suspenders.rb +68 -0
- data/suspenders.gemspec +35 -0
- data/templates/.bowerrc +3 -0
- data/templates/Gemfile.erb +63 -0
- data/templates/Procfile +2 -0
- data/templates/README.md.erb +28 -0
- data/templates/_analytics.html.erb +7 -0
- data/templates/_css_overrides.html.erb +7 -0
- data/templates/_flashes.html.erb +7 -0
- data/templates/_javascript.html.erb +12 -0
- data/templates/action_mailer.rb +5 -0
- data/templates/app.json.erb +42 -0
- data/templates/application.scss +9 -0
- data/templates/bin_deploy +12 -0
- data/templates/bin_setup +21 -0
- data/templates/bin_setup_review_app.erb +19 -0
- data/templates/browserslist +3 -0
- data/templates/bundler_audit.rake +12 -0
- data/templates/capybara_webkit.rb +5 -0
- data/templates/circle.yml.erb +6 -0
- data/templates/config_locales_en.yml.erb +19 -0
- data/templates/database_cleaner_rspec.rb +21 -0
- data/templates/dev.rake +12 -0
- data/templates/disable_xml_params.rb +1 -0
- data/templates/dotfiles/.ctags +2 -0
- data/templates/dotfiles/.env +13 -0
- data/templates/errors.rb +34 -0
- data/templates/factories.rb +2 -0
- data/templates/factory_girl_rspec.rb +3 -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/newrelic.yml.erb +34 -0
- data/templates/postgresql_database.yml.erb +21 -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 +14 -0
- data/templates/shoulda_matchers_config_rspec.rb +6 -0
- data/templates/smtp.rb +13 -0
- data/templates/spec_helper.rb +29 -0
- data/templates/suspenders_gitignore +13 -0
- data/templates/suspenders_layout.html.erb.erb +22 -0
- metadata +190 -0
data/templates/i18n.rb
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
ActiveSupport::JSON::Encoding.time_precision = 0
|
@@ -0,0 +1,34 @@
|
|
1
|
+
common: &default_settings
|
2
|
+
app_name: "<%= app_name %>"
|
3
|
+
audit_log:
|
4
|
+
enabled: false
|
5
|
+
browser_monitoring:
|
6
|
+
auto_instrument: true
|
7
|
+
capture_params: false
|
8
|
+
developer_mode: false
|
9
|
+
error_collector:
|
10
|
+
capture_source: true
|
11
|
+
enabled: true
|
12
|
+
ignore_errors: "ActionController::RoutingError,Sinatra::NotFound"
|
13
|
+
license_key: "<%%= ENV["NEW_RELIC_LICENSE_KEY"] %>"
|
14
|
+
log_level: info
|
15
|
+
monitor_mode: true
|
16
|
+
transaction_tracer:
|
17
|
+
enabled: true
|
18
|
+
record_sql: obfuscated
|
19
|
+
stack_trace_threshold: 0.500
|
20
|
+
transaction_threshold: apdex_f
|
21
|
+
development:
|
22
|
+
<<: *default_settings
|
23
|
+
monitor_mode: false
|
24
|
+
developer_mode: true
|
25
|
+
test:
|
26
|
+
<<: *default_settings
|
27
|
+
monitor_mode: false
|
28
|
+
production:
|
29
|
+
<<: *default_settings
|
30
|
+
monitor_mode: true
|
31
|
+
staging:
|
32
|
+
<<: *default_settings
|
33
|
+
app_name: "<%= app_name %> (Staging)"
|
34
|
+
monitor_mode: true
|
@@ -0,0 +1,21 @@
|
|
1
|
+
development: &default
|
2
|
+
adapter: postgresql
|
3
|
+
database: <%= app_name %>_development
|
4
|
+
encoding: utf8
|
5
|
+
min_messages: warning
|
6
|
+
pool: <%%= Integer(ENV.fetch("DB_POOL", 5)) %>
|
7
|
+
reaping_frequency: <%%= Integer(ENV.fetch("DB_REAPING_FREQUENCY", 10)) %>
|
8
|
+
timeout: 5000
|
9
|
+
|
10
|
+
test:
|
11
|
+
<<: *default
|
12
|
+
database: <%= app_name %>_test
|
13
|
+
|
14
|
+
production: &deploy
|
15
|
+
encoding: utf8
|
16
|
+
min_messages: warning
|
17
|
+
pool: <%%= [Integer(ENV.fetch("MAX_THREADS", 5)), Integer(ENV.fetch("DB_POOL", 5))].max %>
|
18
|
+
timeout: 5000
|
19
|
+
url: <%%= ENV.fetch("DATABASE_URL", "") %>
|
20
|
+
|
21
|
+
staging: *deploy
|
data/templates/puma.rb
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
# https://devcenter.heroku.com/articles/deploying-rails-applications-with-the-puma-web-server
|
2
|
+
|
3
|
+
# The environment variable WEB_CONCURRENCY may be set to a default value based
|
4
|
+
# on dyno size. To manually configure this value use heroku config:set
|
5
|
+
# WEB_CONCURRENCY.
|
6
|
+
#
|
7
|
+
# Increasing the number of workers will increase the amount of resting memory
|
8
|
+
# your dynos use. Increasing the number of threads will increase the amount of
|
9
|
+
# potential bloat added to your dynos when they are responding to heavy
|
10
|
+
# requests.
|
11
|
+
#
|
12
|
+
# Starting with a low number of workers and threads provides adequate
|
13
|
+
# performance for most applications, even under load, while maintaining a low
|
14
|
+
# risk of overusing memory.
|
15
|
+
workers Integer(ENV.fetch("WEB_CONCURRENCY", 2))
|
16
|
+
threads_count = Integer(ENV.fetch("MAX_THREADS", 2))
|
17
|
+
threads(threads_count, threads_count)
|
18
|
+
|
19
|
+
preload_app!
|
20
|
+
|
21
|
+
rackup DefaultRackup
|
22
|
+
environment ENV.fetch("RACK_ENV", "development")
|
23
|
+
|
24
|
+
on_worker_boot do
|
25
|
+
# Worker specific setup for Rails 4.1+
|
26
|
+
# See: https://devcenter.heroku.com/articles/deploying-rails-applications-with-the-puma-web-server#on-worker-boot
|
27
|
+
ActiveRecord::Base.establish_connection
|
28
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
ENV["RACK_ENV"] = "test"
|
2
|
+
|
3
|
+
require File.expand_path("../../config/environment", __FILE__)
|
4
|
+
abort("DATABASE_URL environment variable is set") if ENV["DATABASE_URL"]
|
5
|
+
|
6
|
+
require "rspec/rails"
|
7
|
+
|
8
|
+
Dir[Rails.root.join("spec/support/**/*.rb")].sort.each { |file| require file }
|
9
|
+
|
10
|
+
module Features
|
11
|
+
# Extend this module in spec/support/features/*.rb
|
12
|
+
include Formulaic::Dsl
|
13
|
+
end
|
14
|
+
|
15
|
+
RSpec.configure do |config|
|
16
|
+
config.include Features, type: :feature
|
17
|
+
config.infer_base_class_for_anonymous_controllers = false
|
18
|
+
config.infer_spec_type_from_file_location!
|
19
|
+
config.use_transactional_fixtures = false
|
20
|
+
end
|
21
|
+
|
22
|
+
ActiveRecord::Migration.maintain_test_schema!
|
data/templates/smtp.rb
ADDED
@@ -0,0 +1,13 @@
|
|
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
|
+
}
|
10
|
+
|
11
|
+
if ENV["EMAIL_RECIPIENTS"].present?
|
12
|
+
Mail.register_interceptor RecipientInterceptor.new(ENV["EMAIL_RECIPIENTS"])
|
13
|
+
end
|
@@ -0,0 +1,29 @@
|
|
1
|
+
if ENV.fetch("COVERAGE", false)
|
2
|
+
require "simplecov"
|
3
|
+
|
4
|
+
if ENV["CIRCLE_ARTIFACTS"]
|
5
|
+
dir = File.join(ENV["CIRCLE_ARTIFACTS"], "coverage")
|
6
|
+
SimpleCov.coverage_dir(dir)
|
7
|
+
end
|
8
|
+
|
9
|
+
SimpleCov.start "rails"
|
10
|
+
end
|
11
|
+
|
12
|
+
require "webmock/rspec"
|
13
|
+
|
14
|
+
# http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
|
15
|
+
RSpec.configure do |config|
|
16
|
+
config.expect_with :rspec do |expectations|
|
17
|
+
expectations.syntax = :expect
|
18
|
+
end
|
19
|
+
|
20
|
+
config.mock_with :rspec do |mocks|
|
21
|
+
mocks.syntax = :expect
|
22
|
+
mocks.verify_partial_doubles = true
|
23
|
+
end
|
24
|
+
|
25
|
+
config.example_status_persistence_file_path = "tmp/rspec_examples.txt"
|
26
|
+
config.order = :random
|
27
|
+
end
|
28
|
+
|
29
|
+
WebMock.disable_net_connect!(allow_localhost: true)
|
@@ -0,0 +1,22 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="<%= I18n.locale %>">
|
3
|
+
<head>
|
4
|
+
<meta charset="utf-8" />
|
5
|
+
<meta name="ROBOTS" content="NOODP" />
|
6
|
+
<meta name="viewport" content="initial-scale=1" />
|
7
|
+
<%%#
|
8
|
+
Configure default and controller-, and view-specific titles in
|
9
|
+
config/locales/en.yml. For more see:
|
10
|
+
https://github.com/calebthompson/title#usage
|
11
|
+
%>
|
12
|
+
<title><%%= title %></title>
|
13
|
+
<%%= stylesheet_link_tag :application, media: "all" %>
|
14
|
+
<%%= csrf_meta_tags %>
|
15
|
+
</head>
|
16
|
+
<body class="<%%= body_class %>">
|
17
|
+
<%%= render "flashes" -%>
|
18
|
+
<%%= yield %>
|
19
|
+
<%%= render "javascript" %>
|
20
|
+
<%%= render "css_overrides" %>
|
21
|
+
</body>
|
22
|
+
</html>
|
metadata
ADDED
@@ -0,0 +1,190 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: hosentrager
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.39.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- thoughtbot
|
8
|
+
- ngscheurich
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2016-04-28 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: bitters
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
requirements:
|
18
|
+
- - "~>"
|
19
|
+
- !ruby/object:Gem::Version
|
20
|
+
version: '1.3'
|
21
|
+
type: :runtime
|
22
|
+
prerelease: false
|
23
|
+
version_requirements: !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
25
|
+
- - "~>"
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
version: '1.3'
|
28
|
+
- !ruby/object:Gem::Dependency
|
29
|
+
name: bundler
|
30
|
+
requirement: !ruby/object:Gem::Requirement
|
31
|
+
requirements:
|
32
|
+
- - "~>"
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: '1.3'
|
35
|
+
type: :runtime
|
36
|
+
prerelease: false
|
37
|
+
version_requirements: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - "~>"
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: '1.3'
|
42
|
+
- !ruby/object:Gem::Dependency
|
43
|
+
name: rails
|
44
|
+
requirement: !ruby/object:Gem::Requirement
|
45
|
+
requirements:
|
46
|
+
- - "~>"
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
version: 4.2.0
|
49
|
+
type: :runtime
|
50
|
+
prerelease: false
|
51
|
+
version_requirements: !ruby/object:Gem::Requirement
|
52
|
+
requirements:
|
53
|
+
- - "~>"
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: 4.2.0
|
56
|
+
- !ruby/object:Gem::Dependency
|
57
|
+
name: rspec
|
58
|
+
requirement: !ruby/object:Gem::Requirement
|
59
|
+
requirements:
|
60
|
+
- - "~>"
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '3.2'
|
63
|
+
type: :development
|
64
|
+
prerelease: false
|
65
|
+
version_requirements: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - "~>"
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '3.2'
|
70
|
+
description: |
|
71
|
+
Suspenders is a base Rails project that you can upgrade. It is used by
|
72
|
+
thoughtbot to get a jump start on a working app. Use Suspenders if you're in a
|
73
|
+
rush to build something amazing; don't use it if you like missing deadlines.
|
74
|
+
email: nick@scheurich.me
|
75
|
+
executables:
|
76
|
+
- suspenders
|
77
|
+
extensions: []
|
78
|
+
extra_rdoc_files:
|
79
|
+
- README.md
|
80
|
+
- LICENSE
|
81
|
+
files:
|
82
|
+
- ".gitignore"
|
83
|
+
- ".ruby-version"
|
84
|
+
- ".travis.yml"
|
85
|
+
- CONTRIBUTING.md
|
86
|
+
- Gemfile
|
87
|
+
- LICENSE
|
88
|
+
- NEWS.md
|
89
|
+
- README.md
|
90
|
+
- RELEASING.md
|
91
|
+
- Rakefile
|
92
|
+
- bin/rake
|
93
|
+
- bin/rspec
|
94
|
+
- bin/setup
|
95
|
+
- bin/suspenders
|
96
|
+
- lib/suspenders.rb
|
97
|
+
- lib/suspenders/actions.rb
|
98
|
+
- lib/suspenders/adapters/heroku.rb
|
99
|
+
- lib/suspenders/app_builder.rb
|
100
|
+
- lib/suspenders/generators/app_generator.rb
|
101
|
+
- lib/suspenders/version.rb
|
102
|
+
- spec/adapters/heroku_spec.rb
|
103
|
+
- spec/fakes/bin/heroku
|
104
|
+
- spec/fakes/bin/hub
|
105
|
+
- spec/features/github_spec.rb
|
106
|
+
- spec/features/heroku_spec.rb
|
107
|
+
- spec/features/new_project_spec.rb
|
108
|
+
- spec/spec_helper.rb
|
109
|
+
- spec/support/fake_github.rb
|
110
|
+
- spec/support/fake_heroku.rb
|
111
|
+
- spec/support/suspenders.rb
|
112
|
+
- suspenders.gemspec
|
113
|
+
- templates/.bowerrc
|
114
|
+
- templates/Gemfile.erb
|
115
|
+
- templates/Procfile
|
116
|
+
- templates/README.md.erb
|
117
|
+
- templates/_analytics.html.erb
|
118
|
+
- templates/_css_overrides.html.erb
|
119
|
+
- templates/_flashes.html.erb
|
120
|
+
- templates/_javascript.html.erb
|
121
|
+
- templates/action_mailer.rb
|
122
|
+
- templates/app.json.erb
|
123
|
+
- templates/application.scss
|
124
|
+
- templates/bin_deploy
|
125
|
+
- templates/bin_setup
|
126
|
+
- templates/bin_setup_review_app.erb
|
127
|
+
- templates/browserslist
|
128
|
+
- templates/bundler_audit.rake
|
129
|
+
- templates/capybara_webkit.rb
|
130
|
+
- templates/circle.yml.erb
|
131
|
+
- templates/config_locales_en.yml.erb
|
132
|
+
- templates/database_cleaner_rspec.rb
|
133
|
+
- templates/dev.rake
|
134
|
+
- templates/disable_xml_params.rb
|
135
|
+
- templates/dotfiles/.ctags
|
136
|
+
- templates/dotfiles/.env
|
137
|
+
- templates/errors.rb
|
138
|
+
- templates/factories.rb
|
139
|
+
- templates/factory_girl_rspec.rb
|
140
|
+
- templates/flashes_helper.rb
|
141
|
+
- templates/hound.yml
|
142
|
+
- templates/i18n.rb
|
143
|
+
- templates/json_encoding.rb
|
144
|
+
- templates/newrelic.yml.erb
|
145
|
+
- templates/postgresql_database.yml.erb
|
146
|
+
- templates/puma.rb
|
147
|
+
- templates/rack_mini_profiler.rb
|
148
|
+
- templates/rails_helper.rb
|
149
|
+
- templates/secrets.yml
|
150
|
+
- templates/shoulda_matchers_config_rspec.rb
|
151
|
+
- templates/smtp.rb
|
152
|
+
- templates/spec_helper.rb
|
153
|
+
- templates/suspenders_gitignore
|
154
|
+
- templates/suspenders_layout.html.erb.erb
|
155
|
+
homepage: http://github.com/ngscheurich/suspenders
|
156
|
+
licenses:
|
157
|
+
- MIT
|
158
|
+
metadata: {}
|
159
|
+
post_install_message:
|
160
|
+
rdoc_options:
|
161
|
+
- "--charset=UTF-8"
|
162
|
+
require_paths:
|
163
|
+
- lib
|
164
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
165
|
+
requirements:
|
166
|
+
- - ">="
|
167
|
+
- !ruby/object:Gem::Version
|
168
|
+
version: 2.3.0
|
169
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - ">="
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '0'
|
174
|
+
requirements: []
|
175
|
+
rubyforge_project:
|
176
|
+
rubygems_version: 2.5.1
|
177
|
+
signing_key:
|
178
|
+
specification_version: 4
|
179
|
+
summary: Generate a Rails app using thoughtbot's best practices.
|
180
|
+
test_files:
|
181
|
+
- spec/adapters/heroku_spec.rb
|
182
|
+
- spec/fakes/bin/heroku
|
183
|
+
- spec/fakes/bin/hub
|
184
|
+
- spec/features/github_spec.rb
|
185
|
+
- spec/features/heroku_spec.rb
|
186
|
+
- spec/features/new_project_spec.rb
|
187
|
+
- spec/spec_helper.rb
|
188
|
+
- spec/support/fake_github.rb
|
189
|
+
- spec/support/fake_heroku.rb
|
190
|
+
- spec/support/suspenders.rb
|