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 +4 -4
- data/lib/lws/apps/auth.rb +0 -10
- data/lib/lws/config.rb +3 -1
- data/lib/lws/stubbing.rb +3 -1
- data/lib/lws/version.rb +1 -1
- data/test/auth_test.rb +0 -1
- metadata +21 -21
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 71387b35e80a4e507b40fa30176d0a559240fbf1e20663b3a1912ae99ec578d0
|
4
|
+
data.tar.gz: 9951a09859f23241cdc36e762ce8c3cb3c487247c2f2016a664b713ab8a5f7db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 =
|
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 =
|
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
data/test/auth_test.rb
CHANGED
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:
|
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:
|
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.
|
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/
|
336
|
-
- test/
|
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/
|
345
|
-
- test/
|
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
|