mongoid_fulltext 0.5.8 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
data/spec/spec_helper.rb CHANGED
@@ -4,21 +4,20 @@ require 'rspec'
4
4
 
5
5
  require 'mongoid'
6
6
 
7
- Mongoid.configure do |config|
8
- name = "mongoid_fulltext_test"
9
- config.master = Mongo::Connection.new.db(name)
10
- config.logger = Logger.new('/dev/null')
11
- end
7
+ ENV['MONGOID_ENV'] = 'test'
8
+
9
+ Mongoid.load!("#{File.dirname(__FILE__)}/config/mongoid.yml")
10
+ Mongoid.logger = nil
12
11
 
13
12
  require File.expand_path("../../lib/mongoid_fulltext", __FILE__)
14
13
  Dir["#{File.dirname(__FILE__)}/models/**/*.rb"].each { |f| require f }
15
14
 
16
- Rspec.configure do |c|
15
+ RSpec.configure do |c|
17
16
  c.before(:each) do
18
- Mongoid.master.collections.select {|c| c.name !~ /system/ }.each(&:drop)
17
+ Mongoid.purge!
19
18
  end
20
- c.after(:all) do
21
- Mongoid.master.command({'dropDatabase' => 1})
19
+ c.after(:all) do
20
+ Mongoid.purge!
22
21
  end
23
22
  end
24
23
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongoid_fulltext
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.8
4
+ version: 0.6.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,63 +9,88 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-03-08 00:00:00.000000000Z
12
+ date: 2012-07-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
- name: unicode_utils
16
- requirement: &2165513880 !ruby/object:Gem::Requirement
15
+ name: mongoid
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
20
20
  - !ruby/object:Gem::Version
21
- version: 1.0.0
21
+ version: 3.0.1
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2165513880
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: 3.0.1
25
30
  - !ruby/object:Gem::Dependency
26
- name: mongoid
27
- requirement: &2165513400 !ruby/object:Gem::Requirement
31
+ name: unicode_utils
32
+ requirement: !ruby/object:Gem::Requirement
28
33
  none: false
29
34
  requirements:
30
35
  - - ~>
31
36
  - !ruby/object:Gem::Version
32
- version: 2.0.0
33
- type: :development
37
+ version: 1.0.0
38
+ type: :runtime
34
39
  prerelease: false
35
- version_requirements: *2165513400
36
- - !ruby/object:Gem::Dependency
37
- name: bson_ext
38
- requirement: &2165512920 !ruby/object:Gem::Requirement
40
+ version_requirements: !ruby/object:Gem::Requirement
39
41
  none: false
40
42
  requirements:
41
43
  - - ~>
42
44
  - !ruby/object:Gem::Version
43
- version: 1.5.2
45
+ version: 1.0.0
46
+ - !ruby/object:Gem::Dependency
47
+ name: bundler
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
44
54
  type: :development
45
55
  prerelease: false
46
- version_requirements: *2165512920
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
47
62
  - !ruby/object:Gem::Dependency
48
63
  name: rspec
49
- requirement: &2165512440 !ruby/object:Gem::Requirement
64
+ requirement: !ruby/object:Gem::Requirement
50
65
  none: false
51
66
  requirements:
52
67
  - - ~>
53
68
  - !ruby/object:Gem::Version
54
- version: 2.5.0
69
+ version: 2.10.0
55
70
  type: :development
56
71
  prerelease: false
57
- version_requirements: *2165512440
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ~>
76
+ - !ruby/object:Gem::Version
77
+ version: 2.10.0
58
78
  - !ruby/object:Gem::Dependency
59
79
  name: jeweler
60
- requirement: &2165511960 !ruby/object:Gem::Requirement
80
+ requirement: !ruby/object:Gem::Requirement
61
81
  none: false
62
82
  requirements:
63
83
  - - ~>
64
84
  - !ruby/object:Gem::Version
65
- version: 1.5.2
85
+ version: 1.8.3
66
86
  type: :development
67
87
  prerelease: false
68
- version_requirements: *2165511960
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ~>
92
+ - !ruby/object:Gem::Version
93
+ version: 1.8.3
69
94
  description: Full-text search for the Mongoid ORM, using n-grams extracted from text
70
95
  email: aaron.windsor@gmail.com
71
96
  executables: []
@@ -76,6 +101,8 @@ extra_rdoc_files:
76
101
  files:
77
102
  - .document
78
103
  - .rspec
104
+ - .travis.yml
105
+ - CHANGELOG.md
79
106
  - Gemfile
80
107
  - LICENSE
81
108
  - README.md
@@ -84,6 +111,7 @@ files:
84
111
  - lib/mongoid_fulltext.rb
85
112
  - lib/mongoid_indexes.rb
86
113
  - mongoid_fulltext.gemspec
114
+ - spec/config/mongoid.yml
87
115
  - spec/models/accentless_artwork.rb
88
116
  - spec/models/advanced_artwork.rb
89
117
  - spec/models/basic_artwork.rb
@@ -100,6 +128,7 @@ files:
100
128
  - spec/models/multi_field_artist.rb
101
129
  - spec/models/multi_field_artwork.rb
102
130
  - spec/models/partitioned_artist.rb
131
+ - spec/models/russian_artwork.rb
103
132
  - spec/models/short_prefixes_artwork.rb
104
133
  - spec/models/stopwords_artwork.rb
105
134
  - spec/mongoid/fulltext_spec.rb
@@ -119,7 +148,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
119
148
  version: '0'
120
149
  segments:
121
150
  - 0
122
- hash: -3796604883696425002
151
+ hash: -3796113181873837021
123
152
  required_rubygems_version: !ruby/object:Gem::Requirement
124
153
  none: false
125
154
  requirements:
@@ -128,28 +157,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
128
157
  version: '0'
129
158
  requirements: []
130
159
  rubyforge_project:
131
- rubygems_version: 1.8.10
160
+ rubygems_version: 1.8.24
132
161
  signing_key:
133
162
  specification_version: 3
134
163
  summary: Full-text search for the Mongoid ORM
135
- test_files:
136
- - spec/models/accentless_artwork.rb
137
- - spec/models/advanced_artwork.rb
138
- - spec/models/basic_artwork.rb
139
- - spec/models/delayed_artwork.rb
140
- - spec/models/external_artist.rb
141
- - spec/models/external_artwork.rb
142
- - spec/models/external_artwork_no_fields_supplied.rb
143
- - spec/models/filtered_artist.rb
144
- - spec/models/filtered_artwork.rb
145
- - spec/models/filtered_other.rb
146
- - spec/models/gallery/basic_artwork.rb
147
- - spec/models/hidden_dragon.rb
148
- - spec/models/multi_external_artwork.rb
149
- - spec/models/multi_field_artist.rb
150
- - spec/models/multi_field_artwork.rb
151
- - spec/models/partitioned_artist.rb
152
- - spec/models/short_prefixes_artwork.rb
153
- - spec/models/stopwords_artwork.rb
154
- - spec/mongoid/fulltext_spec.rb
155
- - spec/spec_helper.rb
164
+ test_files: []