rtfs 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rtfs/version.rb +1 -1
- data/lib/rtfs/web_service.rb +11 -1
- data/rtfs.gemspec +1 -1
- metadata +2 -2
data/lib/rtfs/version.rb
CHANGED
data/lib/rtfs/web_service.rb
CHANGED
@@ -17,8 +17,18 @@ module RTFS
|
|
17
17
|
end
|
18
18
|
|
19
19
|
# 随机取一个 ns_addr 用于访问
|
20
|
+
# 50
|
21
|
+
# 10.246.65.133:3900
|
22
|
+
# 10.246.65.132:3900
|
23
|
+
# 10.246.65.131:3900
|
24
|
+
# 10.246.65.130:3900
|
25
|
+
# 10.246.73.70:3900
|
26
|
+
# 10.246.73.71:3900
|
27
|
+
# 10.246.73.72:3900
|
20
28
|
def ns_addr
|
21
|
-
|
29
|
+
|
30
|
+
#现在第一行是50,表示频次,访问50次就要更新
|
31
|
+
@ns_addrs[rand(@ns_addrs.size - 1) + 1]
|
22
32
|
end
|
23
33
|
|
24
34
|
# 获取文件
|
data/rtfs.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rtfs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2012-
|
14
|
+
date: 2012-11-23 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: nice-ffi
|