sequel_acts_as_versionable 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.md CHANGED
@@ -1,6 +1,10 @@
1
1
  # SequelActsAsVersionable
2
2
 
3
- TODO: Write a gem description
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
- TODO: Write usage instructions here
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
 
@@ -1,3 +1,3 @@
1
1
  module SequelActsAsVersionable
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -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.2
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: []