sequel_simple_callbacks 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -27,6 +27,19 @@ Sequel::Model with SequelSimpleCallbacks plugin added:
27
27
  before_save :do_something, :unless => :some_condition?
28
28
  end
29
29
 
30
+ == Installation
31
+
32
+ You can install the gem manually using:
33
+
34
+ gem install sequel_simple_callbacks
35
+
36
+ You also have the option to declare it in your Gemspec file if using
37
+ bundler:
38
+
39
+ gem 'sequel_simple_callbacks'
40
+
41
+ == Notes
42
+
30
43
  If any of the callbacks returns false then additional checking will be
31
44
  pre-empted and the callback will return false. This will halt processing
32
45
  of not only the chain, but the entire operation being performed, as is the
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.1
@@ -1,4 +1,4 @@
1
- module SimpleSequelCallbacks
1
+ module SequelSimpleCallbacks
2
2
  SPECIAL_HOOKS = [
3
3
  :before_validation,
4
4
  :after_validation
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{sequel_simple_callbacks}
8
- s.version = "0.1.0"
8
+ s.version = "0.1.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["tadman"]
@@ -9,7 +9,7 @@ end
9
9
 
10
10
  class ConditionalModel < Sequel::Model(:conditionals)
11
11
  include ModelTriggers
12
- plugin SimpleSequelCallbacks
12
+ plugin SequelSimpleCallbacks
13
13
 
14
14
  before_validation do |model|
15
15
  model.trigger(:before_validation_with_model)
@@ -10,9 +10,9 @@ end
10
10
  class ExampleModel < Sequel::Model(:examples)
11
11
  include ModelTriggers
12
12
 
13
- plugin SimpleSequelCallbacks
13
+ plugin SequelSimpleCallbacks
14
14
 
15
- SimpleSequelCallbacks::INSTALLABLE_HOOKS.each do |hook|
15
+ SequelSimpleCallbacks::INSTALLABLE_HOOKS.each do |hook|
16
16
  send(hook, :"do_#{hook}", :if => :triggers_active?)
17
17
 
18
18
  define_method(:"do_#{hook}") do
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 0
9
- version: 0.1.0
8
+ - 1
9
+ version: 0.1.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - tadman