evoleap-licensing 1.0.0.12 → 1.0.2.16

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: 67b4c0932275275ba02caaba0df4638c1117ea8aaf8f7273c784984fdd59dc1c
4
- data.tar.gz: 0ec91a2dc11db0b3175ce2f2bd9c6170cdab60fae9056dad335e7172e78f7c2f
3
+ metadata.gz: 66c8a673634310f3129ee339d024f03d14df0753bf5333732fbb34fc5dd31168
4
+ data.tar.gz: c31c7358bf1b4211ee6aea28f45caaae3e302e95532d6068f5be50bcecf0f056
5
5
  SHA512:
6
- metadata.gz: 5b4e155db880b75292d4b7c2a6b4ff891351c3b806dd5dc35cd621f9bbebb8850024f71a574824ac66ded3b7dc3fe9d7e2582330ded9e985f92088432badc395
7
- data.tar.gz: 8a540fe81ec5abc4d271acafab92270bfc8c29c27e2fe1d1b6084b04a4b5dcf4643e04c972248da5e07028cec89effc41e5c2f300b81e1eec9c92184e23709fc
6
+ metadata.gz: 1b2a1046bfa650cfd94c855abb43a8845f4393d651c4674ff3579b8a74b9d6ae8341800bd6c398b7268acad60d7141ed3cb8446d3a547070b9e8307c9061368f
7
+ data.tar.gz: 59742644c06f0c23b7817e01685e58d66127e0b15849dfe4ca3e02d9b1be0e964aec165066960337b576a7da65bc41d068fab81d74b40b1f87e89eb41d04e656
@@ -17,8 +17,11 @@ module EvoleapLicensing
17
17
  @data[key.to_s]
18
18
  end
19
19
 
20
+ # Flat string-keyed hash matching what the ELM backend (and the C# SDK)
21
+ # expect. ParsedInstanceIdentity#initialize calls deep_symbolize_keys!
22
+ # on this, so it must be a Hash, not an array of key/value objects.
20
23
  def to_api_format
21
- @data.map { |k, v| { "key" => k, "value" => v.to_s } }
24
+ @data.transform_values(&:to_s)
22
25
  end
23
26
 
24
27
  def to_h
@@ -17,8 +17,11 @@ module EvoleapLicensing
17
17
  @data[key.to_s]
18
18
  end
19
19
 
20
+ # Flat string-keyed hash matching what the ELM backend (and the C# SDK)
21
+ # expect. user_identity_params on the backend calls symbolize_keys! and
22
+ # slices specific fields — it requires a Hash, not an array of pairs.
20
23
  def to_api_format
21
- @data.map { |k, v| { "key" => k, "value" => v.to_s } }
24
+ @data.transform_values(&:to_s)
22
25
  end
23
26
 
24
27
  def to_h
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EvoleapLicensing
4
- VERSION = "1.0.0.12"
4
+ VERSION = "1.0.2.16"
5
5
  end
6
6
 
@@ -146,7 +146,10 @@ module EvoleapLicensing
146
146
  private_class_method :encrypted_call
147
147
 
148
148
  def self.add_hardware_identity(post_data, hardware_identity)
149
- post_data[:hardware_identity] = hardware_identity if hardware_identity
149
+ # ELM backend (and the C# SDK) call this field "instance_identity" on the
150
+ # wire. The Ruby method is named hardware_identity for historical reasons
151
+ # but the JSON key must match what client_licensing_v3_controller slices.
152
+ post_data[:instance_identity] = hardware_identity if hardware_identity
150
153
  end
151
154
  private_class_method :add_hardware_identity
152
155
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: evoleap-licensing
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.12
4
+ version: 1.0.2.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - evoleap
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-03-26 00:00:00.000000000 Z
11
+ date: 2026-05-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: base64