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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 69afe7689bfc2756565f14af26046045be44c42d
4
- data.tar.gz: 33452023117e53088fbd85e54cd835bdc561aabc
3
+ metadata.gz: 0b3570413e4e7a72b59ebbab3df547c31b5c0c67
4
+ data.tar.gz: f6c15b235e28e928977cc21e3adcbcf984bb8dff
5
5
  SHA512:
6
- metadata.gz: bd3bb3396e21fff141fb2202b968ab8f8ca642be81cf46041622aaaa633afd1822d87623b88c980e58eccfe4388df1151283853f3bcc9e1156573e34d6eec861
7
- data.tar.gz: b7d9ec29ef48e2fe643d2cf5e8dc1eac3174c0222eb2ebfb7f3ce424e8f87794111da89fc080ca470ae404ebd4ba98a614d5f06a426696fee79c2a8ed1229aaa
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/xhr/guard-unicorn.png)](http://travis-ci.org/#!/xhr/guard-unicorn)
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
 
@@ -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.0"
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}" unless @socket
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 run_on_changes(paths)
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.0
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: 2013-07-10 00:00:00.000000000 Z
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