active_versioning 1.0.1 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: f0f6b041131d10e434b3afb69942cbce0fc685b4c7d29e9cee9b77b16dc9255f
|
4
|
+
data.tar.gz: d506fa806b43c27e7ea1126ff53c6c9a93022cb6c62359206dcabe0ca9e06345
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 01d42ab0cf2834b64d3cf91c8e54a3d226fa3e5cbf1c0c0e5b70e6fed3d69e0010b005e3b61ee5ecf994163d2d45eea113f6b1596d0b3b3ef17a8e729c3594ca
|
7
|
+
data.tar.gz: 0ce8e5bdb28b81b1535ae84054ceed20c6165f440874948d136ae1af5520d241b9b99034e88e3f1a02f89a4d6771d2cb7a7d2f50a11d1cf8c0609ded9b247493
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.5.1
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# ActiveVersioning
|
2
2
|
|
3
|
-
[![Gem Version](https://badge.fury.io/rb/active_versioning.svg)](http://badge.fury.io/rb/active_versioning)
|
3
|
+
[![Gem Version](https://badge.fury.io/rb/active_versioning.svg)](http://badge.fury.io/rb/active_versioning) [![Circle CI](https://circleci.com/gh/vigetlabs/active_versioning.svg?style=svg)](https://circleci.com/gh/vigetlabs/active_versioning)
|
4
4
|
|
5
5
|
ActiveVersioning provides out-of-the-box versioning functionality in Rails. ActiveVersioning serializes attributes when records are saved and allows for version and draft management.
|
6
6
|
|
data/active_versioning.gemspec
CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
|
|
20
20
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
21
21
|
spec.require_paths = ["lib"]
|
22
22
|
|
23
|
-
spec.add_dependency "rails", "
|
23
|
+
spec.add_dependency "rails", "> 5.0"
|
24
24
|
|
25
25
|
spec.add_development_dependency "bundler", ">= 1.10"
|
26
26
|
spec.add_development_dependency "rake", ">= 10.0"
|
@@ -30,5 +30,4 @@ Gem::Specification.new do |spec|
|
|
30
30
|
spec.add_development_dependency "generator_spec"
|
31
31
|
spec.add_development_dependency "pry"
|
32
32
|
spec.add_development_dependency "sqlite3"
|
33
|
-
spec.add_development_dependency "codeclimate-test-reporter"
|
34
33
|
end
|
@@ -24,10 +24,10 @@ module ActiveVersioning
|
|
24
24
|
end
|
25
25
|
|
26
26
|
def reify
|
27
|
-
resource =
|
27
|
+
resource = reload_versionable
|
28
28
|
|
29
29
|
# Necessary to ensure resource and versionable are two distinct objects in memory
|
30
|
-
|
30
|
+
reload_versionable
|
31
31
|
|
32
32
|
resource.assign_attributes(object.slice(*resource.versioned_attribute_names))
|
33
33
|
resource
|
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_versioning
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Stenberg
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-04-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: '5.0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: '5.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: bundler
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -136,20 +136,6 @@ dependencies:
|
|
136
136
|
- - ">="
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: '0'
|
139
|
-
- !ruby/object:Gem::Dependency
|
140
|
-
name: codeclimate-test-reporter
|
141
|
-
requirement: !ruby/object:Gem::Requirement
|
142
|
-
requirements:
|
143
|
-
- - ">="
|
144
|
-
- !ruby/object:Gem::Version
|
145
|
-
version: '0'
|
146
|
-
type: :development
|
147
|
-
prerelease: false
|
148
|
-
version_requirements: !ruby/object:Gem::Requirement
|
149
|
-
requirements:
|
150
|
-
- - ">="
|
151
|
-
- !ruby/object:Gem::Version
|
152
|
-
version: '0'
|
153
139
|
description: ActiveVersioning serializes attributes when records are saved and allows
|
154
140
|
for version and draft management.
|
155
141
|
email:
|
@@ -160,6 +146,7 @@ extra_rdoc_files: []
|
|
160
146
|
files:
|
161
147
|
- ".gitignore"
|
162
148
|
- ".rspec"
|
149
|
+
- ".ruby-version"
|
163
150
|
- ".travis.yml"
|
164
151
|
- Gemfile
|
165
152
|
- README.md
|
@@ -184,7 +171,7 @@ homepage: https://github.com/vigetlabs/active_versioning
|
|
184
171
|
licenses:
|
185
172
|
- BSD
|
186
173
|
metadata: {}
|
187
|
-
post_install_message:
|
174
|
+
post_install_message:
|
188
175
|
rdoc_options: []
|
189
176
|
require_paths:
|
190
177
|
- lib
|
@@ -199,9 +186,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
199
186
|
- !ruby/object:Gem::Version
|
200
187
|
version: '0'
|
201
188
|
requirements: []
|
202
|
-
rubyforge_project:
|
203
|
-
rubygems_version: 2.
|
204
|
-
signing_key:
|
189
|
+
rubyforge_project:
|
190
|
+
rubygems_version: 2.7.6
|
191
|
+
signing_key:
|
205
192
|
specification_version: 4
|
206
193
|
summary: Plug-and-Play Versioning for Rails
|
207
194
|
test_files: []
|