bobhr 0.5.13 → 0.5.14

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: f6833af093ceefa5ffbd4f56748c4cacc0abc6a9eef88a42fcf1b1ad5d00a171
4
- data.tar.gz: 863f017eb7bccf7904c060b140b5fd2c4cfbaa43b5533d4631974623342c052d
3
+ metadata.gz: a20c0745a84b5e37e77621a9a2763add4a7eac30416f00846c86300920bba425
4
+ data.tar.gz: 1177e6df4144020f139592e3f39591ac3bde0a212b353a1e100b26c62f9dc74a
5
5
  SHA512:
6
- metadata.gz: 6683be064cc627dcfe6c8bb136870cbb71231034475d1b178f2a46c42944527d16371c17b24ffcdc06a84f82cc72ced0387209b12efb68bdb66de6276f9a5821
7
- data.tar.gz: b09ee6b29014ace8b434520c914c87994b2980c0da369fdb134aeb9c995c4db4e3e844945f1f969de4cbe315738d5101da0121d204932ae02159ed4bf3fe6ab1
6
+ metadata.gz: fb4a4fa0fcf022f1d36c8ed5d5f8de745a7c57b44dd5e1e792c53f9b6185a9361c4f67c2c48492743662ddbc4e6264c2fa77153516c5d79f5e0729abe2f8a7e2
7
+ data.tar.gz: ec53c213c5eb300d5081a7a44e9e074d605111645a9a93783e3380b976f149c0b67e5de7a20e8ecc9d068682dd3ba67ada6ecaeb490e86f489b4d74846012865
@@ -6,6 +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
10
  instance_variable_set("@#{k}", v.is_a?(Hash) ? Models::Base.new(v) : v)
10
11
  self.class.send(:define_method, k, proc { instance_variable_get("@#{k}") })
11
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.13'
4
+ VERSION = '0.5.14'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bobhr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.13
4
+ version: 0.5.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lien Van Den Steen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-06-17 00:00:00.000000000 Z
11
+ date: 2022-07-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -129,7 +129,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
129
129
  - !ruby/object:Gem::Version
130
130
  version: '0'
131
131
  requirements: []
132
- rubygems_version: 3.2.31
132
+ rubygems_version: 3.3.7
133
133
  signing_key:
134
134
  specification_version: 4
135
135
  summary: Ruby gem for Bob API