sequel_acts_as_versionable 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +23 -2
- data/lib/sequel_acts_as_versionable/version.rb +1 -1
- data/sequel_acts_as_versionable.gemspec +1 -1
- metadata +2 -2
data/README.md
CHANGED
@@ -1,6 +1,10 @@
|
|
1
1
|
# SequelActsAsVersionable
|
2
2
|
|
3
|
-
|
3
|
+
This gem is a port of Carlos Segura's acts_as_versionable at https://github.com/csegura/acts_as_versionable.
|
4
|
+
|
5
|
+
His gem is a plugin for ActiveRecord and I merely ported his code to a Sequel ORM plugin.
|
6
|
+
|
7
|
+
|
4
8
|
|
5
9
|
## Installation
|
6
10
|
|
@@ -18,7 +22,24 @@ Or install it yourself as:
|
|
18
22
|
|
19
23
|
## Usage
|
20
24
|
|
21
|
-
|
25
|
+
class Thingy < Sequel::Model
|
26
|
+
plugin :acts_as_versionable
|
27
|
+
|
28
|
+
def before_validation
|
29
|
+
super #note: you must call super if you implement before_validation for this plugin to work
|
30
|
+
..... your code
|
31
|
+
end
|
32
|
+
|
33
|
+
def validate
|
34
|
+
super #note: you must call super if you implement validate for this plugin to work
|
35
|
+
.... your code
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
|
40
|
+
I will provide some usage examples in the future. In the meantime, you can refer to https://github.com/csegura/acts_as_versionable
|
41
|
+
as my plugin is using the same exact interface.
|
42
|
+
|
22
43
|
|
23
44
|
## Contributing
|
24
45
|
|
@@ -10,7 +10,7 @@ Gem::Specification.new do |gem|
|
|
10
10
|
gem.email = ["MishaAConway@gmail.com"]
|
11
11
|
gem.description = %q{Versioning for Sequel ORM models. Port of Carlos Segura's acts_as_versionable.}
|
12
12
|
gem.summary = %q{Versioning for Sequel ORM models. Port of Carlos Segura's acts_as_versionable.}
|
13
|
-
gem.homepage = ""
|
13
|
+
gem.homepage = "https://github.com/MishaConway/sequel_acts_as_versionable"
|
14
14
|
|
15
15
|
gem.files = `git ls-files`.split($/)
|
16
16
|
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sequel_acts_as_versionable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -26,7 +26,7 @@ files:
|
|
26
26
|
- lib/sequel_acts_as_versionable.rb
|
27
27
|
- lib/sequel_acts_as_versionable/version.rb
|
28
28
|
- sequel_acts_as_versionable.gemspec
|
29
|
-
homepage:
|
29
|
+
homepage: https://github.com/MishaConway/sequel_acts_as_versionable
|
30
30
|
licenses: []
|
31
31
|
post_install_message:
|
32
32
|
rdoc_options: []
|