suspenders-ocs 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0de5d38fcf77b1d61f4bf5d1c70c9fcc3c1c992a
4
- data.tar.gz: d57471d9b7dc64a53cb7d3d3d97e7c9fa79aa018
3
+ metadata.gz: 55f6955be04045edbf4f91b7885025925f2d0138
4
+ data.tar.gz: 26ee43ebf7fb9fcda613bc7ec4672202e8a13741
5
5
  SHA512:
6
- metadata.gz: 8d8ecbca27aa333518f651dda1c0398d4189d966e3763b167f602ba6fd0f5bc8c307ecb7ef6a35f9074abe27306f4c20716b96f71f3b32933f1b82a3047a48aa
7
- data.tar.gz: 5dce106e1a87ac88b43137032a29c2d9637c7c1a6eabfe0ce791058af8d41e4a10e99f310f1a4ccd20a5a39b9b34efa2cef0731607125209ee4ce4af05bee5d5
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
- staging:
414
- branch: master
415
- commands:
416
- - bin/deploy staging
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"
@@ -1,5 +1,5 @@
1
1
  module Suspenders
2
2
  RAILS_VERSION = "~> 4.2.0"
3
3
  RUBY_VERSION = IO.read("#{File.dirname(__FILE__)}/../../.ruby-version").strip
4
- VERSION = "0.0.1"
4
+ VERSION = "0.0.2"
5
5
  end
@@ -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).
@@ -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"
@@ -1,9 +1 @@
1
1
  @charset "utf-8";
2
-
3
- @import "normalize-rails";
4
-
5
- @import "bourbon";
6
- @import "neat";
7
-
8
- @import "base/base";
9
- @import "refills/flashes";
@@ -1,10 +1,10 @@
1
1
  if ENV.fetch("COVERAGE", false)
2
2
  require "simplecov"
3
3
 
4
- if ENV["CIRCLE_ARTIFACTS"]
5
- dir = File.join(ENV["CIRCLE_ARTIFACTS"], "coverage")
6
- SimpleCov.coverage_dir(dir)
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.1
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
@@ -1,6 +0,0 @@
1
- database:
2
- override:
3
- - bin/setup
4
- test:
5
- override:
6
- - COVERAGE=true bin/rake
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