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 +1 -1
- data/lib/dyndyndong/services/generic.rb +3 -3
- data/lib/dyndyndong/version.rb +1 -1
- data/lib/dyndyndong.rb +1 -1
- metadata +3 -2
data/bin/dyndyndong
CHANGED
@@ -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
|
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
|
76
|
-
args.first
|
75
|
+
define_method 'MSGTABLE' do
|
76
|
+
args.first
|
77
77
|
end
|
78
78
|
}
|
79
79
|
when 'update_host'
|
data/lib/dyndyndong/version.rb
CHANGED
data/lib/dyndyndong.rb
CHANGED
metadata
CHANGED
@@ -6,7 +6,8 @@ version: !ruby/object:Gem::Version
|
|
6
6
|
- 0
|
7
7
|
- 0
|
8
8
|
- 4
|
9
|
-
|
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:
|
18
|
+
date: 2011-08-24 00:00:00 +02:00
|
18
19
|
default_executable:
|
19
20
|
dependencies:
|
20
21
|
- !ruby/object:Gem::Dependency
|