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: 1352f976029a09c1ff48032bf77d6d69779d3a1f
4
- data.tar.gz: 7f982f4793392579cdfdeece22df952b712fe8c9
3
+ metadata.gz: ea74912e1e769da6a1fc6f6909f0a512560f1093
4
+ data.tar.gz: de569507a2fe63fd628070a02e62cb8053d01246
5
5
  SHA512:
6
- metadata.gz: d72df2b012ebd2fdfcdbb06b96261475a83ec9cc3fea9c0b11fbf5edd7879c462139b0b8a0359270c27394d37b7547c83dc6fdd67155fee4bfce407d7cbc2e4a
7
- data.tar.gz: f4d9fb5f70d6358a14ccd0769a00b4ed9ac5d6bd7b78aa97746f079949f3c9b7ca5fd7f78f8abf0b12dc3531f705691f4f87a7c6cdca46467fa69ef6939ca218
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
- update_attribute(:state, state)
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
@@ -1,3 +1,3 @@
1
1
  module PretendsLikeStateMachine
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
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.3
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-01-13 00:00:00.000000000 Z
11
+ date: 2015-11-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails