rtfs 0.1.1 → 0.1.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.
@@ -5,7 +5,7 @@
5
5
  module RTFS::Version
6
6
  MAJOR = 0
7
7
  MINOR = 1
8
- REVISION = 1
8
+ REVISION = 2
9
9
 
10
10
  class << self
11
11
  # Returns X.Y.Z formatted version string
@@ -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
- @ns_addrs[rand(@ns_addrs.size)]
29
+
30
+ #现在第一行是50,表示频次,访问50次就要更新
31
+ @ns_addrs[rand(@ns_addrs.size - 1) + 1]
22
32
  end
23
33
 
24
34
  # 获取文件
@@ -1,7 +1,7 @@
1
1
  # coding: utf-8
2
2
  Gem::Specification.new do |s|
3
3
  s.name = "rtfs"
4
- s.version = "0.1.1"
4
+ s.version = "0.1.2"
5
5
  s.platform = Gem::Platform::RUBY
6
6
  s.has_rdoc = true
7
7
  s.extra_rdoc_files = ["README.md","CHANGES.md","MIT-LICENSE",]
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.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-06-20 00:00:00.000000000 Z
14
+ date: 2012-11-23 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: nice-ffi