dyndyndong 0.0.4.1 → 0.0.4.2

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.
@@ -4,7 +4,7 @@
4
4
  #
5
5
  # This file is part of DynDynDong.
6
6
  #
7
- # DynDynDong is free software: you can redistribute it and/or modify
7
+ # DynDynDong is free software: you can redistribute it and/or modify
8
8
  # it under the terms of the GNU Affero General Public License as published
9
9
  # by the Free Software Foundation, either version 3 of the License, or
10
10
  # (at your option) any later version.
@@ -88,7 +88,7 @@ while i < ARGV.size
88
88
  else
89
89
  LOGFILE.replace ARGV[i].gsub(/^-l/, '')
90
90
  end
91
- STDERR.reopen(File.open(LOGFILE))
91
+ STDERR.reopen(File.open(LOGFILE, 'w'))
92
92
  STDOUT.reopen(STDERR)
93
93
  parsed = true
94
94
  when /^-P/, '--pidfile'
@@ -257,7 +257,7 @@ if SERVICES != {:dyndns=>[],:afraid=>[]}
257
257
  d.offline offline
258
258
  }
259
259
  }
260
-
260
+
261
261
  SERVICES[:afraid].each {|afraid|
262
262
  a = DynDynDong::Afraid.new
263
263
  begin
@@ -301,11 +301,12 @@ end
301
301
  if DAEMONIZE
302
302
  Daemons.daemonize
303
303
 
304
- File.open(PIDFILE) {|f|
304
+ File.open(PIDFILE, 'w') {|f|
305
305
  f.write(Process.pid.to_s)
306
306
  }
307
307
 
308
- STDOUT.reopen(File.open(LOGFILE))
308
+ File.open(LOGFILE, 'w') {|f|}
309
+ STDOUT.reopen(File.open(LOGFILE, 'w'))
309
310
  STDERR.reopen(STDOUT)
310
311
 
311
312
  DynDynDong::Client.start_loop
@@ -3,7 +3,7 @@
3
3
  #
4
4
  # This file is part of DynDynDong.
5
5
  #
6
- # DynDynDong is free software: you can redistribute it and/or modify
6
+ # DynDynDong is free software: you can redistribute it and/or modify
7
7
  # it under the terms of the GNU Affero General Public License as published
8
8
  # by the Free Software Foundation, either version 3 of the License, or
9
9
  # (at your option) any later version.
@@ -17,5 +17,6 @@
17
17
  # along with dyndyndong. If not, see <http://www.gnu.org/licenses/>.
18
18
  #++
19
19
 
20
+ require 'dyndyndong/version'
20
21
  require 'dyndyndong/client'
21
22
  require 'dyndyndong/daemon'
@@ -3,7 +3,7 @@
3
3
  #
4
4
  # This file is part of DynDynDong.
5
5
  #
6
- # DynDynDong is free software: you can redistribute it and/or modify
6
+ # DynDynDong is free software: you can redistribute it and/or modify
7
7
  # it under the terms of the GNU Affero General Public License as published
8
8
  # by the Free Software Foundation, either version 3 of the License, or
9
9
  # (at your option) any later version.
@@ -19,6 +19,6 @@
19
19
 
20
20
  module DynDynDong
21
21
 
22
- VERSION = '0.0.4.1'
22
+ VERSION = '0.0.4.2'
23
23
 
24
24
  end
metadata CHANGED
@@ -1,88 +1,73 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: dyndyndong
3
- version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 0
8
- - 4
9
- - 1
10
- version: 0.0.4.1
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.4.2
5
+ prerelease:
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - shura
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2011-08-24 00:00:00 +02:00
19
- default_executable:
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
12
+ date: 2012-12-06 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
22
15
  name: daemons
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
25
17
  none: false
26
- requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- segments:
30
- - 0
31
- version: "0"
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
32
22
  type: :runtime
33
- version_requirements: *id001
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
34
30
  description: Ruby written dyndns client.
35
31
  email: shura1991@gmail.com
36
- executables:
32
+ executables:
37
33
  - dyndyndong
38
34
  extensions: []
39
-
40
35
  extra_rdoc_files: []
41
-
42
- files:
43
- - lib/dyndyndong.rb
44
- - lib/dyndyndong/dyndyndong.rb
45
- - lib/dyndyndong/services.rb
46
- - lib/dyndyndong/services/zoneedit.rb
36
+ files:
37
+ - lib/dyndyndong/client.rb
38
+ - lib/dyndyndong/services/no-ip.rb
47
39
  - lib/dyndyndong/services/dyndns.rb
48
40
  - lib/dyndyndong/services/generic.rb
41
+ - lib/dyndyndong/services/zoneedit.rb
49
42
  - lib/dyndyndong/services/afraid.rb
50
- - lib/dyndyndong/services/no-ip.rb
51
- - lib/dyndyndong/daemon.rb
52
- - lib/dyndyndong/client.rb
53
43
  - lib/dyndyndong/version.rb
44
+ - lib/dyndyndong/daemon.rb
45
+ - lib/dyndyndong/services.rb
46
+ - lib/dyndyndong/dyndyndong.rb
47
+ - lib/dyndyndong.rb
54
48
  - bin/dyndyndong
55
- has_rdoc: true
56
49
  homepage: http://github.com/shurizzle/DynDynDong
57
50
  licenses: []
58
-
59
51
  post_install_message:
60
52
  rdoc_options: []
61
-
62
- require_paths:
53
+ require_paths:
63
54
  - lib
64
- required_ruby_version: !ruby/object:Gem::Requirement
55
+ required_ruby_version: !ruby/object:Gem::Requirement
65
56
  none: false
66
- requirements:
67
- - - ">="
68
- - !ruby/object:Gem::Version
69
- segments:
70
- - 0
71
- version: "0"
72
- required_rubygems_version: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - ! '>='
59
+ - !ruby/object:Gem::Version
60
+ version: '0'
61
+ required_rubygems_version: !ruby/object:Gem::Requirement
73
62
  none: false
74
- requirements:
75
- - - ">="
76
- - !ruby/object:Gem::Version
77
- segments:
78
- - 0
79
- version: "0"
63
+ requirements:
64
+ - - ! '>='
65
+ - !ruby/object:Gem::Version
66
+ version: '0'
80
67
  requirements: []
81
-
82
68
  rubyforge_project:
83
- rubygems_version: 1.3.7
69
+ rubygems_version: 1.8.23
84
70
  signing_key:
85
71
  specification_version: 3
86
72
  summary: Ruby written client to update dynamic dns, it supports many services.
87
73
  test_files: []
88
-