iudex-da 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,9 @@
1
+ === 1.3.1 (2012-10-13)
2
+ * Fix regression introduced in 1.3.0, causing age adjusted priority to
3
+ be written back to the database as the normal priority value. Now
4
+ PRIORITY_ADJUSTED is set and BaseTransformer accounts for this by
5
+ prefering the DB current, unadjusted value.
6
+
1
7
  === 1.3.0 (2012-10-4)
2
8
  * Expand to iudex-core [1.2.1,1.4)
3
9
  * Rewrite of WorkPoller:
data/Manifest.txt CHANGED
@@ -27,4 +27,4 @@ test/test_migrate.rb
27
27
  test/test_pool_factory.rb
28
28
  test/test_url_model.rb
29
29
  test/test_work_poller.rb
30
- lib/iudex-da/iudex-da-1.3.0.jar
30
+ lib/iudex-da/iudex-da-1.3.1.jar
data/lib/iudex-da/base.rb CHANGED
@@ -16,7 +16,7 @@
16
16
 
17
17
  module Iudex
18
18
  module DA
19
- VERSION = '1.3.0'
19
+ VERSION = '1.3.1'
20
20
 
21
21
  LIB_DIR = File.dirname( __FILE__ ) # :nodoc:
22
22
  end
@@ -133,7 +133,7 @@ module Iudex::DA
133
133
  end
134
134
 
135
135
  @mapper = mapper
136
- @reader = ContentReader.new( data_source, mapper )
136
+ @data_source = data_source
137
137
  end
138
138
 
139
139
  # Override GenericWorkPollStrategy
@@ -147,7 +147,13 @@ module Iudex::DA
147
147
  # Raises SQLException
148
148
  def poll
149
149
  query, params = generate_query
150
- @reader.select( query, *params )
150
+ reader.select( query, *params )
151
+ end
152
+
153
+ def reader
154
+ @reader ||= ContentReader.new( @data_source, @mapper ).tap do |r|
155
+ r.priority_adjusted = aged_priority?
156
+ end
151
157
  end
152
158
 
153
159
  def generate_query
data/pom.xml CHANGED
@@ -5,7 +5,7 @@
5
5
  <groupId>iudex</groupId>
6
6
  <artifactId>iudex-da</artifactId>
7
7
  <packaging>jar</packaging>
8
- <version>1.3.0</version>
8
+ <version>1.3.1</version>
9
9
  <name>Iudex Data Access</name>
10
10
 
11
11
  <parent>
metadata CHANGED
@@ -2,14 +2,14 @@
2
2
  name: iudex-da
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-10-04 00:00:00.000000000 Z
12
+ date: 2012-10-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: iudex-core
@@ -187,7 +187,7 @@ files:
187
187
  - test/test_pool_factory.rb
188
188
  - test/test_url_model.rb
189
189
  - test/test_work_poller.rb
190
- - lib/iudex-da/iudex-da-1.3.0.jar
190
+ - lib/iudex-da/iudex-da-1.3.1.jar
191
191
  homepage: http://iudex.gravitext.com
192
192
  licenses: []
193
193
  post_install_message: