sequel_secure_password 0.2.11 → 0.2.12
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +16 -1
- data/lib/sequel_secure_password/version.rb +1 -1
- data/lib/sequel_secure_password.rb +2 -1
- data/sequel_secure_password.gemspec +4 -2
- metadata +55 -5
- checksums.yaml +0 -7
data/Rakefile
CHANGED
@@ -1,2 +1,17 @@
|
|
1
|
-
require
|
1
|
+
require 'rubygems/tasks'
|
2
2
|
|
3
|
+
# building and local installation
|
4
|
+
Gem::Tasks::Install.new
|
5
|
+
Gem::Tasks::Build::Gem.new
|
6
|
+
|
7
|
+
# git-related tasks
|
8
|
+
Gem::Tasks::SCM::Status.new
|
9
|
+
# Gem::Tasks::SCM::Tag.new(format: '%s', sign: true)
|
10
|
+
Gem::Tasks::SCM::Push.new
|
11
|
+
|
12
|
+
# pushing to gemcutter
|
13
|
+
Gem::Tasks::Push.new
|
14
|
+
Gem::Tasks::Release.new
|
15
|
+
|
16
|
+
# loading gem into the console
|
17
|
+
Gem::Tasks::Console.new(command: 'pry')
|
@@ -1,4 +1,5 @@
|
|
1
1
|
require "sequel_secure_password/version"
|
2
|
+
require "sequel"
|
2
3
|
require "bcrypt"
|
3
4
|
|
4
5
|
module Sequel
|
@@ -15,7 +16,7 @@ module Sequel
|
|
15
16
|
# confirmation validations won't be included. Default: true
|
16
17
|
def self.configure(model, options = {})
|
17
18
|
model.instance_eval do
|
18
|
-
@cost = options.fetch(:cost, BCrypt::Engine
|
19
|
+
@cost = options.fetch(:cost, BCrypt::Engine.cost)
|
19
20
|
@include_validations = options.fetch(:include_validations, true)
|
20
21
|
@digest_column = options.fetch(:digest_column, :password_digest)
|
21
22
|
end
|
@@ -25,8 +25,10 @@ EOF
|
|
25
25
|
gem.add_dependency 'bcrypt', ['>= 3.1', '< 4.0']
|
26
26
|
gem.add_dependency 'sequel', ['>= 4.1.0', '< 5.0']
|
27
27
|
|
28
|
-
gem.add_development_dependency 'rspec',
|
29
|
-
gem.add_development_dependency 'rake',
|
28
|
+
gem.add_development_dependency 'rspec', '~> 2.14'
|
29
|
+
gem.add_development_dependency 'rake', '~> 10'
|
30
|
+
gem.add_development_dependency 'rubygems-tasks', '~> 0.2'
|
31
|
+
gem.add_development_dependency 'pry'
|
30
32
|
if RUBY_PLATFORM == "java"
|
31
33
|
gem.add_development_dependency 'jdbc-sqlite3', '~> 3.7.2'
|
32
34
|
else
|
metadata
CHANGED
@@ -1,18 +1,20 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sequel_secure_password
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.12
|
5
|
+
prerelease:
|
5
6
|
platform: ruby
|
6
7
|
authors:
|
7
8
|
- Mateusz Lenik
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date: 2015-
|
12
|
+
date: 2015-03-03 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: bcrypt
|
15
16
|
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
16
18
|
requirements:
|
17
19
|
- - ">="
|
18
20
|
- !ruby/object:Gem::Version
|
@@ -23,6 +25,7 @@ dependencies:
|
|
23
25
|
type: :runtime
|
24
26
|
prerelease: false
|
25
27
|
version_requirements: !ruby/object:Gem::Requirement
|
28
|
+
none: false
|
26
29
|
requirements:
|
27
30
|
- - ">="
|
28
31
|
- !ruby/object:Gem::Version
|
@@ -33,6 +36,7 @@ dependencies:
|
|
33
36
|
- !ruby/object:Gem::Dependency
|
34
37
|
name: sequel
|
35
38
|
requirement: !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
36
40
|
requirements:
|
37
41
|
- - ">="
|
38
42
|
- !ruby/object:Gem::Version
|
@@ -43,6 +47,7 @@ dependencies:
|
|
43
47
|
type: :runtime
|
44
48
|
prerelease: false
|
45
49
|
version_requirements: !ruby/object:Gem::Requirement
|
50
|
+
none: false
|
46
51
|
requirements:
|
47
52
|
- - ">="
|
48
53
|
- !ruby/object:Gem::Version
|
@@ -53,6 +58,7 @@ dependencies:
|
|
53
58
|
- !ruby/object:Gem::Dependency
|
54
59
|
name: rspec
|
55
60
|
requirement: !ruby/object:Gem::Requirement
|
61
|
+
none: false
|
56
62
|
requirements:
|
57
63
|
- - "~>"
|
58
64
|
- !ruby/object:Gem::Version
|
@@ -60,6 +66,7 @@ dependencies:
|
|
60
66
|
type: :development
|
61
67
|
prerelease: false
|
62
68
|
version_requirements: !ruby/object:Gem::Requirement
|
69
|
+
none: false
|
63
70
|
requirements:
|
64
71
|
- - "~>"
|
65
72
|
- !ruby/object:Gem::Version
|
@@ -67,6 +74,7 @@ dependencies:
|
|
67
74
|
- !ruby/object:Gem::Dependency
|
68
75
|
name: rake
|
69
76
|
requirement: !ruby/object:Gem::Requirement
|
77
|
+
none: false
|
70
78
|
requirements:
|
71
79
|
- - "~>"
|
72
80
|
- !ruby/object:Gem::Version
|
@@ -74,13 +82,47 @@ dependencies:
|
|
74
82
|
type: :development
|
75
83
|
prerelease: false
|
76
84
|
version_requirements: !ruby/object:Gem::Requirement
|
85
|
+
none: false
|
77
86
|
requirements:
|
78
87
|
- - "~>"
|
79
88
|
- !ruby/object:Gem::Version
|
80
89
|
version: '10'
|
90
|
+
- !ruby/object:Gem::Dependency
|
91
|
+
name: rubygems-tasks
|
92
|
+
requirement: !ruby/object:Gem::Requirement
|
93
|
+
none: false
|
94
|
+
requirements:
|
95
|
+
- - "~>"
|
96
|
+
- !ruby/object:Gem::Version
|
97
|
+
version: '0.2'
|
98
|
+
type: :development
|
99
|
+
prerelease: false
|
100
|
+
version_requirements: !ruby/object:Gem::Requirement
|
101
|
+
none: false
|
102
|
+
requirements:
|
103
|
+
- - "~>"
|
104
|
+
- !ruby/object:Gem::Version
|
105
|
+
version: '0.2'
|
106
|
+
- !ruby/object:Gem::Dependency
|
107
|
+
name: pry
|
108
|
+
requirement: !ruby/object:Gem::Requirement
|
109
|
+
none: false
|
110
|
+
requirements:
|
111
|
+
- - ">="
|
112
|
+
- !ruby/object:Gem::Version
|
113
|
+
version: '0'
|
114
|
+
type: :development
|
115
|
+
prerelease: false
|
116
|
+
version_requirements: !ruby/object:Gem::Requirement
|
117
|
+
none: false
|
118
|
+
requirements:
|
119
|
+
- - ">="
|
120
|
+
- !ruby/object:Gem::Version
|
121
|
+
version: '0'
|
81
122
|
- !ruby/object:Gem::Dependency
|
82
123
|
name: sqlite3
|
83
124
|
requirement: !ruby/object:Gem::Requirement
|
125
|
+
none: false
|
84
126
|
requirements:
|
85
127
|
- - "~>"
|
86
128
|
- !ruby/object:Gem::Version
|
@@ -88,6 +130,7 @@ dependencies:
|
|
88
130
|
type: :development
|
89
131
|
prerelease: false
|
90
132
|
version_requirements: !ruby/object:Gem::Requirement
|
133
|
+
none: false
|
91
134
|
requirements:
|
92
135
|
- - "~>"
|
93
136
|
- !ruby/object:Gem::Version
|
@@ -114,26 +157,33 @@ files:
|
|
114
157
|
homepage: http://github.com/mlen/sequel_secure_password
|
115
158
|
licenses:
|
116
159
|
- MIT
|
117
|
-
metadata: {}
|
118
160
|
post_install_message:
|
119
161
|
rdoc_options: []
|
120
162
|
require_paths:
|
121
163
|
- lib
|
122
164
|
required_ruby_version: !ruby/object:Gem::Requirement
|
165
|
+
none: false
|
123
166
|
requirements:
|
124
167
|
- - ">="
|
125
168
|
- !ruby/object:Gem::Version
|
126
169
|
version: '0'
|
170
|
+
segments:
|
171
|
+
- 0
|
172
|
+
hash: -900067175093670881
|
127
173
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
174
|
+
none: false
|
128
175
|
requirements:
|
129
176
|
- - ">="
|
130
177
|
- !ruby/object:Gem::Version
|
131
178
|
version: '0'
|
179
|
+
segments:
|
180
|
+
- 0
|
181
|
+
hash: -900067175093670881
|
132
182
|
requirements: []
|
133
183
|
rubyforge_project:
|
134
|
-
rubygems_version:
|
184
|
+
rubygems_version: 1.8.30
|
135
185
|
signing_key:
|
136
|
-
specification_version:
|
186
|
+
specification_version: 3
|
137
187
|
summary: Plugin adds BCrypt authentication and password hashing to Sequel models.
|
138
188
|
Model using this plugin should have 'password_digest' field. This plugin was created
|
139
189
|
by extracting has_secure_password strategy from rails.
|
checksums.yaml
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
---
|
2
|
-
SHA1:
|
3
|
-
metadata.gz: 2e49fcb8f21fc059c0314e08fd91c31f12b29664
|
4
|
-
data.tar.gz: 4867077e650776d13903fb2dd5e4af8e1eac373e
|
5
|
-
SHA512:
|
6
|
-
metadata.gz: 8a1587e9ef51a0997539055434fec21d7a1dc5216c78fc552d5cfbfab587277b8e7ed63099fac75a63b53bcef6e298e5a4dd636573eaf2807b4c3571fabf2d65
|
7
|
-
data.tar.gz: 1d73d1e5e93854ac28cadf2f89b0b99ff47530f82993201ec16f7a4062f68d8455189b2649980b84f97a9e80b723b8f05d03f86bd83e9a4b86ce86736415bf2d
|