bobhr 0.5.14 → 0.5.15

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: a20c0745a84b5e37e77621a9a2763add4a7eac30416f00846c86300920bba425
4
- data.tar.gz: 1177e6df4144020f139592e3f39591ac3bde0a212b353a1e100b26c62f9dc74a
3
+ metadata.gz: 8fbc4a2d88ccb3778bf83513c95f4606124535d1aeff8fe84732c5ebf269b6f7
4
+ data.tar.gz: 4f307468c30e25e38a7b1bcc3d32c9d4689563975f4740adf9e449f97bbbe217
5
5
  SHA512:
6
- metadata.gz: fb4a4fa0fcf022f1d36c8ed5d5f8de745a7c57b44dd5e1e792c53f9b6185a9361c4f67c2c48492743662ddbc4e6264c2fa77153516c5d79f5e0729abe2f8a7e2
7
- data.tar.gz: ec53c213c5eb300d5081a7a44e9e074d605111645a9a93783e3380b976f149c0b67e5de7a20e8ecc9d068682dd3ba67ada6ecaeb490e86f489b4d74846012865
6
+ metadata.gz: d35199c9347fe57876644c4c674fe4a04a78160c2e20beffbfb0408534e886ed6cb4850d28758522af052271ff7e6cc2e80b864df37b17bbbbe618e34c2a8cf9
7
+ data.tar.gz: 27191a97466465ca5ebf761ed6f7642e139f1777dc1e1c52ba9b4a6408b37b110993c501bda136a8c2aba444fe275eabafed5b2c5d6a2fefae73d11d1f52ff14
@@ -6,7 +6,7 @@ module Models
6
6
  attributes = Bob::Util.underscorize_hash(raw)
7
7
 
8
8
  attributes.each do |k, v|
9
- k = "field_#{k}" if k.to_i > 0
9
+ k = "field_#{k}" if k.class == String && k.to_i > 0
10
10
  instance_variable_set("@#{k}", v.is_a?(Hash) ? Models::Base.new(v) : v)
11
11
  self.class.send(:define_method, k, proc { instance_variable_get("@#{k}") })
12
12
  self.class.send(:define_method, "#{k}=", proc { |val| instance_variable_set("@#{k}", val) })
data/lib/bob/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Bob
4
- VERSION = '0.5.14'
4
+ VERSION = '0.5.15'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bobhr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.14
4
+ version: 0.5.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lien Van Den Steen