simple_can 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/simple_can.rb +1 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5daf03f9ba885c925c8babfb731665322b46e6b0
4
- data.tar.gz: 5c94acabaa8e22c4ef19f6c7c0d81fccdaf4ec80
3
+ metadata.gz: cb741e24a066e19c4ee7569a0f96805e1f33ca33
4
+ data.tar.gz: 4dcfea1740ce7522aab66ef75e1c05b11924ceec
5
5
  SHA512:
6
- metadata.gz: 504b9ba0bcdf5d56de83e80b12499d027a967e161eda69af9c3c80aae3fcc7af57c56ff11418da233a78add825b99a192a867a028a9442c73d1e5ae409fad2f1
7
- data.tar.gz: 8244f00ad7c0720279abe255612841db5730e02591d978ba3ef00ad63036367f43cebac22776212a97b9f8dd09aa0700e9b540636fae888baf9f19b37db93125
6
+ metadata.gz: 37616cd17cbdbfd30b6e7c72fde3f51f50b56312b5131ed161219efaeb60c3bafb4a5e471f04bc728dc2c51c6357cba8c3ce0459937be24d7afd63ae8641e6d2
7
+ data.tar.gz: a5c27fd7476a29664dc0446114744577f5c37db921c9623e74d97e20c94524ead1fcdb5f13112961866c09e000b2e4d87a8b6b739824fad563d0b7548b636dc6
data/lib/simple_can.rb CHANGED
@@ -14,6 +14,7 @@ module SimpleCan
14
14
  :singleton_method_added)
15
15
  mod.extend(ClassMethods)
16
16
 
17
+ mod.strategy_set!
17
18
  strategy.roles.each do |role|
18
19
  [meta, mod].each do |scope|
19
20
  scope.send(:define_method, "#{role}?") do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_can
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthias Geier