lws 7.2.5 → 7.4.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 +8 -7
- data/lib/lws/apps/corporate_website.rb +8 -7
- data/lib/lws/apps/digital_signage.rb +21 -11
- data/lib/lws/apps/generic.rb +8 -8
- data/lib/lws/apps/maps.rb +8 -7
- data/lib/lws/apps/presence.rb +18 -7
- data/lib/lws/apps/resource.rb +9 -8
- data/lib/lws/apps/ticket.rb +8 -7
- data/lib/lws/config.rb +9 -7
- data/lib/lws/errors.rb +8 -7
- data/lib/lws/middleware/http_logger.rb +8 -7
- data/lib/lws/middleware/json_logger.rb +8 -7
- data/lib/lws/middleware/json_parser.rb +8 -7
- data/lib/lws/middleware/request_headers.rb +8 -7
- data/lib/lws/middleware.rb +8 -7
- data/lib/lws/stubbing.rb +8 -7
- data/lib/lws/version.rb +9 -8
- data/lib/lws.rb +8 -7
- data/test/api_token_middleware_test.rb +8 -7
- data/test/auth_test.rb +8 -7
- data/test/caching_test.rb +8 -7
- data/test/corporate_website_test.rb +8 -7
- data/test/digital_signage_test.rb +10 -9
- data/test/generic_test.rb +8 -7
- data/test/http_caching_test.rb +8 -7
- data/test/json_parser_test.rb +8 -7
- data/test/logger_test.rb +8 -7
- data/test/maps_test.rb +8 -7
- data/test/presence_test.rb +8 -7
- data/test/resource_test.rb +8 -7
- data/test/setup_test.rb +9 -8
- data/test/stubbing_test.rb +8 -7
- data/test/support/with_env.rb +8 -7
- data/test/test_helper.rb +8 -7
- data/test/ticket_test.rb +8 -7
- metadata +26 -20
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 13d271f3eac0482c5f1d67079d21237d8c47b1c26c9d7f9c8a61dfcf600923b4
|
|
4
|
+
data.tar.gz: ead25aa00d1227afaef9fcd4218e4080d131d954d68a9a6eb9b8e84880895137
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a4f8bb8d7637c23e4033e05aeb3ec214aaba0b3b393949821149eba528e8fe10af73d844976ff4149328c59e382bf67da240ce99b755e2bdc34312d30761d8c9
|
|
7
|
+
data.tar.gz: 62a449ef8d72b5f889a9839a6addaaeb0aeae25167a637874f281d067c09ce8bda9b44021116fa78da7359e5a241b70d5fed81fa5802449184335eac3582691b
|
data/lib/lws/apps/auth.rb
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
#
|
|
2
|
-
# Copyright © 2016–
|
|
2
|
+
# Copyright © 2016–2021 LeftClick Web Services B.V.
|
|
3
3
|
#
|
|
4
|
-
# This software is property of LeftClick B.V. and cannot be
|
|
5
|
-
# and/or modified without permission. The software or any
|
|
6
|
-
# cannot be used for any other purposes than the LeftClick
|
|
7
|
-
# only during a valid license subscription. For more
|
|
8
|
-
# contact LeftClick B.V. at:
|
|
9
|
-
#
|
|
4
|
+
# This software is property of LeftClick Web Services B.V. and cannot be
|
|
5
|
+
# redistributed and/or modified without permission. The software or any
|
|
6
|
+
# of its parts cannot be used for any other purposes than the LeftClick
|
|
7
|
+
# services and only during a valid license subscription. For more
|
|
8
|
+
# information, please contact LeftClick Web Services B.V. at:
|
|
9
|
+
# Schootense Dreef 20A, 5708 HZ Helmond, The Netherlands,
|
|
10
|
+
# info@leftclick.eu, +3185-4444-004.
|
|
10
11
|
|
|
11
12
|
|
|
12
13
|
# = The auth app module
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
#
|
|
2
|
-
# Copyright © 2016–
|
|
2
|
+
# Copyright © 2016–2021 LeftClick Web Services B.V.
|
|
3
3
|
#
|
|
4
|
-
# This software is property of LeftClick B.V. and cannot be
|
|
5
|
-
# and/or modified without permission. The software or any
|
|
6
|
-
# cannot be used for any other purposes than the LeftClick
|
|
7
|
-
# only during a valid license subscription. For more
|
|
8
|
-
# contact LeftClick B.V. at:
|
|
9
|
-
#
|
|
4
|
+
# This software is property of LeftClick Web Services B.V. and cannot be
|
|
5
|
+
# redistributed and/or modified without permission. The software or any
|
|
6
|
+
# of its parts cannot be used for any other purposes than the LeftClick
|
|
7
|
+
# services and only during a valid license subscription. For more
|
|
8
|
+
# information, please contact LeftClick Web Services B.V. at:
|
|
9
|
+
# Schootense Dreef 20A, 5708 HZ Helmond, The Netherlands,
|
|
10
|
+
# info@leftclick.eu, +3185-4444-004.
|
|
10
11
|
|
|
11
12
|
|
|
12
13
|
# = The corporate website app module
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
#
|
|
2
|
-
# Copyright © 2016–
|
|
2
|
+
# Copyright © 2016–2021 LeftClick Web Services B.V.
|
|
3
3
|
#
|
|
4
|
-
# This software is property of LeftClick B.V. and cannot be
|
|
5
|
-
# and/or modified without permission. The software or any
|
|
6
|
-
# cannot be used for any other purposes than the LeftClick
|
|
7
|
-
# only during a valid license subscription. For more
|
|
8
|
-
# contact LeftClick B.V. at:
|
|
9
|
-
#
|
|
4
|
+
# This software is property of LeftClick Web Services B.V. and cannot be
|
|
5
|
+
# redistributed and/or modified without permission. The software or any
|
|
6
|
+
# of its parts cannot be used for any other purposes than the LeftClick
|
|
7
|
+
# services and only during a valid license subscription. For more
|
|
8
|
+
# information, please contact LeftClick Web Services B.V. at:
|
|
9
|
+
# Schootense Dreef 20A, 5708 HZ Helmond, The Netherlands,
|
|
10
|
+
# info@leftclick.eu, +3185-4444-004.
|
|
10
11
|
|
|
11
12
|
|
|
12
13
|
# = The digital_signage app module
|
|
@@ -77,6 +78,11 @@ module LWS::DigitalSignage
|
|
|
77
78
|
# @return [Array<Channel::Group>] the groups the channel is a member of
|
|
78
79
|
has_many :groups, class_name: "LWS::DigitalSignage::Channel::Group"
|
|
79
80
|
|
|
81
|
+
# @!attribute layout_kind
|
|
82
|
+
# @return ["default", "stage"] the layout (version) kinds to consider
|
|
83
|
+
# when generating a playlist for the channel
|
|
84
|
+
attribute :layout_kind
|
|
85
|
+
|
|
80
86
|
# @!attribute marquee_config
|
|
81
87
|
# @return [String] the marquee/ticker tape configuration (JSON) of the channel
|
|
82
88
|
attribute :marquee_config
|
|
@@ -506,7 +512,7 @@ module LWS::DigitalSignage
|
|
|
506
512
|
# the layout
|
|
507
513
|
# FIXME: Missing endpoint in LWS
|
|
508
514
|
has_many :categories, class_name: "LWS::DigitalSignage::Layout::Category",
|
|
509
|
-
uri: "
|
|
515
|
+
uri: "layouts/:layout_id/categories(/:id)"
|
|
510
516
|
|
|
511
517
|
# @!attribute company_owner
|
|
512
518
|
# @return [LWS::Auth::Company] the company that owns the layout
|
|
@@ -764,7 +770,7 @@ module LWS::DigitalSignage
|
|
|
764
770
|
# This class is only used within the context of the {Layout} class.
|
|
765
771
|
class Layout::Version < LWS::Generic::Model
|
|
766
772
|
use_api LWS::DigitalSignage.api
|
|
767
|
-
uri "
|
|
773
|
+
uri "layouts/:layout_id/versions(/:id)"
|
|
768
774
|
|
|
769
775
|
# @!attribute archive_storage_id
|
|
770
776
|
# @return [String, nil] sthe storage ID of the archive/layout pack of the
|
|
@@ -808,8 +814,8 @@ module LWS::DigitalSignage
|
|
|
808
814
|
attribute :rotation_angle
|
|
809
815
|
|
|
810
816
|
# @!attribute status [r]
|
|
811
|
-
# @return ["initializing", "creating_pack", "creating_thumbnail",
|
|
812
|
-
# the status of the layout version
|
|
817
|
+
# @return ["initializing", "creating_pack", "creating_thumbnail",
|
|
818
|
+
# "available", "archive", "stage"] the status of the layout version
|
|
813
819
|
attribute :status
|
|
814
820
|
|
|
815
821
|
# @!attribute thumbnail_url
|
|
@@ -1804,6 +1810,10 @@ module LWS::DigitalSignage
|
|
|
1804
1810
|
# @!attribute thumbnail_url
|
|
1805
1811
|
# @return [String, nil] the URL of the thumbnail of the slide
|
|
1806
1812
|
attribute :thumbnail_url
|
|
1813
|
+
|
|
1814
|
+
# @!attribute uuid
|
|
1815
|
+
# @return [String] the UUID of the slide
|
|
1816
|
+
attribute :uuid
|
|
1807
1817
|
end
|
|
1808
1818
|
|
|
1809
1819
|
# = The slide schedule class
|
data/lib/lws/apps/generic.rb
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
#
|
|
2
|
-
# Copyright © 2016–
|
|
2
|
+
# Copyright © 2016–2021 LeftClick Web Services B.V.
|
|
3
3
|
#
|
|
4
|
-
# This software is property of LeftClick B.V. and cannot be
|
|
5
|
-
# and/or modified without permission. The software or any
|
|
6
|
-
# cannot be used for any other purposes than the LeftClick
|
|
7
|
-
# only during a valid license subscription. For more
|
|
8
|
-
# contact LeftClick B.V. at:
|
|
9
|
-
#
|
|
4
|
+
# This software is property of LeftClick Web Services B.V. and cannot be
|
|
5
|
+
# redistributed and/or modified without permission. The software or any
|
|
6
|
+
# of its parts cannot be used for any other purposes than the LeftClick
|
|
7
|
+
# services and only during a valid license subscription. For more
|
|
8
|
+
# information, please contact LeftClick Web Services B.V. at:
|
|
9
|
+
# Schootense Dreef 20A, 5708 HZ Helmond, The Netherlands,
|
|
10
|
+
# info@leftclick.eu, +3185-4444-004.
|
|
10
11
|
|
|
11
12
|
|
|
12
13
|
# = The generic app module
|
|
@@ -16,7 +17,6 @@ module LWS::Generic
|
|
|
16
17
|
|
|
17
18
|
def self.included(app_mod)
|
|
18
19
|
app_mod.module_eval do |mod|
|
|
19
|
-
|
|
20
20
|
# Set up the API using the configured or default endpoint for the current
|
|
21
21
|
# environment.
|
|
22
22
|
endpoints = mod.const_get(:ENDPOINT)
|
data/lib/lws/apps/maps.rb
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
#
|
|
2
|
-
# Copyright © 2016–
|
|
2
|
+
# Copyright © 2016–2021 LeftClick Web Services B.V.
|
|
3
3
|
#
|
|
4
|
-
# This software is property of LeftClick B.V. and cannot be
|
|
5
|
-
# and/or modified without permission. The software or any
|
|
6
|
-
# cannot be used for any other purposes than the LeftClick
|
|
7
|
-
# only during a valid license subscription. For more
|
|
8
|
-
# contact LeftClick B.V. at:
|
|
9
|
-
#
|
|
4
|
+
# This software is property of LeftClick Web Services B.V. and cannot be
|
|
5
|
+
# redistributed and/or modified without permission. The software or any
|
|
6
|
+
# of its parts cannot be used for any other purposes than the LeftClick
|
|
7
|
+
# services and only during a valid license subscription. For more
|
|
8
|
+
# information, please contact LeftClick Web Services B.V. at:
|
|
9
|
+
# Schootense Dreef 20A, 5708 HZ Helmond, The Netherlands,
|
|
10
|
+
# info@leftclick.eu, +3185-4444-004.
|
|
10
11
|
|
|
11
12
|
|
|
12
13
|
# = The maps app module
|
data/lib/lws/apps/presence.rb
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
#
|
|
2
|
-
# Copyright © 2016–
|
|
2
|
+
# Copyright © 2016–2021 LeftClick Web Services B.V.
|
|
3
3
|
#
|
|
4
|
-
# This software is property of LeftClick B.V. and cannot be
|
|
5
|
-
# and/or modified without permission. The software or any
|
|
6
|
-
# cannot be used for any other purposes than the LeftClick
|
|
7
|
-
# only during a valid license subscription. For more
|
|
8
|
-
# contact LeftClick B.V. at:
|
|
9
|
-
#
|
|
4
|
+
# This software is property of LeftClick Web Services B.V. and cannot be
|
|
5
|
+
# redistributed and/or modified without permission. The software or any
|
|
6
|
+
# of its parts cannot be used for any other purposes than the LeftClick
|
|
7
|
+
# services and only during a valid license subscription. For more
|
|
8
|
+
# information, please contact LeftClick Web Services B.V. at:
|
|
9
|
+
# Schootense Dreef 20A, 5708 HZ Helmond, The Netherlands,
|
|
10
|
+
# info@leftclick.eu, +3185-4444-004.
|
|
10
11
|
|
|
11
12
|
|
|
12
13
|
# = The presence app module
|
|
@@ -219,6 +220,11 @@ module LWS::Presence
|
|
|
219
220
|
# @return [String, nil] reference of the location in the remote database
|
|
220
221
|
attribute :import_ref
|
|
221
222
|
|
|
223
|
+
# @!attribute invite_remarks
|
|
224
|
+
# @return [String, nil] the remarks to add when sending invites for
|
|
225
|
+
# appointments involving the location
|
|
226
|
+
attribute :invite_remarks
|
|
227
|
+
|
|
222
228
|
# @!attribute journals
|
|
223
229
|
# @return [Array<Journal>] the journal (entries) associated with the location
|
|
224
230
|
has_many :journals, class: "LWS::Presence::Journal"
|
|
@@ -287,6 +293,11 @@ module LWS::Presence
|
|
|
287
293
|
# @return [Array<Reader>] the (RFID/code/ID/...) readers linked to this location
|
|
288
294
|
has_many :readers
|
|
289
295
|
|
|
296
|
+
# @!attribute reservation_required
|
|
297
|
+
# @return [Boolean] whether a reservation is required for checking in to
|
|
298
|
+
# this location
|
|
299
|
+
attribute :reservation_required
|
|
300
|
+
|
|
290
301
|
# @!attribute status
|
|
291
302
|
# @return ["available", "maintenance_cleaning",
|
|
292
303
|
# "maintenance_technical", "reserved", "unavailable",
|
data/lib/lws/apps/resource.rb
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
#
|
|
2
|
-
# Copyright © 2016–
|
|
2
|
+
# Copyright © 2016–2021 LeftClick Web Services B.V.
|
|
3
3
|
#
|
|
4
|
-
# This software is property of LeftClick B.V. and cannot be
|
|
5
|
-
# and/or modified without permission. The software or any
|
|
6
|
-
# cannot be used for any other purposes than the LeftClick
|
|
7
|
-
# only during a valid license subscription. For more
|
|
8
|
-
# contact LeftClick B.V. at:
|
|
9
|
-
#
|
|
4
|
+
# This software is property of LeftClick Web Services B.V. and cannot be
|
|
5
|
+
# redistributed and/or modified without permission. The software or any
|
|
6
|
+
# of its parts cannot be used for any other purposes than the LeftClick
|
|
7
|
+
# services and only during a valid license subscription. For more
|
|
8
|
+
# information, please contact LeftClick Web Services B.V. at:
|
|
9
|
+
# Schootense Dreef 20A, 5708 HZ Helmond, The Netherlands,
|
|
10
|
+
# info@leftclick.eu, +3185-4444-004.
|
|
10
11
|
|
|
11
12
|
|
|
12
13
|
# = The resource app module
|
|
@@ -405,7 +406,7 @@ module LWS::Resource
|
|
|
405
406
|
# @return [Forecast] the forecasts for the weather location
|
|
406
407
|
has_many :forecasts,
|
|
407
408
|
class_name: "LWS::Resource::Collection::WeatherLocation::Forecast",
|
|
408
|
-
uri: "collections/:collection_id/
|
|
409
|
+
uri: "collections/:collection_id/weather_locations/:weather_location_id/forecasts(/:id)"
|
|
409
410
|
|
|
410
411
|
# @!attribute kind
|
|
411
412
|
# @return ["unknown", "yahoo"] the kind of the weather location
|
data/lib/lws/apps/ticket.rb
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
#
|
|
2
|
-
# Copyright © 2016–
|
|
2
|
+
# Copyright © 2016–2021 LeftClick Web Services B.V.
|
|
3
3
|
#
|
|
4
|
-
# This software is property of LeftClick B.V. and cannot be
|
|
5
|
-
# and/or modified without permission. The software or any
|
|
6
|
-
# cannot be used for any other purposes than the LeftClick
|
|
7
|
-
# only during a valid license subscription. For more
|
|
8
|
-
# contact LeftClick B.V. at:
|
|
9
|
-
#
|
|
4
|
+
# This software is property of LeftClick Web Services B.V. and cannot be
|
|
5
|
+
# redistributed and/or modified without permission. The software or any
|
|
6
|
+
# of its parts cannot be used for any other purposes than the LeftClick
|
|
7
|
+
# services and only during a valid license subscription. For more
|
|
8
|
+
# information, please contact LeftClick Web Services B.V. at:
|
|
9
|
+
# Schootense Dreef 20A, 5708 HZ Helmond, The Netherlands,
|
|
10
|
+
# info@leftclick.eu, +3185-4444-004.
|
|
10
11
|
|
|
11
12
|
|
|
12
13
|
# = The ticket app module
|
data/lib/lws/config.rb
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
#
|
|
2
|
-
# Copyright © 2016–
|
|
2
|
+
# Copyright © 2016–2021 LeftClick Web Services B.V.
|
|
3
3
|
#
|
|
4
|
-
# This software is property of LeftClick B.V. and cannot be
|
|
5
|
-
# and/or modified without permission. The software or any
|
|
6
|
-
# cannot be used for any other purposes than the LeftClick
|
|
7
|
-
# only during a valid license subscription. For more
|
|
8
|
-
# contact LeftClick B.V. at:
|
|
9
|
-
#
|
|
4
|
+
# This software is property of LeftClick Web Services B.V. and cannot be
|
|
5
|
+
# redistributed and/or modified without permission. The software or any
|
|
6
|
+
# of its parts cannot be used for any other purposes than the LeftClick
|
|
7
|
+
# services and only during a valid license subscription. For more
|
|
8
|
+
# information, please contact LeftClick Web Services B.V. at:
|
|
9
|
+
# Schootense Dreef 20A, 5708 HZ Helmond, The Netherlands,
|
|
10
|
+
# info@leftclick.eu, +3185-4444-004.
|
|
10
11
|
|
|
11
12
|
module LWS
|
|
12
13
|
|
|
@@ -66,6 +67,7 @@ module LWS
|
|
|
66
67
|
|
|
67
68
|
#@!attribute http_persistent
|
|
68
69
|
# @return [Boolean] whether persistent HTTP connections are used
|
|
70
|
+
# (default: +true+)
|
|
69
71
|
property :http_persistent, default: true
|
|
70
72
|
|
|
71
73
|
#@!attribute json_debug
|
data/lib/lws/errors.rb
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
#
|
|
2
|
-
# Copyright © 2016–
|
|
2
|
+
# Copyright © 2016–2021 LeftClick Web Services B.V.
|
|
3
3
|
#
|
|
4
|
-
# This software is property of LeftClick B.V. and cannot be
|
|
5
|
-
# and/or modified without permission. The software or any
|
|
6
|
-
# cannot be used for any other purposes than the LeftClick
|
|
7
|
-
# only during a valid license subscription. For more
|
|
8
|
-
# contact LeftClick B.V. at:
|
|
9
|
-
#
|
|
4
|
+
# This software is property of LeftClick Web Services B.V. and cannot be
|
|
5
|
+
# redistributed and/or modified without permission. The software or any
|
|
6
|
+
# of its parts cannot be used for any other purposes than the LeftClick
|
|
7
|
+
# services and only during a valid license subscription. For more
|
|
8
|
+
# information, please contact LeftClick Web Services B.V. at:
|
|
9
|
+
# Schootense Dreef 20A, 5708 HZ Helmond, The Netherlands,
|
|
10
|
+
# info@leftclick.eu, +3185-4444-004.
|
|
10
11
|
|
|
11
12
|
|
|
12
13
|
module LWS
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
#
|
|
2
|
-
# Copyright © 2016–
|
|
2
|
+
# Copyright © 2016–2021 LeftClick Web Services B.V.
|
|
3
3
|
#
|
|
4
|
-
# This software is property of LeftClick B.V. and cannot be
|
|
5
|
-
# and/or modified without permission. The software or any
|
|
6
|
-
# cannot be used for any other purposes than the LeftClick
|
|
7
|
-
# only during a valid license subscription. For more
|
|
8
|
-
# contact LeftClick B.V. at:
|
|
9
|
-
#
|
|
4
|
+
# This software is property of LeftClick Web Services B.V. and cannot be
|
|
5
|
+
# redistributed and/or modified without permission. The software or any
|
|
6
|
+
# of its parts cannot be used for any other purposes than the LeftClick
|
|
7
|
+
# services and only during a valid license subscription. For more
|
|
8
|
+
# information, please contact LeftClick Web Services B.V. at:
|
|
9
|
+
# Schootense Dreef 20A, 5708 HZ Helmond, The Netherlands,
|
|
10
|
+
# info@leftclick.eu, +3185-4444-004.
|
|
10
11
|
|
|
11
12
|
|
|
12
13
|
module LWS
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
#
|
|
2
|
-
# Copyright © 2016–
|
|
2
|
+
# Copyright © 2016–2021 LeftClick Web Services B.V.
|
|
3
3
|
#
|
|
4
|
-
# This software is property of LeftClick B.V. and cannot be
|
|
5
|
-
# and/or modified without permission. The software or any
|
|
6
|
-
# cannot be used for any other purposes than the LeftClick
|
|
7
|
-
# only during a valid license subscription. For more
|
|
8
|
-
# contact LeftClick B.V. at:
|
|
9
|
-
#
|
|
4
|
+
# This software is property of LeftClick Web Services B.V. and cannot be
|
|
5
|
+
# redistributed and/or modified without permission. The software or any
|
|
6
|
+
# of its parts cannot be used for any other purposes than the LeftClick
|
|
7
|
+
# services and only during a valid license subscription. For more
|
|
8
|
+
# information, please contact LeftClick Web Services B.V. at:
|
|
9
|
+
# Schootense Dreef 20A, 5708 HZ Helmond, The Netherlands,
|
|
10
|
+
# info@leftclick.eu, +3185-4444-004.
|
|
10
11
|
|
|
11
12
|
|
|
12
13
|
module LWS
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
#
|
|
2
|
-
# Copyright © 2016–
|
|
2
|
+
# Copyright © 2016–2021 LeftClick Web Services B.V.
|
|
3
3
|
#
|
|
4
|
-
# This software is property of LeftClick B.V. and cannot be
|
|
5
|
-
# and/or modified without permission. The software or any
|
|
6
|
-
# cannot be used for any other purposes than the LeftClick
|
|
7
|
-
# only during a valid license subscription. For more
|
|
8
|
-
# contact LeftClick B.V. at:
|
|
9
|
-
#
|
|
4
|
+
# This software is property of LeftClick Web Services B.V. and cannot be
|
|
5
|
+
# redistributed and/or modified without permission. The software or any
|
|
6
|
+
# of its parts cannot be used for any other purposes than the LeftClick
|
|
7
|
+
# services and only during a valid license subscription. For more
|
|
8
|
+
# information, please contact LeftClick Web Services B.V. at:
|
|
9
|
+
# Schootense Dreef 20A, 5708 HZ Helmond, The Netherlands,
|
|
10
|
+
# info@leftclick.eu, +3185-4444-004.
|
|
10
11
|
|
|
11
12
|
|
|
12
13
|
module LWS
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
#
|
|
2
|
-
# Copyright © 2016–
|
|
2
|
+
# Copyright © 2016–2021 LeftClick Web Services B.V.
|
|
3
3
|
#
|
|
4
|
-
# This software is property of LeftClick B.V. and cannot be
|
|
5
|
-
# and/or modified without permission. The software or any
|
|
6
|
-
# cannot be used for any other purposes than the LeftClick
|
|
7
|
-
# only during a valid license subscription. For more
|
|
8
|
-
# contact LeftClick B.V. at:
|
|
9
|
-
#
|
|
4
|
+
# This software is property of LeftClick Web Services B.V. and cannot be
|
|
5
|
+
# redistributed and/or modified without permission. The software or any
|
|
6
|
+
# of its parts cannot be used for any other purposes than the LeftClick
|
|
7
|
+
# services and only during a valid license subscription. For more
|
|
8
|
+
# information, please contact LeftClick Web Services B.V. at:
|
|
9
|
+
# Schootense Dreef 20A, 5708 HZ Helmond, The Netherlands,
|
|
10
|
+
# info@leftclick.eu, +3185-4444-004.
|
|
10
11
|
|
|
11
12
|
|
|
12
13
|
module LWS
|
data/lib/lws/middleware.rb
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
#
|
|
2
|
-
# Copyright © 2016–
|
|
2
|
+
# Copyright © 2016–2021 LeftClick Web Services B.V.
|
|
3
3
|
#
|
|
4
|
-
# This software is property of LeftClick B.V. and cannot be
|
|
5
|
-
# and/or modified without permission. The software or any
|
|
6
|
-
# cannot be used for any other purposes than the LeftClick
|
|
7
|
-
# only during a valid license subscription. For more
|
|
8
|
-
# contact LeftClick B.V. at:
|
|
9
|
-
#
|
|
4
|
+
# This software is property of LeftClick Web Services B.V. and cannot be
|
|
5
|
+
# redistributed and/or modified without permission. The software or any
|
|
6
|
+
# of its parts cannot be used for any other purposes than the LeftClick
|
|
7
|
+
# services and only during a valid license subscription. For more
|
|
8
|
+
# information, please contact LeftClick Web Services B.V. at:
|
|
9
|
+
# Schootense Dreef 20A, 5708 HZ Helmond, The Netherlands,
|
|
10
|
+
# info@leftclick.eu, +3185-4444-004.
|
|
10
11
|
|
|
11
12
|
|
|
12
13
|
module LWS
|
data/lib/lws/stubbing.rb
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
#
|
|
2
|
-
# Copyright © 2016–
|
|
2
|
+
# Copyright © 2016–2021 LeftClick Web Services B.V.
|
|
3
3
|
#
|
|
4
|
-
# This software is property of LeftClick B.V. and cannot be
|
|
5
|
-
# and/or modified without permission. The software or any
|
|
6
|
-
# cannot be used for any other purposes than the LeftClick
|
|
7
|
-
# only during a valid license subscription. For more
|
|
8
|
-
# contact LeftClick B.V. at:
|
|
9
|
-
#
|
|
4
|
+
# This software is property of LeftClick Web Services B.V. and cannot be
|
|
5
|
+
# redistributed and/or modified without permission. The software or any
|
|
6
|
+
# of its parts cannot be used for any other purposes than the LeftClick
|
|
7
|
+
# services and only during a valid license subscription. For more
|
|
8
|
+
# information, please contact LeftClick Web Services B.V. at:
|
|
9
|
+
# Schootense Dreef 20A, 5708 HZ Helmond, The Netherlands,
|
|
10
|
+
# info@leftclick.eu, +3185-4444-004.
|
|
10
11
|
|
|
11
12
|
|
|
12
13
|
module LWS
|
data/lib/lws/version.rb
CHANGED
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
#
|
|
2
|
-
# Copyright © 2016–
|
|
2
|
+
# Copyright © 2016–2021 LeftClick Web Services B.V.
|
|
3
3
|
#
|
|
4
|
-
# This software is property of LeftClick B.V. and cannot be
|
|
5
|
-
# and/or modified without permission. The software or any
|
|
6
|
-
# cannot be used for any other purposes than the LeftClick
|
|
7
|
-
# only during a valid license subscription. For more
|
|
8
|
-
# contact LeftClick B.V. at:
|
|
9
|
-
#
|
|
4
|
+
# This software is property of LeftClick Web Services B.V. and cannot be
|
|
5
|
+
# redistributed and/or modified without permission. The software or any
|
|
6
|
+
# of its parts cannot be used for any other purposes than the LeftClick
|
|
7
|
+
# services and only during a valid license subscription. For more
|
|
8
|
+
# information, please contact LeftClick Web Services B.V. at:
|
|
9
|
+
# Schootense Dreef 20A, 5708 HZ Helmond, The Netherlands,
|
|
10
|
+
# info@leftclick.eu, +3185-4444-004.
|
|
10
11
|
|
|
11
12
|
|
|
12
13
|
module LWS
|
|
13
14
|
|
|
14
15
|
# The LWS library version.
|
|
15
16
|
# @note The major and minor version parts match the LWS API version!
|
|
16
|
-
VERSION = "7.
|
|
17
|
+
VERSION = "7.4.0".freeze
|
|
17
18
|
|
|
18
19
|
end
|
data/lib/lws.rb
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
#
|
|
2
|
-
# Copyright © 2016–
|
|
2
|
+
# Copyright © 2016–2021 LeftClick Web Services B.V.
|
|
3
3
|
#
|
|
4
|
-
# This software is property of LeftClick B.V. and cannot be
|
|
5
|
-
# and/or modified without permission. The software or any
|
|
6
|
-
# cannot be used for any other purposes than the LeftClick
|
|
7
|
-
# only during a valid license subscription. For more
|
|
8
|
-
# contact LeftClick B.V. at:
|
|
9
|
-
#
|
|
4
|
+
# This software is property of LeftClick Web Services B.V. and cannot be
|
|
5
|
+
# redistributed and/or modified without permission. The software or any
|
|
6
|
+
# of its parts cannot be used for any other purposes than the LeftClick
|
|
7
|
+
# services and only during a valid license subscription. For more
|
|
8
|
+
# information, please contact LeftClick Web Services B.V. at:
|
|
9
|
+
# Schootense Dreef 20A, 5708 HZ Helmond, The Netherlands,
|
|
10
|
+
# info@leftclick.eu, +3185-4444-004.
|
|
10
11
|
|
|
11
12
|
require "faraday_middleware"
|
|
12
13
|
require "faraday/http_cache"
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
#
|
|
2
|
-
# Copyright © 2016–
|
|
2
|
+
# Copyright © 2016–2021 LeftClick Web Services B.V.
|
|
3
3
|
#
|
|
4
|
-
# This software is property of LeftClick B.V. and cannot be
|
|
5
|
-
# and/or modified without permission. The software or any
|
|
6
|
-
# cannot be used for any other purposes than the LeftClick
|
|
7
|
-
# only during a valid license subscription. For more
|
|
8
|
-
# contact LeftClick B.V. at:
|
|
9
|
-
#
|
|
4
|
+
# This software is property of LeftClick Web Services B.V. and cannot be
|
|
5
|
+
# redistributed and/or modified without permission. The software or any
|
|
6
|
+
# of its parts cannot be used for any other purposes than the LeftClick
|
|
7
|
+
# services and only during a valid license subscription. For more
|
|
8
|
+
# information, please contact LeftClick Web Services B.V. at:
|
|
9
|
+
# Schootense Dreef 20A, 5708 HZ Helmond, The Netherlands,
|
|
10
|
+
# info@leftclick.eu, +3185-4444-004.
|
|
10
11
|
|
|
11
12
|
|
|
12
13
|
require "test_helper"
|
data/test/auth_test.rb
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
#
|
|
2
|
-
# Copyright © 2016–
|
|
2
|
+
# Copyright © 2016–2021 LeftClick Web Services B.V.
|
|
3
3
|
#
|
|
4
|
-
# This software is property of LeftClick B.V. and cannot be
|
|
5
|
-
# and/or modified without permission. The software or any
|
|
6
|
-
# cannot be used for any other purposes than the LeftClick
|
|
7
|
-
# only during a valid license subscription. For more
|
|
8
|
-
# contact LeftClick B.V. at:
|
|
9
|
-
#
|
|
4
|
+
# This software is property of LeftClick Web Services B.V. and cannot be
|
|
5
|
+
# redistributed and/or modified without permission. The software or any
|
|
6
|
+
# of its parts cannot be used for any other purposes than the LeftClick
|
|
7
|
+
# services and only during a valid license subscription. For more
|
|
8
|
+
# information, please contact LeftClick Web Services B.V. at:
|
|
9
|
+
# Schootense Dreef 20A, 5708 HZ Helmond, The Netherlands,
|
|
10
|
+
# info@leftclick.eu, +3185-4444-004.
|
|
10
11
|
|
|
11
12
|
|
|
12
13
|
require "test_helper"
|
data/test/caching_test.rb
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
#
|
|
2
|
-
# Copyright © 2016–
|
|
2
|
+
# Copyright © 2016–2021 LeftClick Web Services B.V.
|
|
3
3
|
#
|
|
4
|
-
# This software is property of LeftClick B.V. and cannot be
|
|
5
|
-
# and/or modified without permission. The software or any
|
|
6
|
-
# cannot be used for any other purposes than the LeftClick
|
|
7
|
-
# only during a valid license subscription. For more
|
|
8
|
-
# contact LeftClick B.V. at:
|
|
9
|
-
#
|
|
4
|
+
# This software is property of LeftClick Web Services B.V. and cannot be
|
|
5
|
+
# redistributed and/or modified without permission. The software or any
|
|
6
|
+
# of its parts cannot be used for any other purposes than the LeftClick
|
|
7
|
+
# services and only during a valid license subscription. For more
|
|
8
|
+
# information, please contact LeftClick Web Services B.V. at:
|
|
9
|
+
# Schootense Dreef 20A, 5708 HZ Helmond, The Netherlands,
|
|
10
|
+
# info@leftclick.eu, +3185-4444-004.
|
|
10
11
|
|
|
11
12
|
|
|
12
13
|
require "test_helper"
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
#
|
|
2
|
-
# Copyright © 2016–
|
|
2
|
+
# Copyright © 2016–2021 LeftClick Web Services B.V.
|
|
3
3
|
#
|
|
4
|
-
# This software is property of LeftClick B.V. and cannot be
|
|
5
|
-
# and/or modified without permission. The software or any
|
|
6
|
-
# cannot be used for any other purposes than the LeftClick
|
|
7
|
-
# only during a valid license subscription. For more
|
|
8
|
-
# contact LeftClick B.V. at:
|
|
9
|
-
#
|
|
4
|
+
# This software is property of LeftClick Web Services B.V. and cannot be
|
|
5
|
+
# redistributed and/or modified without permission. The software or any
|
|
6
|
+
# of its parts cannot be used for any other purposes than the LeftClick
|
|
7
|
+
# services and only during a valid license subscription. For more
|
|
8
|
+
# information, please contact LeftClick Web Services B.V. at:
|
|
9
|
+
# Schootense Dreef 20A, 5708 HZ Helmond, The Netherlands,
|
|
10
|
+
# info@leftclick.eu, +3185-4444-004.
|
|
10
11
|
|
|
11
12
|
|
|
12
13
|
require "test_helper"
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
#
|
|
2
|
-
# Copyright © 2016–
|
|
2
|
+
# Copyright © 2016–2021 LeftClick Web Services B.V.
|
|
3
3
|
#
|
|
4
|
-
# This software is property of LeftClick B.V. and cannot be
|
|
5
|
-
# and/or modified without permission. The software or any
|
|
6
|
-
# cannot be used for any other purposes than the LeftClick
|
|
7
|
-
# only during a valid license subscription. For more
|
|
8
|
-
# contact LeftClick B.V. at:
|
|
9
|
-
#
|
|
4
|
+
# This software is property of LeftClick Web Services B.V. and cannot be
|
|
5
|
+
# redistributed and/or modified without permission. The software or any
|
|
6
|
+
# of its parts cannot be used for any other purposes than the LeftClick
|
|
7
|
+
# services and only during a valid license subscription. For more
|
|
8
|
+
# information, please contact LeftClick Web Services B.V. at:
|
|
9
|
+
# Schootense Dreef 20A, 5708 HZ Helmond, The Netherlands,
|
|
10
|
+
# info@leftclick.eu, +3185-4444-004.
|
|
10
11
|
|
|
11
12
|
|
|
12
13
|
require "test_helper"
|
|
@@ -116,7 +117,7 @@ class TestDigitalSignageChannelTimeSchedule < MiniTest::Test
|
|
|
116
117
|
include LWS::DigitalSignage
|
|
117
118
|
|
|
118
119
|
def setup
|
|
119
|
-
@channel_time_schedule = Channel::TimeSchedule.
|
|
120
|
+
@channel_time_schedule = Channel::TimeSchedule.find(1)
|
|
120
121
|
end
|
|
121
122
|
|
|
122
123
|
def test_valid
|
|
@@ -137,7 +138,7 @@ class TestDigitalSignageChannelTimeScheduleDay < MiniTest::Test
|
|
|
137
138
|
include LWS::DigitalSignage
|
|
138
139
|
|
|
139
140
|
def setup
|
|
140
|
-
@channel_time_schedule = Channel::TimeSchedule.
|
|
141
|
+
@channel_time_schedule = Channel::TimeSchedule.find(1)
|
|
141
142
|
# Time schedule days only exist as child objects of a time schedule
|
|
142
143
|
@channel_time_schedule_day = @channel_time_schedule.days.first
|
|
143
144
|
end
|
data/test/generic_test.rb
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
#
|
|
2
|
-
# Copyright © 2016–
|
|
2
|
+
# Copyright © 2016–2021 LeftClick Web Services B.V.
|
|
3
3
|
#
|
|
4
|
-
# This software is property of LeftClick B.V. and cannot be
|
|
5
|
-
# and/or modified without permission. The software or any
|
|
6
|
-
# cannot be used for any other purposes than the LeftClick
|
|
7
|
-
# only during a valid license subscription. For more
|
|
8
|
-
# contact LeftClick B.V. at:
|
|
9
|
-
#
|
|
4
|
+
# This software is property of LeftClick Web Services B.V. and cannot be
|
|
5
|
+
# redistributed and/or modified without permission. The software or any
|
|
6
|
+
# of its parts cannot be used for any other purposes than the LeftClick
|
|
7
|
+
# services and only during a valid license subscription. For more
|
|
8
|
+
# information, please contact LeftClick Web Services B.V. at:
|
|
9
|
+
# Schootense Dreef 20A, 5708 HZ Helmond, The Netherlands,
|
|
10
|
+
# info@leftclick.eu, +3185-4444-004.
|
|
10
11
|
|
|
11
12
|
|
|
12
13
|
require "test_helper"
|
data/test/http_caching_test.rb
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
#
|
|
2
|
-
# Copyright © 2016–
|
|
2
|
+
# Copyright © 2016–2021 LeftClick Web Services B.V.
|
|
3
3
|
#
|
|
4
|
-
# This software is property of LeftClick B.V. and cannot be
|
|
5
|
-
# and/or modified without permission. The software or any
|
|
6
|
-
# cannot be used for any other purposes than the LeftClick
|
|
7
|
-
# only during a valid license subscription. For more
|
|
8
|
-
# contact LeftClick B.V. at:
|
|
9
|
-
#
|
|
4
|
+
# This software is property of LeftClick Web Services B.V. and cannot be
|
|
5
|
+
# redistributed and/or modified without permission. The software or any
|
|
6
|
+
# of its parts cannot be used for any other purposes than the LeftClick
|
|
7
|
+
# services and only during a valid license subscription. For more
|
|
8
|
+
# information, please contact LeftClick Web Services B.V. at:
|
|
9
|
+
# Schootense Dreef 20A, 5708 HZ Helmond, The Netherlands,
|
|
10
|
+
# info@leftclick.eu, +3185-4444-004.
|
|
10
11
|
|
|
11
12
|
|
|
12
13
|
require "test_helper"
|
data/test/json_parser_test.rb
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
#
|
|
2
|
-
# Copyright © 2016–
|
|
2
|
+
# Copyright © 2016–2021 LeftClick Web Services B.V.
|
|
3
3
|
#
|
|
4
|
-
# This software is property of LeftClick B.V. and cannot be
|
|
5
|
-
# and/or modified without permission. The software or any
|
|
6
|
-
# cannot be used for any other purposes than the LeftClick
|
|
7
|
-
# only during a valid license subscription. For more
|
|
8
|
-
# contact LeftClick B.V. at:
|
|
9
|
-
#
|
|
4
|
+
# This software is property of LeftClick Web Services B.V. and cannot be
|
|
5
|
+
# redistributed and/or modified without permission. The software or any
|
|
6
|
+
# of its parts cannot be used for any other purposes than the LeftClick
|
|
7
|
+
# services and only during a valid license subscription. For more
|
|
8
|
+
# information, please contact LeftClick Web Services B.V. at:
|
|
9
|
+
# Schootense Dreef 20A, 5708 HZ Helmond, The Netherlands,
|
|
10
|
+
# info@leftclick.eu, +3185-4444-004.
|
|
10
11
|
|
|
11
12
|
|
|
12
13
|
require "test_helper"
|
data/test/logger_test.rb
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
#
|
|
2
|
-
# Copyright © 2016–
|
|
2
|
+
# Copyright © 2016–2021 LeftClick Web Services B.V.
|
|
3
3
|
#
|
|
4
|
-
# This software is property of LeftClick B.V. and cannot be
|
|
5
|
-
# and/or modified without permission. The software or any
|
|
6
|
-
# cannot be used for any other purposes than the LeftClick
|
|
7
|
-
# only during a valid license subscription. For more
|
|
8
|
-
# contact LeftClick B.V. at:
|
|
9
|
-
#
|
|
4
|
+
# This software is property of LeftClick Web Services B.V. and cannot be
|
|
5
|
+
# redistributed and/or modified without permission. The software or any
|
|
6
|
+
# of its parts cannot be used for any other purposes than the LeftClick
|
|
7
|
+
# services and only during a valid license subscription. For more
|
|
8
|
+
# information, please contact LeftClick Web Services B.V. at:
|
|
9
|
+
# Schootense Dreef 20A, 5708 HZ Helmond, The Netherlands,
|
|
10
|
+
# info@leftclick.eu, +3185-4444-004.
|
|
10
11
|
|
|
11
12
|
|
|
12
13
|
require "test_helper"
|
data/test/maps_test.rb
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
#
|
|
2
|
-
# Copyright © 2016–
|
|
2
|
+
# Copyright © 2016–2021 LeftClick Web Services B.V.
|
|
3
3
|
#
|
|
4
|
-
# This software is property of LeftClick B.V. and cannot be
|
|
5
|
-
# and/or modified without permission. The software or any
|
|
6
|
-
# cannot be used for any other purposes than the LeftClick
|
|
7
|
-
# only during a valid license subscription. For more
|
|
8
|
-
# contact LeftClick B.V. at:
|
|
9
|
-
#
|
|
4
|
+
# This software is property of LeftClick Web Services B.V. and cannot be
|
|
5
|
+
# redistributed and/or modified without permission. The software or any
|
|
6
|
+
# of its parts cannot be used for any other purposes than the LeftClick
|
|
7
|
+
# services and only during a valid license subscription. For more
|
|
8
|
+
# information, please contact LeftClick Web Services B.V. at:
|
|
9
|
+
# Schootense Dreef 20A, 5708 HZ Helmond, The Netherlands,
|
|
10
|
+
# info@leftclick.eu, +3185-4444-004.
|
|
10
11
|
|
|
11
12
|
|
|
12
13
|
require "test_helper"
|
data/test/presence_test.rb
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
#
|
|
2
|
-
# Copyright © 2016–
|
|
2
|
+
# Copyright © 2016–2021 LeftClick Web Services B.V.
|
|
3
3
|
#
|
|
4
|
-
# This software is property of LeftClick B.V. and cannot be
|
|
5
|
-
# and/or modified without permission. The software or any
|
|
6
|
-
# cannot be used for any other purposes than the LeftClick
|
|
7
|
-
# only during a valid license subscription. For more
|
|
8
|
-
# contact LeftClick B.V. at:
|
|
9
|
-
#
|
|
4
|
+
# This software is property of LeftClick Web Services B.V. and cannot be
|
|
5
|
+
# redistributed and/or modified without permission. The software or any
|
|
6
|
+
# of its parts cannot be used for any other purposes than the LeftClick
|
|
7
|
+
# services and only during a valid license subscription. For more
|
|
8
|
+
# information, please contact LeftClick Web Services B.V. at:
|
|
9
|
+
# Schootense Dreef 20A, 5708 HZ Helmond, The Netherlands,
|
|
10
|
+
# info@leftclick.eu, +3185-4444-004.
|
|
10
11
|
|
|
11
12
|
|
|
12
13
|
require "test_helper"
|
data/test/resource_test.rb
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
#
|
|
2
|
-
# Copyright © 2016–
|
|
2
|
+
# Copyright © 2016–2021 LeftClick Web Services B.V.
|
|
3
3
|
#
|
|
4
|
-
# This software is property of LeftClick B.V. and cannot be
|
|
5
|
-
# and/or modified without permission. The software or any
|
|
6
|
-
# cannot be used for any other purposes than the LeftClick
|
|
7
|
-
# only during a valid license subscription. For more
|
|
8
|
-
# contact LeftClick B.V. at:
|
|
9
|
-
#
|
|
4
|
+
# This software is property of LeftClick Web Services B.V. and cannot be
|
|
5
|
+
# redistributed and/or modified without permission. The software or any
|
|
6
|
+
# of its parts cannot be used for any other purposes than the LeftClick
|
|
7
|
+
# services and only during a valid license subscription. For more
|
|
8
|
+
# information, please contact LeftClick Web Services B.V. at:
|
|
9
|
+
# Schootense Dreef 20A, 5708 HZ Helmond, The Netherlands,
|
|
10
|
+
# info@leftclick.eu, +3185-4444-004.
|
|
10
11
|
|
|
11
12
|
|
|
12
13
|
require "test_helper"
|
data/test/setup_test.rb
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
#
|
|
2
|
-
# Copyright © 2016–
|
|
2
|
+
# Copyright © 2016–2021 LeftClick Web Services B.V.
|
|
3
3
|
#
|
|
4
|
-
# This software is property of LeftClick B.V. and cannot be
|
|
5
|
-
# and/or modified without permission. The software or any
|
|
6
|
-
# cannot be used for any other purposes than the LeftClick
|
|
7
|
-
# only during a valid license subscription. For more
|
|
8
|
-
# contact LeftClick B.V. at:
|
|
9
|
-
#
|
|
4
|
+
# This software is property of LeftClick Web Services B.V. and cannot be
|
|
5
|
+
# redistributed and/or modified without permission. The software or any
|
|
6
|
+
# of its parts cannot be used for any other purposes than the LeftClick
|
|
7
|
+
# services and only during a valid license subscription. For more
|
|
8
|
+
# information, please contact LeftClick Web Services B.V. at:
|
|
9
|
+
# Schootense Dreef 20A, 5708 HZ Helmond, The Netherlands,
|
|
10
|
+
# info@leftclick.eu, +3185-4444-004.
|
|
10
11
|
|
|
11
12
|
require "test_helper"
|
|
12
13
|
|
|
@@ -23,7 +24,7 @@ class TestSetup < MiniTest::Test
|
|
|
23
24
|
|
|
24
25
|
def test_cannot_leave_out_api_token
|
|
25
26
|
assert_raises do
|
|
26
|
-
LWS.setup {
|
|
27
|
+
LWS.setup {}
|
|
27
28
|
end
|
|
28
29
|
end
|
|
29
30
|
|
data/test/stubbing_test.rb
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
#
|
|
2
|
-
# Copyright © 2016–
|
|
2
|
+
# Copyright © 2016–2021 LeftClick Web Services B.V.
|
|
3
3
|
#
|
|
4
|
-
# This software is property of LeftClick B.V. and cannot be
|
|
5
|
-
# and/or modified without permission. The software or any
|
|
6
|
-
# cannot be used for any other purposes than the LeftClick
|
|
7
|
-
# only during a valid license subscription. For more
|
|
8
|
-
# contact LeftClick B.V. at:
|
|
9
|
-
#
|
|
4
|
+
# This software is property of LeftClick Web Services B.V. and cannot be
|
|
5
|
+
# redistributed and/or modified without permission. The software or any
|
|
6
|
+
# of its parts cannot be used for any other purposes than the LeftClick
|
|
7
|
+
# services and only during a valid license subscription. For more
|
|
8
|
+
# information, please contact LeftClick Web Services B.V. at:
|
|
9
|
+
# Schootense Dreef 20A, 5708 HZ Helmond, The Netherlands,
|
|
10
|
+
# info@leftclick.eu, +3185-4444-004.
|
|
10
11
|
|
|
11
12
|
|
|
12
13
|
require "test_helper"
|
data/test/support/with_env.rb
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
#
|
|
2
|
-
# Copyright © 2016–
|
|
2
|
+
# Copyright © 2016–2021 LeftClick Web Services B.V.
|
|
3
3
|
#
|
|
4
|
-
# This software is property of LeftClick B.V. and cannot be
|
|
5
|
-
# and/or modified without permission. The software or any
|
|
6
|
-
# cannot be used for any other purposes than the LeftClick
|
|
7
|
-
# only during a valid license subscription. For more
|
|
8
|
-
# contact LeftClick B.V. at:
|
|
9
|
-
#
|
|
4
|
+
# This software is property of LeftClick Web Services B.V. and cannot be
|
|
5
|
+
# redistributed and/or modified without permission. The software or any
|
|
6
|
+
# of its parts cannot be used for any other purposes than the LeftClick
|
|
7
|
+
# services and only during a valid license subscription. For more
|
|
8
|
+
# information, please contact LeftClick Web Services B.V. at:
|
|
9
|
+
# Schootense Dreef 20A, 5708 HZ Helmond, The Netherlands,
|
|
10
|
+
# info@leftclick.eu, +3185-4444-004.
|
|
10
11
|
|
|
11
12
|
|
|
12
13
|
class Minitest::Test
|
data/test/test_helper.rb
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
#
|
|
2
|
-
# Copyright © 2016–
|
|
2
|
+
# Copyright © 2016–2021 LeftClick Web Services B.V.
|
|
3
3
|
#
|
|
4
|
-
# This software is property of LeftClick B.V. and cannot be
|
|
5
|
-
# and/or modified without permission. The software or any
|
|
6
|
-
# cannot be used for any other purposes than the LeftClick
|
|
7
|
-
# only during a valid license subscription. For more
|
|
8
|
-
# contact LeftClick B.V. at:
|
|
9
|
-
#
|
|
4
|
+
# This software is property of LeftClick Web Services B.V. and cannot be
|
|
5
|
+
# redistributed and/or modified without permission. The software or any
|
|
6
|
+
# of its parts cannot be used for any other purposes than the LeftClick
|
|
7
|
+
# services and only during a valid license subscription. For more
|
|
8
|
+
# information, please contact LeftClick Web Services B.V. at:
|
|
9
|
+
# Schootense Dreef 20A, 5708 HZ Helmond, The Netherlands,
|
|
10
|
+
# info@leftclick.eu, +3185-4444-004.
|
|
10
11
|
|
|
11
12
|
|
|
12
13
|
require 'simplecov'
|
data/test/ticket_test.rb
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
#
|
|
2
|
-
# Copyright © 2016–
|
|
2
|
+
# Copyright © 2016–2021 LeftClick Web Services B.V.
|
|
3
3
|
#
|
|
4
|
-
# This software is property of LeftClick B.V. and cannot be
|
|
5
|
-
# and/or modified without permission. The software or any
|
|
6
|
-
# cannot be used for any other purposes than the LeftClick
|
|
7
|
-
# only during a valid license subscription. For more
|
|
8
|
-
# contact LeftClick B.V. at:
|
|
9
|
-
#
|
|
4
|
+
# This software is property of LeftClick Web Services B.V. and cannot be
|
|
5
|
+
# redistributed and/or modified without permission. The software or any
|
|
6
|
+
# of its parts cannot be used for any other purposes than the LeftClick
|
|
7
|
+
# services and only during a valid license subscription. For more
|
|
8
|
+
# information, please contact LeftClick Web Services B.V. at:
|
|
9
|
+
# Schootense Dreef 20A, 5708 HZ Helmond, The Netherlands,
|
|
10
|
+
# info@leftclick.eu, +3185-4444-004.
|
|
10
11
|
|
|
11
12
|
|
|
12
13
|
require "test_helper"
|
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.
|
|
4
|
+
version: 7.4.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: 2021-
|
|
11
|
+
date: 2021-10-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday-http-cache
|
|
@@ -76,16 +76,22 @@ dependencies:
|
|
|
76
76
|
name: net-http-persistent
|
|
77
77
|
requirement: !ruby/object:Gem::Requirement
|
|
78
78
|
requirements:
|
|
79
|
-
- - "
|
|
79
|
+
- - ">="
|
|
80
80
|
- !ruby/object:Gem::Version
|
|
81
81
|
version: '2.9'
|
|
82
|
+
- - "<"
|
|
83
|
+
- !ruby/object:Gem::Version
|
|
84
|
+
version: '4.0'
|
|
82
85
|
type: :runtime
|
|
83
86
|
prerelease: false
|
|
84
87
|
version_requirements: !ruby/object:Gem::Requirement
|
|
85
88
|
requirements:
|
|
86
|
-
- - "
|
|
89
|
+
- - ">="
|
|
87
90
|
- !ruby/object:Gem::Version
|
|
88
91
|
version: '2.9'
|
|
92
|
+
- - "<"
|
|
93
|
+
- !ruby/object:Gem::Version
|
|
94
|
+
version: '4.0'
|
|
89
95
|
- !ruby/object:Gem::Dependency
|
|
90
96
|
name: pry
|
|
91
97
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -310,28 +316,28 @@ signing_key:
|
|
|
310
316
|
specification_version: 4
|
|
311
317
|
summary: LeftClick web services library for Ruby
|
|
312
318
|
test_files:
|
|
319
|
+
- test/presence_test.rb
|
|
313
320
|
- test/http_caching_test.rb
|
|
314
321
|
- test/generic_test.rb
|
|
315
|
-
- test/caching_test.rb
|
|
316
|
-
- test/api_token_middleware_test.rb
|
|
317
322
|
- test/corporate_website_test.rb
|
|
318
|
-
- test/ticket_test.rb
|
|
319
323
|
- test/stubbing_test.rb
|
|
320
|
-
- test/
|
|
321
|
-
- test/
|
|
324
|
+
- test/support/with_env.rb
|
|
325
|
+
- test/caching_test.rb
|
|
326
|
+
- test/maps_test.rb
|
|
327
|
+
- test/ticket_test.rb
|
|
328
|
+
- test/api_token_middleware_test.rb
|
|
329
|
+
- test/digital_signage_test.rb
|
|
330
|
+
- test/json_parser_test.rb
|
|
331
|
+
- test/logger_test.rb
|
|
332
|
+
- test/config/switch_env.yml
|
|
322
333
|
- test/config/full.yml
|
|
323
334
|
- test/config/empty.yml
|
|
324
|
-
- test/config/endpoints.yml
|
|
325
|
-
- test/config/switch_env.yml
|
|
326
335
|
- test/config/tokens.yml
|
|
327
|
-
- test/
|
|
328
|
-
- test/
|
|
329
|
-
- test/digital_signage_test.rb
|
|
330
|
-
- test/test_helper.rb
|
|
331
|
-
- test/maps_test.rb
|
|
332
|
-
- test/support/with_env.rb
|
|
333
|
-
- test/resource_test.rb
|
|
336
|
+
- test/config/invalid.yml
|
|
337
|
+
- test/config/endpoints.yml
|
|
334
338
|
- test/auth_test.rb
|
|
335
|
-
- test/
|
|
336
|
-
- test/fixtures/permissions.yml
|
|
339
|
+
- test/test_helper.rb
|
|
337
340
|
- test/fixtures/auth.yml
|
|
341
|
+
- test/fixtures/permissions.yml
|
|
342
|
+
- test/resource_test.rb
|
|
343
|
+
- test/setup_test.rb
|