thinking-sphinx-raspell 1.1.1 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,20 +4,27 @@ This library adds Aspell/Raspell support to "Thinking Sphinx":http://ts.freelanc
4
4
 
5
5
  h2. Installation
6
6
 
7
- You'll need "the Aspell library":http://www.aspell.net (easily compiled by source, or installed via MacPorts). Don't forget to install the English library as well - there's instructions for both in Evan Weaver's "Raspell README":http://github.com/fauna/raspell.
7
+ You'll need "the Aspell library":http://www.aspell.net (easily compiled by source, or installed via Homebrew or MacPorts). Don't forget to install the English library as well - there's instructions for both in Evan Weaver's "Raspell README":http://github.com/fauna/raspell.
8
8
 
9
- Once that's set up, grab the gem from "GemCutter":http://gemcutter.org:
9
+ Once that's set up, grab the gem:
10
10
 
11
- <pre><code>sudo gem install thinking-sphinx-raspell \
12
- --source http://gemcutter.org</code></pre>
11
+ <pre><code>gem install thinking-sphinx-raspell</code></pre>
13
12
 
14
- You'll want to add the gem to your @config/environment.rb@ file (assuming you're working on a Rails application):
13
+ You'll want to add the gem to your @Gemfile@:
15
14
 
16
- <pre><code>config.gem('thinking-sphinx-raspell',
15
+ <pre><code>gem 'thinking-sphinx-raspell', '1.1.1',
16
+ :require => 'thinking_sphinx/raspell'</code></pre>
17
+
18
+ If you're using Ruby 1.9, @raspell@ doesn't currently work, but recent commits to this library now use @dmarkow-raspell@ instead - so use Github as your source:
19
+
20
+ <pre><code>gem 'thinking-sphinx-raspell',
21
+ :git => 'git://github.com/freelancing-god/thinking-sphinx-raspell.git'</code></pre>
22
+
23
+ Or, if using older versions of Rails, your @config/environment.rb@ file:
24
+
25
+ <pre><code>config.gem 'thinking-sphinx-raspell',
17
26
  :lib => 'thinking_sphinx/raspell',
18
- :source => 'http://gemcutter.org',
19
- :version => '>= 1.0.0'
20
- )</code></pre>
27
+ :version => '>= 1.0.0'</code></pre>
21
28
 
22
29
  Or, if you wish to do a manual require yourself:
23
30
 
@@ -63,4 +70,4 @@ Patches are very much welcome - I would like to address this last remaining limi
63
70
 
64
71
  h2. Copyright
65
72
 
66
- Copyright (c) 2009 "Pat Allan":http://freelancing-gods.com. Released under an MIT licence.
73
+ Copyright (c) 2009-2011 "Pat Allan":http://freelancing-gods.com. Released under an MIT licence.
@@ -1,4 +1,4 @@
1
- ---
1
+ ---
2
2
  :major: 1
3
3
  :minor: 1
4
- :patch: 1
4
+ :patch: 2
@@ -1,4 +1,5 @@
1
1
  require 'raspell'
2
+ require 'thinking_sphinx'
2
3
  require 'thinking_sphinx/raspell/configuration'
3
4
 
4
5
  module ThinkingSphinx
@@ -1,3 +1,5 @@
1
+ require 'singleton'
2
+
1
3
  module ThinkingSphinx
2
4
  module Raspell
3
5
  # Configuration settings for spelling suggestions in Thinking Sphinx. You
@@ -1,13 +1,14 @@
1
- $LOAD_PATH.unshift(File.dirname(__FILE__))
2
- $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
1
+ require 'rubygems'
2
+ require 'bundler'
3
+ require 'logger'
3
4
 
4
- require 'spec'
5
- require 'spec/autorun'
5
+ $:.unshift File.dirname(__FILE__) + '/../lib'
6
+ $:.unshift File.dirname(__FILE__) + '/..'
6
7
 
7
- require 'thinking_sphinx'
8
- require 'raspell'
9
8
  require 'thinking_sphinx/raspell'
10
9
 
11
- Spec::Runner.configure do |config|
10
+ ThinkingSphinx::ActiveRecord::LogSubscriber.logger = Logger.new(StringIO.new)
11
+
12
+ RSpec.configure do |config|
12
13
  #
13
14
  end
@@ -1,4 +1,4 @@
1
- require 'spec/spec_helper'
1
+ require 'spec_helper'
2
2
 
3
3
  describe ThinkingSphinx::Configuration do
4
4
  describe '#raspell' do
@@ -1,4 +1,4 @@
1
- require 'spec/spec_helper'
1
+ require 'spec_helper'
2
2
 
3
3
  describe ThinkingSphinx::Search do
4
4
  before :each do
metadata CHANGED
@@ -1,7 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thinking-sphinx-raspell
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ prerelease:
5
+ version: 1.1.2
5
6
  platform: ruby
6
7
  authors:
7
8
  - Pat Allan
@@ -9,49 +10,64 @@ autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
12
 
12
- date: 2010-02-15 00:00:00 +11:00
13
+ date: 2011-08-26 00:00:00 +10:00
13
14
  default_executable:
14
15
  dependencies:
15
16
  - !ruby/object:Gem::Dependency
16
- name: thinking-sphinx
17
+ name: raspell
18
+ requirement: &id001 !ruby/object:Gem::Requirement
19
+ none: false
20
+ requirements:
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
23
+ version: 1.2.2
17
24
  type: :runtime
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
25
+ prerelease: false
26
+ version_requirements: *id001
27
+ - !ruby/object:Gem::Dependency
28
+ name: thinking-sphinx
29
+ requirement: &id002 !ruby/object:Gem::Requirement
30
+ none: false
20
31
  requirements:
21
32
  - - ">="
22
33
  - !ruby/object:Gem::Version
23
34
  version: 1.2.12
24
- version:
25
- - !ruby/object:Gem::Dependency
26
- name: raspell
27
35
  type: :runtime
28
- version_requirement:
29
- version_requirements: !ruby/object:Gem::Requirement
36
+ prerelease: false
37
+ version_requirements: *id002
38
+ - !ruby/object:Gem::Dependency
39
+ name: jeweler
40
+ requirement: &id003 !ruby/object:Gem::Requirement
41
+ none: false
30
42
  requirements:
31
- - - ">="
43
+ - - "="
32
44
  - !ruby/object:Gem::Version
33
- version: "1.1"
34
- version:
45
+ version: 1.5.1
46
+ type: :development
47
+ prerelease: false
48
+ version_requirements: *id003
35
49
  - !ruby/object:Gem::Dependency
36
50
  name: rspec
37
- type: :development
38
- version_requirement:
39
- version_requirements: !ruby/object:Gem::Requirement
51
+ requirement: &id004 !ruby/object:Gem::Requirement
52
+ none: false
40
53
  requirements:
41
- - - ">="
54
+ - - "="
42
55
  - !ruby/object:Gem::Version
43
- version: "0"
44
- version:
56
+ version: 2.5.0
57
+ type: :development
58
+ prerelease: false
59
+ version_requirements: *id004
45
60
  - !ruby/object:Gem::Dependency
46
61
  name: yard
47
- type: :development
48
- version_requirement:
49
- version_requirements: !ruby/object:Gem::Requirement
62
+ requirement: &id005 !ruby/object:Gem::Requirement
63
+ none: false
50
64
  requirements:
51
- - - ">="
65
+ - - "="
52
66
  - !ruby/object:Gem::Version
53
- version: "0"
54
- version:
67
+ version: 0.6.8
68
+ type: :development
69
+ prerelease: false
70
+ version_requirements: *id005
55
71
  description: Adds spelling suggestions to Thinking Sphinx searches.
56
72
  email: pat@freelancing-gods.com
57
73
  executables: []
@@ -67,31 +83,37 @@ files:
67
83
  - VERSION.yml
68
84
  - lib/thinking_sphinx/raspell.rb
69
85
  - lib/thinking_sphinx/raspell/configuration.rb
86
+ - spec/spec_helper.rb
87
+ - spec/thinking_sphinx/raspell/configuration_spec.rb
88
+ - spec/thinking_sphinx/raspell_spec.rb
70
89
  has_rdoc: true
71
90
  homepage: http://ts.freelancing-gods.com
72
91
  licenses: []
73
92
 
74
93
  post_install_message:
75
- rdoc_options:
76
- - --charset=UTF-8
94
+ rdoc_options: []
95
+
77
96
  require_paths:
78
97
  - lib
79
98
  required_ruby_version: !ruby/object:Gem::Requirement
99
+ none: false
80
100
  requirements:
81
101
  - - ">="
82
102
  - !ruby/object:Gem::Version
103
+ hash: 1919485933362002957
104
+ segments:
105
+ - 0
83
106
  version: "0"
84
- version:
85
107
  required_rubygems_version: !ruby/object:Gem::Requirement
108
+ none: false
86
109
  requirements:
87
110
  - - ">="
88
111
  - !ruby/object:Gem::Version
89
112
  version: "0"
90
- version:
91
113
  requirements: []
92
114
 
93
115
  rubyforge_project:
94
- rubygems_version: 1.3.5
116
+ rubygems_version: 1.6.2
95
117
  signing_key:
96
118
  specification_version: 3
97
119
  summary: An add-on gem for spelling suggestions in Thinking Sphinx