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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 624aadcd0801dd7a8fb367c00d29ea7f5dccd6f3
4
- data.tar.gz: 8f4d0f3978038a5a16fbe2696efbb1bb1f173603
3
+ metadata.gz: a003bac78875452c53f609ff9a3da1bffbe93626
4
+ data.tar.gz: 4f32daafb5eaa4a05393204fbe11b6f7e2d361f8
5
5
  SHA512:
6
- metadata.gz: 9359ea9f090c25f5ae789f3ef47e3ad8829ebf7074e23cb9fee9738537f9207e96a9c5e6ddbbe592c02b2d80aac18df7673aa3427735b0766b6e9a34d4c62dd9
7
- data.tar.gz: ddbfc65e9019d92b165f75ebf170c68682e829ed969d9c743df02dabaa03bc53ca6397d5d5b3bb5a8ebe66cae53621cefd8f74bffc4890536638112a6856bf88
6
+ metadata.gz: 24d9cf982132e85646e70d27572cd0e6c0e504e2ee95e5cb87226332edcfb24c9cd5b130188f31e72d9fafcd728acae36aa1d8dada302a721650f136a1a6cdaa
7
+ data.tar.gz: 2a86daa641a419ab85fc1ee95d8b9cc9a47e447eec20929b50af0d543ed9dd3b0493c991c4af49a044ed6f8a4f78fed8e691211015ee1ae10574f063cdfb40d0
data/.gitignore CHANGED
@@ -14,3 +14,4 @@ TODO
14
14
  .ruby-version
15
15
  .ruby-gemset
16
16
  alto
17
+ .rspec
@@ -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))
@@ -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
@@ -1,3 +1,3 @@
1
1
  module AASM
2
- VERSION = "3.1.0"
2
+ VERSION = "3.1.1"
3
3
  end
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.0
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-29 00:00:00.000000000 Z
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.1.11
201
+ rubygems_version: 2.2.2
202
202
  signing_key:
203
203
  specification_version: 4
204
204
  summary: State machine mixin for Ruby objects