daemon_controller 1.1.8 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ ZTczYjIwNTI5YjU3OTZmN2YyNzY0ZmYzOGE0MjA2YjJkNDE3OTZjYQ==
5
+ data.tar.gz: !binary |-
6
+ MTUyNDIxMmExMmNlMTFjOWQ1ZjVhODdmM2ExOTUwMTQ2YTk0MjM2MQ==
7
+ SHA512:
8
+ metadata.gz: !binary |-
9
+ NjdlNDgzYWVhNDg4NDQwMGFhMjM2Mjg3Njg2NTkyN2U1ZThiOTM0MjRjNmNl
10
+ ODBmMGQxMWIwYTc3ZmRlYTJlZmQwNGNiOGQ1MmZiNDE2MzI1NTFjZGY3NjE3
11
+ MWQ1ZjExYzc1ZTI2MDM3YTc2ZjhhZjJmMGFkZDZkMTY2NTQzYmI=
12
+ data.tar.gz: !binary |-
13
+ ZWI1NmQ1Y2U5NjRlZGUxZDE0ODA3NTMwMDQ2NWM5NjlkMjYxZTgxYTFkYTA2
14
+ ZWY2NjUxYjczZTQ5YWJjODM1MWZlODQxY2UyOTc2M2I5NjVmOGUwNTZmMWNl
15
+ MGZkZTUwODg0NDFjNmU2MzZlODI2ZTZhZmZiMmYwYjEwMWQ1ZDg=
@@ -0,0 +1,12 @@
1
+ -----BEGIN PGP SIGNATURE-----
2
+ Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
3
+ Comment: GPGTools - http://gpgtools.org
4
+
5
+ iQEcBAABAgAGBQJTFNXmAAoJECrHRaUKISqMzVcH/3xePU605BycvtYvhZDEDmIk
6
+ O27O70O3hDW6+ljjprz7aAniJMGkF3ewn34BJ35kb5xmhxi5gFdVzu/Su9un1KWw
7
+ RKy0b/5rR6SJvuFxaWAOBUtTk/YO2FyG43dTvKb12OtAha9V2F5etoTPMzPyzllH
8
+ GfIpaW0EuHqPfq/+6+rgtNGyrfXagx4udvh394RJlIsys/zrgH/gP37x/1XsHTAn
9
+ Hbe6AeHuaCLPm8PMLTsETQleeioA/Dkgju1Ag9ihvG4qlVqRFM5EA2zJvR9yWb33
10
+ 7YfgSHUSU4TYdPER4FrKQfUTbGCuJiInrxF2M1awpHSgMKC3hgnOAG9Koh9hiz8=
11
+ =wUWc
12
+ -----END PGP SIGNATURE-----
data.tar.gz.asc CHANGED
@@ -2,11 +2,11 @@
2
2
  Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
3
3
  Comment: GPGTools - http://gpgtools.org
4
4
 
5
- iQEcBAABAgAGBQJSqv2ZAAoJECrHRaUKISqMXUcH/A7ahkIB32CsvC2z7Aa+rVXD
6
- wjRUtm8fKxsz2SlFRa4RiVAwC6KFwbaRCAPMvXci1uEUecGeMdigBSYB5LFJx2em
7
- AGjZefD46oosv5+2L+B+/JOyMtox2dDKDrP841+mciDFSj4h28tCtFZIxtWt/5g1
8
- loxbFASHS23rb/N5sMuNwUEgkzDNmz2wwwGPVsWC8HEsYCBK+talACGAQEKoj93c
9
- JsSI226pFF7FsFbzUa2yj972tYl+77j6dDGaP2NDnFw7haeDJCIIb3px0RbRe8Qv
10
- KBzw5YiDCfSV7Lp/30hmpZd/Zk4mbaL3eJAjkBMBMyCOSLDX5cKuA15kAWZ37tY=
11
- =kYLp
5
+ iQEcBAABAgAGBQJTFNXmAAoJECrHRaUKISqMrV0H/0JOlPn9AjtzVCU8XgfRCpMc
6
+ oa7tJRGZqOt5Ohq68tJXuDwQpxr1ihxe8+KpAy827cQcVEzW4PL8vEe2ZdQz4YMw
7
+ 3kIsHsKhh45mv8bqcV4F60Wf4Hr2rYLOw8qC2YBNJ+JTDJcLp1z8YYsq4XGCzyRt
8
+ nDKfU9f68Q6fjcahUMrAb3Tp2Hq7msjHuRZCcxnkZJyVYtXK+bqmvjBEvBR7uX7f
9
+ l8ps86II2uSB3q794uFzdiFb3EOkm9tOSyMyXYasufxLBsr8OqjLxrD9hZUJRnvB
10
+ m/RCqhyCpyn6CJR6DeOURfrFL5wsABQTg7MxcKQJCPh9ux/mluedws2ReDDc4CA=
11
+ =ynkV
12
12
  -----END PGP SIGNATURE-----
@@ -1,4 +1,4 @@
1
- Copyright (c) 2008-2013 Phusion
1
+ Copyright (c) 2008-2014 Phusion
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  of this software and associated documentation files (the "Software"), to deal
@@ -1,5 +1,5 @@
1
1
  # daemon_controller, library for robust daemon management
2
- # Copyright (c) 2010-2013 Phusion
2
+ # Copyright (c) 2010-2014 Phusion
3
3
  #
4
4
  # Permission is hereby granted, free of charge, to any person obtaining a copy
5
5
  # of this software and associated documentation files (the "Software"), to deal
@@ -705,16 +705,16 @@ private
705
705
  if self.class.can_ping_unix_sockets?
706
706
  case type
707
707
  when :tcp
708
- socket_domain = Socket::Constants::AF_INET
709
708
  hostname, port = args
710
709
  sockaddr = Socket.pack_sockaddr_in(port, hostname)
710
+ return ping_tcp_socket(sockaddr)
711
711
  when :unix
712
712
  socket_domain = Socket::Constants::AF_LOCAL
713
713
  sockaddr = Socket.pack_sockaddr_un(args[0])
714
+ return ping_socket(socket_domain, sockaddr)
714
715
  else
715
716
  raise ArgumentError, "Unknown ping command type #{type.inspect}"
716
717
  end
717
- return ping_socket(socket_domain, sockaddr)
718
718
  else
719
719
  case type
720
720
  when :tcp
@@ -797,6 +797,14 @@ private
797
797
  socket.close if socket
798
798
  end
799
799
  end
800
+
801
+ def ping_tcp_socket(sockaddr)
802
+ begin
803
+ ping_socket(Socket::Constants::AF_INET, sockaddr)
804
+ rescue Errno::EAFNOSUPPORT
805
+ ping_socket(Socket::Constants::AF_INET6, sockaddr)
806
+ end
807
+ end
800
808
  end
801
809
 
802
810
  def ruby_interpreter
@@ -1,5 +1,5 @@
1
1
  # daemon_controller, library for robust daemon management
2
- # Copyright (c) 2010-2013 Phusion
2
+ # Copyright (c) 2010-2014 Phusion
3
3
  #
4
4
  # Permission is hereby granted, free of charge, to any person obtaining a copy
5
5
  # of this software and associated documentation files (the "Software"), to deal
@@ -21,7 +21,7 @@
21
21
 
22
22
  class DaemonController
23
23
  MAJOR = 1
24
- MINOR = 1
25
- TINY = 8
24
+ MINOR = 2
25
+ TINY = 0
26
26
  VERSION_STRING = "#{MAJOR}.#{MINOR}.#{TINY}"
27
27
  end # class DaemonController
metadata CHANGED
@@ -1,15 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: daemon_controller
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.8
5
- prerelease:
4
+ version: 1.2.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Hongli Lai
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-12-13 00:00:00.000000000 Z
11
+ date: 2014-03-03 00:00:00.000000000 Z
13
12
  dependencies: []
14
13
  description: A library for robust daemon management.
15
14
  email: software-signing@phusion.nl
@@ -17,15 +16,10 @@ executables: []
17
16
  extensions: []
18
17
  extra_rdoc_files: []
19
18
  files:
20
- - README.markdown
21
19
  - LICENSE.txt
20
+ - README.markdown
22
21
  - Rakefile
23
22
  - daemon_controller.gemspec
24
- - lib/daemon_controller/lock_file.rb
25
- - lib/daemon_controller/packaging.rb
26
- - lib/daemon_controller/spawn.rb
27
- - lib/daemon_controller/version.rb
28
- - lib/daemon_controller.rb
29
23
  - debian.template/changelog
30
24
  - debian.template/compat
31
25
  - debian.template/control.template
@@ -33,36 +27,40 @@ files:
33
27
  - debian.template/ruby-daemon-controller.install
34
28
  - debian.template/rules
35
29
  - debian.template/source/format
30
+ - lib/daemon_controller.rb
31
+ - lib/daemon_controller/lock_file.rb
32
+ - lib/daemon_controller/packaging.rb
33
+ - lib/daemon_controller/spawn.rb
34
+ - lib/daemon_controller/version.rb
36
35
  - rpm/get_distro_id.py
37
36
  - rpm/rubygem-daemon_controller.spec.template
38
37
  - spec/daemon_controller_spec.rb
39
38
  - spec/echo_server.rb
39
+ - spec/run_echo_server
40
40
  - spec/test_helper.rb
41
41
  - spec/unresponsive_daemon.rb
42
- - spec/run_echo_server
43
42
  homepage: https://github.com/FooBarWidget/daemon_controller
44
43
  licenses:
45
44
  - MIT
45
+ metadata: {}
46
46
  post_install_message:
47
47
  rdoc_options: []
48
48
  require_paths:
49
49
  - lib
50
50
  required_ruby_version: !ruby/object:Gem::Requirement
51
- none: false
52
51
  requirements:
53
52
  - - ! '>='
54
53
  - !ruby/object:Gem::Version
55
54
  version: '0'
56
55
  required_rubygems_version: !ruby/object:Gem::Requirement
57
- none: false
58
56
  requirements:
59
57
  - - ! '>='
60
58
  - !ruby/object:Gem::Version
61
59
  version: '0'
62
60
  requirements: []
63
61
  rubyforge_project:
64
- rubygems_version: 1.8.23
62
+ rubygems_version: 2.2.0
65
63
  signing_key:
66
- specification_version: 3
64
+ specification_version: 4
67
65
  summary: A library for implementing daemon management capabilities
68
66
  test_files: []
metadata.gz.asc CHANGED
@@ -2,11 +2,11 @@
2
2
  Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
3
3
  Comment: GPGTools - http://gpgtools.org
4
4
 
5
- iQEcBAABAgAGBQJSqv2ZAAoJECrHRaUKISqMUggH/2RSYFWz4Ar/hVc3hNiFT6/g
6
- /FwS91uvTfaT+dXH8Ce6S5pG+YpfHED4AE0sauPqA2Y6PUrWRBHqrokk+XOhPaGe
7
- ONNBrikL1yzQDwuPYdEN09g+XTrQwVfD7d/wbh1PySUeZ3+ccmxe1DCtHB0DIDtz
8
- 7yBGbbfbcZsdnx43wzaGKIS8jLxsLip3Ui9XPxhyJVcfJd/8Q9Tp7d9/Zd+wKMt6
9
- Ii2pjXB99Dx2KfUOWetIeFIANrxj9HkKgPaVqp5uWVSfZUkknKytaHJMNDIdQixA
10
- OB/CaYOurmEkhn9dUml72D0cWlD4wN1wcATa8bnxp8ii+566wt1tab/GQi/5llU=
11
- =I4R2
5
+ iQEcBAABAgAGBQJTFNXmAAoJECrHRaUKISqMGaMIAIm9qZ2zS1kA7avCavkyQqLU
6
+ RoiiW8ykPgCqsuJc8G2pPUBCGffxFEfn5gstez0CYwspzf/KGBP+sizLsHMsWayj
7
+ bnAv3jrfgM80TyltU+OkMRjkIzaWLoK+LrQk7oCjVgmliIt0r9yf/istLye/lrl8
8
+ 93PL0P1iEwW/xObB8SsqYsxX+qxUP3Xh5Ab7RMq1T46PejyPyBHs4vK9Q6D3eVUT
9
+ eYy6fXFQ5sr0DWwd2EVEF8UIxUoaoLwATdvvrDl1Z/8hY/V/itbylDUUROGB9GnL
10
+ nxzvZA8hSjTZObNehSZHfCqFMeizBFL9Jz/lqzdY8C3PSIgsEgYYh54QRoaVJBo=
11
+ =FEYT
12
12
  -----END PGP SIGNATURE-----