lws 7.5.1 → 8.1.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: 8d67d47eca79efdc3503e0887370376a318dd9e718849a4edfc8b43bfea85f22
4
- data.tar.gz: e25029a0f216ed27a30874d032c7b0ff25652e7ef1649eef1066edbc4e9fd120
3
+ metadata.gz: 71387b35e80a4e507b40fa30176d0a559240fbf1e20663b3a1912ae99ec578d0
4
+ data.tar.gz: 9951a09859f23241cdc36e762ce8c3cb3c487247c2f2016a664b713ab8a5f7db
5
5
  SHA512:
6
- metadata.gz: 12629ffd1da6fb9282cc4972395f9f00c71f2defdddf06251893222ba5271614dab3ab7eac8167b137f5a56834cd9655ff99466c999eaa292571d94ea1b7cc1d
7
- data.tar.gz: 1125d8d47a848fb64c42011a76acd98491643cd6a2fe66fd7a41eb0f3e0ed6bfa299650b0f0aca1f9d06270be7e448e0193d89afecab4e6f212e3cde2565241f
6
+ metadata.gz: 425ddb46ef824e6b54703743ad5e15eaf666cee672548abb4b5c98f01fc2c302c1a0ca60bffd4da2aef74da3bef27bdcca7a623ae34194ed5d86e9bdd093e4e2
7
+ data.tar.gz: 187749b5eabf148b000466a99dc6d87538ae35f6e1cfb67eddf39f8096d651c0eab92b7cf8053247449616ab00cf9152b9229a5d43c1d0b8061a5821d2e50867
data/lib/lws/apps/auth.rb CHANGED
@@ -69,16 +69,6 @@ module LWS::Auth
69
69
  # (at least 8 characters long)
70
70
  attribute :name
71
71
 
72
- # @!attribute start_app
73
- # @return [App, nil] the app to start with/open when logging in
74
- belongs_to :start_app, class_name: "LWS::Auth::App",
75
- foreign_key: :start_app_id,
76
- uri: "apps/:id"
77
-
78
- # @!attribute start_app_id
79
- # @return [Integer, nil] the ID of the app to start with/open when logging in
80
- attribute :start_app_id
81
-
82
72
  # @!attribute users
83
73
  # @return [Array<User>] the users that are assigned to the account
84
74
  has_many :users
data/lib/lws/config.rb CHANGED
@@ -155,7 +155,9 @@ module LWS
155
155
  # @return [Boolean] whether the config file was used
156
156
  def load_config_file(config_file, force_environment = nil)
157
157
  return false unless File.exist? config_file
158
- config_data = YAML.load_file(config_file)
158
+ config_data = File.open(config_file) do |f|
159
+ YAML.safe_load(f, filename: config_file, aliases: true)
160
+ end
159
161
  default_config = config_data["default"] || {}
160
162
 
161
163
  self.environment = force_environment ||
data/lib/lws/stubbing.rb CHANGED
@@ -57,7 +57,9 @@ module LWS
57
57
  end
58
58
  @fixtures = {}
59
59
  Dir["#{stubs_dir}/**/*.yml"].each do |yml_file|
60
- yml = YAML.load_file(yml_file)
60
+ yml = File.open(yml_file) do |f|
61
+ YAML.safe_load(f, filename: yml_file, aliases: true)
62
+ end
61
63
  @fixtures.deep_merge! yml
62
64
  end
63
65
 
data/lib/lws/version.rb CHANGED
@@ -14,6 +14,6 @@ module LWS
14
14
 
15
15
  # The LWS library version.
16
16
  # @note The major and minor version parts match the LWS API version!
17
- VERSION = "7.5.1".freeze
17
+ VERSION = "8.1.0".freeze
18
18
 
19
19
  end
data/test/auth_test.rb CHANGED
@@ -35,7 +35,6 @@ class TestAuthAccount < MiniTest::Test
35
35
  if @account.devices.present?
36
36
  assert_instance_of(Device, @account.devices.first)
37
37
  end
38
- assert_instance_of(App, @account.start_app)
39
38
  end
40
39
 
41
40
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lws
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.5.1
4
+ version: 8.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - LeftClick B.V.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-03-02 00:00:00.000000000 Z
11
+ date: 2023-12-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday-http-cache
@@ -317,33 +317,33 @@ required_rubygems_version: !ruby/object:Gem::Requirement
317
317
  - !ruby/object:Gem::Version
318
318
  version: '0'
319
319
  requirements: []
320
- rubygems_version: 3.1.2
320
+ rubygems_version: 3.3.5
321
321
  signing_key:
322
322
  specification_version: 4
323
323
  summary: LeftClick web services library for Ruby
324
324
  test_files:
325
- - test/presence_test.rb
326
- - test/http_caching_test.rb
327
- - test/generic_test.rb
328
- - test/corporate_website_test.rb
329
- - test/stubbing_test.rb
330
- - test/support/with_env.rb
331
- - test/caching_test.rb
332
- - test/maps_test.rb
333
- - test/ticket_test.rb
334
325
  - test/api_token_middleware_test.rb
335
- - test/digital_signage_test.rb
336
- - test/json_parser_test.rb
337
- - test/logger_test.rb
338
- - test/config/switch_env.yml
339
- - test/config/full.yml
326
+ - test/auth_test.rb
327
+ - test/caching_test.rb
340
328
  - test/config/empty.yml
341
- - test/config/tokens.yml
342
- - test/config/invalid.yml
343
329
  - test/config/endpoints.yml
344
- - test/auth_test.rb
345
- - test/test_helper.rb
330
+ - test/config/full.yml
331
+ - test/config/invalid.yml
332
+ - test/config/switch_env.yml
333
+ - test/config/tokens.yml
334
+ - test/corporate_website_test.rb
335
+ - test/digital_signage_test.rb
346
336
  - test/fixtures/auth.yml
347
337
  - test/fixtures/permissions.yml
338
+ - test/generic_test.rb
339
+ - test/http_caching_test.rb
340
+ - test/json_parser_test.rb
341
+ - test/logger_test.rb
342
+ - test/maps_test.rb
343
+ - test/presence_test.rb
348
344
  - test/resource_test.rb
349
345
  - test/setup_test.rb
346
+ - test/stubbing_test.rb
347
+ - test/support/with_env.rb
348
+ - test/test_helper.rb
349
+ - test/ticket_test.rb