loyal3-sentry 0.4.3 → 0.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/lib/active_record/sentry.rb +1 -0
- data/sentry.gemspec +7 -5
- data/test/asymmetric_sentry_callback_test.rb +8 -0
- metadata +4 -4
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.4.
|
|
1
|
+
0.4.4
|
data/lib/active_record/sentry.rb
CHANGED
data/sentry.gemspec
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
|
+
# Generated by jeweler
|
|
2
|
+
# DO NOT EDIT THIS FILE
|
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run `rake gemspec`
|
|
1
4
|
# -*- encoding: utf-8 -*-
|
|
2
5
|
|
|
3
6
|
Gem::Specification.new do |s|
|
|
4
7
|
s.name = %q{sentry}
|
|
5
|
-
s.version = "0.4.
|
|
8
|
+
s.version = "0.4.4"
|
|
6
9
|
|
|
7
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
8
11
|
s.authors = ["John Pelly", "David Stevenson"]
|
|
9
|
-
s.date = %q{2009-08-
|
|
12
|
+
s.date = %q{2009-08-18}
|
|
10
13
|
s.description = %q{Asymmetric encryption of active record fields}
|
|
11
14
|
s.email = %q{commoncode@pivotallabs.com}
|
|
12
15
|
s.extra_rdoc_files = [
|
|
@@ -46,11 +49,10 @@ Gem::Specification.new do |s|
|
|
|
46
49
|
"test/symmetric_sentry_test.rb",
|
|
47
50
|
"test/tests.rb"
|
|
48
51
|
]
|
|
49
|
-
s.has_rdoc = true
|
|
50
52
|
s.homepage = %q{http://github.com/pivotal/sentry}
|
|
51
53
|
s.rdoc_options = ["--charset=UTF-8"]
|
|
52
54
|
s.require_paths = ["lib"]
|
|
53
|
-
s.rubygems_version = %q{1.3.
|
|
55
|
+
s.rubygems_version = %q{1.3.5}
|
|
54
56
|
s.summary = %q{Asymmetric encryption of active record fields}
|
|
55
57
|
s.test_files = [
|
|
56
58
|
"test/abstract_unit.rb",
|
|
@@ -66,7 +68,7 @@ Gem::Specification.new do |s|
|
|
|
66
68
|
|
|
67
69
|
if s.respond_to? :specification_version then
|
|
68
70
|
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
|
69
|
-
s.specification_version =
|
|
71
|
+
s.specification_version = 3
|
|
70
72
|
|
|
71
73
|
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
|
72
74
|
else
|
|
@@ -57,6 +57,14 @@ class AsymmetricSentryCallbackTest < ActiveSupport::TestCase
|
|
|
57
57
|
assert_not_equal original_crypttext, u.crypted_creditcard
|
|
58
58
|
end
|
|
59
59
|
|
|
60
|
+
def test_should_handle_nils
|
|
61
|
+
u = User.create :login => 'john'
|
|
62
|
+
u.creditcard = nil
|
|
63
|
+
assert u.save
|
|
64
|
+
assert u.crypted_creditcard.nil?
|
|
65
|
+
assert u.creditcard.nil?
|
|
66
|
+
end
|
|
67
|
+
|
|
60
68
|
def test_should_encrypt_creditcard
|
|
61
69
|
u = User.create :login => 'jones'
|
|
62
70
|
u.creditcard = @orig
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: loyal3-sentry
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- John Pelly
|
|
@@ -10,7 +10,7 @@ autorequire:
|
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
12
|
|
|
13
|
-
date: 2009-08-
|
|
13
|
+
date: 2009-08-18 00:00:00 -07:00
|
|
14
14
|
default_executable:
|
|
15
15
|
dependencies: []
|
|
16
16
|
|
|
@@ -55,7 +55,7 @@ files:
|
|
|
55
55
|
- test/symmetric_sentry_callback_test.rb
|
|
56
56
|
- test/symmetric_sentry_test.rb
|
|
57
57
|
- test/tests.rb
|
|
58
|
-
has_rdoc:
|
|
58
|
+
has_rdoc: false
|
|
59
59
|
homepage: http://github.com/pivotal/sentry
|
|
60
60
|
licenses:
|
|
61
61
|
post_install_message:
|
|
@@ -80,7 +80,7 @@ requirements: []
|
|
|
80
80
|
rubyforge_project:
|
|
81
81
|
rubygems_version: 1.3.5
|
|
82
82
|
signing_key:
|
|
83
|
-
specification_version:
|
|
83
|
+
specification_version: 3
|
|
84
84
|
summary: Asymmetric encryption of active record fields
|
|
85
85
|
test_files:
|
|
86
86
|
- test/abstract_unit.rb
|