secure_attribute 0.1.1 → 0.1.2

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
  SHA1:
3
- metadata.gz: 986f1290881c6eb91799bfcd9a524c83d0a9392d
4
- data.tar.gz: ba98eb059ca03d7736a6a21211f1ae0ae71d5ed9
3
+ metadata.gz: 41227402bd4b196d9409252d07f95f913c6481c3
4
+ data.tar.gz: ff76e02d5dc5ec0c77fb0fb8cd3c6030be6ea31b
5
5
  SHA512:
6
- metadata.gz: d947af61564b6858a41d5447ad7e556f07bfff45cb9b85b180798046a922c5f014be56d762499fe2c4bdc9ed97c3c1fd205be96021ff4db082f17a82d7ba6534
7
- data.tar.gz: 907f9b44635f58383ca504dfa9a1818f841eae78adcf5944024ae19233b8ef7f6aea78391d659ded7ff3d083dcebc8c0070ba3e2678558288b9bb0f87e6c8c64
6
+ metadata.gz: 9ee22779d78867f5650776e6f9bdcd9d9ed367d9a5e10a801ab78fb0e359d28a8d722a0f264033890c4688428ca8aef3ff7d46c2de8202f50f83836471ad6ea2
7
+ data.tar.gz: 793ba062c1e04d8e653d1d1237e3904e7b31f014fd3dd10c65e0c8c0317cf64555fb366597da3aa822c748cd76a77c1a7051c0b760532099670da25aa890a161
@@ -68,7 +68,7 @@ module SecureAttribute
68
68
 
69
69
  def ensure_attribute_accessors_are_defined(name)
70
70
  if defined?(ActiveRecord::Base) && self < ActiveRecord::Base
71
- define_attribute_methods
71
+ define_attribute_method(name)
72
72
  else
73
73
  attr_writer(name) unless respond_to?("#{name}=")
74
74
  attr_reader(name) unless respond_to?(name)
@@ -1,3 +1,3 @@
1
1
  module SecureAttribute
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: secure_attribute
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexis Bernard
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-16 00:00:00.000000000 Z
11
+ date: 2019-01-28 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Encrypt attributes of any Ruby object or ActiveRecord model.
14
14
  email:
@@ -39,9 +39,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
39
39
  version: '0'
40
40
  requirements: []
41
41
  rubyforge_project:
42
- rubygems_version: 2.4.8
42
+ rubygems_version: 2.5.1
43
43
  signing_key:
44
44
  specification_version: 4
45
45
  summary: Encrypt attributes of any Ruby object or ActiveRecord model.
46
46
  test_files: []
47
- has_rdoc: