ultrasphinx 1.5.2 → 1.5.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (127) hide show
  1. data.tar.gz.sig +2 -3
  2. data/CHANGELOG +2 -0
  3. data/Manifest +134 -28
  4. data/TODO +0 -1
  5. data/examples/{app.multi → ap.multi} +1 -1
  6. data/examples/default.base +2 -0
  7. data/lib/ultrasphinx.rb +19 -17
  8. data/lib/ultrasphinx/configure.rb +36 -28
  9. data/lib/ultrasphinx/core_extensions.rb +11 -1
  10. data/lib/ultrasphinx/fields.rb +16 -9
  11. data/lib/ultrasphinx/hex_to_int.sql +15 -0
  12. data/lib/ultrasphinx/is_indexed.rb +9 -7
  13. data/lib/ultrasphinx/search.rb +27 -13
  14. data/lib/ultrasphinx/search/internals.rb +36 -16
  15. data/lib/ultrasphinx/spell.rb +13 -4
  16. data/lib/ultrasphinx/ultrasphinx.rb +30 -20
  17. data/tasks/ultrasphinx.rake +31 -6
  18. data/test/integration/app/README +182 -0
  19. data/test/integration/app/Rakefile +10 -0
  20. data/test/integration/app/app/controllers/addresses_controller.rb +85 -0
  21. data/test/integration/app/app/controllers/application.rb +7 -0
  22. data/test/integration/app/app/controllers/sellers_controller.rb +85 -0
  23. data/test/integration/app/app/controllers/states_controller.rb +85 -0
  24. data/test/integration/app/app/controllers/users_controller.rb +85 -0
  25. data/test/integration/app/app/helpers/addresses_helper.rb +2 -0
  26. data/test/integration/app/app/helpers/application_helper.rb +3 -0
  27. data/test/integration/app/app/helpers/sellers_helper.rb +28 -0
  28. data/test/integration/app/app/helpers/states_helper.rb +2 -0
  29. data/test/integration/app/app/helpers/users_helper.rb +2 -0
  30. data/test/integration/app/app/models/geo/address.rb +8 -0
  31. data/test/integration/app/app/models/geo/state.rb +5 -0
  32. data/test/integration/app/app/models/person/user.rb +9 -0
  33. data/test/integration/app/app/models/seller.rb +20 -0
  34. data/test/integration/app/app/views/addresses/edit.html.erb +12 -0
  35. data/test/integration/app/app/views/addresses/index.html.erb +18 -0
  36. data/test/integration/app/app/views/addresses/new.html.erb +11 -0
  37. data/test/integration/app/app/views/addresses/show.html.erb +3 -0
  38. data/test/integration/app/app/views/layouts/addresses.html.erb +17 -0
  39. data/test/integration/app/app/views/layouts/sellers.html.erb +17 -0
  40. data/test/integration/app/app/views/layouts/states.html.erb +17 -0
  41. data/test/integration/app/app/views/layouts/users.html.erb +17 -0
  42. data/test/integration/app/app/views/sellers/edit.html.erb +12 -0
  43. data/test/integration/app/app/views/sellers/index.html.erb +20 -0
  44. data/test/integration/app/app/views/sellers/new.html.erb +11 -0
  45. data/test/integration/app/app/views/sellers/show.html.erb +3 -0
  46. data/test/integration/app/app/views/states/edit.html.erb +12 -0
  47. data/test/integration/app/app/views/states/index.html.erb +19 -0
  48. data/test/integration/app/app/views/states/new.html.erb +11 -0
  49. data/test/integration/app/app/views/states/show.html.erb +3 -0
  50. data/test/integration/app/app/views/users/edit.html.erb +12 -0
  51. data/test/integration/app/app/views/users/index.html.erb +22 -0
  52. data/test/integration/app/app/views/users/new.html.erb +11 -0
  53. data/test/integration/app/app/views/users/show.html.erb +3 -0
  54. data/test/integration/app/config/boot.rb +45 -0
  55. data/test/integration/app/config/database.yml +21 -0
  56. data/test/integration/app/config/environment.rb +11 -0
  57. data/test/integration/app/config/environments/development.rb +7 -0
  58. data/test/integration/app/config/environments/production.rb +18 -0
  59. data/test/integration/app/config/environments/test.rb +19 -0
  60. data/test/integration/app/config/locomotive.yml +6 -0
  61. data/test/integration/app/config/routes.rb +33 -0
  62. data/test/integration/app/config/ultrasphinx/default.base +56 -0
  63. data/test/integration/app/config/ultrasphinx/development.conf +159 -0
  64. data/test/integration/app/config/ultrasphinx/development.conf.canonical +159 -0
  65. data/test/integration/app/db/migrate/001_create_users.rb +16 -0
  66. data/test/integration/app/db/migrate/002_create_sellers.rb +14 -0
  67. data/test/integration/app/db/migrate/003_create_addresses.rb +19 -0
  68. data/test/integration/app/db/migrate/004_create_states.rb +12 -0
  69. data/test/integration/app/db/migrate/005_add_capitalization_to_seller.rb +9 -0
  70. data/test/integration/app/db/migrate/006_add_deleted_to_user.rb +9 -0
  71. data/test/integration/app/db/migrate/007_add_lat_and_long_to_address.rb +11 -0
  72. data/test/integration/app/db/migrate/008_add_mission_statement_to_seller.rb +9 -0
  73. data/test/integration/app/db/schema.rb +45 -0
  74. data/test/integration/app/doc/README_FOR_APP +2 -0
  75. data/test/integration/app/public/404.html +30 -0
  76. data/test/integration/app/public/500.html +30 -0
  77. data/test/integration/app/public/dispatch.cgi +10 -0
  78. data/test/integration/app/public/dispatch.fcgi +24 -0
  79. data/test/integration/app/public/dispatch.rb +10 -0
  80. data/test/integration/app/public/favicon.ico +0 -0
  81. data/test/integration/app/public/images/rails.png +0 -0
  82. data/test/integration/app/public/index.html +277 -0
  83. data/test/integration/app/public/javascripts/application.js +2 -0
  84. data/test/integration/app/public/javascripts/controls.js +833 -0
  85. data/test/integration/app/public/javascripts/dragdrop.js +942 -0
  86. data/test/integration/app/public/javascripts/effects.js +1088 -0
  87. data/test/integration/app/public/javascripts/prototype.js +2515 -0
  88. data/test/integration/app/public/robots.txt +1 -0
  89. data/test/integration/app/public/stylesheets/scaffold.css +74 -0
  90. data/test/integration/app/script/about +3 -0
  91. data/test/integration/app/script/breakpointer +3 -0
  92. data/test/integration/app/script/console +3 -0
  93. data/test/integration/app/script/destroy +3 -0
  94. data/test/integration/app/script/generate +3 -0
  95. data/test/integration/app/script/performance/benchmarker +3 -0
  96. data/test/integration/app/script/performance/profiler +3 -0
  97. data/test/integration/app/script/plugin +3 -0
  98. data/test/integration/app/script/process/inspector +3 -0
  99. data/test/integration/app/script/process/reaper +3 -0
  100. data/test/integration/app/script/process/spawner +3 -0
  101. data/test/integration/app/script/runner +3 -0
  102. data/test/integration/app/script/server +3 -0
  103. data/test/integration/app/test/fixtures/addresses.yml +13 -0
  104. data/test/integration/app/test/fixtures/sellers.yml +11 -0
  105. data/test/integration/app/test/fixtures/states.yml +216 -0
  106. data/test/integration/app/test/fixtures/users.yml +11 -0
  107. data/test/integration/app/test/functional/addresses_controller_test.rb +57 -0
  108. data/test/integration/app/test/functional/sellers_controller_test.rb +57 -0
  109. data/test/integration/app/test/functional/states_controller_test.rb +57 -0
  110. data/test/integration/app/test/functional/users_controller_test.rb +57 -0
  111. data/test/integration/app/test/test_helper.rb +28 -0
  112. data/test/integration/app/test/unit/address_test.rb +10 -0
  113. data/test/integration/app/test/unit/seller_test.rb +10 -0
  114. data/test/integration/app/test/unit/state_test.rb +10 -0
  115. data/test/integration/app/test/unit/user_test.rb +10 -0
  116. data/test/integration/configure_test.rb +23 -0
  117. data/test/integration/search_test.rb +221 -0
  118. data/test/integration/server_test.rb +38 -0
  119. data/test/integration/spell_test.rb +15 -0
  120. data/test/setup.rb +12 -0
  121. data/test/test_all.rb +1 -0
  122. data/test/test_helper.rb +13 -24
  123. data/test/ts.multi +2 -0
  124. data/test/unit/parser_test.rb +86 -86
  125. data/ultrasphinx.gemspec +12 -5
  126. metadata +136 -30
  127. metadata.gz.sig +0 -0
@@ -0,0 +1,38 @@
1
+
2
+ require "#{File.dirname(__FILE__)}/../test_helper"
3
+ require 'open-uri'
4
+
5
+ # Start the server
6
+
7
+ class ServerTest < Test::Unit::TestCase
8
+
9
+ PORT = 43040
10
+ URL = "http://localhost:#{PORT}/"
11
+
12
+ def setup
13
+ @pid = Process.fork do
14
+ Dir.chdir RAILS_ROOT do
15
+ print "S"
16
+ exec("script/server -p #{PORT} &> /dev/null")
17
+ end
18
+ end
19
+ sleep(5)
20
+ end
21
+
22
+ def teardown
23
+ # Process.kill(9, @pid) doesn't work because Mongrel has double-forked itself away
24
+ `ps awx | grep #{PORT} | grep -v grep | awk '{print $1}'`.split("\n").each do |pid|
25
+ system("kill -9 #{pid}")
26
+ print "K"
27
+ end
28
+ sleep(2)
29
+ @pid = nil
30
+ end
31
+
32
+ def test_association_reloading
33
+ 4.times do
34
+ assert_match(/Sellers: index/, open(URL + 'sellers').read)
35
+ end
36
+ end
37
+
38
+ end
@@ -0,0 +1,15 @@
1
+
2
+ require "#{File.dirname(__FILE__)}/../test_helper"
3
+
4
+ class SpellTest < Test::Unit::TestCase
5
+
6
+ def test_load_errors_are_rescued
7
+ # XXX don't know how to test this sanely
8
+ end
9
+
10
+ def test_spelling
11
+ assert_equal nil, Ultrasphinx::Spell.correct("correct words")
12
+ assert_equal "garbled words", Ultrasphinx::Spell.correct("glarbled words")
13
+ end
14
+
15
+ end
@@ -0,0 +1,12 @@
1
+
2
+ # Setup integration system for the integration suite
3
+
4
+ puts ["Please make sure that test/integration/app/vendor/rails is symlinked",
5
+ "to a Rails trunk checkout in order for the rake tasks to run properly."]
6
+
7
+ Dir.chdir "#{File.dirname(__FILE__)}/integration/app/" do
8
+ system("rake db:create")
9
+ system("rake db:migrate db:fixtures:load")
10
+ system("rake us:boot")
11
+ system("sudo rake ultrasphinx:spelling:build")
12
+ end
@@ -1,6 +1,7 @@
1
1
 
2
2
  Dir.chdir(File.dirname(__FILE__)) do
3
3
  Dir["unit/*.rb", "integration/*.rb"].each do |file|
4
+ next if file =~ /unit_tests\.rb/
4
5
  puts "\n*** #{file} ***"
5
6
  system("ruby #{file}")
6
7
  end
@@ -1,30 +1,19 @@
1
1
 
2
- RAILS_ENV = "test"
3
-
4
- def silently
5
- old_stdout, $stdout = $stdout, StringIO.new
6
- yield
7
- $stdout = old_stdout
8
- end
9
-
10
- RAILS_ROOT = File.dirname(__FILE__)
11
- $LOAD_PATH << "#{RAILS_ROOT}/../lib" << RAILS_ROOT
12
-
13
2
  require 'rubygems'
14
- require 'initializer'
15
- require 'active_support'
16
- require 'sqlite3'
17
- require 'active_record'
18
- require 'test/spec'
3
+ require 'test/unit'
19
4
  require 'ruby-debug'
20
5
 
21
- ActiveRecord::Base.establish_connection(
22
- config = {
23
- :adapter => 'sqlite3',
24
- :database => ':memory:'
25
- })
26
- ActiveRecord::Base.connection.instance_variable_set('@config', config)
6
+ HERE = File.dirname(__FILE__)
7
+ $LOAD_PATH << HERE
8
+
9
+ require 'integration/app/config/environment'
27
10
 
28
- require 'ultrasphinx'
11
+ Dir.chdir "#{HERE}/integration/app" do
12
+ system("rake us:start")
13
+ end
29
14
 
30
- Debugger.start
15
+ def silently
16
+ stderr, $stderr = $stderr, StringIO.new
17
+ yield
18
+ $stderr = stderr
19
+ end
@@ -0,0 +1,2 @@
1
+ add en_US-w_accents.multi
2
+ add ts.rws
@@ -1,97 +1,97 @@
1
1
 
2
2
  require "#{File.dirname(__FILE__)}/../test_helper"
3
3
 
4
- describe "parser" do
4
+ class ParserTest < Test::Unit::TestCase
5
5
 
6
6
  def setup
7
7
  @s = Ultrasphinx::Search.new
8
8
  end
9
9
 
10
- [
11
- 'artichokes',
12
- 'artichokes',
13
-
14
- ' artichokes ',
15
- 'artichokes',
16
-
17
- 'artichoke heart',
18
- 'artichoke heart',
19
-
20
- '"artichoke hearts"',
21
- '"artichoke hearts"',
22
-
23
- ' "artichoke hearts " ',
24
- '"artichoke hearts"',
25
-
26
- 'artichoke AND hearts',
27
- 'artichoke hearts',
28
-
29
- 'artichoke OR hearts',
30
- 'artichoke | hearts',
31
-
32
- 'artichoke NOT heart',
33
- 'artichoke - heart',
34
-
35
- 'artichoke and hearts',
36
- 'artichoke hearts',
37
-
38
- 'artichoke or hearts',
39
- 'artichoke | hearts',
40
-
41
- 'artichoke not heart',
42
- 'artichoke - heart',
43
-
44
- 'title:artichoke',
45
- '@title artichoke',
46
-
47
- 'user:"john mose"',
48
- '@user "john mose"',
49
-
50
- 'artichoke OR rhubarb NOT heart user:"john mose"',
51
- 'artichoke | rhubarb - heart @user "john mose"',
52
-
53
- 'title:artichoke hearts',
54
- 'hearts @title artichoke',
55
-
56
- 'title:artichoke AND hearts',
57
- 'hearts @title artichoke',
58
-
59
- 'title:artichoke NOT hearts',
60
- 'hearts - @title artichoke',
61
-
62
- 'title:artichoke OR hearts',
63
- 'hearts | @title artichoke',
64
-
65
- 'title:artichoke title:hearts',
66
- '@title ( artichoke hearts )',
67
-
68
- 'title:artichoke OR title:hearts',
69
- '@title ( artichoke | hearts )',
70
-
71
- 'title:artichoke NOT title:hearts "john mose" ',
72
- '"john mose" @title ( artichoke - hearts )',
73
-
74
- '"john mose" AND title:artichoke dogs OR title:hearts cats',
75
- '"john mose" dogs cats @title ( artichoke | hearts )',
76
-
77
- 'board:england OR board:tristate',
78
- '@board ( england | tristate )',
79
-
80
- '(800) 555-LOVE',
81
- '(800) 555-LOVE',
82
-
83
- 'Bend, OR',
84
- 'Bend, OR',
85
-
86
- '"(traditional)"',
87
- '"traditional"',
88
-
89
- 'cuisine:"american (traditional"',
90
- '@cuisine "american traditional"'
91
-
92
- ].in_groups_of(2).each do |query, result|
93
- it "should parse" do
94
- @s.send(:parse, query).should.equal(result)
10
+ def test_parsing
11
+ [
12
+ 'artichokes',
13
+ 'artichokes',
14
+
15
+ ' artichokes ',
16
+ 'artichokes',
17
+
18
+ 'artichoke heart',
19
+ 'artichoke heart',
20
+
21
+ '"artichoke hearts"',
22
+ '"artichoke hearts"',
23
+
24
+ ' "artichoke hearts " ',
25
+ '"artichoke hearts"',
26
+
27
+ 'artichoke AND hearts',
28
+ 'artichoke hearts',
29
+
30
+ 'artichoke OR hearts',
31
+ 'artichoke | hearts',
32
+
33
+ 'artichoke NOT heart',
34
+ 'artichoke - heart',
35
+
36
+ 'artichoke and hearts',
37
+ 'artichoke hearts',
38
+
39
+ 'artichoke or hearts',
40
+ 'artichoke | hearts',
41
+
42
+ 'artichoke not heart',
43
+ 'artichoke - heart',
44
+
45
+ 'title:artichoke',
46
+ '@title artichoke',
47
+
48
+ 'user:"john mose"',
49
+ '@user "john mose"',
50
+
51
+ 'artichoke OR rhubarb NOT heart user:"john mose"',
52
+ 'artichoke | rhubarb - heart @user "john mose"',
53
+
54
+ 'title:artichoke hearts',
55
+ 'hearts @title artichoke',
56
+
57
+ 'title:artichoke AND hearts',
58
+ 'hearts @title artichoke',
59
+
60
+ 'title:artichoke NOT hearts',
61
+ 'hearts - @title artichoke',
62
+
63
+ 'title:artichoke OR hearts',
64
+ 'hearts | @title artichoke',
65
+
66
+ 'title:artichoke title:hearts',
67
+ '@title ( artichoke hearts )',
68
+
69
+ 'title:artichoke OR title:hearts',
70
+ '@title ( artichoke | hearts )',
71
+
72
+ 'title:artichoke NOT title:hearts "john mose" ',
73
+ '"john mose" @title ( artichoke - hearts )',
74
+
75
+ '"john mose" AND title:artichoke dogs OR title:hearts cats',
76
+ '"john mose" dogs cats @title ( artichoke | hearts )',
77
+
78
+ 'board:england OR board:tristate',
79
+ '@board ( england | tristate )',
80
+
81
+ '(800) 555-LOVE',
82
+ '(800) 555-LOVE',
83
+
84
+ 'Bend, OR',
85
+ 'Bend, OR',
86
+
87
+ '"(traditional)"',
88
+ '"traditional"',
89
+
90
+ 'cuisine:"american (traditional"',
91
+ '@cuisine "american traditional"'
92
+
93
+ ].in_groups_of(2).each do |query, result|
94
+ assert_equal result, @s.send(:parse, query)
95
95
  end
96
96
  end
97
97
 
@@ -1,11 +1,11 @@
1
1
 
2
- # Gem::Specification for Ultrasphinx-1.5.2
2
+ # Gem::Specification for Ultrasphinx-1.5.3
3
3
  # Originally generated by Echoe
4
4
 
5
5
  Gem::Specification.new do |s|
6
6
  s.name = %q{ultrasphinx}
7
- s.version = "1.5.2"
8
- s.date = %q{2007-09-27}
7
+ s.version = "1.5.3"
8
+ s.date = %q{2007-10-11}
9
9
  s.summary = %q{Ruby on Rails configurator and client to the Sphinx fulltext search engine.}
10
10
  s.email = %q{}
11
11
  s.homepage = %q{http://blog.evanweaver.com/files/doc/fauna/ultrasphinx/}
@@ -13,7 +13,7 @@ Gem::Specification.new do |s|
13
13
  s.description = %q{Ruby on Rails configurator and client to the Sphinx fulltext search engine.}
14
14
  s.has_rdoc = true
15
15
  s.authors = [""]
16
- s.files = ["vendor/will_paginate/LICENSE", "vendor/sphinx/README", "vendor/sphinx/Rakefile", "vendor/sphinx/LICENSE", "vendor/sphinx/lib/client.rb", "vendor/sphinx/init.rb", "TODO", "test/unit/parser_test.rb", "test/test_helper.rb", "test/config/ultrasphinx/test.base", "tasks/ultrasphinx.rake", "README", "Manifest", "LICENSE", "lib/ultrasphinx.rb", "lib/ultrasphinx/ultrasphinx.rb", "lib/ultrasphinx/spell.rb", "lib/ultrasphinx/search.rb", "lib/ultrasphinx/search/parser.rb", "lib/ultrasphinx/search/internals.rb", "lib/ultrasphinx/is_indexed.rb", "lib/ultrasphinx/fields.rb", "lib/ultrasphinx/core_extensions.rb", "lib/ultrasphinx/configure.rb", "lib/ultrasphinx/autoload.rb", "init.rb", "examples/default.base", "examples/app.multi", "CHANGELOG", "ultrasphinx.gemspec", "test/test_all.rb"]
16
+ s.files = ["CHANGELOG", "examples/ap.multi", "examples/default.base", "init.rb", "lib/ultrasphinx/autoload.rb", "lib/ultrasphinx/configure.rb", "lib/ultrasphinx/core_extensions.rb", "lib/ultrasphinx/fields.rb", "lib/ultrasphinx/hex_to_int.sql", "lib/ultrasphinx/is_indexed.rb", "lib/ultrasphinx/search/internals.rb", "lib/ultrasphinx/search/parser.rb", "lib/ultrasphinx/search.rb", "lib/ultrasphinx/spell.rb", "lib/ultrasphinx/ultrasphinx.rb", "lib/ultrasphinx.rb", "LICENSE", "Manifest", "README", "tasks/ultrasphinx.rake", "test/config/ultrasphinx/test.base", "test/integration/app/app/controllers/addresses_controller.rb", "test/integration/app/app/controllers/application.rb", "test/integration/app/app/controllers/sellers_controller.rb", "test/integration/app/app/controllers/states_controller.rb", "test/integration/app/app/controllers/users_controller.rb", "test/integration/app/app/helpers/addresses_helper.rb", "test/integration/app/app/helpers/application_helper.rb", "test/integration/app/app/helpers/sellers_helper.rb", "test/integration/app/app/helpers/states_helper.rb", "test/integration/app/app/helpers/users_helper.rb", "test/integration/app/app/models/geo/address.rb", "test/integration/app/app/models/geo/state.rb", "test/integration/app/app/models/person/user.rb", "test/integration/app/app/models/seller.rb", "test/integration/app/app/views/addresses/edit.html.erb", "test/integration/app/app/views/addresses/index.html.erb", "test/integration/app/app/views/addresses/new.html.erb", "test/integration/app/app/views/addresses/show.html.erb", "test/integration/app/app/views/layouts/addresses.html.erb", "test/integration/app/app/views/layouts/sellers.html.erb", "test/integration/app/app/views/layouts/states.html.erb", "test/integration/app/app/views/layouts/users.html.erb", "test/integration/app/app/views/sellers/edit.html.erb", "test/integration/app/app/views/sellers/index.html.erb", "test/integration/app/app/views/sellers/new.html.erb", "test/integration/app/app/views/sellers/show.html.erb", "test/integration/app/app/views/states/edit.html.erb", "test/integration/app/app/views/states/index.html.erb", "test/integration/app/app/views/states/new.html.erb", "test/integration/app/app/views/states/show.html.erb", "test/integration/app/app/views/users/edit.html.erb", "test/integration/app/app/views/users/index.html.erb", "test/integration/app/app/views/users/new.html.erb", "test/integration/app/app/views/users/show.html.erb", "test/integration/app/config/boot.rb", "test/integration/app/config/database.yml", "test/integration/app/config/environment.rb", "test/integration/app/config/environments/development.rb", "test/integration/app/config/environments/production.rb", "test/integration/app/config/environments/test.rb", "test/integration/app/config/locomotive.yml", "test/integration/app/config/routes.rb", "test/integration/app/config/ultrasphinx/default.base", "test/integration/app/config/ultrasphinx/development.conf", "test/integration/app/config/ultrasphinx/development.conf.canonical", "test/integration/app/db/migrate/001_create_users.rb", "test/integration/app/db/migrate/002_create_sellers.rb", "test/integration/app/db/migrate/003_create_addresses.rb", "test/integration/app/db/migrate/004_create_states.rb", "test/integration/app/db/migrate/005_add_capitalization_to_seller.rb", "test/integration/app/db/migrate/006_add_deleted_to_user.rb", "test/integration/app/db/migrate/007_add_lat_and_long_to_address.rb", "test/integration/app/db/migrate/008_add_mission_statement_to_seller.rb", "test/integration/app/db/schema.rb", "test/integration/app/doc/README_FOR_APP", "test/integration/app/public/404.html", "test/integration/app/public/500.html", "test/integration/app/public/dispatch.cgi", "test/integration/app/public/dispatch.fcgi", "test/integration/app/public/dispatch.rb", "test/integration/app/public/favicon.ico", "test/integration/app/public/images/rails.png", "test/integration/app/public/index.html", "test/integration/app/public/javascripts/application.js", "test/integration/app/public/javascripts/controls.js", "test/integration/app/public/javascripts/dragdrop.js", "test/integration/app/public/javascripts/effects.js", "test/integration/app/public/javascripts/prototype.js", "test/integration/app/public/robots.txt", "test/integration/app/public/stylesheets/scaffold.css", "test/integration/app/Rakefile", "test/integration/app/README", "test/integration/app/script/about", "test/integration/app/script/breakpointer", "test/integration/app/script/console", "test/integration/app/script/destroy", "test/integration/app/script/generate", "test/integration/app/script/performance/benchmarker", "test/integration/app/script/performance/profiler", "test/integration/app/script/plugin", "test/integration/app/script/process/inspector", "test/integration/app/script/process/reaper", "test/integration/app/script/process/spawner", "test/integration/app/script/runner", "test/integration/app/script/server", "test/integration/app/test/fixtures/addresses.yml", "test/integration/app/test/fixtures/sellers.yml", "test/integration/app/test/fixtures/states.yml", "test/integration/app/test/fixtures/users.yml", "test/integration/app/test/functional/addresses_controller_test.rb", "test/integration/app/test/functional/sellers_controller_test.rb", "test/integration/app/test/functional/states_controller_test.rb", "test/integration/app/test/functional/users_controller_test.rb", "test/integration/app/test/test_helper.rb", "test/integration/app/test/unit/address_test.rb", "test/integration/app/test/unit/seller_test.rb", "test/integration/app/test/unit/state_test.rb", "test/integration/app/test/unit/user_test.rb", "test/integration/configure_test.rb", "test/integration/search_test.rb", "test/integration/server_test.rb", "test/integration/spell_test.rb", "test/setup.rb", "test/test_all.rb", "test/test_helper.rb", "test/ts.multi", "test/unit/parser_test.rb", "TODO", "vendor/sphinx/init.rb", "vendor/sphinx/lib/client.rb", "vendor/sphinx/LICENSE", "vendor/sphinx/Rakefile", "vendor/sphinx/README", "vendor/will_paginate/LICENSE", "ultrasphinx.gemspec"]
17
17
  s.test_files = ["test/test_all.rb"]
18
18
  s.add_dependency(%q<chronic>, ["> 0.0.0"])
19
19
  end
@@ -22,7 +22,6 @@ end
22
22
  # # Original Rakefile source (requires the Echoe gem):
23
23
  #
24
24
  #
25
- # require 'rubygems'
26
25
  # require 'echoe'
27
26
  #
28
27
  # Echoe.new("ultrasphinx") do |p|
@@ -33,3 +32,11 @@ end
33
32
  # p.rdoc_pattern = /is_indexed.rb|search.rb|spell.rb|ultrasphinx.rb|^README|TODO|CHANGELOG|^LICENSE/
34
33
  # p.dependencies = "chronic"
35
34
  # end
35
+ #
36
+ # require 'rcov/rcovtask'
37
+ #
38
+ # Rcov::RcovTask.new(:coverage) do |t|
39
+ # t.test_files = FileList['test/integration/*.rb', 'test/unit/*.rb']
40
+ # t.rcov_opts << '--include-file test\/integration\/app\/vendor\/plugins\/ultrasphinx\/lib\/.*\.rb'
41
+ # t.verbose = true
42
+ # end
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.4
3
3
  specification_version: 1
4
4
  name: ultrasphinx
5
5
  version: !ruby/object:Gem::Version
6
- version: 1.5.2
7
- date: 2007-09-27 00:00:00 -04:00
6
+ version: 1.5.3
7
+ date: 2007-10-11 00:00:00 -04:00
8
8
  summary: Ruby on Rails configurator and client to the Sphinx fulltext search engine.
9
9
  require_paths:
10
10
  - lib
@@ -51,35 +51,141 @@ post_install_message:
51
51
  authors:
52
52
  - ""
53
53
  files:
54
- - vendor/will_paginate/LICENSE
55
- - vendor/sphinx/README
56
- - vendor/sphinx/Rakefile
57
- - vendor/sphinx/LICENSE
58
- - vendor/sphinx/lib/client.rb
59
- - vendor/sphinx/init.rb
60
- - TODO
61
- - test/unit/parser_test.rb
62
- - test/test_helper.rb
63
- - test/config/ultrasphinx/test.base
64
- - tasks/ultrasphinx.rake
65
- - README
66
- - Manifest
67
- - LICENSE
68
- - lib/ultrasphinx.rb
69
- - lib/ultrasphinx/ultrasphinx.rb
70
- - lib/ultrasphinx/spell.rb
71
- - lib/ultrasphinx/search.rb
72
- - lib/ultrasphinx/search/parser.rb
73
- - lib/ultrasphinx/search/internals.rb
74
- - lib/ultrasphinx/is_indexed.rb
75
- - lib/ultrasphinx/fields.rb
76
- - lib/ultrasphinx/core_extensions.rb
77
- - lib/ultrasphinx/configure.rb
78
- - lib/ultrasphinx/autoload.rb
79
- - init.rb
80
- - examples/default.base
81
- - examples/app.multi
82
54
  - CHANGELOG
55
+ - examples/ap.multi
56
+ - examples/default.base
57
+ - init.rb
58
+ - lib/ultrasphinx/autoload.rb
59
+ - lib/ultrasphinx/configure.rb
60
+ - lib/ultrasphinx/core_extensions.rb
61
+ - lib/ultrasphinx/fields.rb
62
+ - lib/ultrasphinx/hex_to_int.sql
63
+ - lib/ultrasphinx/is_indexed.rb
64
+ - lib/ultrasphinx/search/internals.rb
65
+ - lib/ultrasphinx/search/parser.rb
66
+ - lib/ultrasphinx/search.rb
67
+ - lib/ultrasphinx/spell.rb
68
+ - lib/ultrasphinx/ultrasphinx.rb
69
+ - lib/ultrasphinx.rb
70
+ - LICENSE
71
+ - Manifest
72
+ - README
73
+ - tasks/ultrasphinx.rake
74
+ - test/config/ultrasphinx/test.base
75
+ - test/integration/app/app/controllers/addresses_controller.rb
76
+ - test/integration/app/app/controllers/application.rb
77
+ - test/integration/app/app/controllers/sellers_controller.rb
78
+ - test/integration/app/app/controllers/states_controller.rb
79
+ - test/integration/app/app/controllers/users_controller.rb
80
+ - test/integration/app/app/helpers/addresses_helper.rb
81
+ - test/integration/app/app/helpers/application_helper.rb
82
+ - test/integration/app/app/helpers/sellers_helper.rb
83
+ - test/integration/app/app/helpers/states_helper.rb
84
+ - test/integration/app/app/helpers/users_helper.rb
85
+ - test/integration/app/app/models/geo/address.rb
86
+ - test/integration/app/app/models/geo/state.rb
87
+ - test/integration/app/app/models/person/user.rb
88
+ - test/integration/app/app/models/seller.rb
89
+ - test/integration/app/app/views/addresses/edit.html.erb
90
+ - test/integration/app/app/views/addresses/index.html.erb
91
+ - test/integration/app/app/views/addresses/new.html.erb
92
+ - test/integration/app/app/views/addresses/show.html.erb
93
+ - test/integration/app/app/views/layouts/addresses.html.erb
94
+ - test/integration/app/app/views/layouts/sellers.html.erb
95
+ - test/integration/app/app/views/layouts/states.html.erb
96
+ - test/integration/app/app/views/layouts/users.html.erb
97
+ - test/integration/app/app/views/sellers/edit.html.erb
98
+ - test/integration/app/app/views/sellers/index.html.erb
99
+ - test/integration/app/app/views/sellers/new.html.erb
100
+ - test/integration/app/app/views/sellers/show.html.erb
101
+ - test/integration/app/app/views/states/edit.html.erb
102
+ - test/integration/app/app/views/states/index.html.erb
103
+ - test/integration/app/app/views/states/new.html.erb
104
+ - test/integration/app/app/views/states/show.html.erb
105
+ - test/integration/app/app/views/users/edit.html.erb
106
+ - test/integration/app/app/views/users/index.html.erb
107
+ - test/integration/app/app/views/users/new.html.erb
108
+ - test/integration/app/app/views/users/show.html.erb
109
+ - test/integration/app/config/boot.rb
110
+ - test/integration/app/config/database.yml
111
+ - test/integration/app/config/environment.rb
112
+ - test/integration/app/config/environments/development.rb
113
+ - test/integration/app/config/environments/production.rb
114
+ - test/integration/app/config/environments/test.rb
115
+ - test/integration/app/config/locomotive.yml
116
+ - test/integration/app/config/routes.rb
117
+ - test/integration/app/config/ultrasphinx/default.base
118
+ - test/integration/app/config/ultrasphinx/development.conf
119
+ - test/integration/app/config/ultrasphinx/development.conf.canonical
120
+ - test/integration/app/db/migrate/001_create_users.rb
121
+ - test/integration/app/db/migrate/002_create_sellers.rb
122
+ - test/integration/app/db/migrate/003_create_addresses.rb
123
+ - test/integration/app/db/migrate/004_create_states.rb
124
+ - test/integration/app/db/migrate/005_add_capitalization_to_seller.rb
125
+ - test/integration/app/db/migrate/006_add_deleted_to_user.rb
126
+ - test/integration/app/db/migrate/007_add_lat_and_long_to_address.rb
127
+ - test/integration/app/db/migrate/008_add_mission_statement_to_seller.rb
128
+ - test/integration/app/db/schema.rb
129
+ - test/integration/app/doc/README_FOR_APP
130
+ - test/integration/app/public/404.html
131
+ - test/integration/app/public/500.html
132
+ - test/integration/app/public/dispatch.cgi
133
+ - test/integration/app/public/dispatch.fcgi
134
+ - test/integration/app/public/dispatch.rb
135
+ - test/integration/app/public/favicon.ico
136
+ - test/integration/app/public/images/rails.png
137
+ - test/integration/app/public/index.html
138
+ - test/integration/app/public/javascripts/application.js
139
+ - test/integration/app/public/javascripts/controls.js
140
+ - test/integration/app/public/javascripts/dragdrop.js
141
+ - test/integration/app/public/javascripts/effects.js
142
+ - test/integration/app/public/javascripts/prototype.js
143
+ - test/integration/app/public/robots.txt
144
+ - test/integration/app/public/stylesheets/scaffold.css
145
+ - test/integration/app/Rakefile
146
+ - test/integration/app/README
147
+ - test/integration/app/script/about
148
+ - test/integration/app/script/breakpointer
149
+ - test/integration/app/script/console
150
+ - test/integration/app/script/destroy
151
+ - test/integration/app/script/generate
152
+ - test/integration/app/script/performance/benchmarker
153
+ - test/integration/app/script/performance/profiler
154
+ - test/integration/app/script/plugin
155
+ - test/integration/app/script/process/inspector
156
+ - test/integration/app/script/process/reaper
157
+ - test/integration/app/script/process/spawner
158
+ - test/integration/app/script/runner
159
+ - test/integration/app/script/server
160
+ - test/integration/app/test/fixtures/addresses.yml
161
+ - test/integration/app/test/fixtures/sellers.yml
162
+ - test/integration/app/test/fixtures/states.yml
163
+ - test/integration/app/test/fixtures/users.yml
164
+ - test/integration/app/test/functional/addresses_controller_test.rb
165
+ - test/integration/app/test/functional/sellers_controller_test.rb
166
+ - test/integration/app/test/functional/states_controller_test.rb
167
+ - test/integration/app/test/functional/users_controller_test.rb
168
+ - test/integration/app/test/test_helper.rb
169
+ - test/integration/app/test/unit/address_test.rb
170
+ - test/integration/app/test/unit/seller_test.rb
171
+ - test/integration/app/test/unit/state_test.rb
172
+ - test/integration/app/test/unit/user_test.rb
173
+ - test/integration/configure_test.rb
174
+ - test/integration/search_test.rb
175
+ - test/integration/server_test.rb
176
+ - test/integration/spell_test.rb
177
+ - test/setup.rb
178
+ - test/test_all.rb
179
+ - test/test_helper.rb
180
+ - test/ts.multi
181
+ - test/unit/parser_test.rb
182
+ - TODO
183
+ - vendor/sphinx/init.rb
184
+ - vendor/sphinx/lib/client.rb
185
+ - vendor/sphinx/LICENSE
186
+ - vendor/sphinx/Rakefile
187
+ - vendor/sphinx/README
188
+ - vendor/will_paginate/LICENSE
83
189
  - ultrasphinx.gemspec
84
190
  test_files:
85
191
  - test/test_all.rb