slining 1.2.0 → 1.3.0

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: 42d9762ac323a494ce17c4118dcd30f012013c88
4
- data.tar.gz: 8a2760aab2790ac14eb37db94da78df715067948
3
+ metadata.gz: dc138d39fcfc49e24940509e4567e4b614beceb8
4
+ data.tar.gz: 0158607016f6a98afd3715a0fc23665aff656695
5
5
  SHA512:
6
- metadata.gz: d91d7677e8df1366d44e6d712346ca2cb08ab44ec27da873af7ec61d6b67736cf755afeb320b9da42f543eb934a146d1dc5ff7d9fcb43371bd72737359f4821d
7
- data.tar.gz: 99707fa9618fae7608c7cf7d93055c7783d19264f50a5bd1f25065b4884b2dfaf362f1b82c6bc1e3d36b900536181c0ed244bf4ef4af4f8818b9afceb366fec9
6
+ metadata.gz: 4350f25712e0572315d82f98298fd8daffab9af7c967098bf854210e7e2e6dd91226096ba59c2f606f7cf4723c405919405c8bde171535916017de9cee2660d7
7
+ data.tar.gz: 3738f26a5bbbad076e0181b194dcede640ab8b4d3013d6d40b04543de39e8fafaa7cbb6b3739afe128f8f3fdedfea8759257a31f1e04cb45d78740d8ee8f709f
@@ -1 +1 @@
1
- 2.2.3
1
+ 2.3.0
data/NEWS.md CHANGED
@@ -1,3 +1,21 @@
1
+ 1.3.0 (December 27, 2015)
2
+ * Ignored `.env.local` instead of `.env` [upstream-8739344046cfbca5b74dcb4d9aba3c6e9c805463]
3
+ * Add lang attribute to html element in layout [upstream-644dc50bed9c1f520a821f38e8555164c1140bd8]
4
+ * Set puma workers to 1 in .sample.env to play well with web-console and ember-cli-rails [upstream-79b83dbbd0959db0502ffbf603ac6ce5b1768517]
5
+ * Generate .env instead of .sample.env [upstream-e308357a07a4d4631cd65af2c5348de8a32b7779]
6
+ * Use `pry-byebug` instead of `byebug` [upstream-6508b6ad3c0640d87f701608a5cc6699988b5b9d]
7
+ * Upgraded rspec-rails, Ruby, and Rails
8
+ * Remove i18n-tasks [upstream-77d3310dd1d531a04aae4e4621fc55ff8168d7e5] [upstream-67c038a2d44b6a44b3a115aadcaedb564cf98dd0]
9
+ * Remove database `host` key for Linux support
10
+
11
+ [upstream-8739344046cfbca5b74dcb4d9aba3c6e9c805463]: https://github.com/thoughtbot/suspenders/commit/8739344046cfbca5b74dcb4d9aba3c6e9c805463
12
+ [upstream-644dc50bed9c1f520a821f38e8555164c1140bd8]: https://github.com/thoughtbot/suspenders/commit/644dc50bed9c1f520a821f38e8555164c1140bd8
13
+ [upstream-79b83dbbd0959db0502ffbf603ac6ce5b1768517]: https://github.com/thoughtbot/suspenders/commit/79b83dbbd0959db0502ffbf603ac6ce5b1768517
14
+ [upstream-e308357a07a4d4631cd65af2c5348de8a32b7779]: https://github.com/thoughtbot/suspenders/commit/e308357a07a4d4631cd65af2c5348de8a32b7779
15
+ [upstream-6508b6ad3c0640d87f701608a5cc6699988b5b9d]: https://github.com/thoughtbot/suspenders/commit/6508b6ad3c0640d87f701608a5cc6699988b5b9d
16
+ [upstream-77d3310dd1d531a04aae4e4621fc55ff8168d7e5]: https://github.com/thoughtbot/suspenders/commit/77d3310dd1d531a04aae4e4621fc55ff8168d7e5
17
+ [upstream-67c038a2d44b6a44b3a115aadcaedb564cf98dd0]: https://github.com/thoughtbot/suspenders/commit/67c038a2d44b6a44b3a115aadcaedb564cf98dd0
18
+
1
19
  1.2.0 (November 17, 2015)
2
20
  * Changed addon references for Heroku [upstream-1]
3
21
  * Upgraded to Ruby 2.2.3
@@ -11,6 +11,7 @@ module Slining
11
11
  # Set up the staging and production apps.
12
12
  #{command_to_join_heroku_app('staging')}
13
13
  #{command_to_join_heroku_app('production')}
14
+ git config heroku.remote staging
14
15
  SHELL
15
16
 
16
17
  app_builder.append_file "bin/setup", remotes
@@ -263,11 +263,6 @@ end
263
263
  raise_on_missing_translations_in("test")
264
264
  end
265
265
 
266
- def configure_i18n_tasks
267
- run "cp $(i18n-tasks gem-path)/templates/rspec/i18n_spec.rb spec/"
268
- copy_file "config_i18n_tasks.yml", "config/i18n-tasks.yml"
269
- end
270
-
271
266
  def configure_background_jobs_for_rspec
272
267
  run 'rails g delayed_job:active_record'
273
268
  end
@@ -327,8 +322,7 @@ Rack::Timeout.timeout = (ENV["RACK_TIMEOUT"] || 10).to_i
327
322
  end
328
323
 
329
324
  def set_up_forego
330
- copy_file 'sample.env', '.sample.env'
331
- copy_file 'Procfile', 'Procfile'
325
+ copy_file "Procfile", "Procfile"
332
326
  end
333
327
 
334
328
  def setup_stylesheets
@@ -103,7 +103,6 @@ module Slining
103
103
  build :configure_spec_support_features
104
104
  build :configure_ci
105
105
  build :configure_i18n_for_test_environment
106
- build :configure_i18n_tasks
107
106
  build :configure_action_mailer_in_specs
108
107
  build :configure_capybara_webkit
109
108
  end
@@ -1,5 +1,5 @@
1
1
  module Slining
2
- RAILS_VERSION = "4.2.1"
2
+ RAILS_VERSION = "~> 4.2.0"
3
3
  RUBY_VERSION = IO.read("#{File.dirname(__FILE__)}/../../.ruby-version").strip
4
- VERSION = "1.2.0"
4
+ VERSION = "1.3.0"
5
5
  end
@@ -30,6 +30,6 @@ rush to build something amazing; don't use it if you like missing deadlines.
30
30
  s.add_dependency 'bundler', '~> 1.3'
31
31
  s.add_dependency 'rails', Slining::RAILS_VERSION
32
32
 
33
- s.add_development_dependency 'rspec', '~> 3.2'
33
+ s.add_development_dependency 'rspec', '~> 3.4'
34
34
  s.add_development_dependency 'codeclimate-test-reporter'
35
35
  end
@@ -26,6 +26,7 @@ RSpec.describe "Heroku" do
26
26
 
27
27
  expect(bin_setup).to include("heroku join --app #{app_name}-production")
28
28
  expect(bin_setup).to include("heroku join --app #{app_name}-staging")
29
+ expect(bin_setup).to include("git config heroku.remote staging")
29
30
  expect(File.stat(bin_setup_path)).to be_executable
30
31
 
31
32
  bin_deploy_path = "#{project_path}/bin/deploy"
@@ -30,7 +30,9 @@ RSpec.describe "Slining a new project with default configuration" do
30
30
  end
31
31
 
32
32
  it "copies dotfiles" do
33
- expect(File).to exist("#{project_path}/.ctags")
33
+ %w[.ctags .env].each do |dotfile|
34
+ expect(File).to exist("#{project_path}/#{dotfile}")
35
+ end
34
36
  end
35
37
 
36
38
  it "loads secret_key_base from env" do
@@ -98,14 +100,6 @@ RSpec.describe "Slining a new project with default configuration" do
98
100
  end
99
101
  end
100
102
 
101
- it "adds specs for missing or unused translations" do
102
- expect(File).to exist("#{project_path}/spec/i18n_spec.rb")
103
- end
104
-
105
- it "configs i18n-tasks" do
106
- expect(File).to exist("#{project_path}/config/i18n-tasks.yml")
107
- end
108
-
109
103
  it "evaluates en.yml.erb" do
110
104
  locales_en_file = IO.read("#{project_path}/config/locales/en.yml")
111
105
  app_name = SliningTestHelpers::APP_NAME
@@ -129,6 +123,12 @@ RSpec.describe "Slining a new project with default configuration" do
129
123
  expect(prod_env_file).not_to match(/"HOST"/)
130
124
  end
131
125
 
126
+ it "configures language in html element" do
127
+ layout_path = "/app/views/layouts/application.html.erb"
128
+ layout_file = IO.read("#{project_path}#{layout_path}")
129
+ expect(layout_file).to match(/<html lang="en">/)
130
+ end
131
+
132
132
  it "configs active job queue adapter" do
133
133
  application_config = IO.read("#{project_path}/config/application.rb")
134
134
  test_config = IO.read("#{project_path}/config/environments/test.rb")
@@ -157,18 +157,9 @@ RSpec.describe "Slining a new project with default configuration" do
157
157
  it "adds spring to binstubs" do
158
158
  expect(File).to exist("#{project_path}/bin/spring")
159
159
 
160
- bin_stub_files = [
161
- IO.read("#{project_path}/bin/rails"),
162
- IO.read("#{project_path}/bin/rake"),
163
- IO.read("#{project_path}/bin/rspec"),
164
- ]
165
-
166
- spring_line1 = /^ +spring_bin_path = File.expand_path\('\.\.\/spring', __FILE__\)$/
167
- spring_line2 = /^ +load spring_bin_path$/
168
-
169
- bin_stub_files.each do |file|
170
- expect(file).to match(spring_line1)
171
- expect(file).to match(spring_line2)
160
+ bin_stubs = %w(rake rails rspec)
161
+ bin_stubs.each do |bin_stub|
162
+ expect(IO.read("#{project_path}/bin/#{bin_stub}")).to match /spring/
172
163
  end
173
164
  end
174
165
 
@@ -35,12 +35,11 @@ group :development, :test do
35
35
  gem "awesome_print"
36
36
  gem "bullet"
37
37
  gem "bundler-audit", require: false
38
- gem "byebug"
39
38
  gem "dotenv-rails"
40
39
  gem "factory_girl_rails"
41
- gem "i18n-tasks"
40
+ gem "pry-byebug"
42
41
  gem "pry-rails"
43
- gem "rspec-rails", "~> 3.3.0"
42
+ gem "rspec-rails", "~> 3.4.0"
44
43
  end
45
44
 
46
45
  group :test do
@@ -10,11 +10,6 @@ set -e
10
10
  gem install bundler --conservative
11
11
  bundle check || bundle install
12
12
 
13
- # Set up configurable environment variables
14
- if [ ! -f .env ]; then
15
- cp .sample.env .env
16
- fi
17
-
18
13
  # Set up database and add any development seed data
19
14
  bin/rake dev:prime
20
15
 
@@ -1,6 +1,3 @@
1
- checkout:
2
- post:
3
- - cp .sample.env .env
4
1
  database:
5
2
  override:
6
3
  - bin/setup
@@ -8,3 +8,4 @@ SMTP_ADDRESS=smtp.example.com
8
8
  SMTP_DOMAIN=example.com
9
9
  SMTP_PASSWORD=password
10
10
  SMTP_USERNAME=username
11
+ WEB_CONCURRENCY=1
@@ -1,3 +1,3 @@
1
1
  RSpec.configure do |config|
2
- config.include AbstractController::Translation
2
+ config.include ActionView::Helpers::TranslationHelper
3
3
  end
@@ -2,7 +2,6 @@ development: &default
2
2
  adapter: postgresql
3
3
  database: <%= app_name %>_development
4
4
  encoding: utf8
5
- host: localhost
6
5
  min_messages: warning
7
6
  pool: <%%= Integer(ENV.fetch("DB_POOL", 5)) %>
8
7
  reaping_frequency: <%%= Integer(ENV.fetch("DB_REAPING_FREQUENCY", 10)) %>
@@ -3,7 +3,7 @@
3
3
  *.swo
4
4
  *.swp
5
5
  /.bundle
6
- /.env
6
+ /.env.local
7
7
  /coverage/*
8
8
  /db/*.sqlite3
9
9
  /log/*
@@ -1,5 +1,5 @@
1
1
  <!DOCTYPE html>
2
- <html>
2
+ <html lang="<%= I18n.locale %>">
3
3
  <head>
4
4
  <meta charset="utf-8" />
5
5
  <meta name="ROBOTS" content="NOODP" />
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slining
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - vaporware
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-17 00:00:00.000000000 Z
11
+ date: 2015-12-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -28,30 +28,30 @@ dependencies:
28
28
  name: rails
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '='
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 4.2.1
33
+ version: 4.2.0
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: 4.2.1
40
+ version: 4.2.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '3.2'
47
+ version: '3.4'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '3.2'
54
+ version: '3.4'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: codeclimate-test-reporter
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -122,12 +122,12 @@ files:
122
122
  - templates/bundler_audit.rake
123
123
  - templates/capybara_webkit.rb
124
124
  - templates/circle.yml.erb
125
- - templates/config_i18n_tasks.yml
126
125
  - templates/config_locales_en.yml.erb
127
126
  - templates/database_cleaner_rspec.rb
128
127
  - templates/dev.rake
129
128
  - templates/disable_xml_params.rb
130
129
  - templates/dotfiles/.ctags
130
+ - templates/dotfiles/.env
131
131
  - templates/errors.rb
132
132
  - templates/factories.rb
133
133
  - templates/factory_girl_rspec.rb
@@ -139,7 +139,6 @@ files:
139
139
  - templates/postgresql_database.yml.erb
140
140
  - templates/puma.rb
141
141
  - templates/rails_helper.rb
142
- - templates/sample.env
143
142
  - templates/secrets.yml
144
143
  - templates/shoulda_matchers_config_rspec.rb
145
144
  - templates/slining_gitignore
@@ -160,7 +159,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
160
159
  requirements:
161
160
  - - ">="
162
161
  - !ruby/object:Gem::Version
163
- version: 2.2.3
162
+ version: 2.3.0
164
163
  required_rubygems_version: !ruby/object:Gem::Requirement
165
164
  requirements:
166
165
  - - ">="
@@ -168,8 +167,18 @@ required_rubygems_version: !ruby/object:Gem::Requirement
168
167
  version: '0'
169
168
  requirements: []
170
169
  rubyforge_project:
171
- rubygems_version: 2.4.8
170
+ rubygems_version: 2.5.1
172
171
  signing_key:
173
172
  specification_version: 4
174
173
  summary: Generate a Rails app using vaporware's best practices.
175
- test_files: []
174
+ test_files:
175
+ - spec/adapters/heroku_spec.rb
176
+ - spec/fakes/bin/heroku
177
+ - spec/fakes/bin/hub
178
+ - spec/features/github_spec.rb
179
+ - spec/features/heroku_spec.rb
180
+ - spec/features/new_project_spec.rb
181
+ - spec/spec_helper.rb
182
+ - spec/support/fake_github.rb
183
+ - spec/support/fake_heroku.rb
184
+ - spec/support/slining.rb
@@ -1,13 +0,0 @@
1
- search:
2
- paths:
3
- - "app/controllers"
4
- - "app/helpers"
5
- - "app/presenters"
6
- - "app/views"
7
-
8
- ignore_unused:
9
- - activerecord.*
10
- - date.*
11
- - simple_form.*
12
- - time.*
13
- - titles.*