sunspot 1.3.0.rc6 → 1.3.0
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.txt +3 -1
- data/lib/sunspot/version.rb +1 -1
- data/spec/helpers/integration_helper.rb +2 -1
- data/spec/integration/unicode_spec.rb +15 -0
- data/sunspot.gemspec +3 -3
- data/tasks/rdoc.rake +2 -2
- metadata +15 -18
- data/VERSION.yml +0 -4
data/History.txt
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
== 1.3.0
|
1
|
+
== 1.3.0 2011-11-26
|
2
2
|
* Requests to Solr use HTTP POST verb by default to avoid issues when the query string grows too large for GET (Johan Van Ryseghem)
|
3
3
|
* `sunspot.yml` supports ERB (Andrew Cholakian)
|
4
4
|
* An error is raised when attempting to run the packaged Solr if Java is not available (Lucas Parry)
|
@@ -11,6 +11,8 @@
|
|
11
11
|
* Specs run correctly in 1.9.2 (Larry Sprock)
|
12
12
|
* Documentation improvements (Thibaut Barrère, gjb83, Breno Santos Salgado)
|
13
13
|
* Adds :offset option to paginate method (Benjamin Fleischer)
|
14
|
+
* Requires rsolr 1.0.6, which fixes issues with Unicode characters
|
15
|
+
returned by Solr
|
14
16
|
|
15
17
|
== 1.2.1 2010-12-28
|
16
18
|
* Decreased default reindexing batch size from 500 to 50
|
data/lib/sunspot/version.rb
CHANGED
@@ -0,0 +1,15 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
require File.expand_path("../spec_helper", File.dirname(__FILE__))
|
3
|
+
|
4
|
+
describe "unicode characters" do
|
5
|
+
before :each do
|
6
|
+
Sunspot.remove_all
|
7
|
+
|
8
|
+
@post = Post.new(:title => "Híghgrøøvé")
|
9
|
+
Sunspot.index!(@post)
|
10
|
+
end
|
11
|
+
|
12
|
+
it "correctly retrieves the string as UTF-8" do
|
13
|
+
Sunspot.search(Post).hits.first.stored(:title).should == "Híghgrøøvé"
|
14
|
+
end
|
15
|
+
end
|
data/sunspot.gemspec
CHANGED
@@ -25,9 +25,9 @@ Gem::Specification.new do |s|
|
|
25
25
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
26
26
|
s.require_paths = ["lib"]
|
27
27
|
|
28
|
-
s.add_dependency 'rsolr', '1.0.
|
29
|
-
s.add_dependency 'escape', '0.0.4'
|
30
|
-
s.add_dependency 'pr_geohash', '~>
|
28
|
+
s.add_dependency 'rsolr', '~>1.0.6'
|
29
|
+
s.add_dependency 'escape', '~>0.0.4'
|
30
|
+
s.add_dependency 'pr_geohash', '~>1.0'
|
31
31
|
|
32
32
|
s.add_development_dependency 'rspec', '~>2.6.0'
|
33
33
|
s.add_development_dependency 'hanna'
|
data/tasks/rdoc.rake
CHANGED
@@ -10,8 +10,8 @@ end
|
|
10
10
|
Rake::RDocTask.new(:doc) do |rdoc|
|
11
11
|
version = Sunspot::VERSION
|
12
12
|
rdoc.title = "Sunspot #{version} - Solr-powered search for Ruby objects - API Documentation"
|
13
|
-
rdoc.main = 'README.
|
14
|
-
rdoc.rdoc_files.include('README.
|
13
|
+
rdoc.main = 'README.md'
|
14
|
+
rdoc.rdoc_files.include('README.md', 'lib/sunspot.rb', 'lib/sunspot/**/*.rb')
|
15
15
|
rdoc.rdoc_dir = 'doc'
|
16
16
|
rdoc.options << "--webcvs=http://github.com/outoftime/sunspot/tree/v#{version}/%s" << '--title' << 'Sunspot - Solr-powered search for Ruby objects - API Documentation'
|
17
17
|
end
|
metadata
CHANGED
@@ -1,15 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sunspot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 27
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 3
|
9
9
|
- 0
|
10
|
-
|
11
|
-
- 6
|
12
|
-
version: 1.3.0.rc6
|
10
|
+
version: 1.3.0
|
13
11
|
platform: ruby
|
14
12
|
authors:
|
15
13
|
- Mat Brown
|
@@ -35,7 +33,7 @@ autorequire:
|
|
35
33
|
bindir: bin
|
36
34
|
cert_chain: []
|
37
35
|
|
38
|
-
date: 2011-11-
|
36
|
+
date: 2011-11-26 00:00:00 Z
|
39
37
|
dependencies:
|
40
38
|
- !ruby/object:Gem::Dependency
|
41
39
|
name: rsolr
|
@@ -43,14 +41,14 @@ dependencies:
|
|
43
41
|
requirement: &id001 !ruby/object:Gem::Requirement
|
44
42
|
none: false
|
45
43
|
requirements:
|
46
|
-
- -
|
44
|
+
- - ~>
|
47
45
|
- !ruby/object:Gem::Version
|
48
|
-
hash:
|
46
|
+
hash: 27
|
49
47
|
segments:
|
50
48
|
- 1
|
51
49
|
- 0
|
52
|
-
-
|
53
|
-
version: 1.0.
|
50
|
+
- 6
|
51
|
+
version: 1.0.6
|
54
52
|
type: :runtime
|
55
53
|
version_requirements: *id001
|
56
54
|
- !ruby/object:Gem::Dependency
|
@@ -59,7 +57,7 @@ dependencies:
|
|
59
57
|
requirement: &id002 !ruby/object:Gem::Requirement
|
60
58
|
none: false
|
61
59
|
requirements:
|
62
|
-
- -
|
60
|
+
- - ~>
|
63
61
|
- !ruby/object:Gem::Version
|
64
62
|
hash: 23
|
65
63
|
segments:
|
@@ -130,7 +128,6 @@ files:
|
|
130
128
|
- LICENSE
|
131
129
|
- Rakefile
|
132
130
|
- TODO
|
133
|
-
- VERSION.yml
|
134
131
|
- lib/light_config.rb
|
135
132
|
- lib/sunspot.rb
|
136
133
|
- lib/sunspot/adapters.rb
|
@@ -269,6 +266,7 @@ files:
|
|
269
266
|
- spec/integration/scoped_search_spec.rb
|
270
267
|
- spec/integration/stored_fields_spec.rb
|
271
268
|
- spec/integration/test_pagination.rb
|
269
|
+
- spec/integration/unicode_spec.rb
|
272
270
|
- spec/mocks/adapters.rb
|
273
271
|
- spec/mocks/blog.rb
|
274
272
|
- spec/mocks/comment.rb
|
@@ -310,14 +308,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
310
308
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
311
309
|
none: false
|
312
310
|
requirements:
|
313
|
-
- - "
|
311
|
+
- - ">="
|
314
312
|
- !ruby/object:Gem::Version
|
315
|
-
hash:
|
313
|
+
hash: 3
|
316
314
|
segments:
|
317
|
-
-
|
318
|
-
|
319
|
-
- 1
|
320
|
-
version: 1.3.1
|
315
|
+
- 0
|
316
|
+
version: "0"
|
321
317
|
requirements: []
|
322
318
|
|
323
319
|
rubyforge_project: sunspot
|
@@ -387,6 +383,7 @@ test_files:
|
|
387
383
|
- spec/integration/scoped_search_spec.rb
|
388
384
|
- spec/integration/stored_fields_spec.rb
|
389
385
|
- spec/integration/test_pagination.rb
|
386
|
+
- spec/integration/unicode_spec.rb
|
390
387
|
- spec/mocks/adapters.rb
|
391
388
|
- spec/mocks/blog.rb
|
392
389
|
- spec/mocks/comment.rb
|
data/VERSION.yml
DELETED