lago-ruby-client 0.28.0.pre.beta → 0.29.1.pre.beta

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: 879e3651772723343b2ed7934a8e9eaee786a47ceb920325fb53da58b6999c82
4
- data.tar.gz: 5f64ba4ff7569c9dc3bcb0c143dd1fa98d67ad1b3f3f2e0bd56b6d976ebcbcf8
3
+ metadata.gz: d123d4384a928523d2422a554663aa839c6713c1a3406c99b1d21366b84f03f5
4
+ data.tar.gz: 9d8cbaabff2d94dcba6ea5145525e98c620c9628cc6c82ea949aebfa00211673
5
5
  SHA512:
6
- metadata.gz: 48311654cf0a74fb99fb618c8afcfd2eb250cdd82b28caa6ce271a6e17a6cfe20716ea31a0234b79a7dfced0bc6906a618dd4d0fec2f7dd5270a8c9af0267da3
7
- data.tar.gz: 44f5f185ddbca8bd5861943e0c5e9ed0531b668b843a6568ff65908729f3c42af20c8ec78bf5889f3f5886d984fcc916b98bb3967dfc7d1db35feae04337546f
6
+ metadata.gz: f83582c09fb440fce45fc67bfa5a4a4c65e47d874d749ebeee7aa6ea8f1dee9eac973365bb08d8adaf6e8fe8a18c4fd46491c09a2256d65b086cf9ca9ee7f8ec
7
+ data.tar.gz: 398c56164bbdfe2e0a88ca905c68eec770456ff80153aa72311a128ba91e8d0d0ed6ac13903bd5f9437a76cdd9b5e66ed7e56e62054ab8e4a04fab5853dbbc89
@@ -35,7 +35,7 @@ module Lago
35
35
  end
36
36
 
37
37
  def whitelist_limitations(limitation_params)
38
- (limitation_params || {}).slice(:plan_codes)
38
+ (limitation_params || {}).slice(:plan_codes, :billable_metric_codes)
39
39
  end
40
40
  end
41
41
  end
@@ -74,7 +74,7 @@ module Lago
74
74
  def whitelist_metadata(metadata)
75
75
  processed_metadata = []
76
76
 
77
- metadata.each do |m|
77
+ (metadata || []).each do |m|
78
78
  result = (m || {}).slice(:id, :key, :value, :display_in_invoice)
79
79
 
80
80
  processed_metadata << result unless result.empty?
data/lib/lago/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Lago
4
- VERSION = '0.28.0-beta'
4
+ VERSION = '0.29.1-beta'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lago-ruby-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.28.0.pre.beta
4
+ version: 0.29.1.pre.beta
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lovro Colic
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-04-06 00:00:00.000000000 Z
11
+ date: 2023-04-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jwt