iudex-core 1.3.0-java → 1.3.1-java
Sign up to get free protection for your applications and to get access to all the features.
- data/History.rdoc +4 -0
- data/Manifest.txt +1 -1
- data/lib/iudex-core/base.rb +1 -1
- data/lib/iudex-core/{iudex-core-1.3.0.jar → iudex-core-1.3.1.jar} +0 -0
- data/pom.xml +1 -1
- data/test/test_visit_queue.rb +13 -0
- metadata +3 -3
data/History.rdoc
CHANGED
data/Manifest.txt
CHANGED
data/lib/iudex-core/base.rb
CHANGED
Binary file
|
data/pom.xml
CHANGED
data/test/test_visit_queue.rb
CHANGED
@@ -126,10 +126,18 @@ class TestVisitQueue < MiniTest::Unit::TestCase
|
|
126
126
|
end
|
127
127
|
|
128
128
|
def test_configure_type
|
129
|
+
@visit_q.config( :delay => 50, :cons => 1 )
|
129
130
|
@visit_q.config( :domain => 'h2.com',
|
130
131
|
:delay => 75, :cons => 2 )
|
131
132
|
@visit_q.config( :domain => 'h2.com', :type => 'ALT',
|
133
|
+
:rate => 20, :cons => 1 )
|
134
|
+
@visit_q.config( :domain => 'h1.com',
|
132
135
|
:delay => 50, :cons => 1 )
|
136
|
+
@visit_q.config( :domain => 'h1.com', :type => 'ALT',
|
137
|
+
:delay => 50, :cons => 1 )
|
138
|
+
@visit_q = @visit_q.clone
|
139
|
+
|
140
|
+
LOG.debug { "As configured:\n" + @visit_q.dump }
|
133
141
|
|
134
142
|
[ %w[ h2 a 2.2 ],
|
135
143
|
%w[ w.h2 b 2.1 ],
|
@@ -141,6 +149,9 @@ class TestVisitQueue < MiniTest::Unit::TestCase
|
|
141
149
|
@visit_q.add( order( oinp ) )
|
142
150
|
|
143
151
|
end
|
152
|
+
|
153
|
+
LOG.debug { "After add:\n" + @visit_q.dump }
|
154
|
+
|
144
155
|
assert_equal( 3, @visit_q.host_count, "host count" )
|
145
156
|
|
146
157
|
expected = [ %w[ h2:ALT c 3.2 ],
|
@@ -155,6 +166,8 @@ class TestVisitQueue < MiniTest::Unit::TestCase
|
|
155
166
|
assert_equal( o, acquire_order, p += 1 )
|
156
167
|
end
|
157
168
|
|
169
|
+
LOG.debug { "After consumed:\n" + @visit_q.dump }
|
170
|
+
|
158
171
|
assert_queue_empty
|
159
172
|
end
|
160
173
|
|
metadata
CHANGED
@@ -2,14 +2,14 @@
|
|
2
2
|
name: iudex-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 1.3.
|
5
|
+
version: 1.3.1
|
6
6
|
platform: java
|
7
7
|
authors:
|
8
8
|
- David Kellum
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-11-
|
12
|
+
date: 2012-11-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rjack-slf4j
|
@@ -193,7 +193,7 @@ files:
|
|
193
193
|
- test/test_visit_manager.rb
|
194
194
|
- test/test_visit_queue.rb
|
195
195
|
- test/test_visit_url.rb
|
196
|
-
- lib/iudex-core/iudex-core-1.3.
|
196
|
+
- lib/iudex-core/iudex-core-1.3.1.jar
|
197
197
|
homepage: http://iudex.gravitext.com
|
198
198
|
licenses: []
|
199
199
|
post_install_message:
|