pretends_like_state_machine 0.0.3 → 0.0.4
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
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ea74912e1e769da6a1fc6f6909f0a512560f1093
|
4
|
+
data.tar.gz: de569507a2fe63fd628070a02e62cb8053d01246
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9a965740cd39f01cc0c4c3a4d31bce4f7e4d089f179beabc32fb915cb5f8871207e48dcc52c4329307b3959cdb0c425f8756fe2e740eb7979b62b9bc006af4ef
|
7
|
+
data.tar.gz: d72b0dfa974bd64f7ce6cd3a3ba9868c45e065eafdfde0dc1238ca70f39c0e001b43860aa8fee079b65b06163d13230916db326e90a6887da5bd3a68d847e0e2
|
@@ -8,7 +8,7 @@ module PretendsLikeStateMachine
|
|
8
8
|
|
9
9
|
options[:states].each do |state|
|
10
10
|
define_method("#{state}!") do
|
11
|
-
|
11
|
+
set(:state, state)
|
12
12
|
end
|
13
13
|
|
14
14
|
define_method("#{state}?") do
|
@@ -20,4 +20,4 @@ module PretendsLikeStateMachine
|
|
20
20
|
end
|
21
21
|
end
|
22
22
|
|
23
|
-
Mongoid::Document.send :include, PretendsLikeStateMachine::Mongoid
|
23
|
+
Mongoid::Document.send :include, PretendsLikeStateMachine::Mongoid
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pretends_like_state_machine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pablo Torrecilla
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-11-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|