encrypted_strings 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,9 @@
1
1
  == master
2
2
 
3
+ == 0.2.1 / 2008-12-04
4
+
5
+ * Fix class-level defaults not working when inherited
6
+
3
7
  == 0.2.0 / 2008-12-01
4
8
 
5
9
  * Remove AsymmetricEncryptor.default_algorithm, instead relying on SymmetricEncryptor.default_algorithm
data/Rakefile CHANGED
@@ -5,7 +5,7 @@ require 'rake/contrib/sshpublisher'
5
5
 
6
6
  spec = Gem::Specification.new do |s|
7
7
  s.name = 'encrypted_strings'
8
- s.version = '0.2.0'
8
+ s.version = '0.2.1'
9
9
  s.platform = Gem::Platform::RUBY
10
10
  s.summary = 'Dead-simple string encryption/decryption syntax.'
11
11
 
@@ -86,8 +86,8 @@ module PluginAWeek #:nodoc:
86
86
  raise ArgumentError, "Unknown key(s): #{invalid_options.join(", ")}" unless invalid_options.empty?
87
87
 
88
88
  options = {
89
- :private_key_file => self.class.default_private_key_file,
90
- :public_key_file => self.class.default_public_key_file
89
+ :private_key_file => AsymmetricCipher.default_private_key_file,
90
+ :public_key_file => AsymmetricCipher.default_public_key_file
91
91
  }.merge(options)
92
92
 
93
93
  @public_key = @private_key = nil
@@ -47,7 +47,7 @@ module PluginAWeek #:nodoc:
47
47
  invalid_options = options.keys - [:salt]
48
48
  raise ArgumentError, "Unknown key(s): #{invalid_options.join(", ")}" unless invalid_options.empty?
49
49
 
50
- options = {:salt => self.class.default_salt}.merge(options)
50
+ options = {:salt => ShaCipher.default_salt}.merge(options)
51
51
 
52
52
  self.salt = options[:salt].to_s
53
53
 
@@ -68,8 +68,8 @@ module PluginAWeek #:nodoc:
68
68
  raise ArgumentError, "Unknown key(s): #{invalid_options.join(", ")}" unless invalid_options.empty?
69
69
 
70
70
  options = {
71
- :algorithm => self.class.default_algorithm,
72
- :password => self.class.default_password
71
+ :algorithm => SymmetricCipher.default_algorithm,
72
+ :password => SymmetricCipher.default_password
73
73
  }.merge(options)
74
74
 
75
75
  self.algorithm = options[:algorithm]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: encrypted_strings
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aaron Pfeifer
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-12-01 00:00:00 -05:00
12
+ date: 2008-12-04 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies: []
15
15