predicates 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -22,7 +22,7 @@ Or install it yourself as:
22
22
  Include Predicates in your class or model and define the predicate by supplying an attribute:
23
23
 
24
24
  class User
25
- include Predicates
25
+ extend Predicates
26
26
 
27
27
  attr_accessor :confirmed
28
28
  predicate :confirmed?
@@ -35,7 +35,7 @@ Include Predicates in your class or model and define the predicate by supplying
35
35
  Predicates will define the attribute for you using `attr_accessor` if the attribute you supplied has not been defined yet.
36
36
 
37
37
  class User
38
- include Predicates
38
+ extend Predicates
39
39
 
40
40
  predicate :confirmed?
41
41
  end
@@ -1,3 +1,3 @@
1
1
  module Predicates
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
data/lib/predicates.rb CHANGED
@@ -9,7 +9,7 @@ module Predicates
9
9
  # == Class Example
10
10
  #
11
11
  # class User
12
- # include Predicates
12
+ # extend Predicates
13
13
  #
14
14
  # predicate :confirmed?
15
15
  # end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: predicates
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: