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 CHANGED
@@ -1,6 +1,7 @@
1
1
  lib = File.expand_path('../lib/', __FILE__)
2
2
  $:.unshift lib unless $:.include?(lib)
3
3
 
4
+ require 'rubygems'
4
5
  require 'rake/clean'
5
6
  require 'rake/testtask'
6
7
  require 'date'
@@ -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 instance_methods.include? encrypted_name #.to_sym in 1.9
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
@@ -1,4 +1,4 @@
1
1
  # encoding: utf-8
2
2
  module SymmetricEncryption #:nodoc
3
- VERSION = "0.7.1"
3
+ VERSION = "0.7.2"
4
4
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 7
8
- - 1
9
- version: 0.7.1
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-05-18 00:00:00 -04:00
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,3 +0,0 @@
1
- file.reference.symmetry-lib=/Users/rmorrison/Sandbox/symmetry/lib
2
- file.reference.symmetry-test=/Users/rmorrison/Sandbox/symmetry/test
3
- platform.active=JRuby
@@ -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>
@@ -1,4 +0,0 @@
1
- clean=
2
- clobber=
3
- gem=
4
- test=
@@ -1,9 +0,0 @@
1
- file.reference.symmetry-lib=lib
2
- file.reference.symmetry-test=test
3
- javac.classpath=
4
- main.file=
5
- platform.active=JRuby
6
- source.encoding=UTF-8
7
- src.examples.dir=examples
8
- src.lib.dir=lib
9
- test.test.dir=test
@@ -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>