clearance-deprecated_password_strategies 1.10.1 → 1.10.2

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
- SHA1:
3
- metadata.gz: 67f81e06d47c454b68411d9c1483f8779bd09e8a
4
- data.tar.gz: 1acef3e65cd0ccbef987844a57ed60ed93f5ebee
2
+ SHA256:
3
+ metadata.gz: 5f25d54f67bd61e51fcbe05c7afa98c48f2df6aa591da4d0a51df49172b0e93e
4
+ data.tar.gz: 14f226090841343dce665c7d61bde65690928e1ef8485e8b80f118ec32bb5e04
5
5
  SHA512:
6
- metadata.gz: 106c50b3b1db2ba45f64e00d17312623160d6bae524d22d62fbba6207f4f89e9ac2446b0a1faa09f8cca9cd52de220c0e8ffdbb676f594fe4be9fdbf070c957d
7
- data.tar.gz: c41a4d20e74b5db4499f1f99b7976f28c4bc9b5eb211d3b08571772762669c7931002e48dbe7c4afa24a718ae58394e350750f42d621c172067c8b964e483fe6
6
+ metadata.gz: 90316f4b6cfc9412978f2e77fe170ffcb84c2268f2f65350862618f39339e41df684a5e68f77a04086b8b21fdf100759e18fc8939a3e56719159e3b79f60ac20
7
+ data.tar.gz: '08e0cbfa5df1ee7ee184e2350ad4426a71ae83971edba52575cd7906c547fb9ea31747025a7b5c087028cdfb994ac90ec280ae7fdac8d8fd6452e92cf0920eec'
@@ -2,10 +2,10 @@ language:
2
2
  - ruby
3
3
 
4
4
  rvm:
5
- - 1.9.3
6
- - 2.0.0
7
- - 2.1.6
8
- - 2.2.2
5
+ - 2.3.8
6
+ - 2.4.5
7
+ - 2.5.3
8
+ - 2.6.1
9
9
 
10
10
  branches:
11
11
  only:
data/README.md CHANGED
@@ -29,13 +29,6 @@ Thank you, [contributors]!
29
29
  [CONTRIBUTING]: CONTRIBUTING.md
30
30
  [contributors]: https://github.com/thoughtbot/templates/graphs/contributors
31
31
 
32
- ## Need Help?
33
-
34
- We offer 1-on-1 coaching. [Get in touch] if you'd like to learn more about
35
- starting, maintaining, and contributing to an open source project.
36
-
37
- [Get in touch]: http://coaching.thoughtbot.com/rails/?utm_source=github
38
-
39
32
  ## License
40
33
 
41
34
  Open source templates are Copyright (c) 2015 thoughtbot, inc. It contains free
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
10
10
  spec.email = ["derekprior@gmail.com"]
11
11
  spec.summary = "Deprecated password strategies extracted from Clearance"
12
12
  spec.description = "SHA1, Blowfish, and SHA1 to BCrypt migration strategies"
13
- spec.homepage = "https://github.com/thoughtbot/clearance-deprecated-password-strategies"
13
+ spec.homepage = "https://github.com/thoughtbot/clearance-deprecated_password_strategies"
14
14
  spec.license = "MIT"
15
15
 
16
16
  spec.files = `git ls-files -z`.split("\x0")
@@ -27,7 +27,7 @@ module Clearance
27
27
 
28
28
  def generate_hash(string)
29
29
  cipher = OpenSSL::Cipher::Cipher.new("bf-cbc").encrypt
30
- cipher.key = Digest::SHA256.digest(salt)
30
+ cipher.key = Digest::SHA256.digest(salt)[0..15]
31
31
  hash = cipher.update(string) << cipher.final
32
32
  Base64.encode64(hash).encode("utf-8")
33
33
  end
@@ -1,7 +1,7 @@
1
1
  module Clearance
2
2
  module PasswordStrategies
3
3
  module Deprecated
4
- VERSION = "1.10.1"
4
+ VERSION = "1.10.2"
5
5
  end
6
6
  end
7
7
  end
@@ -21,7 +21,7 @@ describe Clearance::PasswordStrategies::Blowfish do
21
21
 
22
22
  it "encrypts the password using Blowfish and the existing salt" do
23
23
  cipher = OpenSSL::Cipher::Cipher.new("bf-cbc").encrypt
24
- cipher.key = Digest::SHA256.digest(salt)
24
+ cipher.key = Digest::SHA256.digest(salt)[0..15]
25
25
  expected = cipher.update("--#{salt}--#{password}--") << cipher.final
26
26
  encrypted_password = Base64.decode64(subject.encrypted_password)
27
27
  expect(encrypted_password).to eq expected
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: clearance-deprecated_password_strategies
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.10.1
4
+ version: 1.10.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Derek Prior
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-15 00:00:00.000000000 Z
11
+ date: 2019-02-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -105,7 +105,7 @@ files:
105
105
  - spec/clearance/password_strategies/deprecated/blowfish_spec.rb
106
106
  - spec/clearance/password_strategies/deprecated/sha1_spec.rb
107
107
  - spec/spec_helper.rb
108
- homepage: https://github.com/thoughtbot/clearance-deprecated-password-strategies
108
+ homepage: https://github.com/thoughtbot/clearance-deprecated_password_strategies
109
109
  licenses:
110
110
  - MIT
111
111
  metadata: {}
@@ -124,8 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
124
124
  - !ruby/object:Gem::Version
125
125
  version: '0'
126
126
  requirements: []
127
- rubyforge_project:
128
- rubygems_version: 2.4.5
127
+ rubygems_version: 3.0.2
129
128
  signing_key:
130
129
  specification_version: 4
131
130
  summary: Deprecated password strategies extracted from Clearance
@@ -134,4 +133,3 @@ test_files:
134
133
  - spec/clearance/password_strategies/deprecated/blowfish_spec.rb
135
134
  - spec/clearance/password_strategies/deprecated/sha1_spec.rb
136
135
  - spec/spec_helper.rb
137
- has_rdoc: