pgcrypto 0.2.2 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -3,14 +3,13 @@ source 'http://rubygems.org'
3
3
  gem 'activerecord', '>= 3.2', :require => 'active_record'
4
4
 
5
5
  group :test do
6
- gem 'autotest'
7
6
  gem 'database_cleaner', '>= 0.7'
8
7
  gem 'fuubar'
8
+ gem 'guard-rspec'
9
+ gem 'jeweler'
9
10
  gem 'pg', '>= 0.11'
11
+ gem 'rake'
10
12
  gem 'rspec', rspec_version = '>= 2.6'
11
13
  gem 'simplecov', :require => false
12
- if RUBY_PLATFORM =~ /darwin/
13
- gem 'autotest-fsevent', '>= 0.2'
14
- gem 'autotest-growl', '>= 0.2'
15
- end
14
+ gem 'terminal-notifier'
16
15
  end
data/Guardfile ADDED
@@ -0,0 +1,9 @@
1
+ # A sample Guardfile
2
+ # More info at https://github.com/guard/guard#readme
3
+ notification :terminal_notifier
4
+
5
+ guard 'rspec', :version => 2 do
6
+ watch(%r{^spec/.+_spec\.rb$})
7
+ watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
8
+ watch('spec/spec_helper.rb') { "spec" }
9
+ end
data/Rakefile CHANGED
@@ -1,25 +1,5 @@
1
1
  require 'rake'
2
2
 
3
- task :default => :spec
4
-
5
- begin
6
- require 'spec/rake/spectask'
7
-
8
- desc "Run all examples"
9
- Spec::Rake::SpecTask.new('spec') do |t|
10
- t.spec_files = FileList['spec/**/*.rb']
11
- end
12
-
13
- desc "Run all examples with RCov"
14
- Spec::Rake::SpecTask.new('spec:rcov') do |t|
15
- t.spec_files = FileList['spec/**/*.rb']
16
- t.rcov = true
17
- t.rcov_opts = ['--exclude', 'spec,gem']
18
- end
19
- rescue LoadError
20
- puts "Could not load Rspec. To run tests, use `gem install rspec`"
21
- end
22
-
23
3
  begin
24
4
  require 'jeweler'
25
5
  Jeweler::Tasks.new do |gemspec|
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.2
1
+ 0.2.4
data/pgcrypto.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "pgcrypto"
8
- s.version = "0.2.2"
8
+ s.version = "0.2.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Flip Sasser"]
12
- s.date = "2012-06-28"
12
+ s.date = "2012-08-11"
13
13
  s.description = "\n PGCrypto is an ActiveRecord::Base extension that allows you to asymmetrically\n encrypt PostgreSQL columns with as little trouble as possible. It's totally\n freaking rad.\n "
14
14
  s.email = "flip@x451.com"
15
15
  s.extra_rdoc_files = [
@@ -21,6 +21,7 @@ Gem::Specification.new do |s|
21
21
  ".simplecov",
22
22
  "CHANGES",
23
23
  "Gemfile",
24
+ "Guardfile",
24
25
  "LICENSE",
25
26
  "README.markdown",
26
27
  "Rakefile",
@@ -44,7 +45,7 @@ Gem::Specification.new do |s|
44
45
  ]
45
46
  s.homepage = "http://github.com/Plinq/pgcrypto"
46
47
  s.require_paths = ["lib"]
47
- s.rubygems_version = "1.8.15"
48
+ s.rubygems_version = "1.8.24"
48
49
  s.summary = "A transparent ActiveRecord::Base extension for encrypted columns"
49
50
 
50
51
  if s.respond_to? :specification_version then
@@ -30,6 +30,7 @@ describe PGCrypto do
30
30
  it "be update-able" do
31
31
  model = PGCryptoTestModel.create!(:test_column => 'i am test column')
32
32
  model.update_attributes!(:test_column => 'but now i am a different column, son').should be_true
33
+ model.test_column.should == 'but now i am a different column, son'
33
34
  end
34
35
 
35
36
  it "be retrievable at create" do
@@ -42,6 +43,20 @@ describe PGCrypto do
42
43
  PGCryptoTestModel.find(model.id).test_column.should == 'i should return to you'
43
44
  end
44
45
 
46
+ it "should be retrievable at update" do
47
+ model = PGCryptoTestModel.create!(:test_column => 'i will update')
48
+ model.test_column.should == 'i will update'
49
+ model.update_attributes!(:test_column => 'i updated')
50
+ model.test_column.should == 'i updated'
51
+ end
52
+
53
+ it "should be retrievable without update" do
54
+ model = PGCryptoTestModel.create!(:test_column => 'i will update')
55
+ model.test_column.should == 'i will update'
56
+ model.test_column = 'i updated'
57
+ model.test_column.should == 'i updated'
58
+ end
59
+
45
60
  it "be searchable" do
46
61
  model = PGCryptoTestModel.create!(:test_column => 'i am findable!')
47
62
  PGCryptoTestModel.where(:test_column => model.test_column).count.should == 1
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pgcrypto
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-06-28 00:00:00.000000000 Z
12
+ date: 2012-08-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activerecord
16
- requirement: &70354686216580 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,12 @@ dependencies:
21
21
  version: '3.2'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70354686216580
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '3.2'
25
30
  description: ! "\n PGCrypto is an ActiveRecord::Base extension that allows you
26
31
  to asymmetrically\n encrypt PostgreSQL columns with as little trouble as possible.
27
32
  It's totally\n freaking rad.\n "
@@ -36,6 +41,7 @@ files:
36
41
  - .simplecov
37
42
  - CHANGES
38
43
  - Gemfile
44
+ - Guardfile
39
45
  - LICENSE
40
46
  - README.markdown
41
47
  - Rakefile
@@ -68,6 +74,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
68
74
  - - ! '>='
69
75
  - !ruby/object:Gem::Version
70
76
  version: '0'
77
+ segments:
78
+ - 0
79
+ hash: -2029109524820967524
71
80
  required_rubygems_version: !ruby/object:Gem::Requirement
72
81
  none: false
73
82
  requirements:
@@ -76,7 +85,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
76
85
  version: '0'
77
86
  requirements: []
78
87
  rubyforge_project:
79
- rubygems_version: 1.8.15
88
+ rubygems_version: 1.8.24
80
89
  signing_key:
81
90
  specification_version: 3
82
91
  summary: A transparent ActiveRecord::Base extension for encrypted columns