evoleap-licensing 1.0.1.14 → 1.0.3.18

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: f9210334bcfd5ea8f7169db015fecb903e19da8892f3a38536975c25a5bb7009
4
- data.tar.gz: e0e6d7d075149decba927538631744ce7ce5545d0ec2971783e2c8575cb66d72
3
+ metadata.gz: a63cd27ea889358f2e59d4795c6da731a4e96bde5e43cb1640d2403b1430a595
4
+ data.tar.gz: bea58a2e40395944a5e3ea84e8197bb2816687d49482a401c5c213ff8f245b56
5
5
  SHA512:
6
- metadata.gz: f31ed6d3b403e1714310a3f2c753c96a84d2166a0ab70cfad32c9bf2c3c0dedf6a5d4447c1e0cc6244e40e65eb8a2764c03548b037f1afa4149d879e02bc93ff
7
- data.tar.gz: 6902d00d1202401ffb65b139d4e1516f2347a9c491b1ee094232f46e75cef753b51eb1f0d8815e12ed89643fb994a5286ca8657d8077e04087fe5b49ea14cf5e
6
+ metadata.gz: 7072dc0761edaac77f6d842732dccc08c53e1838a70ffe14046e7da9b0bbfa224cc552cc765d5799833fdf5a9b44bd1c9699ece661eae8d87ccf45326b586eb6
7
+ data.tar.gz: 1b84e06544c8c5e8c2897c919c2c038655c649cdfe6168458538b4ebdc2f365e80a79c1fefb0493a7311a3f9eb02220ba9cd9f666e571fa32f0d59ca4f2dc14b
@@ -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
@@ -187,6 +187,7 @@ module EvoleapLicensing
187
187
  WebService.begin_user_session(
188
188
  product_id: @product_id,
189
189
  instance_id: @instance_id,
190
+ version: @version,
190
191
  user_identity: user_identity.to_api_format,
191
192
  public_key: @public_key,
192
193
  client: @client,
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EvoleapLicensing
4
- VERSION = "1.0.1.14"
4
+ VERSION = "1.0.3.18"
5
5
  end
6
6
 
@@ -39,10 +39,11 @@ module EvoleapLicensing
39
39
  connection_error: ->(msg) { registration_connection_error(msg) })
40
40
  end
41
41
 
42
- def self.begin_user_session(product_id:, instance_id:, user_identity:, public_key:, client:, session_duration: nil)
42
+ def self.begin_user_session(product_id:, instance_id:, version:, user_identity:, public_key:, client:, session_duration: nil)
43
43
  post_data = {
44
44
  product_guid: product_id,
45
45
  instance_guid: instance_id,
46
+ version: version,
46
47
  user_identity: user_identity
47
48
  }
48
49
  post_data[:session_duration] = session_duration if session_duration
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: evoleap-licensing
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1.14
4
+ version: 1.0.3.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - evoleap