mallet 0.1.5 → 0.1.6

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: fe401d35b0b4847b13f5ab547820828f4475cd73
4
- data.tar.gz: 338e147d45bfd56dd86cf68c737f3ecc038ac44c
3
+ metadata.gz: 20a22a894d34fabb23ea057f9e9afc63c9f77c7d
4
+ data.tar.gz: 6512395df890e8a236f40ba7cc25cb21995824cc
5
5
  SHA512:
6
- metadata.gz: ce8282fef6213d1a36f9fdfd18cf639efb3d95ecd7a0844de38806810aa01b08d12b054a3ffab157d04ed47563833d24ccbbf955ae3b9cf9e1dcfb064782bb89
7
- data.tar.gz: 02540a154bfffecacbef633d78a98f07e034fb02f584871d7865ea80deff756ac5b112a218bb0f35b3d6c24a6dc92b6beb4611f0d2159c19dd7d93514fabef78
6
+ metadata.gz: 03f2eff8d3ff75351c02f3df1e712cb9046182b009dd4a6408c3dd4a5d9e439c58c6603495adaa100dcd2b31e04d4a9594de225dfcdc5c9594ee4bdcea8d481e
7
+ data.tar.gz: 9df4378a0384dd88febcaa1f04e6a4e2f4a61c093f3190e4fd302a516e469a0b1d98d652df02a19470552f846f1d39ac337c98e5d7ab37dd7e7750eabc9b33d4
@@ -1,9 +1,9 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mallet (0.1.3)
5
- actionmailer (>= 3.0)
6
- activerecord (>= 3.0)
4
+ mallet (0.1.6)
5
+ actionmailer
6
+ activerecord
7
7
  activesupport
8
8
  delayed_job_active_record
9
9
  i18n
@@ -121,7 +121,7 @@ PLATFORMS
121
121
  ruby
122
122
 
123
123
  DEPENDENCIES
124
- combustion (~> 0.3.1)
124
+ combustion
125
125
  database_cleaner (>= 0.9.1)
126
126
  mallet!
127
127
  rspec
@@ -4,8 +4,10 @@ module Mallet
4
4
  include ::Workflow
5
5
 
6
6
  serialize :data
7
- #attr_accessible :workflow_state
8
- scope :for, lambda {|malletable| where(malletable_type: malletable.class.name, malletable_id: malletable.id)}
7
+
8
+ def self.for(malletable)
9
+ where(malletable_type: malletable.class.name, malletable_id: malletable.id)
10
+ end
9
11
 
10
12
  validates_presence_of :definition
11
13
  validates_presence_of :malletable
@@ -1,3 +1,3 @@
1
1
  module Mallet
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mallet
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Douglas Anderson