crypt_keeper 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -21,7 +21,8 @@ simple that *just works*.
21
21
  ```ruby
22
22
 
23
23
  class MyModel < ActiveRecord::Base
24
- crypt_keeper :field, :other_field, encryptor: Aes, passphrase: 'super_good_password'
24
+ crypt_keeper :field, :other_field, encryptor: CryptKeeperProviders::Aes,
25
+ passphrase: 'super_good_password'
25
26
  end
26
27
 
27
28
  model = MyModel.new(field: 'sometext')
@@ -1,5 +1,6 @@
1
1
  require 'active_support/concern'
2
2
  require 'active_support/core_ext/array/extract_options'
3
+ require 'crypt_keeper_providers'
3
4
 
4
5
  module CryptKeeper
5
6
  module Model
@@ -32,7 +33,8 @@ module CryptKeeper
32
33
  # Example
33
34
  #
34
35
  # class MyModel < ActiveRecord::Base
35
- # crypt_keeper :field, :other_field, encryptor: Aes, passphrase: 'super_good_password'
36
+ # crypt_keeper :field, :other_field, encryptor: CryptKeeperProviders::Aes,
37
+ # passphrase: 'super_good_password'
36
38
  # end
37
39
  #
38
40
  def crypt_keeper(*args)
@@ -1,3 +1,3 @@
1
1
  module CryptKeeper
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crypt_keeper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-07-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activerecord
16
- requirement: &21832080 !ruby/object:Gem::Requirement
16
+ requirement: &22868300 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '3.0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *21832080
24
+ version_requirements: *22868300
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: activesupport
27
- requirement: &21831560 !ruby/object:Gem::Requirement
27
+ requirement: &22867480 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '3.0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *21831560
35
+ version_requirements: *22867480
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: crypt_keeper_providers
38
- requirement: &21830520 !ruby/object:Gem::Requirement
38
+ requirement: &22866420 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 0.0.1
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *21830520
46
+ version_requirements: *22866420
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rspec
49
- requirement: &21829560 !ruby/object:Gem::Requirement
49
+ requirement: &22865720 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: 2.10.0
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *21829560
57
+ version_requirements: *22865720
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: guard
60
- requirement: &21828940 !ruby/object:Gem::Requirement
60
+ requirement: &22864740 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ~>
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: 1.2.0
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *21828940
68
+ version_requirements: *22864740
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: guard-rspec
71
- requirement: &21828360 !ruby/object:Gem::Requirement
71
+ requirement: &22863960 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ~>
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: 1.1.0
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *21828360
79
+ version_requirements: *22863960
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: sqlite3
82
- requirement: &21827660 !ruby/object:Gem::Requirement
82
+ requirement: &22880260 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ! '>='
@@ -87,10 +87,10 @@ dependencies:
87
87
  version: '0'
88
88
  type: :development
89
89
  prerelease: false
90
- version_requirements: *21827660
90
+ version_requirements: *22880260
91
91
  - !ruby/object:Gem::Dependency
92
92
  name: rake
93
- requirement: &21826720 !ruby/object:Gem::Requirement
93
+ requirement: &22879220 !ruby/object:Gem::Requirement
94
94
  none: false
95
95
  requirements:
96
96
  - - ~>
@@ -98,7 +98,7 @@ dependencies:
98
98
  version: 0.9.2.2
99
99
  type: :development
100
100
  prerelease: false
101
- version_requirements: *21826720
101
+ version_requirements: *22879220
102
102
  description: Transparent encryption for ActiveRecord that isn't over-engineered
103
103
  email:
104
104
  - jmazzi@gmail.com
@@ -134,7 +134,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
134
134
  version: '0'
135
135
  segments:
136
136
  - 0
137
- hash: -2444194484857167545
137
+ hash: 3010711087672669873
138
138
  required_rubygems_version: !ruby/object:Gem::Requirement
139
139
  none: false
140
140
  requirements:
@@ -143,7 +143,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
143
143
  version: '0'
144
144
  segments:
145
145
  - 0
146
- hash: -2444194484857167545
146
+ hash: 3010711087672669873
147
147
  requirements: []
148
148
  rubyforge_project:
149
149
  rubygems_version: 1.8.11