sequel-devise 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 37631eb36fa7041eac2d2d2f9799383543ba4b6f
4
+ data.tar.gz: 486d20c083fac7eca012a688ca28ff170b8dc153
5
+ SHA512:
6
+ metadata.gz: 660366543d80b4f9ab79652ba13c05a280591af1132bff253994422bca2084354d63d9f7b82e9168cd307deff685bcdadcfd2c65825696f83a862d601ad536a7
7
+ data.tar.gz: 65e1be90a85498668ffe97e5491133e23fd530709e85559b713f2df529b59674b006dc800496a3a0d751ab0a5a616408b0abd2f9656dedf6931e41db5ca58ccc
data/README.md CHANGED
@@ -33,3 +33,8 @@ I've written [some instructions](http://rosenfeld.herokuapp.com/en/articles/2012
33
33
  3. Commit your changes (`git commit -am 'Added some feature'`)
34
34
  4. Push to the branch (`git push origin my-new-feature`)
35
35
  5. Create new Pull Request
36
+
37
+
38
+
39
+ [![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rosenfeld/sequel-devise/trend.png)](https://bitdeli.com/free "Bitdeli Badge")
40
+
@@ -1,5 +1,5 @@
1
1
  module Sequel
2
2
  module Devise
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
@@ -4,6 +4,14 @@ module Sequel
4
4
  def self.apply(model, options = {})
5
5
  model.extend ::Devise::Models
6
6
  model.plugin :hook_class_methods # Devise requires a before_validation
7
+ model.plugin :dirty # email_changed?
8
+ model.plugin :validation_class_methods # for using validatable module
9
+ end
10
+
11
+ module InstanceMethods
12
+ def changed? # For rememberable
13
+ !changed_columns.empty?
14
+ end
7
15
  end
8
16
  end
9
17
  end
metadata CHANGED
@@ -1,46 +1,41 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sequel-devise
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
5
- prerelease:
4
+ version: 0.0.3
6
5
  platform: ruby
7
6
  authors:
8
7
  - Rodrigo Rosenfeld Rosas
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-04-18 00:00:00.000000000 Z
11
+ date: 2013-12-08 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: devise
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - '>='
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0'
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - '>='
28
25
  - !ruby/object:Gem::Version
29
26
  version: '0'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: orm_adapter-sequel
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - '>='
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - '>='
44
39
  - !ruby/object:Gem::Version
45
40
  version: '0'
46
41
  description: Devise support for Sequel models
@@ -61,26 +56,25 @@ files:
61
56
  - sequel-devise.gemspec
62
57
  homepage: https://github.com/rosenfeld/sequel-devise
63
58
  licenses: []
59
+ metadata: {}
64
60
  post_install_message:
65
61
  rdoc_options: []
66
62
  require_paths:
67
63
  - lib
68
64
  required_ruby_version: !ruby/object:Gem::Requirement
69
- none: false
70
65
  requirements:
71
- - - ! '>='
66
+ - - '>='
72
67
  - !ruby/object:Gem::Version
73
68
  version: '0'
74
69
  required_rubygems_version: !ruby/object:Gem::Requirement
75
- none: false
76
70
  requirements:
77
- - - ! '>='
71
+ - - '>='
78
72
  - !ruby/object:Gem::Version
79
73
  version: '0'
80
74
  requirements: []
81
75
  rubyforge_project:
82
- rubygems_version: 1.8.21
76
+ rubygems_version: 2.1.11
83
77
  signing_key:
84
- specification_version: 3
78
+ specification_version: 4
85
79
  summary: Enable Devise support by adding plugin :devise to your Sequel Model
86
80
  test_files: []