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 CHANGED
@@ -1,3 +1,7 @@
1
+ === 1.3.1 (2012-11-15)
2
+ * Fix bugs in using/preserving configuration with explicit :type
3
+ specified (new in 1.3.0)
4
+
1
5
  === 1.3.0 (2012-11-8)
2
6
  * Add DomainKey with optional :type to support configuring of
3
7
  a :domain,:type specific HostQueue
data/Manifest.txt CHANGED
@@ -25,4 +25,4 @@ test/test_redirect_handler.rb
25
25
  test/test_visit_manager.rb
26
26
  test/test_visit_queue.rb
27
27
  test/test_visit_url.rb
28
- lib/iudex-core/iudex-core-1.3.0.jar
28
+ lib/iudex-core/iudex-core-1.3.1.jar
@@ -16,7 +16,7 @@
16
16
 
17
17
  module Iudex
18
18
  module Core
19
- VERSION = '1.3.0'
19
+ VERSION = '1.3.1'
20
20
 
21
21
  LIB_DIR = File.dirname( __FILE__ ) # :nodoc:
22
22
  end
data/pom.xml CHANGED
@@ -5,7 +5,7 @@
5
5
  <groupId>iudex</groupId>
6
6
  <artifactId>iudex-core</artifactId>
7
7
  <packaging>jar</packaging>
8
- <version>1.3.0</version>
8
+ <version>1.3.1</version>
9
9
  <name>Iudex Core System</name>
10
10
 
11
11
  <parent>
@@ -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.0
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-08 00:00:00.000000000 Z
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.0.jar
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: