ultrasphinx 1.5.2 → 1.5.3
Sign up to get free protection for your applications and to get access to all the features.
- data.tar.gz.sig +2 -3
- data/CHANGELOG +2 -0
- data/Manifest +134 -28
- data/TODO +0 -1
- data/examples/{app.multi → ap.multi} +1 -1
- data/examples/default.base +2 -0
- data/lib/ultrasphinx.rb +19 -17
- data/lib/ultrasphinx/configure.rb +36 -28
- data/lib/ultrasphinx/core_extensions.rb +11 -1
- data/lib/ultrasphinx/fields.rb +16 -9
- data/lib/ultrasphinx/hex_to_int.sql +15 -0
- data/lib/ultrasphinx/is_indexed.rb +9 -7
- data/lib/ultrasphinx/search.rb +27 -13
- data/lib/ultrasphinx/search/internals.rb +36 -16
- data/lib/ultrasphinx/spell.rb +13 -4
- data/lib/ultrasphinx/ultrasphinx.rb +30 -20
- data/tasks/ultrasphinx.rake +31 -6
- data/test/integration/app/README +182 -0
- data/test/integration/app/Rakefile +10 -0
- data/test/integration/app/app/controllers/addresses_controller.rb +85 -0
- data/test/integration/app/app/controllers/application.rb +7 -0
- data/test/integration/app/app/controllers/sellers_controller.rb +85 -0
- data/test/integration/app/app/controllers/states_controller.rb +85 -0
- data/test/integration/app/app/controllers/users_controller.rb +85 -0
- data/test/integration/app/app/helpers/addresses_helper.rb +2 -0
- data/test/integration/app/app/helpers/application_helper.rb +3 -0
- data/test/integration/app/app/helpers/sellers_helper.rb +28 -0
- data/test/integration/app/app/helpers/states_helper.rb +2 -0
- data/test/integration/app/app/helpers/users_helper.rb +2 -0
- data/test/integration/app/app/models/geo/address.rb +8 -0
- data/test/integration/app/app/models/geo/state.rb +5 -0
- data/test/integration/app/app/models/person/user.rb +9 -0
- data/test/integration/app/app/models/seller.rb +20 -0
- data/test/integration/app/app/views/addresses/edit.html.erb +12 -0
- data/test/integration/app/app/views/addresses/index.html.erb +18 -0
- data/test/integration/app/app/views/addresses/new.html.erb +11 -0
- data/test/integration/app/app/views/addresses/show.html.erb +3 -0
- data/test/integration/app/app/views/layouts/addresses.html.erb +17 -0
- data/test/integration/app/app/views/layouts/sellers.html.erb +17 -0
- data/test/integration/app/app/views/layouts/states.html.erb +17 -0
- data/test/integration/app/app/views/layouts/users.html.erb +17 -0
- data/test/integration/app/app/views/sellers/edit.html.erb +12 -0
- data/test/integration/app/app/views/sellers/index.html.erb +20 -0
- data/test/integration/app/app/views/sellers/new.html.erb +11 -0
- data/test/integration/app/app/views/sellers/show.html.erb +3 -0
- data/test/integration/app/app/views/states/edit.html.erb +12 -0
- data/test/integration/app/app/views/states/index.html.erb +19 -0
- data/test/integration/app/app/views/states/new.html.erb +11 -0
- data/test/integration/app/app/views/states/show.html.erb +3 -0
- data/test/integration/app/app/views/users/edit.html.erb +12 -0
- data/test/integration/app/app/views/users/index.html.erb +22 -0
- data/test/integration/app/app/views/users/new.html.erb +11 -0
- data/test/integration/app/app/views/users/show.html.erb +3 -0
- data/test/integration/app/config/boot.rb +45 -0
- data/test/integration/app/config/database.yml +21 -0
- data/test/integration/app/config/environment.rb +11 -0
- data/test/integration/app/config/environments/development.rb +7 -0
- data/test/integration/app/config/environments/production.rb +18 -0
- data/test/integration/app/config/environments/test.rb +19 -0
- data/test/integration/app/config/locomotive.yml +6 -0
- data/test/integration/app/config/routes.rb +33 -0
- data/test/integration/app/config/ultrasphinx/default.base +56 -0
- data/test/integration/app/config/ultrasphinx/development.conf +159 -0
- data/test/integration/app/config/ultrasphinx/development.conf.canonical +159 -0
- data/test/integration/app/db/migrate/001_create_users.rb +16 -0
- data/test/integration/app/db/migrate/002_create_sellers.rb +14 -0
- data/test/integration/app/db/migrate/003_create_addresses.rb +19 -0
- data/test/integration/app/db/migrate/004_create_states.rb +12 -0
- data/test/integration/app/db/migrate/005_add_capitalization_to_seller.rb +9 -0
- data/test/integration/app/db/migrate/006_add_deleted_to_user.rb +9 -0
- data/test/integration/app/db/migrate/007_add_lat_and_long_to_address.rb +11 -0
- data/test/integration/app/db/migrate/008_add_mission_statement_to_seller.rb +9 -0
- data/test/integration/app/db/schema.rb +45 -0
- data/test/integration/app/doc/README_FOR_APP +2 -0
- data/test/integration/app/public/404.html +30 -0
- data/test/integration/app/public/500.html +30 -0
- data/test/integration/app/public/dispatch.cgi +10 -0
- data/test/integration/app/public/dispatch.fcgi +24 -0
- data/test/integration/app/public/dispatch.rb +10 -0
- data/test/integration/app/public/favicon.ico +0 -0
- data/test/integration/app/public/images/rails.png +0 -0
- data/test/integration/app/public/index.html +277 -0
- data/test/integration/app/public/javascripts/application.js +2 -0
- data/test/integration/app/public/javascripts/controls.js +833 -0
- data/test/integration/app/public/javascripts/dragdrop.js +942 -0
- data/test/integration/app/public/javascripts/effects.js +1088 -0
- data/test/integration/app/public/javascripts/prototype.js +2515 -0
- data/test/integration/app/public/robots.txt +1 -0
- data/test/integration/app/public/stylesheets/scaffold.css +74 -0
- data/test/integration/app/script/about +3 -0
- data/test/integration/app/script/breakpointer +3 -0
- data/test/integration/app/script/console +3 -0
- data/test/integration/app/script/destroy +3 -0
- data/test/integration/app/script/generate +3 -0
- data/test/integration/app/script/performance/benchmarker +3 -0
- data/test/integration/app/script/performance/profiler +3 -0
- data/test/integration/app/script/plugin +3 -0
- data/test/integration/app/script/process/inspector +3 -0
- data/test/integration/app/script/process/reaper +3 -0
- data/test/integration/app/script/process/spawner +3 -0
- data/test/integration/app/script/runner +3 -0
- data/test/integration/app/script/server +3 -0
- data/test/integration/app/test/fixtures/addresses.yml +13 -0
- data/test/integration/app/test/fixtures/sellers.yml +11 -0
- data/test/integration/app/test/fixtures/states.yml +216 -0
- data/test/integration/app/test/fixtures/users.yml +11 -0
- data/test/integration/app/test/functional/addresses_controller_test.rb +57 -0
- data/test/integration/app/test/functional/sellers_controller_test.rb +57 -0
- data/test/integration/app/test/functional/states_controller_test.rb +57 -0
- data/test/integration/app/test/functional/users_controller_test.rb +57 -0
- data/test/integration/app/test/test_helper.rb +28 -0
- data/test/integration/app/test/unit/address_test.rb +10 -0
- data/test/integration/app/test/unit/seller_test.rb +10 -0
- data/test/integration/app/test/unit/state_test.rb +10 -0
- data/test/integration/app/test/unit/user_test.rb +10 -0
- data/test/integration/configure_test.rb +23 -0
- data/test/integration/search_test.rb +221 -0
- data/test/integration/server_test.rb +38 -0
- data/test/integration/spell_test.rb +15 -0
- data/test/setup.rb +12 -0
- data/test/test_all.rb +1 -0
- data/test/test_helper.rb +13 -24
- data/test/ts.multi +2 -0
- data/test/unit/parser_test.rb +86 -86
- data/ultrasphinx.gemspec +12 -5
- metadata +136 -30
- 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
|
data/test/setup.rb
ADDED
@@ -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
|
data/test/test_all.rb
CHANGED
data/test/test_helper.rb
CHANGED
@@ -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 '
|
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
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
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
|
-
|
11
|
+
Dir.chdir "#{HERE}/integration/app" do
|
12
|
+
system("rake us:start")
|
13
|
+
end
|
29
14
|
|
30
|
-
|
15
|
+
def silently
|
16
|
+
stderr, $stderr = $stderr, StringIO.new
|
17
|
+
yield
|
18
|
+
$stderr = stderr
|
19
|
+
end
|
data/test/ts.multi
ADDED
data/test/unit/parser_test.rb
CHANGED
@@ -1,97 +1,97 @@
|
|
1
1
|
|
2
2
|
require "#{File.dirname(__FILE__)}/../test_helper"
|
3
3
|
|
4
|
-
|
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
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
@s.send(:parse, query)
|
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
|
|
data/ultrasphinx.gemspec
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
|
2
|
-
# Gem::Specification for Ultrasphinx-1.5.
|
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.
|
8
|
-
s.date = %q{2007-
|
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 = ["
|
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.
|
7
|
-
date: 2007-
|
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
|