mongoid_alphadog 0.5.3 → 0.5.4

Sign up to get free protection for your applications and to get access to all the features.
data/MIT_LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2012 Lone Star Internet
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.markdown CHANGED
@@ -31,6 +31,15 @@ Add mongoid_alphadog to your Gemfile:
31
31
 
32
32
  gem 'mongoid_alphadog'
33
33
 
34
+ IMPORTANT NOTE
35
+ --------------
36
+
37
+ Keep in mind that adding this to an existing app won't necessarily work immediately. Since alphadog does its magic on a before_save added to your model, you will want to make sure you re-save all the documents in collections to which you add Mongoid::Alphadog. Easy, not-necessarily-performant way:
38
+
39
+ Item.all.each{ |i| i.save }
40
+
41
+ Maybe someday I'll add a fancy rake task or something to help you alphadog-ify pre-existing documents. But for now, you're on your own.
42
+
34
43
  Alphabetizing a Single Field
35
44
  ----------------------------
36
45
 
@@ -92,4 +101,3 @@ Indexes
92
101
 
93
102
  Mongoid_Alphadog automatically adds indexes on the XXX_loweralpha fields. Make sure to generate your mongodb indexes by whichever means you prefer.
94
103
 
95
-
@@ -1,3 +1,3 @@
1
1
  module MongoidAlphadog
2
- VERSION = "0.5.3"
2
+ VERSION = "0.5.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mongoid_alphadog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.3
4
+ version: 0.5.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -14,7 +14,7 @@ date: 2012-02-15 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: mongoid
17
- requirement: &2166030080 !ruby/object:Gem::Requirement
17
+ requirement: &2166026280 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ! '>='
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: 2.0.2
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *2166030080
25
+ version_requirements: *2166026280
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: rdoc
28
- requirement: &2166029520 !ruby/object:Gem::Requirement
28
+ requirement: &2166025720 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ! '>='
@@ -33,10 +33,10 @@ dependencies:
33
33
  version: 2.5.11
34
34
  type: :runtime
35
35
  prerelease: false
36
- version_requirements: *2166029520
36
+ version_requirements: *2166025720
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: bson_ext
39
- requirement: &2166029040 !ruby/object:Gem::Requirement
39
+ requirement: &2166025240 !ruby/object:Gem::Requirement
40
40
  none: false
41
41
  requirements:
42
42
  - - ! '>='
@@ -44,10 +44,10 @@ dependencies:
44
44
  version: 1.3.1
45
45
  type: :development
46
46
  prerelease: false
47
- version_requirements: *2166029040
47
+ version_requirements: *2166025240
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: rspec-core
50
- requirement: &2166028520 !ruby/object:Gem::Requirement
50
+ requirement: &2166024760 !ruby/object:Gem::Requirement
51
51
  none: false
52
52
  requirements:
53
53
  - - ! '>='
@@ -55,10 +55,10 @@ dependencies:
55
55
  version: 2.6.3
56
56
  type: :development
57
57
  prerelease: false
58
- version_requirements: *2166028520
58
+ version_requirements: *2166024760
59
59
  - !ruby/object:Gem::Dependency
60
60
  name: rspec
61
- requirement: &2166028020 !ruby/object:Gem::Requirement
61
+ requirement: &2166024220 !ruby/object:Gem::Requirement
62
62
  none: false
63
63
  requirements:
64
64
  - - ! '>='
@@ -66,10 +66,10 @@ dependencies:
66
66
  version: 2.6.0
67
67
  type: :development
68
68
  prerelease: false
69
- version_requirements: *2166028020
69
+ version_requirements: *2166024220
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: database_cleaner
72
- requirement: &2166027520 !ruby/object:Gem::Requirement
72
+ requirement: &2166023740 !ruby/object:Gem::Requirement
73
73
  none: false
74
74
  requirements:
75
75
  - - ! '>='
@@ -77,10 +77,10 @@ dependencies:
77
77
  version: 0.6.7
78
78
  type: :development
79
79
  prerelease: false
80
- version_requirements: *2166027520
80
+ version_requirements: *2166023740
81
81
  - !ruby/object:Gem::Dependency
82
82
  name: bundler
83
- requirement: &2166026980 !ruby/object:Gem::Requirement
83
+ requirement: &2166023220 !ruby/object:Gem::Requirement
84
84
  none: false
85
85
  requirements:
86
86
  - - ~>
@@ -88,10 +88,10 @@ dependencies:
88
88
  version: 1.0.0
89
89
  type: :development
90
90
  prerelease: false
91
- version_requirements: *2166026980
91
+ version_requirements: *2166023220
92
92
  - !ruby/object:Gem::Dependency
93
93
  name: jeweler
94
- requirement: &2166026480 !ruby/object:Gem::Requirement
94
+ requirement: &2166022700 !ruby/object:Gem::Requirement
95
95
  none: false
96
96
  requirements:
97
97
  - - ~>
@@ -99,7 +99,7 @@ dependencies:
99
99
  version: 1.6.0
100
100
  type: :development
101
101
  prerelease: false
102
- version_requirements: *2166026480
102
+ version_requirements: *2166022700
103
103
  description: A simple little gem that makes it easy to handle case-insensitive alphabetizing
104
104
  for Mongoid document models
105
105
  email:
@@ -110,6 +110,7 @@ extra_rdoc_files: []
110
110
  files:
111
111
  - .gitignore
112
112
  - Gemfile
113
+ - MIT_LICENSE
113
114
  - README.markdown
114
115
  - Rakefile
115
116
  - lib/mongoid/alphadog.rb
@@ -134,7 +135,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
134
135
  version: '0'
135
136
  segments:
136
137
  - 0
137
- hash: -3625137344799660450
138
+ hash: 4547979827458163647
138
139
  required_rubygems_version: !ruby/object:Gem::Requirement
139
140
  none: false
140
141
  requirements:
@@ -143,7 +144,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
143
144
  version: '0'
144
145
  segments:
145
146
  - 0
146
- hash: -3625137344799660450
147
+ hash: 4547979827458163647
147
148
  requirements: []
148
149
  rubyforge_project: mongoid_alphadog
149
150
  rubygems_version: 1.8.10