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 +4 -4
- data/Gemfile.lock +4 -4
- data/lib/welaika_suspenders/app_builder.rb +1 -0
- data/lib/welaika_suspenders/version.rb +2 -1
- data/templates/Gemfile_clean +2 -1
- data/templates/Procfile +2 -1
- data/templates/model_spec_helper.rb +2 -0
- data/templates/rspec_config.rb +3 -0
- data/templates/unicorn.rb +21 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6e911a9c4100bc8ad23b5cfd311a67feded21cee
|
4
|
+
data.tar.gz: ee75709876fd6433c90e5b64063bf69f0e7b7231
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
69
|
-
multi_json (1.7.
|
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.
|
111
|
+
tilt (1.4.1)
|
112
112
|
treetop (1.4.12)
|
113
113
|
polyglot
|
114
114
|
polyglot (>= 0.3.1)
|
data/templates/Gemfile_clean
CHANGED
data/templates/Procfile
CHANGED
@@ -1 +1,2 @@
|
|
1
|
-
web: bundle exec
|
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
|
|
data/templates/rspec_config.rb
CHANGED
@@ -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.
|
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-
|
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
|