Skip to content
Browse files

removing no longer used files, adding to docs

  • Loading branch information...
1 parent 34b90c9 commit 0550720374a60e6d0a595089141a01e1a583f3ff @ssoper committed
View
10 README.rdoc
@@ -1,12 +1,12 @@
= Acts As Encryptable
-Encrypt and decrypt your data with ease.
+Encrypt and decrypt your data using asymmetric keys
== Installation
Run this if the gem isn't installed already
- sudo gem install ssoper-acts_as_encryptable --source=http://gems.github.com
+ gem install ssoper-acts_as_encryptable --source=http://gems.github.com
Or place in your environment.rb
config.gem 'ssoper-acts_as_encryptable', :source => 'http://gems.github.com'
@@ -30,8 +30,8 @@ Or you can use the migration helper to generate the migration for the model
And in your model
class CreditCard < ActiveRecord::Base
- acts_as_encryptable :first_name, :last_name, :number
attr_accessor :first_name, :last_name, :number
+ acts_as_encryptable :first_name, :last_name, :number
end
@@ -52,10 +52,10 @@ Decrypt your data
== Tests
-Run 'rake test'
+ > rake test
== Acknowledgements
* Tobias Lütke for his blog post on asymmetric encryption using Ruby's native SSL libraries
-* Paul Barry for helping me to simplify the functionality
+* Paul Barry for helping simplify the functionality
View
6 acts_as_encryptable.gemspec
@@ -1,11 +1,11 @@
Gem::Specification.new do |s|
s.name = "acts_as_encryptable"
- s.version = "1.0.1"
+ s.version = "1.0.2"
s.date = "2009-03-26"
s.author = "Sean Soper"
s.email = "sean.soper@gmail.com"
- s.summary = "Encrypt and decrypt your data with ease"
- s.description = "Encrypt and decrypt your data using 1024-bit asymmetric RSA keys"
+ s.summary = "Encrypt and decrypt your data using asymmetric keys"
+ s.description = "Allow your models to encrypt an arbitrary amount of data using asymmetric keys"
s.homepage = "http://github.com/ssoper/acts_as_encryptable"
s.require_path = "lib"
s.files = %w{ acts_as_encryptable.gemspec
View
14 generators/acts_as_encryptable_migration/templates/migration.rb
@@ -1,14 +0,0 @@
-class ActsAsEncryptableMigration < ActiveRecord::Migration
- def self.up
- create_table :encrypted_chunks do |t|
- t.column :data, :string
- t.references :encryptable, :polymorphic => true
-
- t.timestamps
- end
- end
-
- def self.down
- drop_table :encrypted_chunks
- end
-end
View
3 lib/acts_as_encryptable/encrypted_chunk.rb
@@ -1,3 +0,0 @@
-class EncryptedChunk < ActiveRecord::Base
- belongs_to :encryptable, :polymorphic => true
-end

0 comments on commit 0550720

Please sign in to comment.
Something went wrong with that request. Please try again.