philosophies-suspenders 2.2.1 → 2.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fc9b1f8ca13189e6e259fc04a7a277c460c1a114
4
- data.tar.gz: cd78a0c667fd7dfe5f4c11095dbc1969c048ba36
3
+ metadata.gz: 2c1648fcd40792d503dd6c2308261961a8b636e3
4
+ data.tar.gz: a78d240f5a5ea1c62f5a313b9cc40d9ea388f877
5
5
  SHA512:
6
- metadata.gz: a343cc5946cac908e8339053753b7e011a1be535c59d175a550fb3999781f1c3748b66c996841f0999ec252b9983843e756ef3e000194f5b007c1e28f67a5387
7
- data.tar.gz: c10fddcbeaeee5d5d786b6410e8af3ef32ffec7baab32bd110bce5b3e201e18b1361ddbe940c0b9f4f3eec972cabc0dc13ecf65b4e1267232cd899803f6fb681
6
+ metadata.gz: 130cfd65542bd8baaf58c7f7dd5a234391176343fadcf2d0dee307cb76cceba199058c94b3bd9f477cac0b06d43a195cb8b526d552249de97e3c7d6ccc051379
7
+ data.tar.gz: 8aad25cf15cddc8099d59cd071ec12a0d556ccc402b434fed9ff574284487a07cac5d487ed0d87d51040cdb71c57a3a22cd2506ef597157c8f1a7b40e3d0c935
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.3.1
1
+ 2.4.0
data/Gemfile.lock CHANGED
@@ -1,77 +1,75 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- philosophies-suspenders (2.2.1)
4
+ philosophies-suspenders (2.2.2)
5
5
  bundler (~> 1.3)
6
- rails (~> 5.0.0)
6
+ rails (~> 5.0.1)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- actioncable (5.0.0)
12
- actionpack (= 5.0.0)
13
- nio4r (~> 1.2)
11
+ actioncable (5.0.3)
12
+ actionpack (= 5.0.3)
13
+ nio4r (>= 1.2, < 3.0)
14
14
  websocket-driver (~> 0.6.1)
15
- actionmailer (5.0.0)
16
- actionpack (= 5.0.0)
17
- actionview (= 5.0.0)
18
- activejob (= 5.0.0)
15
+ actionmailer (5.0.3)
16
+ actionpack (= 5.0.3)
17
+ actionview (= 5.0.3)
18
+ activejob (= 5.0.3)
19
19
  mail (~> 2.5, >= 2.5.4)
20
20
  rails-dom-testing (~> 2.0)
21
- actionpack (5.0.0)
22
- actionview (= 5.0.0)
23
- activesupport (= 5.0.0)
21
+ actionpack (5.0.3)
22
+ actionview (= 5.0.3)
23
+ activesupport (= 5.0.3)
24
24
  rack (~> 2.0)
25
25
  rack-test (~> 0.6.3)
26
26
  rails-dom-testing (~> 2.0)
27
27
  rails-html-sanitizer (~> 1.0, >= 1.0.2)
28
- actionview (5.0.0)
29
- activesupport (= 5.0.0)
28
+ actionview (5.0.3)
29
+ activesupport (= 5.0.3)
30
30
  builder (~> 3.1)
31
31
  erubis (~> 2.7.0)
32
32
  rails-dom-testing (~> 2.0)
33
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
34
- activejob (5.0.0)
35
- activesupport (= 5.0.0)
33
+ rails-html-sanitizer (~> 1.0, >= 1.0.3)
34
+ activejob (5.0.3)
35
+ activesupport (= 5.0.3)
36
36
  globalid (>= 0.3.6)
37
- activemodel (5.0.0)
38
- activesupport (= 5.0.0)
39
- activerecord (5.0.0)
40
- activemodel (= 5.0.0)
41
- activesupport (= 5.0.0)
37
+ activemodel (5.0.3)
38
+ activesupport (= 5.0.3)
39
+ activerecord (5.0.3)
40
+ activemodel (= 5.0.3)
41
+ activesupport (= 5.0.3)
42
42
  arel (~> 7.0)
43
- activesupport (5.0.0)
43
+ activesupport (5.0.3)
44
44
  concurrent-ruby (~> 1.0, >= 1.0.2)
45
45
  i18n (~> 0.7)
46
46
  minitest (~> 5.1)
47
47
  tzinfo (~> 1.1)
48
- arel (7.1.0)
49
- builder (3.2.2)
48
+ arel (7.1.4)
49
+ builder (3.2.3)
50
50
  byebug (4.0.5)
51
51
  columnize (= 0.9.0)
52
52
  coderay (1.1.0)
53
53
  columnize (0.9.0)
54
- concurrent-ruby (1.0.2)
55
- diff-lcs (1.2.5)
54
+ concurrent-ruby (1.0.5)
55
+ diff-lcs (1.3)
56
56
  erubis (2.7.0)
57
- globalid (0.3.6)
58
- activesupport (>= 4.1.0)
59
- i18n (0.7.0)
57
+ globalid (0.4.0)
58
+ activesupport (>= 4.2.0)
59
+ i18n (0.8.4)
60
60
  loofah (2.0.3)
61
61
  nokogiri (>= 1.5.9)
62
- mail (2.6.4)
62
+ mail (2.6.5)
63
63
  mime-types (>= 1.16, < 4)
64
64
  method_source (0.8.2)
65
65
  mime-types (3.1)
66
66
  mime-types-data (~> 3.2015)
67
67
  mime-types-data (3.2016.0521)
68
- mini_portile2 (2.1.0)
69
- minitest (5.9.0)
70
- nio4r (1.2.1)
71
- nokogiri (1.6.8)
72
- mini_portile2 (~> 2.1.0)
73
- pkg-config (~> 1.1.7)
74
- pkg-config (1.1.7)
68
+ mini_portile2 (2.2.0)
69
+ minitest (5.10.2)
70
+ nio4r (2.1.0)
71
+ nokogiri (1.8.0)
72
+ mini_portile2 (~> 2.2.0)
75
73
  pry (0.10.1)
76
74
  coderay (~> 1.1.0)
77
75
  method_source (~> 0.8.1)
@@ -79,59 +77,59 @@ GEM
79
77
  pry-byebug (3.1.0)
80
78
  byebug (~> 4.0)
81
79
  pry (~> 0.10)
82
- rack (2.0.1)
80
+ rack (2.0.3)
83
81
  rack-test (0.6.3)
84
82
  rack (>= 1.0)
85
- rails (5.0.0)
86
- actioncable (= 5.0.0)
87
- actionmailer (= 5.0.0)
88
- actionpack (= 5.0.0)
89
- actionview (= 5.0.0)
90
- activejob (= 5.0.0)
91
- activemodel (= 5.0.0)
92
- activerecord (= 5.0.0)
93
- activesupport (= 5.0.0)
83
+ rails (5.0.3)
84
+ actioncable (= 5.0.3)
85
+ actionmailer (= 5.0.3)
86
+ actionpack (= 5.0.3)
87
+ actionview (= 5.0.3)
88
+ activejob (= 5.0.3)
89
+ activemodel (= 5.0.3)
90
+ activerecord (= 5.0.3)
91
+ activesupport (= 5.0.3)
94
92
  bundler (>= 1.3.0, < 2.0)
95
- railties (= 5.0.0)
93
+ railties (= 5.0.3)
96
94
  sprockets-rails (>= 2.0.0)
97
- rails-dom-testing (2.0.1)
98
- activesupport (>= 4.2.0, < 6.0)
99
- nokogiri (~> 1.6.0)
95
+ rails-dom-testing (2.0.3)
96
+ activesupport (>= 4.2.0)
97
+ nokogiri (>= 1.6)
100
98
  rails-html-sanitizer (1.0.3)
101
99
  loofah (~> 2.0)
102
- railties (5.0.0)
103
- actionpack (= 5.0.0)
104
- activesupport (= 5.0.0)
100
+ railties (5.0.3)
101
+ actionpack (= 5.0.3)
102
+ activesupport (= 5.0.3)
105
103
  method_source
106
104
  rake (>= 0.8.7)
107
105
  thor (>= 0.18.1, < 2.0)
108
- rake (11.2.2)
109
- rspec (3.3.0)
110
- rspec-core (~> 3.3.0)
111
- rspec-expectations (~> 3.3.0)
112
- rspec-mocks (~> 3.3.0)
113
- rspec-core (3.3.2)
114
- rspec-support (~> 3.3.0)
115
- rspec-expectations (3.3.1)
106
+ rake (12.0.0)
107
+ rspec (3.6.0)
108
+ rspec-core (~> 3.6.0)
109
+ rspec-expectations (~> 3.6.0)
110
+ rspec-mocks (~> 3.6.0)
111
+ rspec-core (3.6.0)
112
+ rspec-support (~> 3.6.0)
113
+ rspec-expectations (3.6.0)
116
114
  diff-lcs (>= 1.2.0, < 2.0)
117
- rspec-support (~> 3.3.0)
118
- rspec-mocks (3.3.2)
115
+ rspec-support (~> 3.6.0)
116
+ rspec-mocks (3.6.0)
119
117
  diff-lcs (>= 1.2.0, < 2.0)
120
- rspec-support (~> 3.3.0)
121
- rspec-support (3.3.0)
118
+ rspec-support (~> 3.6.0)
119
+ rspec-support (3.6.0)
122
120
  slop (3.6.0)
123
- sprockets (3.7.0)
121
+ sprockets (3.7.1)
124
122
  concurrent-ruby (~> 1.0)
125
123
  rack (> 1, < 3)
126
- sprockets-rails (3.1.1)
124
+ sprockets-rails (3.2.0)
127
125
  actionpack (>= 4.0)
128
126
  activesupport (>= 4.0)
129
127
  sprockets (>= 3.0.0)
130
- thor (0.19.1)
131
- thread_safe (0.3.5)
132
- tzinfo (1.2.2)
128
+ thor (0.19.4)
129
+ thread_safe (0.3.6)
130
+ tzinfo (1.2.3)
133
131
  thread_safe (~> 0.1)
134
- websocket-driver (0.6.4)
132
+ websocket-driver (0.6.5)
135
133
  websocket-extensions (>= 0.1.0)
136
134
  websocket-extensions (0.1.2)
137
135
 
@@ -142,7 +140,7 @@ DEPENDENCIES
142
140
  philosophies-suspenders!
143
141
  pry
144
142
  pry-byebug
145
- rspec (~> 3.2)
143
+ rspec (~> 3.6)
146
144
 
147
145
  BUNDLED WITH
148
- 1.12.5
146
+ 1.14.6
@@ -6,6 +6,10 @@ module Suspenders
6
6
  template 'README.md.erb', 'README.md'
7
7
  end
8
8
 
9
+ def pull_request_template
10
+ template 'PULL_REQUEST_TEMPLATE.md.erb', 'PULL_REQUEST_TEMPLATE.md'
11
+ end
12
+
9
13
  def raise_on_delivery_errors
10
14
  replace_in_file 'config/environments/development.rb',
11
15
  'raise_delivery_errors = false', 'raise_delivery_errors = true'
@@ -456,9 +460,11 @@ end
456
460
 
457
461
  def configure_heroku_app(environment)
458
462
  run_heroku "addons:create sendgrid", environment
459
- run_heroku "addons:create airbrake:free_heroku", environment
463
+ run_heroku "addons:create airbrake:free-hrku", environment
460
464
  run_heroku "addons:create papertrail", environment
461
465
  run_heroku "addons:create heroku-postgresql:hobby-dev", environment
466
+ run_heroku "addons:create newrelic:wayne", environment
467
+ run_heroku "addons:create heroku-redis:hobby-dev", environment
462
468
 
463
469
  if environment == 'production'
464
470
  run_heroku "pg:backups schedule DATABASE_URL "\
@@ -543,7 +549,7 @@ if defined?(RSpec) && defined?(RuboCop)
543
549
 
544
550
  RuboCop::RakeTask.new
545
551
 
546
- task default: [:spec, :rubocop]
552
+ task default: [:spec, :rubocop, 'bundler:audit']
547
553
  end
548
554
  EOS
549
555
  end
@@ -570,6 +576,15 @@ end
570
576
  inject_into_class "config/application.rb", "Application", config
571
577
  end
572
578
 
579
+ def configure_lib_directory
580
+ config = <<-RUBY
581
+ config.autoload_paths << Rails.root.join('lib')
582
+ config.eager_load_paths << Rails.root.join('lib')
583
+ RUBY
584
+
585
+ inject_into_class "config/application.rb", "Application", config
586
+ end
587
+
573
588
  private
574
589
 
575
590
  def raise_on_missing_translations_in(environment)
@@ -40,6 +40,7 @@ module Suspenders
40
40
  end
41
41
 
42
42
  def suspenders_customization
43
+ invoke :copy_project_markdown_files
43
44
  invoke :customize_gemfile
44
45
  invoke :setup_development_environment
45
46
  invoke :setup_test_environment
@@ -67,6 +68,11 @@ module Suspenders
67
68
  invoke :outro
68
69
  end
69
70
 
71
+ def copy_project_markdown_files
72
+ build :readme
73
+ build :pull_request_template
74
+ end
75
+
70
76
  def customize_gemfile
71
77
  build :replace_gemfile
72
78
  build :set_ruby_to_version_being_used
@@ -153,6 +159,7 @@ module Suspenders
153
159
  build :configure_puma
154
160
  build :setup_foreman
155
161
  build :configure_airbrake
162
+ build :configure_lib_directory
156
163
  end
157
164
 
158
165
  def setup_stylesheets
@@ -1,5 +1,5 @@
1
1
  module Suspenders
2
- RAILS_VERSION = "~> 5.0.0"
2
+ RAILS_VERSION = "~> 5.0.1"
3
3
  RUBY_VERSION = IO.read("#{File.dirname(__FILE__)}/../../.ruby-version").strip
4
- VERSION = "2.2.1"
4
+ VERSION = "2.2.2"
5
5
  end
data/suspenders.gemspec CHANGED
@@ -14,7 +14,7 @@ Philosophie to get a jump start on a working app. Use Suspenders if you're in a
14
14
  rush to build something amazing; don't use it if you like missing deadlines.
15
15
  HERE
16
16
 
17
- s.email = 'support@thoughtbot.com'
17
+ s.email = 'webmaster@philosophie.is'
18
18
  s.executables = ['philosophies-suspenders']
19
19
  s.extra_rdoc_files = %w[README.md LICENSE]
20
20
  s.files = `git ls-files`.split("\n")
@@ -32,5 +32,5 @@ rush to build something amazing; don't use it if you like missing deadlines.
32
32
 
33
33
  s.add_development_dependency 'pry'
34
34
  s.add_development_dependency 'pry-byebug'
35
- s.add_development_dependency 'rspec', '~> 3.2'
35
+ s.add_development_dependency 'rspec', '~> 3.6'
36
36
  end
@@ -23,3 +23,8 @@ AllCops:
23
23
  - "config/**/*"
24
24
  - "Rakefile"
25
25
  - "spec/i18n_spec.rb"
26
+
27
+ BlockLength:
28
+ Exclude:
29
+ - "spec/**/*"
30
+ - "app/admin/**/*"
@@ -0,0 +1,5 @@
1
+ - [ ] Be well-tested according to our Automated Testing Policy, and the test suite must be passing.
2
+ - [ ] Conform to the Ruby Community Styleguide via rubocop.
3
+ - [ ] Update the seed file with any new data that QA will need to accept your feature
4
+ - [ ] Ensure that any new ENV vars are added to `setup.rb` and updated on CI and servers
5
+ - [ ] Views render correctly in all supported browsers
@@ -12,14 +12,7 @@ $ rake newb
12
12
  In addition to satisfying acceptance criteria, new functionality/changes/etc
13
13
  must meet the following requirements before they can be considered "done":
14
14
 
15
- 1. Be well-tested according to our
16
- [Automated Testing Policy](#automated-testing-policy), and the test suite
17
- must be passing.
18
- 1. [Conform to the Ruby Community Styleguide.](#styleguide-enforcement)
19
- 1. Update the seed file with any new data that QA will need to accept your feature
20
- 1. Ensure that any new ENV vars are added to `setup.rb` and updated on CI and
21
- servers
22
- 1. Views render correctly in all [supported browsers](#supported-browsers)
15
+ 1. Check all the boxes in `PULL_REQUEST_TEMPLATE.md`
23
16
  1. Have received the :shipit: in peer review via Pull Request.
24
17
 
25
18
  ## Automated Testing Policy
@@ -11,4 +11,7 @@ RSpec.configure do |config|
11
11
 
12
12
  config.order = :random
13
13
  config.color = true
14
+
15
+ config.filter_run focus: true
16
+ config.run_all_when_everything_filtered = true
14
17
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: philosophies-suspenders
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.1
4
+ version: 2.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Philosophie
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-24 00:00:00.000000000 Z
11
+ date: 2017-06-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 5.0.0
33
+ version: 5.0.1
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 5.0.0
40
+ version: 5.0.1
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: pry
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -72,19 +72,19 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '3.2'
75
+ version: '3.6'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '3.2'
82
+ version: '3.6'
83
83
  description: |
84
84
  Suspenders is a base Rails project that you can upgrade. It is used by
85
85
  Philosophie to get a jump start on a working app. Use Suspenders if you're in a
86
86
  rush to build something amazing; don't use it if you like missing deadlines.
87
- email: support@thoughtbot.com
87
+ email: webmaster@philosophie.is
88
88
  executables:
89
89
  - philosophies-suspenders
90
90
  extensions: []
@@ -121,6 +121,7 @@ files:
121
121
  - suspenders.gemspec
122
122
  - templates/.rubocop.yml
123
123
  - templates/Gemfile.erb
124
+ - templates/PULL_REQUEST_TEMPLATE.md.erb
124
125
  - templates/Procfile
125
126
  - templates/README.md.erb
126
127
  - templates/_analytics.html.erb
@@ -163,7 +164,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
163
164
  requirements:
164
165
  - - ">="
165
166
  - !ruby/object:Gem::Version
166
- version: 2.3.1
167
+ version: 2.4.0
167
168
  required_rubygems_version: !ruby/object:Gem::Requirement
168
169
  requirements:
169
170
  - - ">="
@@ -171,7 +172,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
171
172
  version: '0'
172
173
  requirements: []
173
174
  rubyforge_project:
174
- rubygems_version: 2.5.1
175
+ rubygems_version: 2.6.8
175
176
  signing_key:
176
177
  specification_version: 4
177
178
  summary: Generate a Rails app using Philosophie's best practices.