encrypted_attributes 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +4 -0
- data/README +5 -0
- data/Rakefile +5 -4
- data/test/test_helper.rb +1 -1
- metadata +13 -12
data/CHANGELOG
CHANGED
data/README
CHANGED
@@ -113,6 +113,11 @@ the various options that can be passed in.
|
|
113
113
|
Before you can run any tests, the following gem must be installed:
|
114
114
|
* plugin_test_helper[http://wiki.pluginaweek.org/Plugin_test_helper]
|
115
115
|
|
116
|
+
To run against a specific version of Rails:
|
117
|
+
|
118
|
+
rake test RAILS_FRAMEWORK_ROOT=/path/to/rails
|
119
|
+
|
116
120
|
== Dependencies
|
117
121
|
|
122
|
+
* Rails 2.1 or later
|
118
123
|
* encrypted_strings[http://wiki.pluginaweek.org/Encrypted_strings]
|
data/Rakefile
CHANGED
@@ -4,7 +4,7 @@ require 'rake/gempackagetask'
|
|
4
4
|
require 'rake/contrib/sshpublisher'
|
5
5
|
|
6
6
|
PKG_NAME = 'encrypted_attributes'
|
7
|
-
PKG_VERSION = '0.1.
|
7
|
+
PKG_VERSION = '0.1.1'
|
8
8
|
PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}"
|
9
9
|
RUBY_FORGE_PROJECT = 'pluginaweek'
|
10
10
|
|
@@ -22,6 +22,7 @@ desc 'Generate documentation for the encrypted_attributes plugin.'
|
|
22
22
|
Rake::RDocTask.new(:rdoc) do |rdoc|
|
23
23
|
rdoc.rdoc_dir = 'rdoc'
|
24
24
|
rdoc.title = 'EncryptedAttributes'
|
25
|
+
rdoc.template = '../rdoc_template.rb'
|
25
26
|
rdoc.options << '--line-numbers' << '--inline-source'
|
26
27
|
rdoc.rdoc_files.include('README')
|
27
28
|
rdoc.rdoc_files.include('lib/**/*.rb')
|
@@ -33,7 +34,7 @@ spec = Gem::Specification.new do |s|
|
|
33
34
|
s.platform = Gem::Platform::RUBY
|
34
35
|
s.summary = 'Adds support for automatically encrypting ActiveRecord attributes'
|
35
36
|
|
36
|
-
s.files = FileList['{lib,
|
37
|
+
s.files = FileList['{lib,test}/**/*'].to_a - FileList['test/app_root/log/*'].to_a + %w(CHANGELOG init.rb MIT-LICENSE Rakefile README)
|
37
38
|
s.require_path = 'lib'
|
38
39
|
s.autorequire = 'encrypted_attributes'
|
39
40
|
s.has_rdoc = true
|
@@ -62,13 +63,13 @@ task :pdoc => [:rdoc] do
|
|
62
63
|
end
|
63
64
|
|
64
65
|
desc 'Publish the API docs and gem'
|
65
|
-
task :publish => [:pdoc, :release]
|
66
|
+
task :publish => [:pgem, :pdoc, :release]
|
66
67
|
|
67
68
|
desc 'Publish the release files to RubyForge.'
|
68
69
|
task :release => [:gem, :package] do
|
69
70
|
require 'rubyforge'
|
70
71
|
|
71
|
-
ruby_forge = RubyForge.new
|
72
|
+
ruby_forge = RubyForge.new.configure
|
72
73
|
ruby_forge.login
|
73
74
|
|
74
75
|
%w( gem tgz zip ).each do |ext|
|
data/test/test_helper.rb
CHANGED
@@ -4,7 +4,7 @@ require 'rubygems'
|
|
4
4
|
require 'plugin_test_helper'
|
5
5
|
|
6
6
|
# Run the migrations
|
7
|
-
ActiveRecord::Migrator.migrate("#{
|
7
|
+
ActiveRecord::Migrator.migrate("#{Rails.root}/db/migrate")
|
8
8
|
|
9
9
|
# Mixin the factory helper
|
10
10
|
require File.expand_path("#{File.dirname(__FILE__)}/factory")
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: encrypted_attributes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aaron Pfeifer
|
@@ -9,7 +9,7 @@ autorequire: encrypted_attributes
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-
|
12
|
+
date: 2008-06-22 00:00:00 -04:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -33,20 +33,21 @@ files:
|
|
33
33
|
- lib/encrypted_attributes
|
34
34
|
- lib/encrypted_attributes/sha_encryptor.rb
|
35
35
|
- lib/encrypted_attributes.rb
|
36
|
-
- test/keys
|
37
|
-
- test/keys/private
|
38
|
-
- test/keys/public
|
39
|
-
- test/factory.rb
|
40
36
|
- test/app_root
|
41
|
-
- test/app_root/db
|
42
|
-
- test/app_root/db/migrate
|
43
|
-
- test/app_root/db/migrate/001_create_users.rb
|
44
|
-
- test/app_root/config
|
45
|
-
- test/app_root/config/environment.rb
|
46
37
|
- test/app_root/app
|
47
38
|
- test/app_root/app/models
|
48
39
|
- test/app_root/app/models/user.rb
|
40
|
+
- test/app_root/config
|
41
|
+
- test/app_root/config/environment.rb
|
42
|
+
- test/app_root/db
|
43
|
+
- test/app_root/db/migrate
|
44
|
+
- test/app_root/db/migrate/001_create_users.rb
|
45
|
+
- test/app_root/log
|
46
|
+
- test/keys
|
47
|
+
- test/keys/private
|
48
|
+
- test/keys/public
|
49
49
|
- test/test_helper.rb
|
50
|
+
- test/factory.rb
|
50
51
|
- test/unit
|
51
52
|
- test/unit/sha_encryptor_test.rb
|
52
53
|
- test/unit/encrypted_attributes_test.rb
|
@@ -77,7 +78,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
77
78
|
requirements: []
|
78
79
|
|
79
80
|
rubyforge_project:
|
80
|
-
rubygems_version: 1.1.
|
81
|
+
rubygems_version: 1.1.1
|
81
82
|
signing_key:
|
82
83
|
specification_version: 2
|
83
84
|
summary: Adds support for automatically encrypting ActiveRecord attributes
|