incognia_api 0.5.2 → 0.5.3

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: 6475d6c1fa5bf56e643e001516911dad924d51c48022f2f2ff3888a756443581
4
- data.tar.gz: 7af66755bea5f89918309815d9a10fbfeda56917db601ef5bb9a73f7c92788c1
3
+ metadata.gz: e65736589513112ba598e22201a4d9b4e0bb7460e5dfde60371d35a063356e04
4
+ data.tar.gz: 040dc0603ed81b4e413f18ef9505cbd6b08eb798a940307ded4f8f9195d95bbb
5
5
  SHA512:
6
- metadata.gz: ec274dd33ff8ad18bbed3fc9ed6062457affa9b8640234c9b7bac5581867801a01a98b56c8ad8a606185e4e211ce0ce590f664e11bfe70c76d883d3e896c4461
7
- data.tar.gz: 861d1ac7d0cbd767f799bee589a9a947c2d4922b31abf3fcc9152ac606560e300a412a558795ae4f120a168e4506007cefa977cd8bab51830c652ddd910f11ee
6
+ metadata.gz: f905369c680c26ab5503d0ef54c636892c934dcb5e21bb18d2e0e635a55a96474594638a1cbbc868b9f9409685028db03a80dac240cd784cb9055547d0f49108
7
+ data.tar.gz: 7a2bbb5d37e6668f71f4f63e1d2aee89f2b082fa02fe7d5545618792ccd0a8e61bb86fdea6a3886af279fde91ef1f5b415f443cd15dd0a9736cf1a80a9d021ac
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- incognia_api (0.5.2)
4
+ incognia_api (0.5.3)
5
5
  faraday (~> 1.10)
6
6
  faraday_middleware (~> 1.2)
7
7
 
@@ -1,13 +1,13 @@
1
1
  require 'delegate'
2
2
 
3
3
  module Incognia
4
- class APIResource < SimpleDelegator
4
+ class APIResource < OpenStruct
5
5
  def self.from_hash(hash)
6
6
  hash = hash.each_with_object({}) do |(k, v), h|
7
7
  h[k] = v.is_a?(Hash) ? from_hash(v) : v
8
8
  end
9
9
 
10
- new(OpenStruct.new(hash))
10
+ new(hash)
11
11
  end
12
12
  end
13
13
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Incognia
4
- VERSION = "0.5.2"
4
+ VERSION = "0.5.3"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: incognia_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Guilherme Cavalcanti
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-09-11 00:00:00.000000000 Z
11
+ date: 2023-11-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday