crypt_keeper 0.10.0.pre → 0.11.0

Sign up to get free protection for your applications and to get access to all the features.
data/.travis.yml CHANGED
@@ -4,6 +4,7 @@ gemfile:
4
4
  - gemfiles/activerecord_3_0.gemfile
5
5
  - gemfiles/activerecord_3_1.gemfile
6
6
  - gemfiles/activerecord_3_2.gemfile
7
+ - gemfiles/activerecord_4_0.gemfile
7
8
  before_script:
8
9
  - cp spec/default.database.yml spec/database.yml
9
10
  - psql -c 'CREATE DATABASE crypt_keeper_providers;' -U postgres
@@ -16,7 +17,6 @@ notifications:
16
17
  on_success: never
17
18
  on_failure: always
18
19
  rvm:
19
- - 1.9.2
20
20
  - 1.9.3
21
21
  - jruby
22
22
  matrix:
data/Appraisals CHANGED
@@ -12,3 +12,8 @@ appraise "activerecord_3_2" do
12
12
  gem 'activerecord', '~> 3.2'
13
13
  gem 'activesupport', '~> 3.2'
14
14
  end
15
+
16
+ appraise "activerecord_4_0" do
17
+ gem 'activerecord', '~> 4.0.0.beta1'
18
+ gem 'activesupport', '~> 4.0.0.beta1'
19
+ end
data/Gemfile CHANGED
@@ -1,4 +1,3 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- # Specify your gem's dependencies in lee_loo.gemspec
4
3
  gemspec
data/README.md CHANGED
@@ -102,8 +102,10 @@ There are two included encryptors.
102
102
 
103
103
  ## Requirements
104
104
 
105
- CryptKeeper has been tested against ActiveRecord 3.0, 3.1, and 3.2 using ruby
106
- 1.9.2, 1.9.3 and jruby in 1.9 mode.
105
+ CryptKeeper has been tested against ActiveRecord 3.0, 3.1, 3.2 using ruby
106
+ 1.9.3 and jruby in 1.9 mode.
107
+
108
+ ActiveRecord 4.0 is supported on the master branch.
107
109
 
108
110
  ## Installation
109
111
 
data/crypt_keeper.gemspec CHANGED
@@ -19,11 +19,12 @@ Gem::Specification.new do |gem|
19
19
  gem.add_runtime_dependency 'activesupport', '>= 3.0'
20
20
  gem.add_runtime_dependency 'appraisal', '~> 0.5.1'
21
21
 
22
- gem.add_development_dependency 'rspec', '~> 2.12.0'
23
- gem.add_development_dependency 'guard', '~> 1.6.0'
24
- gem.add_development_dependency 'guard-rspec', '~> 2.3.0'
22
+ gem.add_development_dependency 'rspec', '~> 2.13.0'
23
+ gem.add_development_dependency 'guard', '~> 1.8.0'
24
+ gem.add_development_dependency 'guard-rspec', '~> 2.5.4'
25
25
  gem.add_development_dependency 'rake', '~> 10.0.3'
26
26
  gem.add_development_dependency 'rb-fsevent', '~> 0.9.1'
27
+ gem.add_development_dependency 'coveralls'
27
28
 
28
29
  if RUBY_PLATFORM == 'java'
29
30
  gem.add_development_dependency 'jruby-openssl', '~> 0.7.7'
@@ -32,7 +33,7 @@ Gem::Specification.new do |gem|
32
33
  gem.add_development_dependency 'activerecord-jdbcmysql-adapter'
33
34
  else
34
35
  gem.add_development_dependency 'sqlite3'
35
- gem.add_development_dependency 'pg', '~> 0.14.0'
36
+ gem.add_development_dependency 'pg', '~> 0.15.1'
36
37
  gem.add_development_dependency 'mysql2', '~> 0.3.11'
37
38
  end
38
39
  end
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: /Users/justin/work/jmazzi/crypt_keeper
3
3
  specs:
4
- crypt_keeper (0.8.0)
4
+ crypt_keeper (0.10.0.pre)
5
5
  activerecord (>= 3.0)
6
6
  activesupport (>= 3.0)
7
7
  appraisal (~> 0.5.1)
@@ -9,70 +9,104 @@ PATH
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- activemodel (3.2.9)
13
- activesupport (= 3.2.9)
12
+ activemodel (3.2.13)
13
+ activesupport (= 3.2.13)
14
14
  builder (~> 3.0.0)
15
- activerecord (3.2.9)
16
- activemodel (= 3.2.9)
17
- activesupport (= 3.2.9)
15
+ activerecord (3.2.13)
16
+ activemodel (= 3.2.13)
17
+ activesupport (= 3.2.13)
18
18
  arel (~> 3.0.2)
19
19
  tzinfo (~> 0.3.29)
20
- activesupport (3.2.9)
21
- i18n (~> 0.6)
20
+ activesupport (3.2.13)
21
+ i18n (= 0.6.1)
22
22
  multi_json (~> 1.0)
23
- appraisal (0.5.1)
23
+ appraisal (0.5.2)
24
24
  bundler
25
25
  rake
26
26
  arel (3.0.2)
27
27
  builder (3.0.4)
28
- coderay (1.0.8)
29
- diff-lcs (1.1.3)
30
- guard (1.6.0)
31
- listen (>= 0.6.0)
28
+ coderay (1.0.9)
29
+ colorize (0.5.8)
30
+ coveralls (0.6.6)
31
+ colorize
32
+ multi_json (~> 1.3)
33
+ rest-client
34
+ simplecov (>= 0.7)
35
+ thor
36
+ diff-lcs (1.2.4)
37
+ ffi (1.8.1)
38
+ ffi (1.8.1-java)
39
+ formatador (0.2.4)
40
+ guard (1.8.0)
41
+ formatador (>= 0.2.4)
42
+ listen (>= 1.0.0)
32
43
  lumberjack (>= 1.0.2)
33
44
  pry (>= 0.9.10)
34
45
  thor (>= 0.14.6)
35
- guard-rspec (2.3.3)
46
+ guard-rspec (2.5.4)
36
47
  guard (>= 1.1)
37
48
  rspec (~> 2.11)
38
49
  i18n (0.6.1)
39
- listen (0.6.0)
40
- lumberjack (1.0.2)
50
+ listen (1.0.2)
51
+ rb-fsevent (>= 0.9.3)
52
+ rb-inotify (>= 0.9)
53
+ rb-kqueue (>= 0.2)
54
+ lumberjack (1.0.3)
41
55
  method_source (0.8.1)
42
- multi_json (1.5.0)
56
+ mime-types (1.23)
57
+ multi_json (1.7.2)
43
58
  mysql2 (0.3.11)
44
- pg (0.14.1)
45
- pry (0.9.10)
59
+ pg (0.15.1)
60
+ pry (0.9.12.1)
46
61
  coderay (~> 1.0.5)
47
62
  method_source (~> 0.8)
48
- slop (~> 3.3.1)
49
- rake (10.0.3)
50
- rb-fsevent (0.9.2)
51
- rspec (2.12.0)
52
- rspec-core (~> 2.12.0)
53
- rspec-expectations (~> 2.12.0)
54
- rspec-mocks (~> 2.12.0)
55
- rspec-core (2.12.2)
56
- rspec-expectations (2.12.1)
57
- diff-lcs (~> 1.1.3)
58
- rspec-mocks (2.12.1)
59
- slop (3.3.3)
60
- sqlite3 (1.3.6)
61
- thor (0.16.0)
62
- tzinfo (0.3.35)
63
+ slop (~> 3.4)
64
+ pry (0.9.12.1-java)
65
+ coderay (~> 1.0.5)
66
+ method_source (~> 0.8)
67
+ slop (~> 3.4)
68
+ spoon (~> 0.0)
69
+ rake (10.0.4)
70
+ rb-fsevent (0.9.3)
71
+ rb-inotify (0.9.0)
72
+ ffi (>= 0.5.0)
73
+ rb-kqueue (0.2.0)
74
+ ffi (>= 0.5.0)
75
+ rest-client (1.6.7)
76
+ mime-types (>= 1.16)
77
+ rspec (2.13.0)
78
+ rspec-core (~> 2.13.0)
79
+ rspec-expectations (~> 2.13.0)
80
+ rspec-mocks (~> 2.13.0)
81
+ rspec-core (2.13.1)
82
+ rspec-expectations (2.13.0)
83
+ diff-lcs (>= 1.1.3, < 2.0)
84
+ rspec-mocks (2.13.1)
85
+ simplecov (0.7.1)
86
+ multi_json (~> 1.0)
87
+ simplecov-html (~> 0.7.1)
88
+ simplecov-html (0.7.1)
89
+ slop (3.4.4)
90
+ spoon (0.0.3)
91
+ ffi
92
+ sqlite3 (1.3.7)
93
+ thor (0.18.1)
94
+ tzinfo (0.3.37)
63
95
 
64
96
  PLATFORMS
97
+ java
65
98
  ruby
66
99
 
67
100
  DEPENDENCIES
68
101
  activerecord (~> 3.0)
69
102
  activesupport (~> 3.0)
103
+ coveralls
70
104
  crypt_keeper!
71
- guard (~> 1.6.0)
72
- guard-rspec (~> 2.3.0)
105
+ guard (~> 1.8.0)
106
+ guard-rspec (~> 2.5.4)
73
107
  mysql2 (~> 0.3.11)
74
- pg (~> 0.14.0)
108
+ pg (~> 0.15.1)
75
109
  rake (~> 10.0.3)
76
110
  rb-fsevent (~> 0.9.1)
77
- rspec (~> 2.12.0)
111
+ rspec (~> 2.13.0)
78
112
  sqlite3
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: /Users/justin/work/jmazzi/crypt_keeper
3
3
  specs:
4
- crypt_keeper (0.8.0)
4
+ crypt_keeper (0.10.0.pre)
5
5
  activerecord (>= 3.0)
6
6
  activesupport (>= 3.0)
7
7
  appraisal (~> 0.5.1)
@@ -9,70 +9,104 @@ PATH
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- activemodel (3.2.9)
13
- activesupport (= 3.2.9)
12
+ activemodel (3.2.13)
13
+ activesupport (= 3.2.13)
14
14
  builder (~> 3.0.0)
15
- activerecord (3.2.9)
16
- activemodel (= 3.2.9)
17
- activesupport (= 3.2.9)
15
+ activerecord (3.2.13)
16
+ activemodel (= 3.2.13)
17
+ activesupport (= 3.2.13)
18
18
  arel (~> 3.0.2)
19
19
  tzinfo (~> 0.3.29)
20
- activesupport (3.2.9)
21
- i18n (~> 0.6)
20
+ activesupport (3.2.13)
21
+ i18n (= 0.6.1)
22
22
  multi_json (~> 1.0)
23
- appraisal (0.5.1)
23
+ appraisal (0.5.2)
24
24
  bundler
25
25
  rake
26
26
  arel (3.0.2)
27
27
  builder (3.0.4)
28
- coderay (1.0.8)
29
- diff-lcs (1.1.3)
30
- guard (1.6.0)
31
- listen (>= 0.6.0)
28
+ coderay (1.0.9)
29
+ colorize (0.5.8)
30
+ coveralls (0.6.6)
31
+ colorize
32
+ multi_json (~> 1.3)
33
+ rest-client
34
+ simplecov (>= 0.7)
35
+ thor
36
+ diff-lcs (1.2.4)
37
+ ffi (1.8.1)
38
+ ffi (1.8.1-java)
39
+ formatador (0.2.4)
40
+ guard (1.8.0)
41
+ formatador (>= 0.2.4)
42
+ listen (>= 1.0.0)
32
43
  lumberjack (>= 1.0.2)
33
44
  pry (>= 0.9.10)
34
45
  thor (>= 0.14.6)
35
- guard-rspec (2.3.3)
46
+ guard-rspec (2.5.4)
36
47
  guard (>= 1.1)
37
48
  rspec (~> 2.11)
38
49
  i18n (0.6.1)
39
- listen (0.6.0)
40
- lumberjack (1.0.2)
50
+ listen (1.0.2)
51
+ rb-fsevent (>= 0.9.3)
52
+ rb-inotify (>= 0.9)
53
+ rb-kqueue (>= 0.2)
54
+ lumberjack (1.0.3)
41
55
  method_source (0.8.1)
42
- multi_json (1.5.0)
56
+ mime-types (1.23)
57
+ multi_json (1.7.2)
43
58
  mysql2 (0.3.11)
44
- pg (0.14.1)
45
- pry (0.9.10)
59
+ pg (0.15.1)
60
+ pry (0.9.12.1)
46
61
  coderay (~> 1.0.5)
47
62
  method_source (~> 0.8)
48
- slop (~> 3.3.1)
49
- rake (10.0.3)
50
- rb-fsevent (0.9.2)
51
- rspec (2.12.0)
52
- rspec-core (~> 2.12.0)
53
- rspec-expectations (~> 2.12.0)
54
- rspec-mocks (~> 2.12.0)
55
- rspec-core (2.12.2)
56
- rspec-expectations (2.12.1)
57
- diff-lcs (~> 1.1.3)
58
- rspec-mocks (2.12.1)
59
- slop (3.3.3)
60
- sqlite3 (1.3.6)
61
- thor (0.16.0)
62
- tzinfo (0.3.35)
63
+ slop (~> 3.4)
64
+ pry (0.9.12.1-java)
65
+ coderay (~> 1.0.5)
66
+ method_source (~> 0.8)
67
+ slop (~> 3.4)
68
+ spoon (~> 0.0)
69
+ rake (10.0.4)
70
+ rb-fsevent (0.9.3)
71
+ rb-inotify (0.9.0)
72
+ ffi (>= 0.5.0)
73
+ rb-kqueue (0.2.0)
74
+ ffi (>= 0.5.0)
75
+ rest-client (1.6.7)
76
+ mime-types (>= 1.16)
77
+ rspec (2.13.0)
78
+ rspec-core (~> 2.13.0)
79
+ rspec-expectations (~> 2.13.0)
80
+ rspec-mocks (~> 2.13.0)
81
+ rspec-core (2.13.1)
82
+ rspec-expectations (2.13.0)
83
+ diff-lcs (>= 1.1.3, < 2.0)
84
+ rspec-mocks (2.13.1)
85
+ simplecov (0.7.1)
86
+ multi_json (~> 1.0)
87
+ simplecov-html (~> 0.7.1)
88
+ simplecov-html (0.7.1)
89
+ slop (3.4.4)
90
+ spoon (0.0.3)
91
+ ffi
92
+ sqlite3 (1.3.7)
93
+ thor (0.18.1)
94
+ tzinfo (0.3.37)
63
95
 
64
96
  PLATFORMS
97
+ java
65
98
  ruby
66
99
 
67
100
  DEPENDENCIES
68
101
  activerecord (~> 3.1)
69
102
  activesupport (~> 3.1)
103
+ coveralls
70
104
  crypt_keeper!
71
- guard (~> 1.6.0)
72
- guard-rspec (~> 2.3.0)
105
+ guard (~> 1.8.0)
106
+ guard-rspec (~> 2.5.4)
73
107
  mysql2 (~> 0.3.11)
74
- pg (~> 0.14.0)
108
+ pg (~> 0.15.1)
75
109
  rake (~> 10.0.3)
76
110
  rb-fsevent (~> 0.9.1)
77
- rspec (~> 2.12.0)
111
+ rspec (~> 2.13.0)
78
112
  sqlite3
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: /Users/justin/work/jmazzi/crypt_keeper
3
3
  specs:
4
- crypt_keeper (0.8.0)
4
+ crypt_keeper (0.10.0.pre)
5
5
  activerecord (>= 3.0)
6
6
  activesupport (>= 3.0)
7
7
  appraisal (~> 0.5.1)
@@ -9,70 +9,104 @@ PATH
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- activemodel (3.2.9)
13
- activesupport (= 3.2.9)
12
+ activemodel (3.2.13)
13
+ activesupport (= 3.2.13)
14
14
  builder (~> 3.0.0)
15
- activerecord (3.2.9)
16
- activemodel (= 3.2.9)
17
- activesupport (= 3.2.9)
15
+ activerecord (3.2.13)
16
+ activemodel (= 3.2.13)
17
+ activesupport (= 3.2.13)
18
18
  arel (~> 3.0.2)
19
19
  tzinfo (~> 0.3.29)
20
- activesupport (3.2.9)
21
- i18n (~> 0.6)
20
+ activesupport (3.2.13)
21
+ i18n (= 0.6.1)
22
22
  multi_json (~> 1.0)
23
- appraisal (0.5.1)
23
+ appraisal (0.5.2)
24
24
  bundler
25
25
  rake
26
26
  arel (3.0.2)
27
27
  builder (3.0.4)
28
- coderay (1.0.8)
29
- diff-lcs (1.1.3)
30
- guard (1.6.0)
31
- listen (>= 0.6.0)
28
+ coderay (1.0.9)
29
+ colorize (0.5.8)
30
+ coveralls (0.6.6)
31
+ colorize
32
+ multi_json (~> 1.3)
33
+ rest-client
34
+ simplecov (>= 0.7)
35
+ thor
36
+ diff-lcs (1.2.4)
37
+ ffi (1.8.1)
38
+ ffi (1.8.1-java)
39
+ formatador (0.2.4)
40
+ guard (1.8.0)
41
+ formatador (>= 0.2.4)
42
+ listen (>= 1.0.0)
32
43
  lumberjack (>= 1.0.2)
33
44
  pry (>= 0.9.10)
34
45
  thor (>= 0.14.6)
35
- guard-rspec (2.3.3)
46
+ guard-rspec (2.5.4)
36
47
  guard (>= 1.1)
37
48
  rspec (~> 2.11)
38
49
  i18n (0.6.1)
39
- listen (0.6.0)
40
- lumberjack (1.0.2)
50
+ listen (1.0.2)
51
+ rb-fsevent (>= 0.9.3)
52
+ rb-inotify (>= 0.9)
53
+ rb-kqueue (>= 0.2)
54
+ lumberjack (1.0.3)
41
55
  method_source (0.8.1)
42
- multi_json (1.5.0)
56
+ mime-types (1.23)
57
+ multi_json (1.7.2)
43
58
  mysql2 (0.3.11)
44
- pg (0.14.1)
45
- pry (0.9.10)
59
+ pg (0.15.1)
60
+ pry (0.9.12.1)
46
61
  coderay (~> 1.0.5)
47
62
  method_source (~> 0.8)
48
- slop (~> 3.3.1)
49
- rake (10.0.3)
50
- rb-fsevent (0.9.2)
51
- rspec (2.12.0)
52
- rspec-core (~> 2.12.0)
53
- rspec-expectations (~> 2.12.0)
54
- rspec-mocks (~> 2.12.0)
55
- rspec-core (2.12.2)
56
- rspec-expectations (2.12.1)
57
- diff-lcs (~> 1.1.3)
58
- rspec-mocks (2.12.1)
59
- slop (3.3.3)
60
- sqlite3 (1.3.6)
61
- thor (0.16.0)
62
- tzinfo (0.3.35)
63
+ slop (~> 3.4)
64
+ pry (0.9.12.1-java)
65
+ coderay (~> 1.0.5)
66
+ method_source (~> 0.8)
67
+ slop (~> 3.4)
68
+ spoon (~> 0.0)
69
+ rake (10.0.4)
70
+ rb-fsevent (0.9.3)
71
+ rb-inotify (0.9.0)
72
+ ffi (>= 0.5.0)
73
+ rb-kqueue (0.2.0)
74
+ ffi (>= 0.5.0)
75
+ rest-client (1.6.7)
76
+ mime-types (>= 1.16)
77
+ rspec (2.13.0)
78
+ rspec-core (~> 2.13.0)
79
+ rspec-expectations (~> 2.13.0)
80
+ rspec-mocks (~> 2.13.0)
81
+ rspec-core (2.13.1)
82
+ rspec-expectations (2.13.0)
83
+ diff-lcs (>= 1.1.3, < 2.0)
84
+ rspec-mocks (2.13.1)
85
+ simplecov (0.7.1)
86
+ multi_json (~> 1.0)
87
+ simplecov-html (~> 0.7.1)
88
+ simplecov-html (0.7.1)
89
+ slop (3.4.4)
90
+ spoon (0.0.3)
91
+ ffi
92
+ sqlite3 (1.3.7)
93
+ thor (0.18.1)
94
+ tzinfo (0.3.37)
63
95
 
64
96
  PLATFORMS
97
+ java
65
98
  ruby
66
99
 
67
100
  DEPENDENCIES
68
101
  activerecord (~> 3.2)
69
102
  activesupport (~> 3.2)
103
+ coveralls
70
104
  crypt_keeper!
71
- guard (~> 1.6.0)
72
- guard-rspec (~> 2.3.0)
105
+ guard (~> 1.8.0)
106
+ guard-rspec (~> 2.5.4)
73
107
  mysql2 (~> 0.3.11)
74
- pg (~> 0.14.0)
108
+ pg (~> 0.15.1)
75
109
  rake (~> 10.0.3)
76
110
  rb-fsevent (~> 0.9.1)
77
- rspec (~> 2.12.0)
111
+ rspec (~> 2.13.0)
78
112
  sqlite3
@@ -0,0 +1,8 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "activerecord", "~> 4.0.0.beta1"
6
+ gem "activesupport", "~> 4.0.0.beta1"
7
+
8
+ gemspec :path=>"../"
@@ -0,0 +1,121 @@
1
+ PATH
2
+ remote: /Users/justin/work/jmazzi/crypt_keeper
3
+ specs:
4
+ crypt_keeper (0.10.0.pre)
5
+ activerecord (>= 3.0)
6
+ activesupport (>= 3.0)
7
+ appraisal (~> 0.5.1)
8
+
9
+ GEM
10
+ remote: https://rubygems.org/
11
+ specs:
12
+ activemodel (4.0.0.beta1)
13
+ activesupport (= 4.0.0.beta1)
14
+ builder (~> 3.1.0)
15
+ activerecord (4.0.0.beta1)
16
+ activemodel (= 4.0.0.beta1)
17
+ activerecord-deprecated_finders (~> 0.0.3)
18
+ activesupport (= 4.0.0.beta1)
19
+ arel (~> 4.0.0.beta1)
20
+ activerecord-deprecated_finders (0.0.3)
21
+ activesupport (4.0.0.beta1)
22
+ i18n (~> 0.6.2)
23
+ minitest (~> 4.2)
24
+ multi_json (~> 1.3)
25
+ thread_safe (~> 0.1)
26
+ tzinfo (~> 0.3.33)
27
+ appraisal (0.5.2)
28
+ bundler
29
+ rake
30
+ arel (4.0.0.beta2)
31
+ atomic (1.0.1)
32
+ atomic (1.0.1-java)
33
+ builder (3.1.4)
34
+ coderay (1.0.9)
35
+ colorize (0.5.8)
36
+ coveralls (0.6.6)
37
+ colorize
38
+ multi_json (~> 1.3)
39
+ rest-client
40
+ simplecov (>= 0.7)
41
+ thor
42
+ diff-lcs (1.2.4)
43
+ ffi (1.8.1)
44
+ ffi (1.8.1-java)
45
+ formatador (0.2.4)
46
+ guard (1.8.0)
47
+ formatador (>= 0.2.4)
48
+ listen (>= 1.0.0)
49
+ lumberjack (>= 1.0.2)
50
+ pry (>= 0.9.10)
51
+ thor (>= 0.14.6)
52
+ guard-rspec (2.5.4)
53
+ guard (>= 1.1)
54
+ rspec (~> 2.11)
55
+ i18n (0.6.4)
56
+ listen (1.0.2)
57
+ rb-fsevent (>= 0.9.3)
58
+ rb-inotify (>= 0.9)
59
+ rb-kqueue (>= 0.2)
60
+ lumberjack (1.0.3)
61
+ method_source (0.8.1)
62
+ mime-types (1.23)
63
+ minitest (4.7.0)
64
+ multi_json (1.7.2)
65
+ mysql2 (0.3.11)
66
+ pg (0.15.1)
67
+ pry (0.9.12.1)
68
+ coderay (~> 1.0.5)
69
+ method_source (~> 0.8)
70
+ slop (~> 3.4)
71
+ pry (0.9.12.1-java)
72
+ coderay (~> 1.0.5)
73
+ method_source (~> 0.8)
74
+ slop (~> 3.4)
75
+ spoon (~> 0.0)
76
+ rake (10.0.4)
77
+ rb-fsevent (0.9.3)
78
+ rb-inotify (0.9.0)
79
+ ffi (>= 0.5.0)
80
+ rb-kqueue (0.2.0)
81
+ ffi (>= 0.5.0)
82
+ rest-client (1.6.7)
83
+ mime-types (>= 1.16)
84
+ rspec (2.13.0)
85
+ rspec-core (~> 2.13.0)
86
+ rspec-expectations (~> 2.13.0)
87
+ rspec-mocks (~> 2.13.0)
88
+ rspec-core (2.13.1)
89
+ rspec-expectations (2.13.0)
90
+ diff-lcs (>= 1.1.3, < 2.0)
91
+ rspec-mocks (2.13.1)
92
+ simplecov (0.7.1)
93
+ multi_json (~> 1.0)
94
+ simplecov-html (~> 0.7.1)
95
+ simplecov-html (0.7.1)
96
+ slop (3.4.4)
97
+ spoon (0.0.3)
98
+ ffi
99
+ sqlite3 (1.3.7)
100
+ thor (0.18.1)
101
+ thread_safe (0.1.0)
102
+ atomic
103
+ tzinfo (0.3.37)
104
+
105
+ PLATFORMS
106
+ java
107
+ ruby
108
+
109
+ DEPENDENCIES
110
+ activerecord (~> 4.0.0.beta1)
111
+ activesupport (~> 4.0.0.beta1)
112
+ coveralls
113
+ crypt_keeper!
114
+ guard (~> 1.8.0)
115
+ guard-rspec (~> 2.5.4)
116
+ mysql2 (~> 0.3.11)
117
+ pg (~> 0.15.1)
118
+ rake (~> 10.0.3)
119
+ rb-fsevent (~> 0.9.1)
120
+ rspec (~> 2.13.0)
121
+ sqlite3
@@ -6,7 +6,7 @@ module CryptKeeper
6
6
  # Private: Sanitize an sql query and then execute it
7
7
  def escape_and_execute_sql(query)
8
8
  query = ::ActiveRecord::Base.send :sanitize_sql_array, query
9
- ::ActiveRecord::Base.connection.execute(query).first
9
+ ::ActiveRecord::Base.connection.select_one(query)
10
10
  end
11
11
  end
12
12
  end
@@ -23,7 +23,7 @@ module CryptKeeper
23
23
  # Returns an encrypted string
24
24
  def encrypt(value)
25
25
  Base64.encode64 escape_and_execute_sql(
26
- ["SELECT AES_ENCRYPT(?, ?)", value, key]).first
26
+ ["SELECT AES_ENCRYPT(?, ?) AS ciphertext", value, key])['ciphertext']
27
27
  end
28
28
 
29
29
  # Public: Decrypts a string
@@ -31,7 +31,7 @@ module CryptKeeper
31
31
  # Returns a plaintext string
32
32
  def decrypt(value)
33
33
  escape_and_execute_sql(
34
- ["SELECT AES_DECRYPT(?, ?)", Base64.decode64(value), key]).first
34
+ ["SELECT AES_DECRYPT(?, ?) AS plaintext", Base64.decode64(value), key])['plaintext']
35
35
  end
36
36
  end
37
37
  end
@@ -1,3 +1,3 @@
1
1
  module CryptKeeper
2
- VERSION = "0.10.0.pre"
2
+ VERSION = "0.11.0"
3
3
  end
data/spec/spec_helper.rb CHANGED
@@ -1,3 +1,5 @@
1
+ require 'coveralls'
2
+ Coveralls.wear!
1
3
  require 'crypt_keeper'
2
4
 
3
5
  SPEC_ROOT = Pathname.new File.expand_path File.dirname __FILE__
metadata CHANGED
@@ -1,18 +1,20 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crypt_keeper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0.pre
4
+ version: 0.11.0
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Justin Mazzi
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2013-04-15 00:00:00.000000000 Z
12
+ date: 2013-05-28 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: activerecord
15
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
19
  - - ! '>='
18
20
  - !ruby/object:Gem::Version
@@ -20,6 +22,7 @@ dependencies:
20
22
  type: :runtime
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
23
26
  requirements:
24
27
  - - ! '>='
25
28
  - !ruby/object:Gem::Version
@@ -27,6 +30,7 @@ dependencies:
27
30
  - !ruby/object:Gem::Dependency
28
31
  name: activesupport
29
32
  requirement: !ruby/object:Gem::Requirement
33
+ none: false
30
34
  requirements:
31
35
  - - ! '>='
32
36
  - !ruby/object:Gem::Version
@@ -34,6 +38,7 @@ dependencies:
34
38
  type: :runtime
35
39
  prerelease: false
36
40
  version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
37
42
  requirements:
38
43
  - - ! '>='
39
44
  - !ruby/object:Gem::Version
@@ -41,6 +46,7 @@ dependencies:
41
46
  - !ruby/object:Gem::Dependency
42
47
  name: appraisal
43
48
  requirement: !ruby/object:Gem::Requirement
49
+ none: false
44
50
  requirements:
45
51
  - - ~>
46
52
  - !ruby/object:Gem::Version
@@ -48,6 +54,7 @@ dependencies:
48
54
  type: :runtime
49
55
  prerelease: false
50
56
  version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
51
58
  requirements:
52
59
  - - ~>
53
60
  - !ruby/object:Gem::Version
@@ -55,48 +62,55 @@ dependencies:
55
62
  - !ruby/object:Gem::Dependency
56
63
  name: rspec
57
64
  requirement: !ruby/object:Gem::Requirement
65
+ none: false
58
66
  requirements:
59
67
  - - ~>
60
68
  - !ruby/object:Gem::Version
61
- version: 2.12.0
69
+ version: 2.13.0
62
70
  type: :development
63
71
  prerelease: false
64
72
  version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
65
74
  requirements:
66
75
  - - ~>
67
76
  - !ruby/object:Gem::Version
68
- version: 2.12.0
77
+ version: 2.13.0
69
78
  - !ruby/object:Gem::Dependency
70
79
  name: guard
71
80
  requirement: !ruby/object:Gem::Requirement
81
+ none: false
72
82
  requirements:
73
83
  - - ~>
74
84
  - !ruby/object:Gem::Version
75
- version: 1.6.0
85
+ version: 1.8.0
76
86
  type: :development
77
87
  prerelease: false
78
88
  version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
79
90
  requirements:
80
91
  - - ~>
81
92
  - !ruby/object:Gem::Version
82
- version: 1.6.0
93
+ version: 1.8.0
83
94
  - !ruby/object:Gem::Dependency
84
95
  name: guard-rspec
85
96
  requirement: !ruby/object:Gem::Requirement
97
+ none: false
86
98
  requirements:
87
99
  - - ~>
88
100
  - !ruby/object:Gem::Version
89
- version: 2.3.0
101
+ version: 2.5.4
90
102
  type: :development
91
103
  prerelease: false
92
104
  version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
93
106
  requirements:
94
107
  - - ~>
95
108
  - !ruby/object:Gem::Version
96
- version: 2.3.0
109
+ version: 2.5.4
97
110
  - !ruby/object:Gem::Dependency
98
111
  name: rake
99
112
  requirement: !ruby/object:Gem::Requirement
113
+ none: false
100
114
  requirements:
101
115
  - - ~>
102
116
  - !ruby/object:Gem::Version
@@ -104,6 +118,7 @@ dependencies:
104
118
  type: :development
105
119
  prerelease: false
106
120
  version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
107
122
  requirements:
108
123
  - - ~>
109
124
  - !ruby/object:Gem::Version
@@ -111,6 +126,7 @@ dependencies:
111
126
  - !ruby/object:Gem::Dependency
112
127
  name: rb-fsevent
113
128
  requirement: !ruby/object:Gem::Requirement
129
+ none: false
114
130
  requirements:
115
131
  - - ~>
116
132
  - !ruby/object:Gem::Version
@@ -118,13 +134,31 @@ dependencies:
118
134
  type: :development
119
135
  prerelease: false
120
136
  version_requirements: !ruby/object:Gem::Requirement
137
+ none: false
121
138
  requirements:
122
139
  - - ~>
123
140
  - !ruby/object:Gem::Version
124
141
  version: 0.9.1
142
+ - !ruby/object:Gem::Dependency
143
+ name: coveralls
144
+ requirement: !ruby/object:Gem::Requirement
145
+ none: false
146
+ requirements:
147
+ - - ! '>='
148
+ - !ruby/object:Gem::Version
149
+ version: '0'
150
+ type: :development
151
+ prerelease: false
152
+ version_requirements: !ruby/object:Gem::Requirement
153
+ none: false
154
+ requirements:
155
+ - - ! '>='
156
+ - !ruby/object:Gem::Version
157
+ version: '0'
125
158
  - !ruby/object:Gem::Dependency
126
159
  name: sqlite3
127
160
  requirement: !ruby/object:Gem::Requirement
161
+ none: false
128
162
  requirements:
129
163
  - - ! '>='
130
164
  - !ruby/object:Gem::Version
@@ -132,6 +166,7 @@ dependencies:
132
166
  type: :development
133
167
  prerelease: false
134
168
  version_requirements: !ruby/object:Gem::Requirement
169
+ none: false
135
170
  requirements:
136
171
  - - ! '>='
137
172
  - !ruby/object:Gem::Version
@@ -139,20 +174,23 @@ dependencies:
139
174
  - !ruby/object:Gem::Dependency
140
175
  name: pg
141
176
  requirement: !ruby/object:Gem::Requirement
177
+ none: false
142
178
  requirements:
143
179
  - - ~>
144
180
  - !ruby/object:Gem::Version
145
- version: 0.14.0
181
+ version: 0.15.1
146
182
  type: :development
147
183
  prerelease: false
148
184
  version_requirements: !ruby/object:Gem::Requirement
185
+ none: false
149
186
  requirements:
150
187
  - - ~>
151
188
  - !ruby/object:Gem::Version
152
- version: 0.14.0
189
+ version: 0.15.1
153
190
  - !ruby/object:Gem::Dependency
154
191
  name: mysql2
155
192
  requirement: !ruby/object:Gem::Requirement
193
+ none: false
156
194
  requirements:
157
195
  - - ~>
158
196
  - !ruby/object:Gem::Version
@@ -160,6 +198,7 @@ dependencies:
160
198
  type: :development
161
199
  prerelease: false
162
200
  version_requirements: !ruby/object:Gem::Requirement
201
+ none: false
163
202
  requirements:
164
203
  - - ~>
165
204
  - !ruby/object:Gem::Version
@@ -187,6 +226,8 @@ files:
187
226
  - gemfiles/activerecord_3_1.gemfile.lock
188
227
  - gemfiles/activerecord_3_2.gemfile
189
228
  - gemfiles/activerecord_3_2.gemfile.lock
229
+ - gemfiles/activerecord_4_0.gemfile
230
+ - gemfiles/activerecord_4_0.gemfile.lock
190
231
  - lib/crypt_keeper.rb
191
232
  - lib/crypt_keeper/helper.rb
192
233
  - lib/crypt_keeper/log_subscriber/mysql_aes.rb
@@ -208,26 +249,33 @@ files:
208
249
  - spec/support/encryptors.rb
209
250
  homepage: http://jmazzi.github.com/crypt_keeper/
210
251
  licenses: []
211
- metadata: {}
212
252
  post_install_message:
213
253
  rdoc_options: []
214
254
  require_paths:
215
255
  - lib
216
256
  required_ruby_version: !ruby/object:Gem::Requirement
257
+ none: false
217
258
  requirements:
218
259
  - - ! '>='
219
260
  - !ruby/object:Gem::Version
220
261
  version: '0'
262
+ segments:
263
+ - 0
264
+ hash: -875605086765827805
221
265
  required_rubygems_version: !ruby/object:Gem::Requirement
266
+ none: false
222
267
  requirements:
223
- - - ! '>'
268
+ - - ! '>='
224
269
  - !ruby/object:Gem::Version
225
- version: 1.3.1
270
+ version: '0'
271
+ segments:
272
+ - 0
273
+ hash: -875605086765827805
226
274
  requirements: []
227
275
  rubyforge_project:
228
- rubygems_version: 2.0.3
276
+ rubygems_version: 1.8.23
229
277
  signing_key:
230
- specification_version: 4
278
+ specification_version: 3
231
279
  summary: Transparent encryption for ActiveRecord that isn't over-engineered
232
280
  test_files:
233
281
  - spec/default.database.yml
checksums.yaml DELETED
@@ -1,15 +0,0 @@
1
- ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- ZGQwYmQ4OGE0MDcwMGM5YzI2MDBkMmMxNGViMzMwM2NkM2IxMmFiYQ==
5
- data.tar.gz: !binary |-
6
- MzhmNzMxOWI3ZTljYzAwODNlODNlYTRmOGQ1NTQxODliNThmYTM4Mg==
7
- !binary "U0hBNTEy":
8
- metadata.gz: !binary |-
9
- NjAwMTZkYTY2OWM3YTVhNzYzMzFlNzc3OTExMjQ4NDE3ZWZmNjgzYWZkN2Vm
10
- NjkxZTA0MjU5ZTI0NTRhNzQ0YjFkNTI2ZmRjMzkwNTg3NmY3OGRjMzQ0NGQ5
11
- ZTZjNDY2MmY2NGM1NDY5NTg2ZDllYjhiYTgxYWZhOTMwMTc2NWU=
12
- data.tar.gz: !binary |-
13
- ZTIyYTAzNGNhYjViMTQwMzMyZWJhMTg2YjQxOGNkZjIwMTc4YjA3YzJhMWY4
14
- NTc5MGY0OTBhMjAyZmUxZTRhZDE3M2Q0ZWVmOTFjMzAyOTI0YjI4OTI4NzU4
15
- ZGQzMzkzZjM0YWRjYjE5YTFiODcxNDYyNzQ5NTMxMDA0YzYyMzY=