mongoid-history 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +1 -1
- data/VERSION +1 -1
- data/mongoid-history.gemspec +6 -6
- metadata +92 -91
data/Gemfile
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.2
|
data/mongoid-history.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{mongoid-history}
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.2"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = [%q{Aaron Qian}, %q{Justin Grimes}]
|
12
|
-
s.date = %q{2011-
|
12
|
+
s.date = %q{2011-06-21}
|
13
13
|
s.description = %q{In frustration of Mongoid::Versioning, I created this plugin for tracking historical changes for any document, including embedded ones. It achieves this by storing all history tracks in a single collection that you define. (See Usage for more details) Embedded documents are referenced by storing an association path, which is an array of document_name and document_id fields starting from the top most parent document and down to the embedded document that should track history.
|
14
14
|
|
15
15
|
This plugin implements multi-user undo, which allows users to undo any history change in any order. Undoing a document also creates a new history track. This is great for auditing and preventing vandalism, but it is probably not suitable for use cases such as a wiki.}
|
@@ -40,7 +40,7 @@ Gem::Specification.new do |s|
|
|
40
40
|
s.homepage = %q{http://github.com/aq1018/mongoid-history}
|
41
41
|
s.licenses = [%q{MIT}]
|
42
42
|
s.require_paths = [%q{lib}]
|
43
|
-
s.rubygems_version = %q{1.8.
|
43
|
+
s.rubygems_version = %q{1.8.5}
|
44
44
|
s.summary = %q{history tracking, auditing, undo, redo for mongoid}
|
45
45
|
s.test_files = [
|
46
46
|
"spec/integration/integration_spec.rb",
|
@@ -54,7 +54,7 @@ Gem::Specification.new do |s|
|
|
54
54
|
|
55
55
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
56
56
|
s.add_runtime_dependency(%q<easy_diff>, [">= 0"])
|
57
|
-
s.add_runtime_dependency(%q<mongoid>, ["~> 2.0.
|
57
|
+
s.add_runtime_dependency(%q<mongoid>, ["~> 2.0.2"])
|
58
58
|
s.add_development_dependency(%q<rspec>, ["~> 2.3.0"])
|
59
59
|
s.add_development_dependency(%q<yard>, ["~> 0.6.0"])
|
60
60
|
s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
|
@@ -65,7 +65,7 @@ Gem::Specification.new do |s|
|
|
65
65
|
s.add_development_dependency(%q<database_cleaner>, [">= 0"])
|
66
66
|
else
|
67
67
|
s.add_dependency(%q<easy_diff>, [">= 0"])
|
68
|
-
s.add_dependency(%q<mongoid>, ["~> 2.0.
|
68
|
+
s.add_dependency(%q<mongoid>, ["~> 2.0.2"])
|
69
69
|
s.add_dependency(%q<rspec>, ["~> 2.3.0"])
|
70
70
|
s.add_dependency(%q<yard>, ["~> 0.6.0"])
|
71
71
|
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
@@ -77,7 +77,7 @@ Gem::Specification.new do |s|
|
|
77
77
|
end
|
78
78
|
else
|
79
79
|
s.add_dependency(%q<easy_diff>, [">= 0"])
|
80
|
-
s.add_dependency(%q<mongoid>, ["~> 2.0.
|
80
|
+
s.add_dependency(%q<mongoid>, ["~> 2.0.2"])
|
81
81
|
s.add_dependency(%q<rspec>, ["~> 2.3.0"])
|
82
82
|
s.add_dependency(%q<yard>, ["~> 0.6.0"])
|
83
83
|
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
metadata
CHANGED
@@ -1,143 +1,146 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: mongoid-history
|
3
|
-
version: !ruby/object:Gem::Version
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.2
|
4
5
|
prerelease:
|
5
|
-
version: 0.1.1
|
6
6
|
platform: ruby
|
7
|
-
authors:
|
7
|
+
authors:
|
8
8
|
- Aaron Qian
|
9
9
|
- Justin Grimes
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
- !ruby/object:Gem::Dependency
|
13
|
+
date: 2011-06-21 00:00:00.000000000Z
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
17
16
|
name: easy_diff
|
18
|
-
requirement: &
|
17
|
+
requirement: &19314700 !ruby/object:Gem::Requirement
|
19
18
|
none: false
|
20
|
-
requirements:
|
21
|
-
- -
|
22
|
-
- !ruby/object:Gem::Version
|
23
|
-
version:
|
19
|
+
requirements:
|
20
|
+
- - ! '>='
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '0'
|
24
23
|
type: :runtime
|
25
24
|
prerelease: false
|
26
|
-
version_requirements: *
|
27
|
-
- !ruby/object:Gem::Dependency
|
25
|
+
version_requirements: *19314700
|
26
|
+
- !ruby/object:Gem::Dependency
|
28
27
|
name: mongoid
|
29
|
-
requirement: &
|
28
|
+
requirement: &19314180 !ruby/object:Gem::Requirement
|
30
29
|
none: false
|
31
|
-
requirements:
|
30
|
+
requirements:
|
32
31
|
- - ~>
|
33
|
-
- !ruby/object:Gem::Version
|
34
|
-
version: 2.0.
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 2.0.2
|
35
34
|
type: :runtime
|
36
35
|
prerelease: false
|
37
|
-
version_requirements: *
|
38
|
-
- !ruby/object:Gem::Dependency
|
36
|
+
version_requirements: *19314180
|
37
|
+
- !ruby/object:Gem::Dependency
|
39
38
|
name: rspec
|
40
|
-
requirement: &
|
39
|
+
requirement: &19312780 !ruby/object:Gem::Requirement
|
41
40
|
none: false
|
42
|
-
requirements:
|
41
|
+
requirements:
|
43
42
|
- - ~>
|
44
|
-
- !ruby/object:Gem::Version
|
43
|
+
- !ruby/object:Gem::Version
|
45
44
|
version: 2.3.0
|
46
45
|
type: :development
|
47
46
|
prerelease: false
|
48
|
-
version_requirements: *
|
49
|
-
- !ruby/object:Gem::Dependency
|
47
|
+
version_requirements: *19312780
|
48
|
+
- !ruby/object:Gem::Dependency
|
50
49
|
name: yard
|
51
|
-
requirement: &
|
50
|
+
requirement: &19312260 !ruby/object:Gem::Requirement
|
52
51
|
none: false
|
53
|
-
requirements:
|
52
|
+
requirements:
|
54
53
|
- - ~>
|
55
|
-
- !ruby/object:Gem::Version
|
54
|
+
- !ruby/object:Gem::Version
|
56
55
|
version: 0.6.0
|
57
56
|
type: :development
|
58
57
|
prerelease: false
|
59
|
-
version_requirements: *
|
60
|
-
- !ruby/object:Gem::Dependency
|
58
|
+
version_requirements: *19312260
|
59
|
+
- !ruby/object:Gem::Dependency
|
61
60
|
name: bundler
|
62
|
-
requirement: &
|
61
|
+
requirement: &19311680 !ruby/object:Gem::Requirement
|
63
62
|
none: false
|
64
|
-
requirements:
|
63
|
+
requirements:
|
65
64
|
- - ~>
|
66
|
-
- !ruby/object:Gem::Version
|
65
|
+
- !ruby/object:Gem::Version
|
67
66
|
version: 1.0.0
|
68
67
|
type: :development
|
69
68
|
prerelease: false
|
70
|
-
version_requirements: *
|
71
|
-
- !ruby/object:Gem::Dependency
|
69
|
+
version_requirements: *19311680
|
70
|
+
- !ruby/object:Gem::Dependency
|
72
71
|
name: jeweler
|
73
|
-
requirement: &
|
72
|
+
requirement: &19311140 !ruby/object:Gem::Requirement
|
74
73
|
none: false
|
75
|
-
requirements:
|
74
|
+
requirements:
|
76
75
|
- - ~>
|
77
|
-
- !ruby/object:Gem::Version
|
76
|
+
- !ruby/object:Gem::Version
|
78
77
|
version: 1.5.2
|
79
78
|
type: :development
|
80
79
|
prerelease: false
|
81
|
-
version_requirements: *
|
82
|
-
- !ruby/object:Gem::Dependency
|
80
|
+
version_requirements: *19311140
|
81
|
+
- !ruby/object:Gem::Dependency
|
83
82
|
name: rcov
|
84
|
-
requirement: &
|
83
|
+
requirement: &19310600 !ruby/object:Gem::Requirement
|
85
84
|
none: false
|
86
|
-
requirements:
|
87
|
-
- -
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
version:
|
85
|
+
requirements:
|
86
|
+
- - ! '>='
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: '0'
|
90
89
|
type: :development
|
91
90
|
prerelease: false
|
92
|
-
version_requirements: *
|
93
|
-
- !ruby/object:Gem::Dependency
|
91
|
+
version_requirements: *19310600
|
92
|
+
- !ruby/object:Gem::Dependency
|
94
93
|
name: reek
|
95
|
-
requirement: &
|
94
|
+
requirement: &19310060 !ruby/object:Gem::Requirement
|
96
95
|
none: false
|
97
|
-
requirements:
|
96
|
+
requirements:
|
98
97
|
- - ~>
|
99
|
-
- !ruby/object:Gem::Version
|
98
|
+
- !ruby/object:Gem::Version
|
100
99
|
version: 1.2.8
|
101
100
|
type: :development
|
102
101
|
prerelease: false
|
103
|
-
version_requirements: *
|
104
|
-
- !ruby/object:Gem::Dependency
|
102
|
+
version_requirements: *19310060
|
103
|
+
- !ruby/object:Gem::Dependency
|
105
104
|
name: roodi
|
106
|
-
requirement: &
|
105
|
+
requirement: &19309520 !ruby/object:Gem::Requirement
|
107
106
|
none: false
|
108
|
-
requirements:
|
107
|
+
requirements:
|
109
108
|
- - ~>
|
110
|
-
- !ruby/object:Gem::Version
|
109
|
+
- !ruby/object:Gem::Version
|
111
110
|
version: 2.1.0
|
112
111
|
type: :development
|
113
112
|
prerelease: false
|
114
|
-
version_requirements: *
|
115
|
-
- !ruby/object:Gem::Dependency
|
113
|
+
version_requirements: *19309520
|
114
|
+
- !ruby/object:Gem::Dependency
|
116
115
|
name: database_cleaner
|
117
|
-
requirement: &
|
116
|
+
requirement: &19308980 !ruby/object:Gem::Requirement
|
118
117
|
none: false
|
119
|
-
requirements:
|
120
|
-
- -
|
121
|
-
- !ruby/object:Gem::Version
|
122
|
-
version:
|
118
|
+
requirements:
|
119
|
+
- - ! '>='
|
120
|
+
- !ruby/object:Gem::Version
|
121
|
+
version: '0'
|
123
122
|
type: :development
|
124
123
|
prerelease: false
|
125
|
-
version_requirements: *
|
126
|
-
description:
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
124
|
+
version_requirements: *19308980
|
125
|
+
description: ! "In frustration of Mongoid::Versioning, I created this plugin for tracking
|
126
|
+
historical changes for any document, including embedded ones. It achieves this by
|
127
|
+
storing all history tracks in a single collection that you define. (See Usage for
|
128
|
+
more details) Embedded documents are referenced by storing an association path,
|
129
|
+
which is an array of document_name and document_id fields starting from the top
|
130
|
+
most parent document and down to the embedded document that should track history.\n\n
|
131
|
+
\ This plugin implements multi-user undo, which allows users to undo any history
|
132
|
+
change in any order. Undoing a document also creates a new history track. This is
|
133
|
+
great for auditing and preventing vandalism, but it is probably not suitable for
|
134
|
+
use cases such as a wiki."
|
135
|
+
email:
|
131
136
|
- aq1018@gmail.com
|
132
137
|
- justin.mgrimes@gmail.com
|
133
138
|
executables: []
|
134
|
-
|
135
139
|
extensions: []
|
136
|
-
|
137
|
-
extra_rdoc_files:
|
140
|
+
extra_rdoc_files:
|
138
141
|
- LICENSE.txt
|
139
142
|
- README.rdoc
|
140
|
-
files:
|
143
|
+
files:
|
141
144
|
- .document
|
142
145
|
- .rspec
|
143
146
|
- .rvmrc
|
@@ -156,36 +159,34 @@ files:
|
|
156
159
|
- spec/trackable_spec.rb
|
157
160
|
- spec/tracker_spec.rb
|
158
161
|
homepage: http://github.com/aq1018/mongoid-history
|
159
|
-
licenses:
|
162
|
+
licenses:
|
160
163
|
- MIT
|
161
164
|
post_install_message:
|
162
165
|
rdoc_options: []
|
163
|
-
|
164
|
-
require_paths:
|
166
|
+
require_paths:
|
165
167
|
- lib
|
166
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
168
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
167
169
|
none: false
|
168
|
-
requirements:
|
169
|
-
- -
|
170
|
-
- !ruby/object:Gem::Version
|
171
|
-
|
172
|
-
segments:
|
170
|
+
requirements:
|
171
|
+
- - ! '>='
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '0'
|
174
|
+
segments:
|
173
175
|
- 0
|
174
|
-
|
175
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
176
|
+
hash: -4369612200137395153
|
177
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
176
178
|
none: false
|
177
|
-
requirements:
|
178
|
-
- -
|
179
|
-
- !ruby/object:Gem::Version
|
180
|
-
version:
|
179
|
+
requirements:
|
180
|
+
- - ! '>='
|
181
|
+
- !ruby/object:Gem::Version
|
182
|
+
version: '0'
|
181
183
|
requirements: []
|
182
|
-
|
183
184
|
rubyforge_project:
|
184
|
-
rubygems_version: 1.8.
|
185
|
+
rubygems_version: 1.8.5
|
185
186
|
signing_key:
|
186
187
|
specification_version: 3
|
187
188
|
summary: history tracking, auditing, undo, redo for mongoid
|
188
|
-
test_files:
|
189
|
+
test_files:
|
189
190
|
- spec/integration/integration_spec.rb
|
190
191
|
- spec/spec_helper.rb
|
191
192
|
- spec/trackable_spec.rb
|