voltron-encrypt 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 01c8d8a0436e42e0ba3a4ff825543a6f2c57e5a903417d43e3bec0283a84a6a1
4
- data.tar.gz: 0b1a073636afedf95c4f74ee01a8c31b0af757d077564e63485f036a7d720f54
3
+ metadata.gz: 3a27cb8b24a455ea9ba565de9ec27da78c2fd2a1d6d569f9dc5fb8e5d110bdd7
4
+ data.tar.gz: 7aa7088bd89938af0a571608556abc5c3f465e3cffe9f637811ec411a58212a0
5
5
  SHA512:
6
- metadata.gz: c0ed4d1134c54fa7b0ab0d454035659960f7ddef344863c97badee8b87377559b0a3e2958ffe2ab16569848c4da561c811f3e047f322368a87d71676d9195b28
7
- data.tar.gz: 07d090f6987fb04af8332f89b88fe7b1c008e8858ef56710ee7ea62fec41a61110604622f39ab0043e10f24f476ccef768688df843609f8bf55ec454caadc93a
6
+ metadata.gz: 03ae01a29887bbe7b80831fa5dcbf781725f8b87336ed3a45c09414f19e41400e0322282754ffb860f016902e485ac196fcac9bbb5c4b58f0416da4aca344d3c
7
+ data.tar.gz: c4999ff0069fd8f24940f1311bcbb6447ceb60e168e3d9e57a7c2e877f73ff2a6a7aadcb3f92e66eb3ceeb78e5372567a5679e1189d5ae1484d6d683fd8e219d
@@ -1,5 +1,5 @@
1
1
  module Voltron
2
2
  class Encrypt
3
- VERSION = "0.2.0".freeze
3
+ VERSION = "0.2.1".freeze
4
4
  end
5
5
  end
@@ -64,8 +64,7 @@ module Voltron
64
64
 
65
65
  module InstanceMethods
66
66
  def assign_attributes(new_attributes)
67
- new_attributes.stringify_keys!
68
- belongs = self.class.reflect_on_all_associations(:belongs_to).map { |b| { column: "#{b.name}_id", class_name: (b.options[:class_name] || b.name).to_s.classify } }
67
+ belongs = self.class.reflect_on_all_associations(:belongs_to).map { |b| { column: "#{b.name}_id".to_sym, class_name: (b.options[:class_name] || b.name).to_s.classify } }
69
68
 
70
69
  belongs.each do |belong|
71
70
  begin
@@ -82,8 +81,7 @@ module Voltron
82
81
  end
83
82
 
84
83
  def update_attributes(attributes)
85
- attributes.stringify_keys!
86
- belongs = self.class.reflect_on_all_associations(:belongs_to).map { |b| { column: "#{b.name}_id", class_name: (b.options[:class_name] || b.name).to_s.classify } }
84
+ belongs = self.class.reflect_on_all_associations(:belongs_to).map { |b| { column: "#{b.name}_id".to_sym, class_name: (b.options[:class_name] || b.name).to_s.classify } }
87
85
 
88
86
  belongs.each do |belong|
89
87
  begin
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: voltron-encrypt
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
  - Eric Hainer
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-04-30 00:00:00.000000000 Z
11
+ date: 2020-05-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -183,8 +183,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
183
183
  - !ruby/object:Gem::Version
184
184
  version: '0'
185
185
  requirements: []
186
- rubyforge_project:
187
- rubygems_version: 2.7.6
186
+ rubygems_version: 3.0.6
188
187
  signing_key:
189
188
  specification_version: 4
190
189
  summary: Enables base 64 encoded ids on rails models