guard-unicorn 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/guard-unicorn.gemspec +1 -2
- data/lib/guard/unicorn.rb +2 -9
- metadata +2 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0b3570413e4e7a72b59ebbab3df547c31b5c0c67
|
4
|
+
data.tar.gz: f6c15b235e28e928977cc21e3adcbcf984bb8dff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c70c4fa9503d6f540c8411ec357783085cebb7b1104a19933fb0e39ac6190ba18b5956d637b33c8c3afef4ec85907c7c3c2d50a2147e0a1681bf145499939ec3
|
7
|
+
data.tar.gz: 32cfd9db916c899d69ec80c10d0eaa2be78f2fa660d1f1f4d26fc6ca1dd616d8282704e9bac2f52988a6cda85ef9aa9f7cffeb40e2899054ad60a4e25d4f3c73
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Guard::Unicorn [![Build Status](https://secure.travis-ci.org/
|
1
|
+
# Guard::Unicorn [![Build Status](https://secure.travis-ci.org/andreimaxim/guard-unicorn.png)](http://travis-ci.org/#!/andreimaxim/guard-unicorn)
|
2
2
|
|
3
3
|
`Guard::Unicorn` automatically restarts the Unicorn server using [Guard] [gu].
|
4
4
|
|
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.1.
|
6
|
+
s.version = "0.1.1"
|
7
7
|
s.authors = ["Andrei Maxim"]
|
8
8
|
s.email = ["andrei@andreimaxim.ro"]
|
9
9
|
s.homepage = "https://github.com/xhr/guard-unicorn"
|
@@ -22,5 +22,4 @@ Gem::Specification.new do |s|
|
|
22
22
|
s.add_development_dependency "rake"
|
23
23
|
s.add_development_dependency "bundler"
|
24
24
|
s.add_development_dependency "minitest"
|
25
|
-
s.add_development_dependency "guard"
|
26
25
|
end
|
data/lib/guard/unicorn.rb
CHANGED
@@ -41,7 +41,7 @@ module Guard
|
|
41
41
|
cmd << "bundle exec" if @enable_bundler
|
42
42
|
cmd << "unicorn_rails"
|
43
43
|
cmd << "-c #{@config_file}"
|
44
|
-
cmd << "-p #{@port}"
|
44
|
+
cmd << "-p #{@port}" if @port
|
45
45
|
cmd << "-l #{@socket}" if @socket
|
46
46
|
cmd << "-E #{@environment}"
|
47
47
|
cmd << "-D" if @run_as_daemon
|
@@ -105,14 +105,7 @@ module Guard
|
|
105
105
|
# Called on file(s) modifications that the Guard watches.
|
106
106
|
# @param [Array<String>] paths the changes files or paths
|
107
107
|
# @raise [:task_has_failed] when run_on_change has failed
|
108
|
-
def
|
109
|
-
reload
|
110
|
-
end
|
111
|
-
|
112
|
-
# Called on file(s) deletions that the Guard watches.
|
113
|
-
# @param [Array<String>] paths the deleted files or paths
|
114
|
-
# @raise [:task_has_failed] when run_on_change has failed
|
115
|
-
def run_on_removals(paths)
|
108
|
+
def run_on_modifications(paths)
|
116
109
|
reload
|
117
110
|
end
|
118
111
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: guard-unicorn
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
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: 2014-04-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: guard
|
@@ -66,20 +66,6 @@ dependencies:
|
|
66
66
|
- - '>='
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: guard
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - '>='
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: '0'
|
76
|
-
type: :development
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - '>='
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: '0'
|
83
69
|
description: Guard plug-in that allows you to restart Unicorn
|
84
70
|
email:
|
85
71
|
- andrei@andreimaxim.ro
|