sequel_secure_password 0.2.4 → 0.2.5

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
2
  SHA1:
3
- metadata.gz: 7f8f814f2d8d73fb956140546cbe1fc64e97905a
4
- data.tar.gz: e8a5af1d7fe232dfe82b18c9713009a682b7c737
3
+ metadata.gz: 7568d71ff6c66afd4706e7aef26b184ce4d99bea
4
+ data.tar.gz: 7bc03cf71f94079c41b264022286bd0b173f1a79
5
5
  SHA512:
6
- metadata.gz: ef00178d04c8f0a51d032ea9cf977c4985b7dcb1b0bb5054589ca2c4dc434ecf27d40ea8a7266360ab65e7c484518d1648a9a7447fac8548a06831f6cdbe2360
7
- data.tar.gz: 6f2a3731c304c6a04664bb5627af90525a67663b05a180b556a212d058107ecfafd03c4a1a4f5b2ad8e8e45e20664aa1a1a76ed4989f4f7e1a2193d762fdae77
6
+ metadata.gz: fc8fc5dd5f7e4629e84575e67cdefd062d8f7cfdb7ab4b79aa7f57577516aaa2911a22d4a2529022a3c880d6e240da96f22ffe99de39d3d4913978aa610631f5
7
+ data.tar.gz: fa7261d1cc3334edbd15a63ee42ec88fdd7ac0b1520f738230b9ce90ceea680b5f1fe1f307ee62bb8b420396c9912b3debbff2719e652be040c1dee81beb733b
data/.gitignore CHANGED
@@ -15,3 +15,4 @@ spec/reports
15
15
  test/tmp
16
16
  test/version_tmp
17
17
  tmp
18
+ bin
@@ -1,3 +1,3 @@
1
1
  module SequelSecurePassword
2
- VERSION = "0.2.4"
2
+ VERSION = "0.2.5"
3
3
  end
@@ -16,7 +16,7 @@ module Sequel
16
16
 
17
17
  module ClassMethods
18
18
  attr_reader :cost
19
- Plugins.inherited_instance_variables(self, @cost => nil)
19
+ Plugins.inherited_instance_variables(self, :@cost => nil)
20
20
  end
21
21
 
22
22
  module InstanceMethods
@@ -44,6 +44,10 @@ describe "model using Sequel::Plugins::SecurePassword" do
44
44
  it { should be_valid }
45
45
  end
46
46
 
47
+ it "has an inherited instance variable :@cost" do
48
+ expect( User.inherited_instance_variables ).to include(:@cost)
49
+ end
50
+
47
51
  describe "#authenticate" do
48
52
  let(:secret) { "foo" }
49
53
  before { user.password = secret }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sequel_secure_password
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mateusz Lenik
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-19 00:00:00.000000000 Z
11
+ date: 2014-05-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bcrypt-ruby
@@ -131,7 +131,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
131
131
  version: '0'
132
132
  requirements: []
133
133
  rubyforge_project:
134
- rubygems_version: 2.2.0
134
+ rubygems_version: 2.2.2
135
135
  signing_key:
136
136
  specification_version: 4
137
137
  summary: Plugin adds BCrypt authentication and password hashing to Sequel models.