treezor_connect 0.16.0 → 0.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f76bed38beeab8fe42f826a8d8dfbfa2e1d9e93ea793cd529823072bf20ea866
4
- data.tar.gz: 2e0d77b442fc6e3064a60c999d3fb7e959caa213ebdf2ec3acd2d5a743251149
3
+ metadata.gz: 62135597a3a258409cfb519b1559f332e661e4b8641605199b1fdf9a579db9f9
4
+ data.tar.gz: 0c200a83d5ef1d4e1a671585ad6768afa74c5bb48f748d464e9014627bcf516d
5
5
  SHA512:
6
- metadata.gz: d6b5445d50c08a1c892610530a533ad254a4da65661a44b5c321cd4730767de0ab1998171bf2d5377fab198f7a83d38b96619ff5cc66635956bd4d0a2ce058aa
7
- data.tar.gz: 2e5b0b92b9c4dd98c2ed0b90a77dfdca2d6b0c46fe6206a04529de4abc95a92e39ef12626fa9836218cd8d86c3e0c114df484506806ad45242ba5a2e276b8613
6
+ metadata.gz: a9bb67df7d62da142fa4fa60906644c66874be207f04568d645e4428ed0e4cb0a1250cec9faf102cb34e2bca5b7a654841a843e4f04c9337060466c0e82bbaa7
7
+ data.tar.gz: 85538da9313be4b364e5d924dbffe655fb172f3717a13d449074cc640cf5608fcdc1c350908dbe73a475686b94c20bb79702d7e5b248c75bede6b98cf61e90dd
@@ -77,13 +77,13 @@ module TreezorConnect
77
77
  end
78
78
 
79
79
  def camelize(string, capitalize_first_letter: false)
80
- string
81
- .to_s
82
- .split('_')
83
- .map.with_index do |word, index|
84
- capitalize_first_letter || index.positive? ? word.capitalize : word
80
+ string.to_s.split('_').map.with_index do |word, index|
81
+ if word.match?(/\A[A-Z0-9]+\z/)
82
+ word
83
+ else
84
+ (capitalize_first_letter || index.positive? ? word.capitalize : word)
85
85
  end
86
- .join
86
+ end.join
87
87
  end
88
88
  end
89
89
  end
@@ -2,7 +2,9 @@
2
2
 
3
3
  module TreezorConnect
4
4
  class Card < ApiResource
5
- custom_action :put, :lock_unlock, :limits, first_letter_upcased: true
5
+ extend TreezorConnect::ApiOperations::Fetch
6
+ custom_action :put, :lock_unlock, :limits, :activate, first_letter_upcased: true
7
+ custom_action :post, :register_3DS, :create_virtual, first_letter_upcased: true
6
8
 
7
9
  OBJECT_NAME = 'card'
8
10
  OBJECT_KEY = 'cards'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: treezor_connect
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.0
4
+ version: 0.18.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - stefakins
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2025-01-22 00:00:00.000000000 Z
12
+ date: 2025-03-18 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: A gem for making HTTP calls to Treezor Connect.
15
15
  email: stefan.atkinson69@gmail.com
@@ -64,7 +64,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
64
64
  - !ruby/object:Gem::Version
65
65
  version: '0'
66
66
  requirements: []
67
- rubygems_version: 3.4.19
67
+ rubygems_version: 3.4.10
68
68
  signing_key:
69
69
  specification_version: 4
70
70
  summary: A gem for making HTTP calls to Treezor Connect.