dyndyndong 0.0.4 → 0.0.4.1

Sign up to get free protection for your applications and to get access to all the features.
data/bin/dyndyndong CHANGED
@@ -267,7 +267,7 @@ if SERVICES != {:dyndns=>[],:afraid=>[]}
267
267
  end
268
268
  }
269
269
 
270
- SERVICES[:zoneedit],each {|zoneedit|
270
+ SERVICES[:zoneedit].each {|zoneedit|
271
271
  z = DynDynDong::ZoneEdit.new
272
272
  z.username = zoneedit[:username]
273
273
  z.password = zoneedit[:password]
@@ -60,7 +60,7 @@ class Generic < Service
60
60
  URI.escape(h), getip(h), offline?(offline)])
61
61
  req.basic_auth @user, @pass
62
62
  x = http.request(req).body.gsub(/#{Regexp.escape(@ip)}/, '').strip
63
- MSGTABLE(x)
63
+ MSGTABLE[x]
64
64
  }
65
65
  end
66
66
 
@@ -72,8 +72,8 @@ class Generic < Service
72
72
  raise ArgumentError, "wrong type" if !args.first.is_a?(Hash)
73
73
 
74
74
  self.class_eval {
75
- define_method 'MSGTABLE' do |x|
76
- args.first[x]
75
+ define_method 'MSGTABLE' do
76
+ args.first
77
77
  end
78
78
  }
79
79
  when 'update_host'
@@ -19,6 +19,6 @@
19
19
 
20
20
  module DynDynDong
21
21
 
22
- VERSION = '0.0.4'
22
+ VERSION = '0.0.4.1'
23
23
 
24
24
  end
data/lib/dyndyndong.rb CHANGED
@@ -16,6 +16,6 @@
16
16
  # You should have received a copy of the GNU Affero General Public License
17
17
  # along with dyndyndong. If not, see <http://www.gnu.org/licenses/>.
18
18
  #++
19
- $DEBUG = true
19
+
20
20
  require 'dyndyndong/client'
21
21
  require 'dyndyndong/daemon'
metadata CHANGED
@@ -6,7 +6,8 @@ version: !ruby/object:Gem::Version
6
6
  - 0
7
7
  - 0
8
8
  - 4
9
- version: 0.0.4
9
+ - 1
10
+ version: 0.0.4.1
10
11
  platform: ruby
11
12
  authors:
12
13
  - shura
@@ -14,7 +15,7 @@ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2010-12-16 00:00:00 +01:00
18
+ date: 2011-08-24 00:00:00 +02:00
18
19
  default_executable:
19
20
  dependencies:
20
21
  - !ruby/object:Gem::Dependency