slining 1.1.0 → 1.2.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.
@@ -11,11 +11,11 @@ gem "email_validator"
11
11
  gem "flutie"
12
12
  gem "haml-rails", "~> 0.9"
13
13
  gem "high_voltage"
14
- gem "i18n-tasks"
15
14
  gem "jquery-rails"
16
15
  gem "newrelic_rpm", ">= 3.9.8"
17
16
  gem "normalize-rails", "~> 3.0.0"
18
17
  gem "pg"
18
+ gem "puma"
19
19
  gem "rack-canonical-host"
20
20
  gem "rails", "<%= Slining::RAILS_VERSION %>"
21
21
  gem "recipient_interceptor"
@@ -23,9 +23,9 @@ gem "sass-rails", "~> 5.0"
23
23
  gem "simple_form"
24
24
  gem "title"
25
25
  gem "uglifier"
26
- gem "unicorn"
27
26
 
28
27
  group :development do
28
+ gem "quiet_assets"
29
29
  gem "spring"
30
30
  gem "spring-commands-rspec"
31
31
  gem "web-console"
@@ -33,12 +33,14 @@ end
33
33
 
34
34
  group :development, :test do
35
35
  gem "awesome_print"
36
+ gem "bullet"
36
37
  gem "bundler-audit", require: false
37
38
  gem "byebug"
38
39
  gem "dotenv-rails"
39
40
  gem "factory_girl_rails"
41
+ gem "i18n-tasks"
40
42
  gem "pry-rails"
41
- gem "rspec-rails", "~> 3.1.0"
43
+ gem "rspec-rails", "~> 3.3.0"
42
44
  end
43
45
 
44
46
  group :test do
@@ -46,7 +48,7 @@ group :test do
46
48
  gem "database_cleaner"
47
49
  gem "formulaic"
48
50
  gem "launchy"
49
- gem "shoulda-matchers", require: false
51
+ gem "shoulda-matchers"
50
52
  gem "simplecov", require: false
51
53
  gem "timecop"
52
54
  gem "webmock"
@@ -1,2 +1,2 @@
1
- web: bundle exec unicorn -p $PORT -c ./config/unicorn.rb
1
+ web: bundle exec puma -p $PORT -C ./config/puma.rb
2
2
  worker: bundle exec rake jobs:work
@@ -12,15 +12,11 @@ your machine with [this script].
12
12
 
13
13
  [this script]: https://github.com/thoughtbot/laptop
14
14
 
15
- After setting up, you can run the application using [foreman]:
15
+ After setting up, you can run the application using [Heroku Local]:
16
16
 
17
- % foreman start
17
+ % heroku local
18
18
 
19
- If you don't have `foreman`, see [Foreman's install instructions][foreman]. It
20
- is [purposefully excluded from the project's `Gemfile`][exclude].
21
-
22
- [foreman]: https://github.com/ddollar/foreman
23
- [exclude]: https://github.com/ddollar/foreman/pull/437#issuecomment-41110407
19
+ [Heroku Local]: https://devcenter.heroku.com/articles/heroku-local
24
20
 
25
21
  ## Guidelines
26
22
 
@@ -16,21 +16,11 @@ if [ ! -f .env ]; then
16
16
  fi
17
17
 
18
18
  # Set up database and add any development seed data
19
- bundle exec rake db:setup dev:prime
19
+ bin/rake dev:prime
20
20
 
21
21
  # Add binstubs to PATH via export PATH=".git/safe/../../bin:$PATH" in ~/.zshenv
22
22
  mkdir -p .git/safe
23
23
 
24
- # Pick a port for Foreman
25
- if ! grep --quiet --no-messages --fixed-strings 'port' .foreman; then
26
- printf 'port: <%= config[:port_number] %>\n' >> .foreman
27
- fi
28
-
29
- if ! command -v foreman > /dev/null; then
30
- printf 'Foreman is not installed.\n'
31
- printf 'See https://github.com/ddollar/foreman for install instructions.\n'
32
- fi
33
-
34
24
  # Only if this isn't CI
35
25
  # if [ -z "$CI" ]; then
36
26
  # fi
@@ -0,0 +1,5 @@
1
+ Capybara.javascript_driver = :webkit
2
+
3
+ Capybara::Webkit.configure do |config|
4
+ config.block_unknown_urls
5
+ end
@@ -0,0 +1,9 @@
1
+ checkout:
2
+ post:
3
+ - cp .sample.env .env
4
+ database:
5
+ override:
6
+ - bin/setup
7
+ test:
8
+ override:
9
+ - bin/rake
@@ -2,7 +2,7 @@ if Rails.env.development? || Rails.env.test?
2
2
  require "factory_girl"
3
3
 
4
4
  namespace :dev do
5
- desc "Seed data for development environment"
5
+ desc "Sample data for local development environment"
6
6
  task prime: "db:setup" do
7
7
  include FactoryGirl::Syntax::Methods
8
8
 
@@ -1,3 +1 @@
1
- # Protect against injection attacks
2
- # http://www.kb.cert.org/vuls/id/380039
3
1
  ActionDispatch::ParamsParser::DEFAULT_PARSERS.delete(Mime::XML)
@@ -0,0 +1,2 @@
1
+ --recurse=yes
2
+ --exclude=vendor
@@ -0,0 +1,2 @@
1
+ FactoryGirl.define do
2
+ end
@@ -4,9 +4,19 @@ development: &default
4
4
  encoding: utf8
5
5
  host: localhost
6
6
  min_messages: warning
7
- pool: 2
7
+ pool: <%%= Integer(ENV.fetch("DB_POOL", 5)) %>
8
+ reaping_frequency: <%%= Integer(ENV.fetch("DB_REAPING_FREQUENCY", 10)) %>
8
9
  timeout: 5000
9
10
 
10
11
  test:
11
12
  <<: *default
12
13
  database: <%= app_name %>_test
14
+
15
+ production: &deploy
16
+ encoding: utf8
17
+ min_messages: warning
18
+ pool: <%%= [Integer(ENV.fetch("MAX_THREADS", 5)), Integer(ENV.fetch("DB_POOL", 5))].max %>
19
+ timeout: 5000
20
+ url: <%%= ENV.fetch("DATABASE_URL", "") %>
21
+
22
+ staging: *deploy
@@ -0,0 +1,19 @@
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
+ workers Integer(ENV.fetch("WEB_CONCURRENCY", 2))
7
+ threads_count = Integer(ENV.fetch("MAX_THREADS", 2))
8
+ threads(threads_count, threads_count)
9
+
10
+ preload_app!
11
+
12
+ rackup DefaultRackup
13
+ environment ENV.fetch("RACK_ENV", "development")
14
+
15
+ on_worker_boot do
16
+ # Worker specific setup for Rails 4.1+
17
+ # See: https://devcenter.heroku.com/articles/deploying-rails-applications-with-the-puma-web-server#on-worker-boot
18
+ ActiveRecord::Base.establish_connection
19
+ end
@@ -1,9 +1,9 @@
1
1
  ENV["RAILS_ENV"] = "test"
2
2
 
3
3
  require File.expand_path("../../config/environment", __FILE__)
4
+ abort("DATABASE_URL environment variable is set") if ENV["DATABASE_URL"]
4
5
 
5
6
  require "rspec/rails"
6
- require "shoulda/matchers"
7
7
 
8
8
  Dir[Rails.root.join("spec/support/**/*.rb")].sort.each { |file| require file }
9
9
 
@@ -20,4 +20,3 @@ RSpec.configure do |config|
20
20
  end
21
21
 
22
22
  ActiveRecord::Migration.maintain_test_schema!
23
- Capybara.javascript_driver = :webkit
@@ -1,6 +1,10 @@
1
- # http://ddollar.github.com/foreman/
1
+ # https://github.com/ddollar/forego
2
+ APPLICATION_HOST=localhost:3000
2
3
  ASSET_HOST=localhost:3000
3
- HOST=localhost:3000
4
+ EXECJS_RUNTIME=Node
4
5
  RACK_ENV=development
5
6
  SECRET_KEY_BASE=development_secret
6
- EXECJS_RUNTIME=Node
7
+ SMTP_ADDRESS=smtp.example.com
8
+ SMTP_DOMAIN=example.com
9
+ SMTP_PASSWORD=password
10
+ SMTP_USERNAME=username
@@ -0,0 +1,6 @@
1
+ Shoulda::Matchers.configure do |config|
2
+ config.integrate do |with|
3
+ with.test_framework :rspec
4
+ with.library :rails
5
+ end
6
+ end
@@ -4,7 +4,6 @@
4
4
  *.swp
5
5
  /.bundle
6
6
  /.env
7
- /.foreman
8
7
  /coverage/*
9
8
  /db/*.sqlite3
10
9
  /log/*
@@ -16,6 +16,7 @@ RSpec.configure do |config|
16
16
  mocks.verify_partial_doubles = true
17
17
  end
18
18
 
19
+ config.example_status_persistence_file_path = "tmp/rspec_examples.txt"
19
20
  config.order = :random
20
21
  end
21
22
 
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.1.0
4
+ version: 1.2.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-06-23 00:00:00.000000000 Z
11
+ date: 2015-11-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -52,6 +52,20 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '3.2'
55
+ - !ruby/object:Gem::Dependency
56
+ name: codeclimate-test-reporter
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
55
69
  description: |
56
70
  Slining is a base Rails project that you can upgrade. It is used by
57
71
  vaporware to get a jump start on a working app. Use Slining if you're in a
@@ -66,13 +80,12 @@ extra_rdoc_files:
66
80
  files:
67
81
  - ".gitignore"
68
82
  - ".ruby-version"
69
- - ".travis.yml"
70
83
  - CONTRIBUTING.md
71
84
  - Gemfile
72
- - Gemfile.lock
73
85
  - LICENSE
74
86
  - NEWS.md
75
87
  - README.md
88
+ - RELEASING.md
76
89
  - Rakefile
77
90
  - bin/rake
78
91
  - bin/rspec
@@ -80,10 +93,12 @@ files:
80
93
  - bin/slining
81
94
  - lib/slining.rb
82
95
  - lib/slining/actions.rb
96
+ - lib/slining/adapters/heroku.rb
83
97
  - lib/slining/app_builder.rb
84
98
  - lib/slining/generators/app_generator.rb
85
99
  - lib/slining/version.rb
86
100
  - slining.gemspec
101
+ - spec/adapters/heroku_spec.rb
87
102
  - spec/fakes/bin/heroku
88
103
  - spec/fakes/bin/hub
89
104
  - spec/features/github_spec.rb
@@ -105,12 +120,16 @@ files:
105
120
  - templates/bin_setup.erb
106
121
  - templates/browserslist
107
122
  - templates/bundler_audit.rake
123
+ - templates/capybara_webkit.rb
124
+ - templates/circle.yml.erb
108
125
  - templates/config_i18n_tasks.yml
109
126
  - templates/config_locales_en.yml.erb
110
127
  - templates/database_cleaner_rspec.rb
111
- - templates/development_seeds.rb
128
+ - templates/dev.rake
112
129
  - templates/disable_xml_params.rb
130
+ - templates/dotfiles/.ctags
113
131
  - templates/errors.rb
132
+ - templates/factories.rb
114
133
  - templates/factory_girl_rspec.rb
115
134
  - templates/flashes_helper.rb
116
135
  - templates/hound.yml
@@ -118,16 +137,16 @@ files:
118
137
  - templates/json_encoding.rb
119
138
  - templates/newrelic.yml.erb
120
139
  - templates/postgresql_database.yml.erb
140
+ - templates/puma.rb
121
141
  - templates/rails_helper.rb
122
142
  - templates/sample.env
123
143
  - templates/secrets.yml
144
+ - templates/shoulda_matchers_config_rspec.rb
124
145
  - templates/slining_gitignore
125
146
  - templates/slining_layout.html.erb.erb
126
147
  - templates/smtp.rb
127
148
  - templates/spec_helper.rb
128
149
  - templates/staging.rb
129
- - templates/travis.yml.erb
130
- - templates/unicorn.rb
131
150
  homepage: http://github.com/vaporware/slining
132
151
  licenses:
133
152
  - MIT
@@ -141,7 +160,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
141
160
  requirements:
142
161
  - - ">="
143
162
  - !ruby/object:Gem::Version
144
- version: 2.2.2
163
+ version: 2.2.3
145
164
  required_rubygems_version: !ruby/object:Gem::Requirement
146
165
  requirements:
147
166
  - - ">="
@@ -1,11 +0,0 @@
1
- language: ruby
2
- rvm: 2.2.2
3
- cache: bundler
4
- sudo: false
5
- before_install:
6
- - "echo '--colour' > ~/.rspec"
7
- - git config --global user.name 'Travis CI'
8
- - git config --global user.email 'travis-ci@example.com'
9
- install: bundle install
10
- notifications:
11
- email: false
@@ -1,123 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- slining (1.0.1)
5
- bundler (~> 1.3)
6
- rails (= 4.2.1)
7
-
8
- GEM
9
- remote: https://rubygems.org/
10
- specs:
11
- actionmailer (4.2.1)
12
- actionpack (= 4.2.1)
13
- actionview (= 4.2.1)
14
- activejob (= 4.2.1)
15
- mail (~> 2.5, >= 2.5.4)
16
- rails-dom-testing (~> 1.0, >= 1.0.5)
17
- actionpack (4.2.1)
18
- actionview (= 4.2.1)
19
- activesupport (= 4.2.1)
20
- rack (~> 1.6)
21
- rack-test (~> 0.6.2)
22
- rails-dom-testing (~> 1.0, >= 1.0.5)
23
- rails-html-sanitizer (~> 1.0, >= 1.0.1)
24
- actionview (4.2.1)
25
- activesupport (= 4.2.1)
26
- builder (~> 3.1)
27
- erubis (~> 2.7.0)
28
- rails-dom-testing (~> 1.0, >= 1.0.5)
29
- rails-html-sanitizer (~> 1.0, >= 1.0.1)
30
- activejob (4.2.1)
31
- activesupport (= 4.2.1)
32
- globalid (>= 0.3.0)
33
- activemodel (4.2.1)
34
- activesupport (= 4.2.1)
35
- builder (~> 3.1)
36
- activerecord (4.2.1)
37
- activemodel (= 4.2.1)
38
- activesupport (= 4.2.1)
39
- arel (~> 6.0)
40
- activesupport (4.2.1)
41
- i18n (~> 0.7)
42
- json (~> 1.7, >= 1.7.7)
43
- minitest (~> 5.1)
44
- thread_safe (~> 0.3, >= 0.3.4)
45
- tzinfo (~> 1.1)
46
- arel (6.0.0)
47
- builder (3.2.2)
48
- diff-lcs (1.2.5)
49
- erubis (2.7.0)
50
- globalid (0.3.5)
51
- activesupport (>= 4.1.0)
52
- i18n (0.7.0)
53
- json (1.8.3)
54
- loofah (2.0.2)
55
- nokogiri (>= 1.5.9)
56
- mail (2.6.3)
57
- mime-types (>= 1.16, < 3)
58
- mime-types (2.6.1)
59
- mini_portile (0.6.2)
60
- minitest (5.7.0)
61
- nokogiri (1.6.6.2)
62
- mini_portile (~> 0.6.0)
63
- rack (1.6.2)
64
- rack-test (0.6.3)
65
- rack (>= 1.0)
66
- rails (4.2.1)
67
- actionmailer (= 4.2.1)
68
- actionpack (= 4.2.1)
69
- actionview (= 4.2.1)
70
- activejob (= 4.2.1)
71
- activemodel (= 4.2.1)
72
- activerecord (= 4.2.1)
73
- activesupport (= 4.2.1)
74
- bundler (>= 1.3.0, < 2.0)
75
- railties (= 4.2.1)
76
- sprockets-rails
77
- rails-deprecated_sanitizer (1.0.3)
78
- activesupport (>= 4.2.0.alpha)
79
- rails-dom-testing (1.0.6)
80
- activesupport (>= 4.2.0.beta, < 5.0)
81
- nokogiri (~> 1.6.0)
82
- rails-deprecated_sanitizer (>= 1.0.1)
83
- rails-html-sanitizer (1.0.2)
84
- loofah (~> 2.0)
85
- railties (4.2.1)
86
- actionpack (= 4.2.1)
87
- activesupport (= 4.2.1)
88
- rake (>= 0.8.7)
89
- thor (>= 0.18.1, < 2.0)
90
- rake (10.4.2)
91
- rspec (3.3.0)
92
- rspec-core (~> 3.3.0)
93
- rspec-expectations (~> 3.3.0)
94
- rspec-mocks (~> 3.3.0)
95
- rspec-core (3.3.0)
96
- rspec-support (~> 3.3.0)
97
- rspec-expectations (3.3.0)
98
- diff-lcs (>= 1.2.0, < 2.0)
99
- rspec-support (~> 3.3.0)
100
- rspec-mocks (3.3.0)
101
- diff-lcs (>= 1.2.0, < 2.0)
102
- rspec-support (~> 3.3.0)
103
- rspec-support (3.3.0)
104
- sprockets (3.2.0)
105
- rack (~> 1.0)
106
- sprockets-rails (2.3.1)
107
- actionpack (>= 3.0)
108
- activesupport (>= 3.0)
109
- sprockets (>= 2.8, < 4.0)
110
- thor (0.19.1)
111
- thread_safe (0.3.5)
112
- tzinfo (1.2.2)
113
- thread_safe (~> 0.1)
114
-
115
- PLATFORMS
116
- ruby
117
-
118
- DEPENDENCIES
119
- rspec (~> 3.2)
120
- slining!
121
-
122
- BUNDLED WITH
123
- 1.10.4