mongoid_immutable_fields 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/mongoid_immutable_fields/immutable_fields.rb +1 -1
- data/spec/spec_helper.rb +5 -4
- metadata +98 -104
data/spec/spec_helper.rb
CHANGED
@@ -6,16 +6,17 @@ require 'rubygems'
|
|
6
6
|
Dir["./spec/support/**/*.rb"].each {|f| require f}
|
7
7
|
|
8
8
|
RSpec.configure do |config|
|
9
|
-
|
9
|
+
|
10
|
+
DatabaseCleaner.strategy = :truncation
|
11
|
+
|
10
12
|
Mongoid.configure do |mconfig|
|
13
|
+
mconfig.skip_version_check = true
|
11
14
|
name = "monogid_immutable_fields_test"
|
12
15
|
host = "localhost"
|
13
16
|
port = 27017
|
14
17
|
mconfig.database = Mongo::Connection.new.db(name)
|
15
18
|
end
|
16
|
-
|
17
|
-
DatabaseCleaner.strategy = :truncation
|
18
|
-
|
19
|
+
|
19
20
|
config.before(:each) do
|
20
21
|
DatabaseCleaner.clean
|
21
22
|
end
|
metadata
CHANGED
@@ -1,149 +1,146 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: mongoid_immutable_fields
|
3
|
-
version: !ruby/object:Gem::Version
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.4.0
|
4
5
|
prerelease:
|
5
|
-
version: 0.3.0
|
6
6
|
platform: ruby
|
7
|
-
authors:
|
7
|
+
authors:
|
8
8
|
- Jeff Bozek
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
dependencies:
|
16
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2012-02-17 00:00:00.000000000Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
17
15
|
name: bundler
|
18
|
-
requirement: &
|
16
|
+
requirement: &70245287878100 !ruby/object:Gem::Requirement
|
19
17
|
none: false
|
20
|
-
requirements:
|
18
|
+
requirements:
|
21
19
|
- - ~>
|
22
|
-
- !ruby/object:Gem::Version
|
20
|
+
- !ruby/object:Gem::Version
|
23
21
|
version: 1.0.0
|
24
22
|
type: :development
|
25
23
|
prerelease: false
|
26
|
-
version_requirements: *
|
27
|
-
- !ruby/object:Gem::Dependency
|
24
|
+
version_requirements: *70245287878100
|
25
|
+
- !ruby/object:Gem::Dependency
|
28
26
|
name: jeweler
|
29
|
-
requirement: &
|
27
|
+
requirement: &70245287877580 !ruby/object:Gem::Requirement
|
30
28
|
none: false
|
31
|
-
requirements:
|
29
|
+
requirements:
|
32
30
|
- - ~>
|
33
|
-
- !ruby/object:Gem::Version
|
31
|
+
- !ruby/object:Gem::Version
|
34
32
|
version: 1.5.2
|
35
33
|
type: :development
|
36
34
|
prerelease: false
|
37
|
-
version_requirements: *
|
38
|
-
- !ruby/object:Gem::Dependency
|
35
|
+
version_requirements: *70245287877580
|
36
|
+
- !ruby/object:Gem::Dependency
|
39
37
|
name: rspec
|
40
|
-
requirement: &
|
38
|
+
requirement: &70245287876820 !ruby/object:Gem::Requirement
|
41
39
|
none: false
|
42
|
-
requirements:
|
43
|
-
- -
|
44
|
-
- !ruby/object:Gem::Version
|
45
|
-
version:
|
40
|
+
requirements:
|
41
|
+
- - ! '>='
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '0'
|
46
44
|
type: :development
|
47
45
|
prerelease: false
|
48
|
-
version_requirements: *
|
49
|
-
- !ruby/object:Gem::Dependency
|
46
|
+
version_requirements: *70245287876820
|
47
|
+
- !ruby/object:Gem::Dependency
|
50
48
|
name: shoulda
|
51
|
-
requirement: &
|
49
|
+
requirement: &70245287876000 !ruby/object:Gem::Requirement
|
52
50
|
none: false
|
53
|
-
requirements:
|
54
|
-
- -
|
55
|
-
- !ruby/object:Gem::Version
|
56
|
-
version:
|
51
|
+
requirements:
|
52
|
+
- - ! '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
57
55
|
type: :development
|
58
56
|
prerelease: false
|
59
|
-
version_requirements: *
|
60
|
-
- !ruby/object:Gem::Dependency
|
57
|
+
version_requirements: *70245287876000
|
58
|
+
- !ruby/object:Gem::Dependency
|
61
59
|
name: mongo
|
62
|
-
requirement: &
|
60
|
+
requirement: &70245287875180 !ruby/object:Gem::Requirement
|
63
61
|
none: false
|
64
|
-
requirements:
|
65
|
-
- -
|
66
|
-
- !ruby/object:Gem::Version
|
67
|
-
version:
|
62
|
+
requirements:
|
63
|
+
- - =
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: 1.3.1
|
68
66
|
type: :development
|
69
67
|
prerelease: false
|
70
|
-
version_requirements: *
|
71
|
-
- !ruby/object:Gem::Dependency
|
68
|
+
version_requirements: *70245287875180
|
69
|
+
- !ruby/object:Gem::Dependency
|
72
70
|
name: mongo_ext
|
73
|
-
requirement: &
|
71
|
+
requirement: &70245287874340 !ruby/object:Gem::Requirement
|
74
72
|
none: false
|
75
|
-
requirements:
|
76
|
-
- -
|
77
|
-
- !ruby/object:Gem::Version
|
78
|
-
version:
|
73
|
+
requirements:
|
74
|
+
- - ! '>='
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: '0'
|
79
77
|
type: :development
|
80
78
|
prerelease: false
|
81
|
-
version_requirements: *
|
82
|
-
- !ruby/object:Gem::Dependency
|
79
|
+
version_requirements: *70245287874340
|
80
|
+
- !ruby/object:Gem::Dependency
|
83
81
|
name: mongoid
|
84
|
-
requirement: &
|
82
|
+
requirement: &70245287873680 !ruby/object:Gem::Requirement
|
85
83
|
none: false
|
86
|
-
requirements:
|
87
|
-
- -
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version: 2.
|
84
|
+
requirements:
|
85
|
+
- - =
|
86
|
+
- !ruby/object:Gem::Version
|
87
|
+
version: 2.4.3
|
90
88
|
type: :development
|
91
89
|
prerelease: false
|
92
|
-
version_requirements: *
|
93
|
-
- !ruby/object:Gem::Dependency
|
90
|
+
version_requirements: *70245287873680
|
91
|
+
- !ruby/object:Gem::Dependency
|
94
92
|
name: bson_ext
|
95
|
-
requirement: &
|
93
|
+
requirement: &70245287873060 !ruby/object:Gem::Requirement
|
96
94
|
none: false
|
97
|
-
requirements:
|
95
|
+
requirements:
|
98
96
|
- - ~>
|
99
|
-
- !ruby/object:Gem::Version
|
100
|
-
version:
|
97
|
+
- !ruby/object:Gem::Version
|
98
|
+
version: '1.3'
|
101
99
|
type: :development
|
102
100
|
prerelease: false
|
103
|
-
version_requirements: *
|
104
|
-
- !ruby/object:Gem::Dependency
|
101
|
+
version_requirements: *70245287873060
|
102
|
+
- !ruby/object:Gem::Dependency
|
105
103
|
name: database_cleaner
|
106
|
-
requirement: &
|
104
|
+
requirement: &70245287872540 !ruby/object:Gem::Requirement
|
107
105
|
none: false
|
108
|
-
requirements:
|
109
|
-
- -
|
110
|
-
- !ruby/object:Gem::Version
|
111
|
-
version:
|
106
|
+
requirements:
|
107
|
+
- - ! '>='
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '0'
|
112
110
|
type: :development
|
113
111
|
prerelease: false
|
114
|
-
version_requirements: *
|
115
|
-
- !ruby/object:Gem::Dependency
|
112
|
+
version_requirements: *70245287872540
|
113
|
+
- !ruby/object:Gem::Dependency
|
116
114
|
name: mongo
|
117
|
-
requirement: &
|
115
|
+
requirement: &70245287872000 !ruby/object:Gem::Requirement
|
118
116
|
none: false
|
119
|
-
requirements:
|
120
|
-
- -
|
121
|
-
- !ruby/object:Gem::Version
|
122
|
-
version:
|
117
|
+
requirements:
|
118
|
+
- - =
|
119
|
+
- !ruby/object:Gem::Version
|
120
|
+
version: 1.3.1
|
123
121
|
type: :runtime
|
124
122
|
prerelease: false
|
125
|
-
version_requirements: *
|
126
|
-
- !ruby/object:Gem::Dependency
|
123
|
+
version_requirements: *70245287872000
|
124
|
+
- !ruby/object:Gem::Dependency
|
127
125
|
name: mongoid
|
128
|
-
requirement: &
|
126
|
+
requirement: &70245287871480 !ruby/object:Gem::Requirement
|
129
127
|
none: false
|
130
|
-
requirements:
|
131
|
-
- -
|
132
|
-
- !ruby/object:Gem::Version
|
133
|
-
version: 2.
|
128
|
+
requirements:
|
129
|
+
- - =
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: 2.4.3
|
134
132
|
type: :runtime
|
135
133
|
prerelease: false
|
136
|
-
version_requirements: *
|
137
|
-
description: Prevent fields from being updated by including a mongoid module and marking
|
134
|
+
version_requirements: *70245287871480
|
135
|
+
description: Prevent fields from being updated by including a mongoid module and marking
|
136
|
+
the fields as immutable.
|
138
137
|
email: jeff.bozek@gmail.com
|
139
138
|
executables: []
|
140
|
-
|
141
139
|
extensions: []
|
142
|
-
|
143
|
-
extra_rdoc_files:
|
140
|
+
extra_rdoc_files:
|
144
141
|
- LICENSE.txt
|
145
142
|
- README.markdown
|
146
|
-
files:
|
143
|
+
files:
|
147
144
|
- lib/mongoid_immutable_fields.rb
|
148
145
|
- lib/mongoid_immutable_fields/immutable_fields.rb
|
149
146
|
- lib/mongoid_immutable_fields/mongoid_filthy.rb
|
@@ -152,38 +149,35 @@ files:
|
|
152
149
|
- spec/immutable_fields_spec.rb
|
153
150
|
- spec/spec_helper.rb
|
154
151
|
- spec/support/dummy_document.rb
|
155
|
-
has_rdoc: true
|
156
152
|
homepage: http://github.com/jeffbozek/mongoid_immutable_fields
|
157
|
-
licenses:
|
153
|
+
licenses:
|
158
154
|
- MIT
|
159
155
|
post_install_message:
|
160
156
|
rdoc_options: []
|
161
|
-
|
162
|
-
require_paths:
|
157
|
+
require_paths:
|
163
158
|
- lib
|
164
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
159
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
165
160
|
none: false
|
166
|
-
requirements:
|
167
|
-
- -
|
168
|
-
- !ruby/object:Gem::Version
|
169
|
-
|
170
|
-
segments:
|
161
|
+
requirements:
|
162
|
+
- - ! '>='
|
163
|
+
- !ruby/object:Gem::Version
|
164
|
+
version: '0'
|
165
|
+
segments:
|
171
166
|
- 0
|
172
|
-
|
173
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
167
|
+
hash: 2347292288252551569
|
168
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
174
169
|
none: false
|
175
|
-
requirements:
|
176
|
-
- -
|
177
|
-
- !ruby/object:Gem::Version
|
178
|
-
version:
|
170
|
+
requirements:
|
171
|
+
- - ! '>='
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '0'
|
179
174
|
requirements: []
|
180
|
-
|
181
175
|
rubyforge_project:
|
182
|
-
rubygems_version: 1.
|
176
|
+
rubygems_version: 1.8.10
|
183
177
|
signing_key:
|
184
178
|
specification_version: 3
|
185
179
|
summary: A simple gem that allows for creating immutable fields on your Mongoid documents.
|
186
|
-
test_files:
|
180
|
+
test_files:
|
187
181
|
- spec/immutable_fields_spec.rb
|
188
182
|
- spec/spec_helper.rb
|
189
183
|
- spec/support/dummy_document.rb
|