suspenders-ocs 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/suspenders/app_builder.rb +10 -30
- data/lib/suspenders/generators/app_generator.rb +2 -16
- data/lib/suspenders/version.rb +1 -1
- data/spec/features/heroku_spec.rb +0 -11
- data/spec/features/new_project_spec.rb +0 -10
- data/templates/Gemfile.erb +0 -6
- data/templates/application.scss +0 -8
- data/templates/spec_helper.rb +4 -4
- metadata +1 -3
- data/templates/circle.yml.erb +0 -6
- data/templates/hound.yml +0 -14
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 55f6955be04045edbf4f91b7885025925f2d0138
|
4
|
+
data.tar.gz: 26ee43ebf7fb9fcda613bc7ec4672202e8a13741
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 33a7ffcbe4bf9ac0dd1ab9b1a5b6af02de26df533bc09d976d2b1e813cf7815322e2d54708166523911904d13972005542135cdacfd1a1db54e8190585418a80
|
7
|
+
data.tar.gz: fa52e0bae13ec5578ef382f7fab3ade35992dfb0dacbc45f4a0f629e9e7ceb8cea32fe7f13f4455d375dba54f065bcab3fbd6a7304816857d637cc8a3a0788ff
|
@@ -124,10 +124,6 @@ module Suspenders
|
|
124
124
|
copy_file "factories.rb", "spec/factories.rb"
|
125
125
|
end
|
126
126
|
|
127
|
-
def set_up_hound
|
128
|
-
copy_file "hound.yml", ".hound.yml"
|
129
|
-
end
|
130
|
-
|
131
127
|
def configure_newrelic
|
132
128
|
template 'newrelic.yml.erb', 'config/newrelic.yml'
|
133
129
|
end
|
@@ -280,10 +276,6 @@ end
|
|
280
276
|
copy_file "spec_helper.rb", "spec/spec_helper.rb"
|
281
277
|
end
|
282
278
|
|
283
|
-
def configure_ci
|
284
|
-
template "circle.yml.erb", "circle.yml"
|
285
|
-
end
|
286
|
-
|
287
279
|
def configure_i18n_for_test_environment
|
288
280
|
copy_file "i18n.rb", "spec/support/i18n.rb"
|
289
281
|
end
|
@@ -318,10 +310,6 @@ Rack::Timeout.timeout = (ENV["RACK_TIMEOUT"] || 10).to_i
|
|
318
310
|
append_file "config/environments/production.rb", rack_timeout_config
|
319
311
|
end
|
320
312
|
|
321
|
-
def configure_simple_form
|
322
|
-
bundle_command "exec rails generate simple_form:install"
|
323
|
-
end
|
324
|
-
|
325
313
|
def configure_action_mailer
|
326
314
|
action_mailer_host "development", %{"localhost:3000"}
|
327
315
|
action_mailer_host "test", %{"www.example.com"}
|
@@ -353,15 +341,6 @@ Rack::Timeout.timeout = (ENV["RACK_TIMEOUT"] || 10).to_i
|
|
353
341
|
"app/assets/stylesheets/application.scss"
|
354
342
|
end
|
355
343
|
|
356
|
-
def install_refills
|
357
|
-
generate "refills:import", "flashes"
|
358
|
-
remove_dir "app/views/refills"
|
359
|
-
end
|
360
|
-
|
361
|
-
def install_bitters
|
362
|
-
run "bitters install --path app/assets/stylesheets"
|
363
|
-
end
|
364
|
-
|
365
344
|
def setup_default_directories
|
366
345
|
[
|
367
346
|
'app/views/pages',
|
@@ -407,16 +386,17 @@ you can deploy to staging and production with:
|
|
407
386
|
run "chmod a+x bin/deploy"
|
408
387
|
end
|
409
388
|
|
389
|
+
# TODO Use TravisCI, because so much of our work is open-source.
|
410
390
|
def configure_automatic_deployment
|
411
|
-
deploy_command = <<-YML.strip_heredoc
|
412
|
-
deployment:
|
413
|
-
|
414
|
-
|
415
|
-
|
416
|
-
|
417
|
-
YML
|
418
|
-
|
419
|
-
append_file "circle.yml", deploy_command
|
391
|
+
# deploy_command = <<-YML.strip_heredoc
|
392
|
+
# deployment:
|
393
|
+
# staging:
|
394
|
+
# branch: master
|
395
|
+
# commands:
|
396
|
+
# - bin/deploy staging
|
397
|
+
# YML
|
398
|
+
|
399
|
+
# append_file "circle.yml", deploy_command
|
420
400
|
end
|
421
401
|
|
422
402
|
def create_github_repo(repo_name)
|
@@ -39,8 +39,6 @@ module Suspenders
|
|
39
39
|
invoke :create_suspenders_views
|
40
40
|
invoke :configure_app
|
41
41
|
invoke :setup_stylesheets
|
42
|
-
invoke :install_bitters
|
43
|
-
invoke :install_refills
|
44
42
|
invoke :copy_miscellaneous_files
|
45
43
|
invoke :customize_error_pages
|
46
44
|
invoke :remove_config_comment_lines
|
@@ -64,7 +62,6 @@ module Suspenders
|
|
64
62
|
end
|
65
63
|
|
66
64
|
bundle_command 'install'
|
67
|
-
build :configure_simple_form
|
68
65
|
end
|
69
66
|
|
70
67
|
def setup_database
|
@@ -95,14 +92,13 @@ module Suspenders
|
|
95
92
|
say 'Setting up the test environment'
|
96
93
|
build :set_up_factory_girl_for_rspec
|
97
94
|
build :generate_factories_file
|
98
|
-
build :set_up_hound
|
99
95
|
build :generate_rspec
|
100
96
|
build :configure_rspec
|
101
97
|
build :configure_background_jobs_for_rspec
|
102
98
|
build :enable_database_cleaner
|
103
99
|
build :provide_shoulda_matchers_config
|
104
100
|
build :configure_spec_support_features
|
105
|
-
build :configure_ci
|
101
|
+
# build :configure_ci
|
106
102
|
build :configure_i18n_for_test_environment
|
107
103
|
build :configure_action_mailer_in_specs
|
108
104
|
build :configure_capybara_webkit
|
@@ -115,7 +111,7 @@ module Suspenders
|
|
115
111
|
build :configure_rack_timeout
|
116
112
|
build :enable_rack_canonical_host
|
117
113
|
build :enable_rack_deflater
|
118
|
-
build :setup_asset_host
|
114
|
+
# build :setup_asset_host
|
119
115
|
end
|
120
116
|
|
121
117
|
def setup_staging_environment
|
@@ -154,16 +150,6 @@ module Suspenders
|
|
154
150
|
build :setup_stylesheets
|
155
151
|
end
|
156
152
|
|
157
|
-
def install_bitters
|
158
|
-
say 'Install Bitters'
|
159
|
-
build :install_bitters
|
160
|
-
end
|
161
|
-
|
162
|
-
def install_refills
|
163
|
-
say "Install Refills"
|
164
|
-
build :install_refills
|
165
|
-
end
|
166
|
-
|
167
153
|
def setup_git
|
168
154
|
if !options[:skip_git]
|
169
155
|
say "Initializing git"
|
data/lib/suspenders/version.rb
CHANGED
@@ -48,17 +48,6 @@ RSpec.describe "Heroku" do
|
|
48
48
|
|
49
49
|
expect(readme).to include("./bin/deploy staging")
|
50
50
|
expect(readme).to include("./bin/deploy production")
|
51
|
-
|
52
|
-
circle_yml_path = "#{project_path}/circle.yml"
|
53
|
-
circle_yml = IO.read(circle_yml_path)
|
54
|
-
|
55
|
-
expect(circle_yml).to include <<-YML.strip_heredoc
|
56
|
-
deployment:
|
57
|
-
staging:
|
58
|
-
branch: master
|
59
|
-
commands:
|
60
|
-
- bin/deploy staging
|
61
|
-
YML
|
62
51
|
end
|
63
52
|
|
64
53
|
it "adds app.json file" do
|
@@ -76,12 +76,6 @@ RSpec.describe "Suspend a new project with default configuration" do
|
|
76
76
|
expect(File).to exist("#{project_path}/spec/support/i18n.rb")
|
77
77
|
end
|
78
78
|
|
79
|
-
it "creates good default .hound.yml" do
|
80
|
-
hound_config_file = IO.read("#{project_path}/.hound.yml")
|
81
|
-
|
82
|
-
expect(hound_config_file).to include "enabled: true"
|
83
|
-
end
|
84
|
-
|
85
79
|
it "ensures Gemfile contains `rack-mini-profiler`" do
|
86
80
|
gemfile = IO.read("#{project_path}/Gemfile")
|
87
81
|
|
@@ -146,10 +140,6 @@ RSpec.describe "Suspend a new project with default configuration" do
|
|
146
140
|
expect(locales_en_file).to match(/application: #{app_name.humanize}/)
|
147
141
|
end
|
148
142
|
|
149
|
-
it "configs simple_form" do
|
150
|
-
expect(File).to exist("#{project_path}/config/initializers/simple_form.rb")
|
151
|
-
end
|
152
|
-
|
153
143
|
it "configs :test email delivery method for development" do
|
154
144
|
dev_env_file = IO.read("#{project_path}/config/environments/development.rb")
|
155
145
|
expect(dev_env_file).
|
data/templates/Gemfile.erb
CHANGED
@@ -3,30 +3,24 @@ source "https://rubygems.org"
|
|
3
3
|
ruby "<%= Suspenders::RUBY_VERSION %>"
|
4
4
|
|
5
5
|
gem "autoprefixer-rails"
|
6
|
-
gem "bourbon", "5.0.0.beta.3"
|
7
6
|
gem "delayed_job_active_record"
|
8
7
|
gem "flutie"
|
9
8
|
gem "high_voltage"
|
10
9
|
gem "honeybadger"
|
11
10
|
gem "jquery-rails"
|
12
|
-
gem "neat", "~> 1.7.0"
|
13
11
|
gem "newrelic_rpm", ">= 3.9.8"
|
14
|
-
gem "normalize-rails", "~> 3.0.0"
|
15
12
|
gem "pg"
|
16
13
|
gem "puma"
|
17
14
|
gem "rack-canonical-host"
|
18
15
|
gem "rails", "<%= Suspenders::RAILS_VERSION %>"
|
19
16
|
gem "recipient_interceptor"
|
20
17
|
gem "sass-rails", "~> 5.0"
|
21
|
-
gem "simple_form"
|
22
18
|
gem "sprockets", ">= 3.0.0"
|
23
19
|
gem "sprockets-es6"
|
24
|
-
gem "title"
|
25
20
|
gem "uglifier"
|
26
21
|
|
27
22
|
group :development do
|
28
23
|
gem "quiet_assets"
|
29
|
-
gem "refills"
|
30
24
|
gem "spring"
|
31
25
|
gem "spring-commands-rspec"
|
32
26
|
gem "web-console"
|
data/templates/application.scss
CHANGED
data/templates/spec_helper.rb
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
if ENV.fetch("COVERAGE", false)
|
2
2
|
require "simplecov"
|
3
3
|
|
4
|
-
if ENV["CIRCLE_ARTIFACTS"]
|
5
|
-
|
6
|
-
|
7
|
-
end
|
4
|
+
# if ENV["CIRCLE_ARTIFACTS"]
|
5
|
+
# dir = File.join(ENV["CIRCLE_ARTIFACTS"], "coverage")
|
6
|
+
# SimpleCov.coverage_dir(dir)
|
7
|
+
# end
|
8
8
|
|
9
9
|
SimpleCov.start "rails"
|
10
10
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: suspenders-ocs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- sumeetjain
|
@@ -139,7 +139,6 @@ files:
|
|
139
139
|
- templates/browserslist
|
140
140
|
- templates/bundler_audit.rake
|
141
141
|
- templates/capybara_webkit.rb
|
142
|
-
- templates/circle.yml.erb
|
143
142
|
- templates/config_locales_en.yml.erb
|
144
143
|
- templates/database_cleaner_rspec.rb
|
145
144
|
- templates/dev.rake
|
@@ -150,7 +149,6 @@ files:
|
|
150
149
|
- templates/factories.rb
|
151
150
|
- templates/factory_girl_rspec.rb
|
152
151
|
- templates/flashes_helper.rb
|
153
|
-
- templates/hound.yml
|
154
152
|
- templates/i18n.rb
|
155
153
|
- templates/json_encoding.rb
|
156
154
|
- templates/newrelic.yml.erb
|
data/templates/circle.yml.erb
DELETED
data/templates/hound.yml
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
# See https://houndci.com/configuration for help.
|
2
|
-
haml:
|
3
|
-
# config_file: .haml-style.yml
|
4
|
-
enabled: true
|
5
|
-
javascript:
|
6
|
-
# config_file: .javascript-style.json
|
7
|
-
enabled: true
|
8
|
-
# ignore_file: .javascript_ignore
|
9
|
-
ruby:
|
10
|
-
# config_file: .ruby-style.yml
|
11
|
-
enabled: true
|
12
|
-
scss:
|
13
|
-
# config_file: .scss-style.yml
|
14
|
-
enabled: true
|