suspenders-ocs 0.0.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 +486 -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 +125 -0
- data/lib/suspenders/app_builder.rb +523 -0
- data/lib/suspenders/generators/app_generator.rb +269 -0
- data/lib/suspenders/version.rb +5 -0
- data/spec/adapters/heroku_spec.rb +52 -0
- data/spec/fakes/bin/heroku +5 -0
- data/spec/fakes/bin/hub +5 -0
- data/spec/features/github_spec.rb +15 -0
- data/spec/features/heroku_spec.rb +93 -0
- data/spec/features/new_project_spec.rb +234 -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 +58 -0
- data/suspenders.gemspec +34 -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 +8 -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 +9 -0
- data/templates/spec_helper.rb +29 -0
- data/templates/staging.rb +5 -0
- data/templates/suspenders_gitignore +13 -0
- data/templates/suspenders_layout.html.erb.erb +22 -0
- metadata +204 -0
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,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,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,204 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: suspenders-ocs
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- sumeetjain
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-03-20 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.3'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.3'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rails
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 4.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: 4.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
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: quiet_assets
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '1.1'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '1.1'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: capybara-webkit
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '1.8'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '1.8'
|
83
|
+
description: 'Suspenders-OCS is a fork of thoughtbot/suspenders, which is a base Rails
|
84
|
+
project that used to get a jump start on a working app.
|
85
|
+
|
86
|
+
'
|
87
|
+
email: sumeet@sumeetjain.com
|
88
|
+
executables:
|
89
|
+
- suspenders
|
90
|
+
extensions: []
|
91
|
+
extra_rdoc_files:
|
92
|
+
- README.md
|
93
|
+
- LICENSE
|
94
|
+
files:
|
95
|
+
- ".gitignore"
|
96
|
+
- ".ruby-version"
|
97
|
+
- ".travis.yml"
|
98
|
+
- CONTRIBUTING.md
|
99
|
+
- Gemfile
|
100
|
+
- LICENSE
|
101
|
+
- NEWS.md
|
102
|
+
- README.md
|
103
|
+
- RELEASING.md
|
104
|
+
- Rakefile
|
105
|
+
- bin/rake
|
106
|
+
- bin/rspec
|
107
|
+
- bin/setup
|
108
|
+
- bin/suspenders
|
109
|
+
- lib/suspenders.rb
|
110
|
+
- lib/suspenders/actions.rb
|
111
|
+
- lib/suspenders/adapters/heroku.rb
|
112
|
+
- lib/suspenders/app_builder.rb
|
113
|
+
- lib/suspenders/generators/app_generator.rb
|
114
|
+
- lib/suspenders/version.rb
|
115
|
+
- spec/adapters/heroku_spec.rb
|
116
|
+
- spec/fakes/bin/heroku
|
117
|
+
- spec/fakes/bin/hub
|
118
|
+
- spec/features/github_spec.rb
|
119
|
+
- spec/features/heroku_spec.rb
|
120
|
+
- spec/features/new_project_spec.rb
|
121
|
+
- spec/spec_helper.rb
|
122
|
+
- spec/support/fake_github.rb
|
123
|
+
- spec/support/fake_heroku.rb
|
124
|
+
- spec/support/suspenders.rb
|
125
|
+
- suspenders.gemspec
|
126
|
+
- templates/Gemfile.erb
|
127
|
+
- templates/Procfile
|
128
|
+
- templates/README.md.erb
|
129
|
+
- templates/_analytics.html.erb
|
130
|
+
- templates/_css_overrides.html.erb
|
131
|
+
- templates/_flashes.html.erb
|
132
|
+
- templates/_javascript.html.erb
|
133
|
+
- templates/action_mailer.rb
|
134
|
+
- templates/app.json.erb
|
135
|
+
- templates/application.scss
|
136
|
+
- templates/bin_deploy
|
137
|
+
- templates/bin_setup
|
138
|
+
- templates/bin_setup_review_app.erb
|
139
|
+
- templates/browserslist
|
140
|
+
- templates/bundler_audit.rake
|
141
|
+
- templates/capybara_webkit.rb
|
142
|
+
- templates/circle.yml.erb
|
143
|
+
- templates/config_locales_en.yml.erb
|
144
|
+
- templates/database_cleaner_rspec.rb
|
145
|
+
- templates/dev.rake
|
146
|
+
- templates/disable_xml_params.rb
|
147
|
+
- templates/dotfiles/.ctags
|
148
|
+
- templates/dotfiles/.env
|
149
|
+
- templates/errors.rb
|
150
|
+
- templates/factories.rb
|
151
|
+
- templates/factory_girl_rspec.rb
|
152
|
+
- templates/flashes_helper.rb
|
153
|
+
- templates/hound.yml
|
154
|
+
- templates/i18n.rb
|
155
|
+
- templates/json_encoding.rb
|
156
|
+
- templates/newrelic.yml.erb
|
157
|
+
- templates/postgresql_database.yml.erb
|
158
|
+
- templates/puma.rb
|
159
|
+
- templates/rack_mini_profiler.rb
|
160
|
+
- templates/rails_helper.rb
|
161
|
+
- templates/secrets.yml
|
162
|
+
- templates/shoulda_matchers_config_rspec.rb
|
163
|
+
- templates/smtp.rb
|
164
|
+
- templates/spec_helper.rb
|
165
|
+
- templates/staging.rb
|
166
|
+
- templates/suspenders_gitignore
|
167
|
+
- templates/suspenders_layout.html.erb.erb
|
168
|
+
homepage: http://github.com/omahacodeschool/suspenders
|
169
|
+
licenses:
|
170
|
+
- MIT
|
171
|
+
metadata: {}
|
172
|
+
post_install_message:
|
173
|
+
rdoc_options:
|
174
|
+
- "--charset=UTF-8"
|
175
|
+
require_paths:
|
176
|
+
- lib
|
177
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
178
|
+
requirements:
|
179
|
+
- - ">="
|
180
|
+
- !ruby/object:Gem::Version
|
181
|
+
version: 2.3.0
|
182
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
183
|
+
requirements:
|
184
|
+
- - ">="
|
185
|
+
- !ruby/object:Gem::Version
|
186
|
+
version: '0'
|
187
|
+
requirements: []
|
188
|
+
rubyforge_project:
|
189
|
+
rubygems_version: 2.5.1
|
190
|
+
signing_key:
|
191
|
+
specification_version: 4
|
192
|
+
summary: Generate a Rails app using thoughtbot's best practices--modified for use
|
193
|
+
by Omaha Code School students.
|
194
|
+
test_files:
|
195
|
+
- spec/adapters/heroku_spec.rb
|
196
|
+
- spec/fakes/bin/heroku
|
197
|
+
- spec/fakes/bin/hub
|
198
|
+
- spec/features/github_spec.rb
|
199
|
+
- spec/features/heroku_spec.rb
|
200
|
+
- spec/features/new_project_spec.rb
|
201
|
+
- spec/spec_helper.rb
|
202
|
+
- spec/support/fake_github.rb
|
203
|
+
- spec/support/fake_heroku.rb
|
204
|
+
- spec/support/suspenders.rb
|