simple_record 1.1.42 → 1.1.43

Sign up to get free protection for your applications and to get access to all the features.
@@ -12,8 +12,8 @@ module SimpleRecord
12
12
 
13
13
  name = name.to_s
14
14
 
15
- puts "Converting #{name} to sdb value=#{value}"
16
- puts "atts_local=" + defined_attributes_local.inspect
15
+ # puts "Converting #{name} to sdb value=#{value}"
16
+ # puts "atts_local=" + defined_attributes_local.inspect
17
17
 
18
18
  att_meta = defined_attributes_local[name.to_sym]
19
19
 
@@ -28,9 +28,9 @@ module SimpleRecord
28
28
 
29
29
  if att_meta.options
30
30
  if att_meta.options[:encrypted]
31
- puts "ENCRYPTING #{name} value #{value}"
31
+ # puts "ENCRYPTING #{name} value #{value}"
32
32
  ret = Translations.encrypt(ret, att_meta.options[:encrypted])
33
- puts 'encrypted value=' + ret.to_s
33
+ # puts 'encrypted value=' + ret.to_s
34
34
  end
35
35
  if att_meta.options[:hashed]
36
36
  ret = Translations.pass_hash(ret)
@@ -44,7 +44,7 @@ module SimpleRecord
44
44
 
45
45
  # Convert value from SimpleDB String version to real ruby value.
46
46
  def sdb_to_ruby(name, value)
47
- puts 'sdb_to_ruby arg=' + name.inspect + ' - ' + name.class.name + ' - value=' + value.to_s
47
+ # puts 'sdb_to_ruby arg=' + name.inspect + ' - ' + name.class.name + ' - value=' + value.to_s
48
48
  return nil if value.nil?
49
49
  att_meta = defined_attributes_local[name.to_sym]
50
50
 
@@ -106,7 +106,7 @@ module SimpleRecord
106
106
  att_meta = defined_attributes_local[arg.to_sym]
107
107
  if att_meta && att_meta.options
108
108
  if att_meta.options[:hashed]
109
- puts 'wrapping ' + arg_s
109
+ # puts 'wrapping ' + arg_s
110
110
  return PasswordHashed.new(sdb_val)
111
111
  end
112
112
  end
@@ -170,13 +170,13 @@ module SimpleRecord
170
170
 
171
171
 
172
172
  def self.decrypt(value, key=nil)
173
- puts "decrypt orig value #{value} "
173
+ # puts "decrypt orig value #{value} "
174
174
  unencoded_value = Base64.decode64(value)
175
175
  raise SimpleRecordError, "Encryption key must be defined on the attribute." if key.nil?
176
176
  key = key || get_encryption_key()
177
- puts "decrypting #{unencoded_value} "
177
+ # puts "decrypting #{unencoded_value} "
178
178
  decrypted_value = SimpleRecord::Encryptor.decrypt(:value => unencoded_value, :key => key)
179
- puts "decrypted #{unencoded_value} to #{decrypted_value}"
179
+ # "decrypted #{unencoded_value} to #{decrypted_value}"
180
180
  decrypted_value
181
181
  end
182
182
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_record
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.42
4
+ version: 1.1.43
5
5
  platform: ruby
6
6
  authors:
7
7
  - Travis Reeder