remarkable 3.1.0 → 3.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/remarkable/dsl/callbacks.rb +6 -6
- data/lib/remarkable/version.rb +1 -1
- metadata +2 -2
@@ -19,11 +19,11 @@ module Remarkable
|
|
19
19
|
# # code
|
20
20
|
# end
|
21
21
|
#
|
22
|
-
def after_initialize(
|
22
|
+
def after_initialize(*symbols, &block)
|
23
23
|
if block_given?
|
24
24
|
@after_initialize_callbacks << block
|
25
|
-
|
26
|
-
@after_initialize_callbacks
|
25
|
+
else
|
26
|
+
@after_initialize_callbacks += symbols
|
27
27
|
end
|
28
28
|
end
|
29
29
|
|
@@ -38,11 +38,11 @@ module Remarkable
|
|
38
38
|
# # code
|
39
39
|
# end
|
40
40
|
#
|
41
|
-
def before_assert(
|
41
|
+
def before_assert(*symbols, &block)
|
42
42
|
if block_given?
|
43
43
|
@before_assert_callbacks << block
|
44
|
-
|
45
|
-
@before_assert_callbacks
|
44
|
+
else
|
45
|
+
@before_assert_callbacks += symbols
|
46
46
|
end
|
47
47
|
end
|
48
48
|
end
|
data/lib/remarkable/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: remarkable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Carlos Brando
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2009-05-
|
13
|
+
date: 2009-05-13 00:00:00 +02:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|