iudex-da 1.3.1-java → 1.3.2-java

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.
data/History.rdoc CHANGED
@@ -1,6 +1,13 @@
1
+ === 1.3.2 (2012-10-25)
2
+ * Add migration to make index_next_visit partial over non-null
3
+ next_visit_after rows. (Index rebuild may take a while.)
4
+ * Fix 1.3.0 regression: TimestampMigrator expects sort ordered
5
+ get_migration_files (apparent with above addition).
6
+ * Add (from 1.3.1) DAKeys to default imports
7
+
1
8
  === 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
9
+ * Fix 1.3.0 regression, causing age adjusted priority to be written
10
+ back to the database as the normal priority value. Now
4
11
  PRIORITY_ADJUSTED is set and BaseTransformer accounts for this by
5
12
  prefering the DB current, unadjusted value.
6
13
 
data/Manifest.txt CHANGED
@@ -11,6 +11,7 @@ config/config.rb
11
11
  db/20111012173757_base.rb
12
12
  db/20120930173600_uhash_collation_order.rb
13
13
  db/index_next_visit/21500000000101_add_index_next_visit.rb
14
+ db/index_next_visit/21500000000110_index_next_visit_partial.rb
14
15
  db/simhash/21500000000001_add_simhash_index.rb
15
16
  lib/iudex-da/base.rb
16
17
  lib/iudex-da.rb
@@ -27,4 +28,4 @@ test/test_migrate.rb
27
28
  test/test_pool_factory.rb
28
29
  test/test_url_model.rb
29
30
  test/test_work_poller.rb
30
- lib/iudex-da/iudex-da-1.3.1.jar
31
+ lib/iudex-da/iudex-da-1.3.2.jar
@@ -0,0 +1,34 @@
1
+ #--
2
+ # Copyright (c) 2008-2012 David Kellum
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License"); you
5
+ # may not use this file except in compliance with the License. You
6
+ # may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
13
+ # implied. See the License for the specific language governing
14
+ # permissions and limitations under the License.
15
+ #++
16
+
17
+ Sequel.migration do
18
+
19
+ up do
20
+ alter_table( :urls ) do
21
+ drop_index( :next_visit_after )
22
+ add_index( :next_visit_after,
23
+ :where => 'next_visit_after is not null' )
24
+ end
25
+ end
26
+
27
+ down do
28
+ alter_table( :urls ) do
29
+ drop_index( :next_visit_after )
30
+ add_index( :next_visit_after )
31
+ end
32
+ end
33
+
34
+ end
data/lib/iudex-da.rb CHANGED
@@ -29,6 +29,7 @@ module Iudex
29
29
 
30
30
  require "#{LIB_DIR}/iudex-da-#{VERSION}.jar"
31
31
 
32
+ import 'iudex.da.DAKeys'
32
33
  import 'iudex.da.ContentMapper'
33
34
  import 'iudex.da.ContentReader'
34
35
 
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.1'
19
+ VERSION = '1.3.2'
20
20
 
21
21
  LIB_DIR = File.dirname( __FILE__ ) # :nodoc:
22
22
  end
data/lib/iudex-da/orm.rb CHANGED
@@ -173,7 +173,8 @@ module Iudex::DA
173
173
  end
174
174
 
175
175
  def get_migration_files
176
- Dir.glob( "#{@pattern}/[0-9]*_*.rb" )
176
+ files = Dir.glob( "#{@pattern}/[0-9]*_*.rb" )
177
+ files.sort_by { |p| File.basename( p ) }
177
178
  end
178
179
 
179
180
  end
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.1</version>
8
+ <version>1.3.2</version>
9
9
  <name>Iudex Data Access</name>
10
10
 
11
11
  <parent>
@@ -116,7 +116,6 @@ class TestWorkPoller < MiniTest::Unit::TestCase
116
116
  assert_equal( 3, pos )
117
117
  end
118
118
 
119
-
120
119
  def test_poll_domain_union_1
121
120
  poller.domain_union = [ [ 'gravitext.com', 15000 ] ]
122
121
 
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.1
5
+ version: 1.3.2
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-13 00:00:00.000000000 Z
12
+ date: 2012-10-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: iudex-core
@@ -171,6 +171,7 @@ files:
171
171
  - db/20111012173757_base.rb
172
172
  - db/20120930173600_uhash_collation_order.rb
173
173
  - db/index_next_visit/21500000000101_add_index_next_visit.rb
174
+ - db/index_next_visit/21500000000110_index_next_visit_partial.rb
174
175
  - db/simhash/21500000000001_add_simhash_index.rb
175
176
  - lib/iudex-da/base.rb
176
177
  - lib/iudex-da.rb
@@ -187,7 +188,7 @@ files:
187
188
  - test/test_pool_factory.rb
188
189
  - test/test_url_model.rb
189
190
  - test/test_work_poller.rb
190
- - lib/iudex-da/iudex-da-1.3.1.jar
191
+ - lib/iudex-da/iudex-da-1.3.2.jar
191
192
  homepage: http://iudex.gravitext.com
192
193
  licenses: []
193
194
  post_install_message: