guard-unicorn 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- data/guard-unicorn.gemspec +1 -1
- data/lib/guard/unicorn.rb +6 -7
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
ZWM0MDZlYjYyMmJkYTZlODQzZTcwMzAxN2VkYTg4NDczY2EyY2VlZA==
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 7119268b4c03e937c7922256a0840bc8ebd364c2
|
4
|
+
data.tar.gz: e7ea5b4917f0933b5a7c8d258a49cc3a08e29ab8
|
7
5
|
SHA512:
|
8
|
-
metadata.gz:
|
9
|
-
|
10
|
-
NGMyZGFmMDUyOWJjMDFjOGU1MDAyODA3NGE2YjUxODBhYWYzMDk4Zjk5Njc4
|
11
|
-
NjgwNzhjNDlkOGU0MzRiNmQ0ODRkMTU5MzE5YzhhOGU5ODgyOGQ=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
NDY5NTNlZDZjMmM5Nzc1YjA2MmFkNmUzNDc3Nzg0YzE0ZGVmZjViZmVmNTVl
|
14
|
-
ZjE1ZjA1YjliYTFmMWJkOWYxMDUxNzgzNzIzN2ZiOGU4OTgyMmJkMWUwZmIy
|
15
|
-
ZGU2NmFkNWQ1MjdhYmEwMWZhYjczMGEyZmQ1MWI1YjJjY2E4OWE=
|
6
|
+
metadata.gz: e20dc146dae4644ce40c8ffe0427726e125b408e8d479fa50473da05f424fb72e1b9a9495f237ef48a33cd7eec87e3c98ebeceac7b69a9b48740ac9720789715
|
7
|
+
data.tar.gz: 65c3d4f81f53cabfc1d141fd42a4d6ba5dc6be8e19acafb3773147a3a174a3d9f20b5ca46f91c7a8dcf6dd14695b9ee28ffbda66eb6b331f9ce432c34aa5c7c4
|
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.3"
|
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
@@ -1,8 +1,7 @@
|
|
1
1
|
require 'guard'
|
2
|
-
require 'guard/guard'
|
3
2
|
|
4
3
|
module Guard
|
5
|
-
class Unicorn <
|
4
|
+
class Unicorn < Plugin
|
6
5
|
|
7
6
|
# Sensible defaults for Rails projects
|
8
7
|
DEFAULT_PID_PATH = File.join("tmp", "pids", "unicorn.pid")
|
@@ -11,12 +10,12 @@ module Guard
|
|
11
10
|
DEFAULT_ENVIRONMENT = "development"
|
12
11
|
|
13
12
|
# Initialize a Guard.
|
14
|
-
# @param [Array<Guard::Watcher>] watchers the Guard file watchers
|
15
13
|
# @param [Hash] options the custom Guard options
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
watchers << Watcher.new( /^
|
14
|
+
# @param Hash[:watchers] [<Guard::Watcher>] watchers the Guard file watchers
|
15
|
+
def initialize(options = {})
|
16
|
+
if options[:watchers].empty?
|
17
|
+
options[:watchers] << Watcher.new( /^app\/(controllers|models|helpers)\/.+\.rb$/ )
|
18
|
+
options[:watchers] << Watcher.new( /^lib\/.+\.rb$/ )
|
20
19
|
end
|
21
20
|
|
22
21
|
@run_as_daemon = options.fetch(:daemonize, false)
|
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.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrei Maxim
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-12-11 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
|
@@ -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.0.14
|
63
63
|
signing_key:
|
64
64
|
specification_version: 4
|
65
65
|
summary: Guard for Unicorn
|