mina-unicorn 1.1.0 → 2.0.0

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: 165c8c319e1a7a5a66d45b57b2dcf05a167c14c7
4
- data.tar.gz: 70dbb8aa1791cc8b3763e3eeaead1be4c0cff1e5
3
+ metadata.gz: 29b8b82a3379104e1c0f0ffbfbd88ca19b7801b5
4
+ data.tar.gz: 0dc6471f1ead8ff85fc5f5961d8cb04e60fd7fed
5
5
  SHA512:
6
- metadata.gz: 91bee16e3d06774c9dd210b2c41e898e613ff389a985ed2bf11be3b6569cd6e56e9de1b6d0265d9b2ca57a0810e96fab23239191452725b745079ded4d499bb2
7
- data.tar.gz: 88dd1eacd22165969957b10820de8fbe71239b5496843607f0344f6877c0fc5b0a0605a3c1fa7ed970b9a0b9e13f09327ba1d220f360a6538e5be91288a0bdf2
6
+ metadata.gz: da991aa68d64807098d4b570fa767a36b2fee388542685ec6c82a7bc10c9ad130bbaeba0344d83ce2a1bfa12fe33c705d8700f7894aaac0c1711739003a90e5d
7
+ data.tar.gz: 861b8834c13bd7df03b462a11b76e5f2d4ca8df8471aaf7f60e0b4402dc6c3ce68fb40ef8a01d86d75cc9332645e97bfa8fcc8f97b292b6897b71a2ccada40c6
@@ -5,31 +5,30 @@ require "mina/unicorn/utility"
5
5
  namespace :unicorn do
6
6
  include Mina::Unicorn::Utility
7
7
 
8
- # Following recommendations from http://unicorn.bogomips.org/unicorn_1.html#rack-environment
9
- set :unicorn_env, -> { fetch(:rails_env) == "development" ? "development" : "deployment" }
8
+ set :unicorn_env, -> { fetch(:rails_env) || fetch(:rack_env) || "deployment" }
10
9
  set :unicorn_config, -> { "#{fetch(:current_path)}/config/unicorn.rb" }
11
10
  set :unicorn_pid, -> { "#{fetch(:current_path)}/tmp/pids/unicorn.pid" }
12
- set :unicorn_cmd, -> { "#{fetch(:bundle_prefix)} unicorn" }
11
+ set :unicorn_cmd, -> { "#{fetch(:bundle_prefix, "#{fetch(:bundle_bin)} exec")} unicorn" }
13
12
  set :unicorn_restart_sleep_time, -> { 2 }
14
13
  set :bundle_gemfile, -> { "#{fetch(:current_path)}/Gemfile" }
15
14
 
16
15
  desc "Start Unicorn master process"
17
- task start: :environment do
16
+ task start: :remote_environment do
18
17
  command start_unicorn
19
18
  end
20
19
 
21
20
  desc "Stop Unicorn"
22
- task stop: :environment do
21
+ task stop: :remote_environment do
23
22
  command kill_unicorn("QUIT")
24
23
  end
25
24
 
26
25
  desc "Immediately shutdown Unicorn"
27
- task shutdown: :environment do
26
+ task shutdown: :remote_environment do
28
27
  command kill_unicorn("TERM")
29
28
  end
30
29
 
31
30
  desc "Restart unicorn service"
32
- task restart: :environment do
31
+ task restart: :remote_environment do
33
32
  command restart_unicorn
34
33
  end
35
34
  end
@@ -1,5 +1,5 @@
1
1
  module Mina
2
2
  module Unicorn
3
- VERSION = "1.1.0"
3
+ VERSION = "2.0.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mina-unicorn
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - tab
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-02-18 00:00:00.000000000 Z
12
+ date: 2018-03-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: mina
@@ -91,7 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
91
91
  version: '0'
92
92
  requirements: []
93
93
  rubyforge_project:
94
- rubygems_version: 2.5.2
94
+ rubygems_version: 2.6.13
95
95
  signing_key:
96
96
  specification_version: 4
97
97
  summary: Unicorn tasks for Mina