welaika-suspenders 1.2.9 → 1.2.10

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: 47da58d76b9afa5ebde916182222a2f43273c672
4
- data.tar.gz: 9627260b9bc659f6810928d1a9791c419d5f1e30
3
+ metadata.gz: 6e911a9c4100bc8ad23b5cfd311a67feded21cee
4
+ data.tar.gz: ee75709876fd6433c90e5b64063bf69f0e7b7231
5
5
  SHA512:
6
- metadata.gz: 5729b3dd74107dbf1eff0ac3614325a1d106af0749bdd72a9e299f5d9d16976fa8effdb0f3be79d9553290d851141e668bc5c04413e8e773781995527bb54492
7
- data.tar.gz: 4b6d5f5b6a6f11d6feb84a3a4335fdda810ea57d228891ca336a1dfc8d43f7a7f2a0c3f7eea8c98995ca6b3147cb47ca94730c76c672fbc7aa738d7fdda7b8ab
6
+ metadata.gz: 55ff84d327b1b29fe4f84b62205e92f5af7fc4eda6a4148dae5337729c40922454c792171107e1de2af015b3f00fe425dfec49aac891a75e4b00b79b488e0f6a
7
+ data.tar.gz: 973bf6aedf39db63ead37ac0bd63e1ad7b20a178f55680a1083c72376fa1613bb48cf0ecb591e920aaa540edca3e745ca9f2843052de875fc7c23ef454641f2d
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- welaika-suspenders (1.2.9)
4
+ welaika-suspenders (1.2.10)
5
5
  bundler
6
6
  hub
7
7
  rails
@@ -65,8 +65,8 @@ GEM
65
65
  i18n (>= 0.4.0)
66
66
  mime-types (~> 1.16)
67
67
  treetop (~> 1.4.8)
68
- mime-types (1.22)
69
- multi_json (1.7.2)
68
+ mime-types (1.23)
69
+ multi_json (1.7.3)
70
70
  polyglot (0.3.3)
71
71
  rack (1.4.5)
72
72
  rack-cache (1.2)
@@ -108,7 +108,7 @@ GEM
108
108
  tilt (~> 1.1, != 1.3.0)
109
109
  term-ansicolor (1.0.7)
110
110
  thor (0.18.1)
111
- tilt (1.3.7)
111
+ tilt (1.4.1)
112
112
  treetop (1.4.12)
113
113
  polyglot
114
114
  polyglot (>= 0.3.1)
@@ -200,6 +200,7 @@ module WelaikaSuspenders
200
200
  copy_file 'sample.env', '.sample.env'
201
201
  copy_file 'sample.env', '.env'
202
202
  copy_file 'Procfile', 'Procfile'
203
+ copy_file 'unicorn.rb', 'config/unicorn.rb'
203
204
  end
204
205
 
205
206
  def setup_stylesheets
@@ -1,3 +1,4 @@
1
1
  module WelaikaSuspenders
2
- VERSION = '1.2.9'
2
+ VERSION = '1.2.10'
3
3
  end
4
+
@@ -12,7 +12,7 @@ gem 'showcase'
12
12
  gem 'simple_form'
13
13
  gem 'slim-rails'
14
14
  gem 'strong_parameters'
15
- gem 'thin'
15
+ gem 'unicorn'
16
16
 
17
17
  group :assets do
18
18
  gem 'coffee-rails'
@@ -49,3 +49,4 @@ end
49
49
  group :staging, :production do
50
50
  gem 'newrelic_rpm'
51
51
  end
52
+
data/templates/Procfile CHANGED
@@ -1 +1,2 @@
1
- web: bundle exec rails server thin -p $PORT -e $RACK_ENV
1
+ web: bundle exec unicorn -p $PORT -c ./config/unicorn.rb
2
+
@@ -6,6 +6,8 @@ db_yml_file = File.expand_path('config/database.yml')
6
6
  db_config = YAML.load_file(db_yml_file)
7
7
  ActiveRecord::Base.establish_connection(db_config['test'])
8
8
 
9
+ require File.join(RAILS_ROOT, "spec/support/database_cleaner.rb")
10
+
9
11
  # add activerecord plugins here
10
12
  # require 'friendly_id'
11
13
 
@@ -1,3 +1,5 @@
1
+ require 'bourne'
2
+
1
3
  RSpec.configure do |config|
2
4
  config.expect_with :rspec do |c|
3
5
  c.syntax = :expect
@@ -10,3 +12,4 @@ RSpec.configure do |config|
10
12
  config.infer_base_class_for_anonymous_controllers = false
11
13
  end
12
14
  end
15
+
@@ -0,0 +1,21 @@
1
+ worker_processes Integer(ENV["WEB_CONCURRENCY"] || 3)
2
+ timeout 15
3
+ preload_app true
4
+
5
+ before_fork do |server, worker|
6
+ Signal.trap 'TERM' do
7
+ puts 'Unicorn master intercepting TERM and sending myself QUIT instead'
8
+ Process.kill 'QUIT', Process.pid
9
+ end
10
+
11
+ defined?(ActiveRecord::Base) and ActiveRecord::Base.connection.disconnect!
12
+ end
13
+
14
+ after_fork do |server, worker|
15
+ Signal.trap 'TERM' do
16
+ puts 'Unicorn worker intercepting TERM and doing nothing. Wait for master to send QUIT'
17
+ end
18
+
19
+ defined?(ActiveRecord::Base) and ActiveRecord::Base.establish_connection
20
+ end
21
+
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: welaika-suspenders
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.9
4
+ version: 1.2.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - thoughtbot
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-15 00:00:00.000000000 Z
12
+ date: 2013-05-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -143,6 +143,7 @@ files:
143
143
  - templates/strong_parameters.rb
144
144
  - templates/suspenders_gitignore
145
145
  - templates/suspenders_layout.html.slim.erb
146
+ - templates/unicorn.rb
146
147
  - templates/unit_spec_helper.rb
147
148
  - welaika-suspenders.gemspec
148
149
  homepage: http://github.com/welaika/welaika-suspenders