symmetric-encryption 0.7.1 → 0.7.2
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/Rakefile +1 -0
- data/lib/symmetric_encryption/extensions/active_record/base.rb +1 -1
- data/lib/symmetric_encryption/version.rb +1 -1
- metadata +3 -10
- data/nbproject/private/config.properties +0 -0
- data/nbproject/private/private.properties +0 -3
- data/nbproject/private/private.xml +0 -17
- data/nbproject/private/rake-d.txt +0 -4
- data/nbproject/project.properties +0 -9
- data/nbproject/project.xml +0 -16
- data/symmetric-encryption-0.7.0.gem +0 -0
data/Rakefile
CHANGED
@@ -128,7 +128,7 @@ module ActiveRecord #:nodoc:
|
|
128
128
|
attribute_names = match.captures.last.split('_and_')
|
129
129
|
attribute_names.each_with_index do |attribute, index|
|
130
130
|
encrypted_name = "encrypted_#{attribute}"
|
131
|
-
if
|
131
|
+
if method_defined? encrypted_name.to_sym
|
132
132
|
args[index] = ::SymmetricEncryption.encrypt(args[index])
|
133
133
|
attribute_names[index] = encrypted_name
|
134
134
|
end
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 7
|
8
|
-
-
|
9
|
-
version: 0.7.
|
8
|
+
- 2
|
9
|
+
version: 0.7.2
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Reid Morrison
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2012-
|
17
|
+
date: 2012-08-22 00:00:00 -04:00
|
18
18
|
default_executable:
|
19
19
|
dependencies: []
|
20
20
|
|
@@ -44,15 +44,8 @@ files:
|
|
44
44
|
- lib/symmetric_encryption/version.rb
|
45
45
|
- lib/symmetric_encryption/writer.rb
|
46
46
|
- LICENSE.txt
|
47
|
-
- nbproject/private/config.properties
|
48
|
-
- nbproject/private/private.properties
|
49
|
-
- nbproject/private/private.xml
|
50
|
-
- nbproject/private/rake-d.txt
|
51
|
-
- nbproject/project.properties
|
52
|
-
- nbproject/project.xml
|
53
47
|
- Rakefile
|
54
48
|
- README.md
|
55
|
-
- symmetric-encryption-0.7.0.gem
|
56
49
|
- test/attr_encrypted_test.rb
|
57
50
|
- test/cipher_test.rb
|
58
51
|
- test/config/database.yml
|
File without changes
|
@@ -1,17 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<project-private xmlns="http://www.netbeans.org/ns/project-private/1">
|
3
|
-
<editor-bookmarks xmlns="http://www.netbeans.org/ns/editor-bookmarks/1">
|
4
|
-
<file>
|
5
|
-
<url>lib/symmetric/encryption.rb</url>
|
6
|
-
<line>62</line>
|
7
|
-
</file>
|
8
|
-
<file>
|
9
|
-
<url>lib/symmetric_encryption/symmetric_encryption.rb</url>
|
10
|
-
<line>69</line>
|
11
|
-
</file>
|
12
|
-
<file>
|
13
|
-
<url>lib/symmetric_encryption/encryption.rb</url>
|
14
|
-
<line>60</line>
|
15
|
-
</file>
|
16
|
-
</editor-bookmarks>
|
17
|
-
</project-private>
|
data/nbproject/project.xml
DELETED
@@ -1,16 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<project xmlns="http://www.netbeans.org/ns/project/1">
|
3
|
-
<type>org.netbeans.modules.ruby.rubyproject</type>
|
4
|
-
<configuration>
|
5
|
-
<data xmlns="http://www.netbeans.org/ns/ruby-project/1">
|
6
|
-
<name>symmetric-encryption</name>
|
7
|
-
<source-roots>
|
8
|
-
<root id="src.lib.dir" name="Source Files"/>
|
9
|
-
<root id="src.examples.dir" name="Examples"/>
|
10
|
-
</source-roots>
|
11
|
-
<test-roots>
|
12
|
-
<root id="test.test.dir" name="Test Files"/>
|
13
|
-
</test-roots>
|
14
|
-
</data>
|
15
|
-
</configuration>
|
16
|
-
</project>
|
Binary file
|