mongoid-fts 0.4.2 → 0.4.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ YWY5NzE3YzAzMGQ0MmUzYTA1MzU1NWI3ZWJlZjM3NTY5NjhlMDNlOQ==
5
+ data.tar.gz: !binary |-
6
+ YmUxNzA0YTU5NzljYjBiZmM3ZjMxZTVjMGQwMTI2ZjNlNjI2ODQxYg==
7
+ !binary "U0hBNTEy":
8
+ metadata.gz: !binary |-
9
+ ZjFlODg3YzQ3ZTU4ZWE4MzAyOWZmYWM2ZjgyN2U4MjI1ZmQwMzZmMWVlNmUz
10
+ MzM5YjBjNTdlMWJjMTlkMWU0YzhiM2UyOThkYTc0YjNjOTYzNDFhOGUzYWYx
11
+ NTZjNjI1YjQ4MGRhNWZjYzZmOGQzNWYyMGE0ZGY3MWI3NjEyYTI=
12
+ data.tar.gz: !binary |-
13
+ OGY2M2ZiNDE5ZWNmZTk0YTBmNzk4N2EyZDA4ZjJlMzAyNjNlMjNkYmFkOTY1
14
+ N2Y5M2M2NjMxNTZhN2EzYmFlMDdmM2I3MDhkZDA5ZTNlZTY2Y2RkOTYyZjQz
15
+ ZjhjMjY4YzcyOTFlMWE0ZDVlNTJiYmU1ZDdkMGYyYTI1MmIxYjg=
data/README.md CHANGED
@@ -21,7 +21,7 @@ INSTALL
21
21
 
22
22
  ~> bundle install
23
23
 
24
- ~> rake db:mongoid:created_indexes
24
+ ~> rake db:mongoid:create_indexes
25
25
 
26
26
  # optional (this is done automatically)
27
27
 
@@ -94,7 +94,7 @@ SYNOPSIS
94
94
 
95
95
  ````
96
96
 
97
- the implementation is has only a work around for pagination, see
97
+ the implementation has a temporary work around for pagination, see
98
98
 
99
99
  https://groups.google.com/forum/#!topic/mongodb-user/2hUgOAN4KKk
100
100
 
@@ -1,7 +1,7 @@
1
1
  module Mongoid
2
2
  module FTS
3
3
  #
4
- const_set(:Version, '0.4.2') unless const_defined?(:Version)
4
+ const_set(:Version, '0.4.3') unless const_defined?(:Version)
5
5
 
6
6
  class << FTS
7
7
  def version
@@ -162,6 +162,8 @@ module Mongoid
162
162
  end
163
163
  end
164
164
 
165
+ alias_method(:current_page, :page)
166
+
165
167
  def per(*args)
166
168
  if args.empty?
167
169
  return @per
@@ -539,7 +541,7 @@ module Mongoid
539
541
  class FTS::Engine < ::Rails::Engine
540
542
  paths['app/models'] = ::File.dirname(__FILE__)
541
543
 
542
- config.after_initialize do
544
+ config.before_initialize do
543
545
  Mongoid::FTS.enable!(:warn => true)
544
546
  end
545
547
  end
@@ -3,7 +3,7 @@
3
3
 
4
4
  Gem::Specification::new do |spec|
5
5
  spec.name = "mongoid-fts"
6
- spec.version = "0.4.2"
6
+ spec.version = "0.4.3"
7
7
  spec.platform = Gem::Platform::RUBY
8
8
  spec.summary = "mongoid-fts"
9
9
  spec.description = "enable mongodb's new fulltext simply and quickly on your mongoid models, including pagination."
metadata CHANGED
@@ -1,20 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongoid-fts
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
5
- prerelease:
4
+ version: 0.4.3
6
5
  platform: ruby
7
6
  authors:
8
7
  - Ara T. Howard
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-06-21 00:00:00.000000000 Z
11
+ date: 2013-08-01 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: mongoid
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ~>
20
18
  - !ruby/object:Gem::Version
@@ -22,7 +20,6 @@ dependencies:
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - ~>
28
25
  - !ruby/object:Gem::Version
@@ -30,7 +27,6 @@ dependencies:
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: map
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
31
  - - ~>
36
32
  - !ruby/object:Gem::Version
@@ -38,7 +34,6 @@ dependencies:
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
38
  - - ~>
44
39
  - !ruby/object:Gem::Version
@@ -46,7 +41,6 @@ dependencies:
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: coerce
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
45
  - - ~>
52
46
  - !ruby/object:Gem::Version
@@ -54,7 +48,6 @@ dependencies:
54
48
  type: :runtime
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
52
  - - ~>
60
53
  - !ruby/object:Gem::Version
@@ -73,26 +66,25 @@ files:
73
66
  - mongoid-fts.gemspec
74
67
  homepage: https://github.com/ahoward/mongoid-fts
75
68
  licenses: []
69
+ metadata: {}
76
70
  post_install_message:
77
71
  rdoc_options: []
78
72
  require_paths:
79
73
  - lib
80
74
  required_ruby_version: !ruby/object:Gem::Requirement
81
- none: false
82
75
  requirements:
83
76
  - - ! '>='
84
77
  - !ruby/object:Gem::Version
85
78
  version: '0'
86
79
  required_rubygems_version: !ruby/object:Gem::Requirement
87
- none: false
88
80
  requirements:
89
81
  - - ! '>='
90
82
  - !ruby/object:Gem::Version
91
83
  version: '0'
92
84
  requirements: []
93
85
  rubyforge_project: codeforpeople
94
- rubygems_version: 1.8.23
86
+ rubygems_version: 2.0.3
95
87
  signing_key:
96
- specification_version: 3
88
+ specification_version: 4
97
89
  summary: mongoid-fts
98
90
  test_files: []