aasm 3.1.0 → 3.1.1
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.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/CHANGELOG.md +4 -0
- data/lib/aasm/localizer.rb +1 -1
- data/lib/aasm/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a003bac78875452c53f609ff9a3da1bffbe93626
|
|
4
|
+
data.tar.gz: 4f32daafb5eaa4a05393204fbe11b6f7e2d361f8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 24d9cf982132e85646e70d27572cd0e6c0e504e2ee95e5cb87226332edcfb24c9cd5b130188f31e72d9fafcd728acae36aa1d8dada302a721650f136a1a6cdaa
|
|
7
|
+
data.tar.gz: 2a86daa641a419ab85fc1ee95d8b9cc9a47e447eec20929b50af0d543ed9dd3b0493c991c4af49a044ed6f8a4f78fed8e691211015ee1ae10574f063cdfb40d0
|
data/.gitignore
CHANGED
data/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,10 @@
|
|
|
4
4
|
|
|
5
5
|
* deprecated old aasm_* class methods (old-style DSL), in preparation for AASM v4.0.0
|
|
6
6
|
|
|
7
|
+
## 3.1.1
|
|
8
|
+
|
|
9
|
+
* bugfix: don't require ActiveRecord for localizing AASM event and state name (see [issue #113](https://github.com/aasm/aasm/issues/113), thanks to [@silentshade](https://github.com/silentshade))
|
|
10
|
+
|
|
7
11
|
## 3.1.0
|
|
8
12
|
|
|
9
13
|
* validating the current state (see [issue #95](https://github.com/aasm/aasm/issues/95), thanks to [@ivantsepp](https://github.com/ivantsepp))
|
data/lib/aasm/localizer.rb
CHANGED
|
@@ -47,7 +47,7 @@ module AASM
|
|
|
47
47
|
|
|
48
48
|
def ancestors_list(klass)
|
|
49
49
|
klass.ancestors.select do |ancestor|
|
|
50
|
-
ancestor.respond_to?(:model_name) unless ancestor == ActiveRecord::Base
|
|
50
|
+
ancestor.respond_to?(:model_name) unless ancestor.name == 'ActiveRecord::Base'
|
|
51
51
|
end
|
|
52
52
|
end
|
|
53
53
|
end
|
data/lib/aasm/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: aasm
|
|
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
|
- Scott Barron
|
|
@@ -11,7 +11,7 @@ authors:
|
|
|
11
11
|
autorequire:
|
|
12
12
|
bindir: bin
|
|
13
13
|
cert_chain: []
|
|
14
|
-
date: 2014-01
|
|
14
|
+
date: 2014-03-01 00:00:00.000000000 Z
|
|
15
15
|
dependencies:
|
|
16
16
|
- !ruby/object:Gem::Dependency
|
|
17
17
|
name: rake
|
|
@@ -198,7 +198,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
198
198
|
version: '0'
|
|
199
199
|
requirements: []
|
|
200
200
|
rubyforge_project:
|
|
201
|
-
rubygems_version: 2.
|
|
201
|
+
rubygems_version: 2.2.2
|
|
202
202
|
signing_key:
|
|
203
203
|
specification_version: 4
|
|
204
204
|
summary: State machine mixin for Ruby objects
|