guard-unicorn 0.1.3 → 0.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.
- checksums.yaml +4 -4
- data/README.md +2 -1
- data/guard-unicorn.gemspec +1 -1
- data/lib/guard/unicorn.rb +3 -2
- metadata +9 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 411ef14ce16718ceab686b890ab8b74d241d4b2f
|
4
|
+
data.tar.gz: b6a8f89e0271c20aff52246d2d33bc7b71fdeb13
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ba75bdd177d8f8c964d4df53d414eda9f13cf7205b1f109aef49801e344e751cd0bb2a17a042c2df82747bb7e0027b942e5d3e7185d7c7673ecebf19bf32dccf
|
7
|
+
data.tar.gz: 6f8f6571dd140271e5b33fda12c16a06c481667d9075acf515aabef40ae8cd7f6dd5c90a2d643035ce21ffc1f314b7eee6a18294abd020b0a1779e0a24132a83
|
data/README.md
CHANGED
@@ -73,4 +73,5 @@ Available options:
|
|
73
73
|
* `:pid_file` path to the Unicorn PID file. Defaults to `tmp/pids/unicorn.pid`
|
74
74
|
* `:preloading` is Unicorn configured to preload the application? Defaults to
|
75
75
|
`false`.
|
76
|
-
* `:port` on what port to run Unicorn. Defaults to `
|
76
|
+
* `:port` on what port to run Unicorn. Defaults to `8080`.
|
77
|
+
* `:unicorn_rails` use `unicorn_rails` command instead of `unicorn`. [For ancient Rails versions.](http://unicorn.bogomips.org/README.html) Defaults to `false`.
|
data/guard-unicorn.gemspec
CHANGED
@@ -3,7 +3,7 @@ $:.push File.expand_path("../lib", __FILE__)
|
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = "guard-unicorn"
|
6
|
-
s.version = "0.
|
6
|
+
s.version = "0.2.0"
|
7
7
|
s.authors = ["Andrei Maxim"]
|
8
8
|
s.email = ["andrei@andreimaxim.ro"]
|
9
9
|
s.homepage = "https://github.com/xhr/guard-unicorn"
|
data/lib/guard/unicorn.rb
CHANGED
@@ -6,7 +6,7 @@ module Guard
|
|
6
6
|
# Sensible defaults for Rails projects
|
7
7
|
DEFAULT_PID_PATH = File.join("tmp", "pids", "unicorn.pid")
|
8
8
|
DEFAULT_CONFIG_PATH = File.join("config", "unicorn.rb")
|
9
|
-
DEFAULT_PORT =
|
9
|
+
DEFAULT_PORT = 8080 # Unicorn defaults to 8080
|
10
10
|
DEFAULT_ENVIRONMENT = "development"
|
11
11
|
|
12
12
|
# Initialize a Guard.
|
@@ -26,6 +26,7 @@ module Guard
|
|
26
26
|
@port = options.fetch(:port, DEFAULT_PORT)
|
27
27
|
@environment = options.fetch(:environment, DEFAULT_ENVIRONMENT)
|
28
28
|
@socket = options.fetch(:socket, nil)
|
29
|
+
@unicorn_rails = options.fetch(:unicorn_rails, false)
|
29
30
|
|
30
31
|
super
|
31
32
|
end
|
@@ -38,7 +39,7 @@ module Guard
|
|
38
39
|
|
39
40
|
cmd = []
|
40
41
|
cmd << "bundle exec" if @enable_bundler
|
41
|
-
cmd <<
|
42
|
+
cmd << (@unicorn_rails ? 'unicorn_rails' : 'unicorn')
|
42
43
|
cmd << "-c #{@config_file}"
|
43
44
|
cmd << "-p #{@port}" if @port
|
44
45
|
cmd << "-l #{@socket}" if @socket
|
metadata
CHANGED
@@ -1,27 +1,27 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: guard-unicorn
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrei Maxim
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-11-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: guard
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '1.1'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.1'
|
27
27
|
description: Guard plug-in that allows you to restart Unicorn
|
@@ -31,8 +31,8 @@ executables: []
|
|
31
31
|
extensions: []
|
32
32
|
extra_rdoc_files: []
|
33
33
|
files:
|
34
|
-
- .gitignore
|
35
|
-
- .travis.yml
|
34
|
+
- ".gitignore"
|
35
|
+
- ".travis.yml"
|
36
36
|
- Gemfile
|
37
37
|
- README.md
|
38
38
|
- Rakefile
|
@@ -49,17 +49,17 @@ require_paths:
|
|
49
49
|
- lib
|
50
50
|
required_ruby_version: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- -
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
56
56
|
requirements:
|
57
|
-
- -
|
57
|
+
- - ">="
|
58
58
|
- !ruby/object:Gem::Version
|
59
59
|
version: '0'
|
60
60
|
requirements: []
|
61
61
|
rubyforge_project: guard-unicorn
|
62
|
-
rubygems_version: 2.
|
62
|
+
rubygems_version: 2.4.5
|
63
63
|
signing_key:
|
64
64
|
specification_version: 4
|
65
65
|
summary: Guard for Unicorn
|