lws 6.1.4 → 6.1.5
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/.gitignore +1 -0
- data/CHANGELOG.md +4 -0
- data/README.md +1 -1
- data/lib/lws/apps/auth.rb +8 -8
- data/lib/lws/apps/digital_signage.rb +56 -56
- data/lib/lws/version.rb +1 -1
- data/lws.gemspec +1 -1
- data/test/digital_signage_test.rb +12 -11
- metadata +12 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d45421831d64df9756a955718bf707e05bc298bf
|
4
|
+
data.tar.gz: f46ce5c66988164fcdbaddbfb227c2227a9fb51b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 381682bb1c724f503dc7abd74ae2ff2ee830ac97dea0b556af33599bbec858ec1962ea801f67502fa1a7ad17a002480eec40da44bfbac65688e5f15af488796e
|
7
|
+
data.tar.gz: eb40ec90d8cb44adcd240e630dc3cc66751452ee16ce3d348d92e9e7e01804ef0bab9faa661c567cea86ce763b9e92f9268020103bf7b057db735462d8e3b21a
|
data/.gitignore
CHANGED
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,10 @@ Up until v6.1.0, we used the standard Gem version numbering starting at v0.0.1.
|
|
4
4
|
From v6.1.0 on the version will follow the API version of LWS in the major/minor
|
5
5
|
part of te version.
|
6
6
|
|
7
|
+
## v6.1.5
|
8
|
+
|
9
|
+
* Update the gemspec to relax the dependency on WebMock to support 2.x and 3.x
|
10
|
+
|
7
11
|
## v6.1.4
|
8
12
|
|
9
13
|
* Fix LWS Console environment command-line parameter not overriding the config
|
data/README.md
CHANGED
@@ -52,7 +52,7 @@ LWS.setup do |config|
|
|
52
52
|
config.api_token_middleware = TokenAuthenticator
|
53
53
|
config.caching_object = MyRedisCache.new
|
54
54
|
config.environment = :development
|
55
|
-
config.
|
55
|
+
config.endpoints = { maps: "https://maps.leftclick.cloud" }
|
56
56
|
config.http_debug = true
|
57
57
|
config.json_debug = true
|
58
58
|
config.logger = Rails.logger
|
data/lib/lws/apps/auth.rb
CHANGED
@@ -198,7 +198,7 @@ module LWS::Auth
|
|
198
198
|
|
199
199
|
# @!attribute contracts
|
200
200
|
# @return [Array<Contract>] the contracts of the company
|
201
|
-
has_many :contracts, uri: "companies/:company_id/contracts
|
201
|
+
has_many :contracts, uri: "companies/:company_id/contracts(/:id)"
|
202
202
|
|
203
203
|
# @!attribute country
|
204
204
|
# @return [String] the country of the company
|
@@ -212,7 +212,7 @@ module LWS::Auth
|
|
212
212
|
|
213
213
|
# @!attribute licenses
|
214
214
|
# @return [Array<License>] the licenses of the company
|
215
|
-
has_many :licenses, uri: "companies/:company_id/licenses
|
215
|
+
has_many :licenses, uri: "companies/:company_id/licenses(/:id)"
|
216
216
|
|
217
217
|
# @!attribute name
|
218
218
|
# @return [String] the name of the company
|
@@ -242,7 +242,7 @@ module LWS::Auth
|
|
242
242
|
# @!attribute usage_reports
|
243
243
|
# @return [Array<UsageReport>] the usage reports available/generated
|
244
244
|
# for the company
|
245
|
-
has_many :usage_reports, uri: "companies/:company_id/reports
|
245
|
+
has_many :usage_reports, uri: "companies/:company_id/reports(/:id)"
|
246
246
|
|
247
247
|
# @!attribute uuid
|
248
248
|
# @return [String] the UUID of the company
|
@@ -265,7 +265,7 @@ module LWS::Auth
|
|
265
265
|
# = The contract class
|
266
266
|
class Contract < LWS::Generic::Model
|
267
267
|
use_api LWS::Auth.api
|
268
|
-
uri "companies/:company_id/contracts
|
268
|
+
uri "companies/:company_id/contracts(/:id)"
|
269
269
|
|
270
270
|
# @!attribute id [r]
|
271
271
|
# @return [Fixnum] the (unique) ID of the contract
|
@@ -302,7 +302,7 @@ module LWS::Auth
|
|
302
302
|
# It cannot be accessed directly.
|
303
303
|
class Device < LWS::Generic::Model
|
304
304
|
use_api LWS::Auth.api
|
305
|
-
uri "accounts/:account_id/devices
|
305
|
+
uri "accounts/:account_id/devices(/:id)"
|
306
306
|
|
307
307
|
# @!attribute id [r]
|
308
308
|
# @return [Fixnum] the (unique) ID of the device
|
@@ -336,7 +336,7 @@ module LWS::Auth
|
|
336
336
|
# = The license class
|
337
337
|
class License < LWS::Generic::Model
|
338
338
|
use_api LWS::Auth.api
|
339
|
-
uri "companies/:company_id/licenses
|
339
|
+
uri "companies/:company_id/licenses(/:id)"
|
340
340
|
|
341
341
|
# @!attribute id [r]
|
342
342
|
# @return [Fixnum] the (unique) ID of the license
|
@@ -469,7 +469,7 @@ module LWS::Auth
|
|
469
469
|
# = The usage report class
|
470
470
|
class UsageReport < LWS::Generic::Model
|
471
471
|
use_api LWS::Auth.api
|
472
|
-
uri "companies/:company_id/reports
|
472
|
+
uri "companies/:company_id/reports(/:id)"
|
473
473
|
|
474
474
|
# @!attribute id [r]
|
475
475
|
# @return [Fixnum] the (unique) ID of the usage report
|
@@ -503,7 +503,7 @@ module LWS::Auth
|
|
503
503
|
# It cannot be accessed directly.
|
504
504
|
class User < LWS::Generic::Model
|
505
505
|
use_api LWS::Auth.api
|
506
|
-
uri "accounts/:account_id/users
|
506
|
+
uri "accounts/:account_id/users(/:id)"
|
507
507
|
|
508
508
|
# @!attribute id [r]
|
509
509
|
# @return [Fixnum] the (unique) ID of the user
|
@@ -137,7 +137,7 @@ module LWS::DigitalSignage
|
|
137
137
|
# = The channel group class
|
138
138
|
class Channel::Group < LWS::Generic::Model
|
139
139
|
use_api LWS::DigitalSignage.api
|
140
|
-
uri "channel/groups
|
140
|
+
uri "channel/groups(/:id)"
|
141
141
|
|
142
142
|
# @!attribute id [r]
|
143
143
|
# @return [Fixnum] the (unique) ID of the channel group
|
@@ -146,7 +146,7 @@ module LWS::DigitalSignage
|
|
146
146
|
# @!attribute channels
|
147
147
|
# @return [Array<Channel>] the channels that are part of the channel group
|
148
148
|
has_many :channels, class_name: "LWS::DigitalSignage::Channel",
|
149
|
-
uri: "channel/groups/:group_id/channels
|
149
|
+
uri: "channel/groups/:group_id/channels(/:id)"
|
150
150
|
|
151
151
|
# @!attribute company
|
152
152
|
# @return [LWS::Auth::Company] the company the channel group belongs to
|
@@ -173,12 +173,12 @@ module LWS::DigitalSignage
|
|
173
173
|
#@!attribute tags
|
174
174
|
# @return [Array<Channel::Group::Tag>] the tags of the channel group
|
175
175
|
has_many :tags, class_name: "LWS::DigitalSignage::Channel::Group::Tag",
|
176
|
-
uri: "channel/groups/:group_id/tags
|
176
|
+
uri: "channel/groups/:group_id/tags(/:id)"
|
177
177
|
|
178
178
|
# @!attribute time_schedule_overrides
|
179
179
|
# @return [Array<Channel::TimeScheduleOverride>] the time schedule overrides of the channel group
|
180
180
|
has_many :time_schedule_overrides, class_name: "LWS::DigitalSignage::Channel::TimeScheduleOverride",
|
181
|
-
uri: "channel/groups/:group_id/time_schedule_overrides
|
181
|
+
uri: "channel/groups/:group_id/time_schedule_overrides(/:id)"
|
182
182
|
|
183
183
|
# @!attribute created_at [r]
|
184
184
|
# @return [String] the timestamp of when the channel group was created
|
@@ -276,7 +276,7 @@ module LWS::DigitalSignage
|
|
276
276
|
# = The channel time schedule class
|
277
277
|
class Channel::TimeSchedule < LWS::Generic::Model
|
278
278
|
use_api LWS::DigitalSignage.api
|
279
|
-
uri "channel/time_schedules
|
279
|
+
uri "channel/time_schedules(/:id)"
|
280
280
|
|
281
281
|
# @!attribute id [r]
|
282
282
|
# @return [Fixnum] the (unique) ID of the channel time schedule
|
@@ -293,13 +293,13 @@ module LWS::DigitalSignage
|
|
293
293
|
# @!attribute channels
|
294
294
|
# @return [Array<Channel>] the channels using the time schedule
|
295
295
|
has_many :channels, class_name: "LWS::DigitalSignage::Channel",
|
296
|
-
uri: "channel/time_schedules/:time_schedule_id/channels
|
296
|
+
uri: "channel/time_schedules/:time_schedule_id/channels(/:id)"
|
297
297
|
|
298
298
|
# @!attribute days
|
299
299
|
# @return [Array<Channel::TimeSchedule::Day>] the days included in the
|
300
300
|
# channel time schedule
|
301
301
|
has_many :days, class_name: "LWS::DigitalSignage::Channel::TimeSchedule::Day",
|
302
|
-
uri: "channel/time_schedules/:time_schedule_id/days
|
302
|
+
uri: "channel/time_schedules/:time_schedule_id/days(/:id)"
|
303
303
|
|
304
304
|
# @!attribute name
|
305
305
|
# @return [String] the name of the channel time schedule
|
@@ -321,7 +321,7 @@ module LWS::DigitalSignage
|
|
321
321
|
# class.
|
322
322
|
class Channel::TimeSchedule::Day < LWS::Generic::Model
|
323
323
|
use_api LWS::DigitalSignage.api
|
324
|
-
uri "channel/time_schedules/:time_schedule_id/days
|
324
|
+
uri "channel/time_schedules/:time_schedule_id/days(/:id)"
|
325
325
|
|
326
326
|
# @!attribute id [r]
|
327
327
|
# @return [Fixnum] the (unique) ID of the channel time schedule day
|
@@ -361,7 +361,7 @@ module LWS::DigitalSignage
|
|
361
361
|
# = The channel time override schedule class
|
362
362
|
class Channel::TimeScheduleOverride < LWS::Generic::Model
|
363
363
|
use_api LWS::DigitalSignage.api
|
364
|
-
uri "channel/time_schedule_overrides
|
364
|
+
uri "channel/time_schedule_overrides(/:id)"
|
365
365
|
|
366
366
|
# @!attribute id [r]
|
367
367
|
# @return [Fixnum] the (unique) ID of the channel time schedule override
|
@@ -370,7 +370,7 @@ module LWS::DigitalSignage
|
|
370
370
|
# @!attribute channels
|
371
371
|
# @return [Array<Channel>] the channels using the time schedule override
|
372
372
|
has_many :channels, class_name: "LWS::DigitalSignage::Channel",
|
373
|
-
uri: "channel/time_schedule_overrides/:time_schedule_override_id/channels
|
373
|
+
uri: "channel/time_schedule_overrides/:time_schedule_override_id/channels(/:id)"
|
374
374
|
|
375
375
|
# @!attribute company
|
376
376
|
# @return [LWS::Auth::Company] the company the channel time schedule override belongs to
|
@@ -387,7 +387,7 @@ module LWS::DigitalSignage
|
|
387
387
|
# @!attribute channel_groups
|
388
388
|
# @return [Array<Channel::Group>] the channel groups using the time schedule override
|
389
389
|
has_many :groups, class_name: "LWS::DigitalSignage::Channel::Group",
|
390
|
-
uri: "channel/time_schedule_overrides/:time_schedule_override_id/groups
|
390
|
+
uri: "channel/time_schedule_overrides/:time_schedule_override_id/groups(/:id)"
|
391
391
|
|
392
392
|
# @!attribute name
|
393
393
|
# @return [String] the name of the channel time schedule override
|
@@ -502,7 +502,7 @@ module LWS::DigitalSignage
|
|
502
502
|
# This class is only used within the context of the {Display} class.
|
503
503
|
class Display::Input < LWS::Generic::Model
|
504
504
|
use_api LWS::DigitalSignage.api
|
505
|
-
uri "displays/:display_id/inputs
|
505
|
+
uri "displays/:display_id/inputs(/:id)"
|
506
506
|
|
507
507
|
# @!attribute id [r]
|
508
508
|
# @return [Fixnum] the (unique) ID of the display input
|
@@ -550,7 +550,7 @@ module LWS::DigitalSignage
|
|
550
550
|
# = The display resolution class
|
551
551
|
class Display::Resolution < LWS::Generic::Model
|
552
552
|
use_api LWS::DigitalSignage.api
|
553
|
-
uri "display/resolutions
|
553
|
+
uri "display/resolutions(/:id)"
|
554
554
|
|
555
555
|
# @!attribute id [r]
|
556
556
|
# @return [Fixnum] the (unique) ID of the display resolution
|
@@ -566,7 +566,7 @@ module LWS::DigitalSignage
|
|
566
566
|
# @!attribute displays
|
567
567
|
# @return [Array<Display>] the displays supporting the display resolution
|
568
568
|
has_many :displays, class_name: "LWS::DigitalSignage::Display",
|
569
|
-
uri: "display/resolutions/:resolution_id/displays
|
569
|
+
uri: "display/resolutions/:resolution_id/displays(/:id)"
|
570
570
|
|
571
571
|
# @!attribute height
|
572
572
|
# @return [Fixnum] the height of the resolution
|
@@ -576,7 +576,7 @@ module LWS::DigitalSignage
|
|
576
576
|
# @return [Array<Player::Model>] the player models that support the
|
577
577
|
# display resolution
|
578
578
|
has_many :models, class_name: "LWS::DigitalSignage::Player::Model",
|
579
|
-
uri: "display/resolutions/:resolution_id/models
|
579
|
+
uri: "display/resolutions/:resolution_id/models(/:id)"
|
580
580
|
|
581
581
|
# @!attribute scanning_mode
|
582
582
|
# @return ["progressive", "interlaced"] the scanning mode setting of
|
@@ -718,7 +718,7 @@ module LWS::DigitalSignage
|
|
718
718
|
# = The player component class
|
719
719
|
class Player::Component < LWS::Generic::Model
|
720
720
|
use_api LWS::DigitalSignage.api
|
721
|
-
uri "player/components
|
721
|
+
uri "player/components(/:id)"
|
722
722
|
|
723
723
|
# @!attribute id [r]
|
724
724
|
# @return [Fixnum] the (unique) ID of the player component
|
@@ -731,7 +731,7 @@ module LWS::DigitalSignage
|
|
731
731
|
# @!attribute models
|
732
732
|
# @return [Array<Player::Model>] the player models that use the component
|
733
733
|
has_many :models, class_name: "LWS::DigitalSignage::Player::Model",
|
734
|
-
uri: "player/components/:component_id/models
|
734
|
+
uri: "player/components/:component_id/models(/:id)"
|
735
735
|
|
736
736
|
# @!attribute name
|
737
737
|
# @return [String] the name of the player component
|
@@ -740,7 +740,7 @@ module LWS::DigitalSignage
|
|
740
740
|
# @!attribute parts
|
741
741
|
# @return [Array<Player::Component::Part>] the parts the component is made out of
|
742
742
|
has_many :parts, class_name: "LWS::DigitalSignage::Player::Component::Part",
|
743
|
-
uri: "player/components/:component_id/parts
|
743
|
+
uri: "player/components/:component_id/parts(/:id)"
|
744
744
|
|
745
745
|
# @!attribute slug [r]
|
746
746
|
# @return [String] the slug(ified name) of the player component
|
@@ -772,7 +772,7 @@ module LWS::DigitalSignage
|
|
772
772
|
# class.
|
773
773
|
class Player::Component::Part < LWS::Generic::Model
|
774
774
|
use_api LWS::DigitalSignage.api
|
775
|
-
uri "players/components/:component_id/parts
|
775
|
+
uri "players/components/:component_id/parts(/:id)"
|
776
776
|
|
777
777
|
# @!attribute id [r]
|
778
778
|
# @return [Fixnum] the (unique) ID of the player component part
|
@@ -811,7 +811,7 @@ module LWS::DigitalSignage
|
|
811
811
|
# = The player configuration class
|
812
812
|
class Player::Configuration < LWS::Generic::Model
|
813
813
|
use_api LWS::DigitalSignage.api
|
814
|
-
uri "player/configurations
|
814
|
+
uri "player/configurations(/:id)"
|
815
815
|
|
816
816
|
# @!attribute id [r]
|
817
817
|
# @return [Fixnum] the (unique) ID of the player configuration
|
@@ -836,7 +836,7 @@ module LWS::DigitalSignage
|
|
836
836
|
# @!attribute players
|
837
837
|
# @return [Array<Player>] the players the configuration is used for
|
838
838
|
has_many :players, class_name: "LWS::DigitalSignage::Player",
|
839
|
-
uri: "player/configurations/:configuration_id/players
|
839
|
+
uri: "player/configurations/:configuration_id/players(/:id)"
|
840
840
|
|
841
841
|
# @!attribute predefined_configuration
|
842
842
|
# @return [Player::PredefinedConfiguration, nil] the predefined
|
@@ -852,7 +852,7 @@ module LWS::DigitalSignage
|
|
852
852
|
# @!attribute settings
|
853
853
|
# @return [Player::Configuration::Setting] the settings of the player configuration
|
854
854
|
has_many :settings, class_name: "LWS::DigitalSignage::Player::Configuration::Setting",
|
855
|
-
uri: "player/configurations/:configuration_id/settings
|
855
|
+
uri: "player/configurations/:configuration_id/settings(/:id)"
|
856
856
|
|
857
857
|
# @!attribute created_at [r]
|
858
858
|
# @return [String] the timestamp of when the player configuration was created
|
@@ -870,7 +870,7 @@ module LWS::DigitalSignage
|
|
870
870
|
# class.
|
871
871
|
class Player::Configuration::Setting < LWS::Generic::Model
|
872
872
|
use_api LWS::DigitalSignage.api
|
873
|
-
uri "player/configurations/:configuration_id/settings
|
873
|
+
uri "player/configurations/:configuration_id/settings(/:id)"
|
874
874
|
|
875
875
|
# @!attribute id [r]
|
876
876
|
# @return [Fixnum] the (unique) ID of the player configuration setting
|
@@ -914,7 +914,7 @@ module LWS::DigitalSignage
|
|
914
914
|
# This class is only used within the context of the {Player} class.
|
915
915
|
class Player::Feedback < LWS::Generic::Model
|
916
916
|
use_api LWS::DigitalSignage.api
|
917
|
-
uri "players/:player_id/feedbacks
|
917
|
+
uri "players/:player_id/feedbacks(/:id)"
|
918
918
|
|
919
919
|
# @!attribute id [r]
|
920
920
|
# @return [Fixnum] the (unique) ID of the player feedback
|
@@ -943,7 +943,7 @@ module LWS::DigitalSignage
|
|
943
943
|
# @return [Array<Player::Feedback::Result>] the results of the player feedback
|
944
944
|
# FIXME: Chained associations don't work yet in Spyke (#89)
|
945
945
|
has_many :results, class_name: "LWS::DigitalSignage::Player::Feedback::Result",
|
946
|
-
uri: "players/:player_id/feedbacks/:feedback_id/results
|
946
|
+
uri: "players/:player_id/feedbacks/:feedback_id/results(/:id)"
|
947
947
|
|
948
948
|
# @!attribute created_at [r]
|
949
949
|
# @return [String] the timestamp of when the player feedback was created
|
@@ -961,7 +961,7 @@ module LWS::DigitalSignage
|
|
961
961
|
# class.
|
962
962
|
class Player::Feedback::Result < LWS::Generic::Model
|
963
963
|
use_api LWS::DigitalSignage.api
|
964
|
-
uri "players/:player_id/feedbacks/:feedback_id/results
|
964
|
+
uri "players/:player_id/feedbacks/:feedback_id/results(/:id)"
|
965
965
|
|
966
966
|
# @!attribute id [r]
|
967
967
|
# @return [Fixnum] the (unique) ID of the player feedback result
|
@@ -1007,7 +1007,7 @@ module LWS::DigitalSignage
|
|
1007
1007
|
# This class is only used within the context of the {Player} class.
|
1008
1008
|
class Player::Log < LWS::Generic::Model
|
1009
1009
|
use_api LWS::DigitalSignage.api
|
1010
|
-
uri "players/:player_id/logs
|
1010
|
+
uri "players/:player_id/logs(/:id)"
|
1011
1011
|
|
1012
1012
|
# @!attribute id [r]
|
1013
1013
|
# @return [Fixnum] the (unique) ID of the player log
|
@@ -1041,7 +1041,7 @@ module LWS::DigitalSignage
|
|
1041
1041
|
# = The player model
|
1042
1042
|
class Player::Model < LWS::Generic::Model
|
1043
1043
|
use_api LWS::DigitalSignage.api
|
1044
|
-
uri "player/models
|
1044
|
+
uri "player/models(/:id)"
|
1045
1045
|
|
1046
1046
|
# @!attribute id [r]
|
1047
1047
|
# @return [Fixnum] the (unique) ID of the player model
|
@@ -1051,19 +1051,19 @@ module LWS::DigitalSignage
|
|
1051
1051
|
# @return [Array<Player::Os::Branch>] the player OS branches allowed for
|
1052
1052
|
# the player model
|
1053
1053
|
has_many :branches, class_name: "LWS::DigitalSignage::Player::Os::Branch",
|
1054
|
-
uri: "player/models/:model_id/branches
|
1054
|
+
uri: "player/models/:model_id/branches(/:id)"
|
1055
1055
|
|
1056
1056
|
# @!attribute capabilities
|
1057
1057
|
# @return [Array<Player::Model::Capability>] the capabilities of the
|
1058
1058
|
# player model
|
1059
1059
|
has_many :capabilities, class_name: "LWS::DigitalSignage::Player::Model::Capability",
|
1060
|
-
uri: "player/models/:model_id/capabilities
|
1060
|
+
uri: "player/models/:model_id/capabilities(/:id)"
|
1061
1061
|
|
1062
1062
|
# @!attribute components
|
1063
1063
|
# @return [Array<Player::Component>] the player components that are
|
1064
1064
|
# used in the player model
|
1065
1065
|
has_many :components, class_name: "LWS::DigitalSignage::Player::Component",
|
1066
|
-
uri: "player/models/:model_id/components
|
1066
|
+
uri: "player/models/:model_id/components(/:id)"
|
1067
1067
|
|
1068
1068
|
# @!attribute mbf_hours
|
1069
1069
|
# @return [Fixnum] the MBF (mean time between failures) in hours of
|
@@ -1077,19 +1077,19 @@ module LWS::DigitalSignage
|
|
1077
1077
|
# @!attribute players
|
1078
1078
|
# @return [Array<Player>] the player that have the player model
|
1079
1079
|
has_many :players, class_name: "LWS::DigitalSignage::Player",
|
1080
|
-
uri: "player/models/:model_id/players
|
1080
|
+
uri: "player/models/:model_id/players(/:id)"
|
1081
1081
|
|
1082
1082
|
# @!attribute release_channels
|
1083
1083
|
# @return [Array<Player::Os::ReleaseChannel>] the player OS release
|
1084
1084
|
# channels used for the player model
|
1085
1085
|
has_many :release_channels, class_name: "LWS::DigitalSignage::Player::Os::ReleaseChannel",
|
1086
|
-
uri: "player/models/:model_id/release_channels
|
1086
|
+
uri: "player/models/:model_id/release_channels(/:id)"
|
1087
1087
|
|
1088
1088
|
# @!attribute resolutions
|
1089
1089
|
# @return [Array<Display::Resolution>] the display resolutions
|
1090
1090
|
# supported by the player model
|
1091
1091
|
has_many :resolutions, class_name: "LWS::DigitalSignage::Display::Resolution",
|
1092
|
-
uri: "player/models/:model_id/resolutions
|
1092
|
+
uri: "player/models/:model_id/resolutions(/:id)"
|
1093
1093
|
|
1094
1094
|
# @!attribute slug [r]
|
1095
1095
|
# @return [String] the slug(ified name) of the player model
|
@@ -1134,7 +1134,7 @@ module LWS::DigitalSignage
|
|
1134
1134
|
# class.
|
1135
1135
|
class Player::Model::Capability < LWS::Generic::Model
|
1136
1136
|
use_api LWS::DigitalSignage.api
|
1137
|
-
uri "player/models/:model_id/capabilities
|
1137
|
+
uri "player/models/:model_id/capabilities(/:id)"
|
1138
1138
|
|
1139
1139
|
# @!attribute id [r]
|
1140
1140
|
# @return [Fixnum] the (unique) ID of the player model capability
|
@@ -1172,7 +1172,7 @@ module LWS::DigitalSignage
|
|
1172
1172
|
# This class is only used within the context of the {Player} class.
|
1173
1173
|
class Player::Notification < LWS::Generic::Model
|
1174
1174
|
use_api LWS::DigitalSignage.api
|
1175
|
-
uri "players/:player_id/notifications
|
1175
|
+
uri "players/:player_id/notifications(/:id)"
|
1176
1176
|
|
1177
1177
|
# @!attribute id [r]
|
1178
1178
|
# @return [Fixnum] the (unique) ID of the player notification
|
@@ -1218,7 +1218,7 @@ module LWS::DigitalSignage
|
|
1218
1218
|
# = The player OS branch class
|
1219
1219
|
class Player::Os::Branch < LWS::Generic::Model
|
1220
1220
|
use_api LWS::DigitalSignage.api
|
1221
|
-
uri "player/os/branches
|
1221
|
+
uri "player/os/branches(/:id)"
|
1222
1222
|
|
1223
1223
|
# @!attribute id [r]
|
1224
1224
|
# @return [Fixnum] the (unique) ID of the player OS branch
|
@@ -1248,7 +1248,7 @@ module LWS::DigitalSignage
|
|
1248
1248
|
# @return [Array<Player::Os::Branch::Release>] the releases that are part
|
1249
1249
|
# of the branch
|
1250
1250
|
has_many :releases, class_name: "LWS::DigitalSignage::Player::Os::Branch::Release",
|
1251
|
-
uri: "player/os/branches/:branch_id/releases
|
1251
|
+
uri: "player/os/branches/:branch_id/releases(/:id)"
|
1252
1252
|
|
1253
1253
|
# @!attribute slug [r]
|
1254
1254
|
# @return [String] the slug(ified name) of the player OS branch
|
@@ -1270,7 +1270,7 @@ module LWS::DigitalSignage
|
|
1270
1270
|
# class.
|
1271
1271
|
class Player::Os::Branch::Release < LWS::Generic::Model
|
1272
1272
|
use_api LWS::DigitalSignage.api
|
1273
|
-
uri "player/os/branches/:branch_id/releases
|
1273
|
+
uri "player/os/branches/:branch_id/releases(/:id)"
|
1274
1274
|
|
1275
1275
|
# @!attribute id [r]
|
1276
1276
|
# @return [Fixnum] the (unique) ID of the player OS branch release
|
@@ -1302,14 +1302,14 @@ module LWS::DigitalSignage
|
|
1302
1302
|
# versions in this release
|
1303
1303
|
# FIXME: Chained associations don't work yet in Spyke (#89)
|
1304
1304
|
has_many :package_versions, class_name: "LWS::DigitalSignage::Player::Os::Package::Version",
|
1305
|
-
uri: "player/os/branches/:branch_id/releases/:release_id/package_versions
|
1305
|
+
uri: "player/os/branches/:branch_id/releases/:release_id/package_versions(/:id)"
|
1306
1306
|
|
1307
1307
|
# @!attribute package_version_changes
|
1308
1308
|
# @return [Array<Player::Os::Package::VersionChange>] the player OS package
|
1309
1309
|
# version changes in this release
|
1310
1310
|
# FIXME: Chained associations don't work yet in Spyke (#89)
|
1311
1311
|
has_many :package_version_changes, class_name: "LWS::DigitalSignage::Player::Os::Package::VersionChange",
|
1312
|
-
uri: "player/os/branches/:branch_id/releases/:release_id/package_version_changes
|
1312
|
+
uri: "player/os/branches/:branch_id/releases/:release_id/package_version_changes(/:id)"
|
1313
1313
|
|
1314
1314
|
# @!attribute parent
|
1315
1315
|
# @return [Player::Os::Branch::Release, nil] the parent of the player OS
|
@@ -1355,7 +1355,7 @@ module LWS::DigitalSignage
|
|
1355
1355
|
# = The player OS package class
|
1356
1356
|
class Player::Os::Package < LWS::Generic::Model
|
1357
1357
|
use_api LWS::DigitalSignage.api
|
1358
|
-
uri "player/os/packages
|
1358
|
+
uri "player/os/packages(/:id)"
|
1359
1359
|
|
1360
1360
|
# @!attribute id [r]
|
1361
1361
|
# @return [Fixnum] the (unique) ID of the player OS package
|
@@ -1369,13 +1369,13 @@ module LWS::DigitalSignage
|
|
1369
1369
|
# @return [Array<Player::Os::Package::VersionChange>] the version
|
1370
1370
|
# changes of the player OS package present in branches
|
1371
1371
|
has_many :version_changes, class_name: "LWS::DigitalSignage::Player::Os::Package::VersionChange",
|
1372
|
-
uri: "player/os/packages/:package_id/version_changes
|
1372
|
+
uri: "player/os/packages/:package_id/version_changes(/:id)"
|
1373
1373
|
|
1374
1374
|
# @!attribute versions
|
1375
1375
|
# @return [Array<Player::Os::Package::Version>] the versions of the
|
1376
1376
|
# player OS package present in branches
|
1377
1377
|
has_many :versions, class_name: "LWS::DigitalSignage::Player::Os::Package::Version",
|
1378
|
-
uri: "player/os/packages/:package_id/versions
|
1378
|
+
uri: "player/os/packages/:package_id/versions(/:id)"
|
1379
1379
|
|
1380
1380
|
# @!attribute created_at [r]
|
1381
1381
|
# @return [String] the timestamp of when the player OS package was created
|
@@ -1393,7 +1393,7 @@ module LWS::DigitalSignage
|
|
1393
1393
|
# class.
|
1394
1394
|
class Player::Os::Package::Version < LWS::Generic::Model
|
1395
1395
|
use_api LWS::DigitalSignage.api
|
1396
|
-
uri "player/os/packages/:package_id/versions
|
1396
|
+
uri "player/os/packages/:package_id/versions(/:id)"
|
1397
1397
|
|
1398
1398
|
# @!attribute id [r]
|
1399
1399
|
# @return [Fixnum] the (unique) ID of the player OS package version
|
@@ -1436,7 +1436,7 @@ module LWS::DigitalSignage
|
|
1436
1436
|
# class.
|
1437
1437
|
class Player::Os::Package::VersionChange < LWS::Generic::Model
|
1438
1438
|
use_api LWS::DigitalSignage.api
|
1439
|
-
uri "player/os/packages/:package_id/version_changes
|
1439
|
+
uri "player/os/packages/:package_id/version_changes(/:id)"
|
1440
1440
|
|
1441
1441
|
# @!attribute id [r]
|
1442
1442
|
# @return [Fixnum] the (unique) ID of the player OS package version change
|
@@ -1524,7 +1524,7 @@ module LWS::DigitalSignage
|
|
1524
1524
|
# = The player OS release channel class
|
1525
1525
|
class Player::Os::ReleaseChannel < LWS::Generic::Model
|
1526
1526
|
use_api LWS::DigitalSignage.api
|
1527
|
-
uri "player/os/release_channels
|
1527
|
+
uri "player/os/release_channels(/:id)"
|
1528
1528
|
|
1529
1529
|
# @!attribute id [r]
|
1530
1530
|
# @return [Fixnum] the (unique) ID of the player OS release channel
|
@@ -1534,7 +1534,7 @@ module LWS::DigitalSignage
|
|
1534
1534
|
# @return [Array<Player::Os::Branch>] the branches that belong to the
|
1535
1535
|
# player OS release channel
|
1536
1536
|
has_many :branches, class_name: "LWS::DigitalSignage::Player::Os::Branch",
|
1537
|
-
uri: "player/os/release_channels/:release_channel_id/branches
|
1537
|
+
uri: "player/os/release_channels/:release_channel_id/branches(/:id)"
|
1538
1538
|
|
1539
1539
|
# @!attribute name
|
1540
1540
|
# @return [String] the name of the player OS release channel
|
@@ -1543,7 +1543,7 @@ module LWS::DigitalSignage
|
|
1543
1543
|
# @!attribute players
|
1544
1544
|
# @return [Array<Player>] the players that use the player OS release channel
|
1545
1545
|
has_many :players, class_name: "LWS::DigitalSignage::Player",
|
1546
|
-
uri: "player/os/release_channels/:release_channel_id/players
|
1546
|
+
uri: "player/os/release_channels/:release_channel_id/players(/:id)"
|
1547
1547
|
|
1548
1548
|
# @!attribute slug [r]
|
1549
1549
|
# @return [String] the slug(ified name) of the player OS release channel
|
@@ -1561,7 +1561,7 @@ module LWS::DigitalSignage
|
|
1561
1561
|
# = The predefined player configuration
|
1562
1562
|
class Player::PredefinedConfiguration < LWS::Generic::Model
|
1563
1563
|
use_api LWS::DigitalSignage.api
|
1564
|
-
uri "player/predefined_configurations
|
1564
|
+
uri "player/predefined_configurations(/:id)"
|
1565
1565
|
|
1566
1566
|
# @!attribute id [r]
|
1567
1567
|
# @return [Fixnum] the (unique) ID of the predefined player configuration
|
@@ -1579,7 +1579,7 @@ module LWS::DigitalSignage
|
|
1579
1579
|
# @return [Array<Player::Configuration>] the player configurations that use
|
1580
1580
|
# the predefined player configuration as a basis
|
1581
1581
|
has_many :configurations, class_name: "LWS::DigitalSignage::Player::Configuration",
|
1582
|
-
uri: "player/predefined_configurations/:predefined_configuration_id/configurations
|
1582
|
+
uri: "player/predefined_configurations/:predefined_configuration_id/configurations(/:id)"
|
1583
1583
|
|
1584
1584
|
# @!attribute description
|
1585
1585
|
# @return [String] the description of the predefined player configuration
|
@@ -1593,7 +1593,7 @@ module LWS::DigitalSignage
|
|
1593
1593
|
# @return [Player::PredefinedConfiguration::Setting] the settings of the
|
1594
1594
|
# predefined player configuration
|
1595
1595
|
has_many :settings, class_name: "LWS::DigitalSignage::Player::PredefinedConfiguration::Setting",
|
1596
|
-
uri: "player/predefined_configurations/:predefined_configuration_id/settings
|
1596
|
+
uri: "player/predefined_configurations/:predefined_configuration_id/settings(/:id)"
|
1597
1597
|
|
1598
1598
|
# @!attribute created_at [r]
|
1599
1599
|
# @return [String] the timestamp of when the predefined player configuration was created
|
@@ -1611,7 +1611,7 @@ module LWS::DigitalSignage
|
|
1611
1611
|
# class.
|
1612
1612
|
class Player::PredefinedConfiguration::Setting < LWS::Generic::Model
|
1613
1613
|
use_api LWS::DigitalSignage.api
|
1614
|
-
uri "player/predefined_configurations/:configuration_id/settings
|
1614
|
+
uri "player/predefined_configurations/:configuration_id/settings(/:id)"
|
1615
1615
|
|
1616
1616
|
# @!attribute id [r]
|
1617
1617
|
# @return [Fixnum] the (unique) ID of the predefined player configuration setting
|
@@ -1655,7 +1655,7 @@ module LWS::DigitalSignage
|
|
1655
1655
|
# This class is only used within the context of the {Player} class.
|
1656
1656
|
class Player::Request < LWS::Generic::Model
|
1657
1657
|
use_api LWS::DigitalSignage.api
|
1658
|
-
uri "players/:player_id/requests
|
1658
|
+
uri "players/:player_id/requests(/:id)"
|
1659
1659
|
|
1660
1660
|
# @!attribute id [r]
|
1661
1661
|
# @return [Fixnum] the (unique) ID of the player request
|
@@ -1746,7 +1746,7 @@ module LWS::DigitalSignage
|
|
1746
1746
|
# This class is only used within the context of the {Player} class.
|
1747
1747
|
class Player::Screenshot < LWS::Generic::Model
|
1748
1748
|
use_api LWS::DigitalSignage.api
|
1749
|
-
uri "players/:player_id/screenshots
|
1749
|
+
uri "players/:player_id/screenshots(/:id)"
|
1750
1750
|
|
1751
1751
|
# @!attribute id [r]
|
1752
1752
|
# @return [Fixnum] the (unique) ID of the player screenshot
|
@@ -1779,7 +1779,7 @@ module LWS::DigitalSignage
|
|
1779
1779
|
# This class is only used within the context of the {Player} class.
|
1780
1780
|
class Player::Tag < LWS::Generic::Model
|
1781
1781
|
use_api LWS::DigitalSignage.api
|
1782
|
-
uri "players/:player_id/tags
|
1782
|
+
uri "players/:player_id/tags(/:id)"
|
1783
1783
|
|
1784
1784
|
# @!attribute id [r]
|
1785
1785
|
# @return [Fixnum] the (unique) ID of the player tag
|
data/lib/lws/version.rb
CHANGED
data/lws.gemspec
CHANGED
@@ -17,7 +17,7 @@ Gem::Specification.new do |s|
|
|
17
17
|
s.add_runtime_dependency 'multi_json'
|
18
18
|
s.add_runtime_dependency 'pry'
|
19
19
|
s.add_runtime_dependency 'spyke', '~> 5.2.0'
|
20
|
-
s.add_runtime_dependency 'webmock', '
|
20
|
+
s.add_runtime_dependency 'webmock', '>= 2', '< 4'
|
21
21
|
|
22
22
|
s.add_development_dependency 'bundler'
|
23
23
|
s.add_development_dependency 'minitest'
|
@@ -767,17 +767,18 @@ class TestDigitalSignagePlayerRequest < MiniTest::Test
|
|
767
767
|
def test_valid_associations
|
768
768
|
assert_instance_of(Player, @player_request.player)
|
769
769
|
assert_equal(@player, @player_request.player)
|
770
|
-
|
771
|
-
|
772
|
-
|
773
|
-
|
774
|
-
|
775
|
-
|
776
|
-
|
777
|
-
|
778
|
-
|
779
|
-
|
780
|
-
end
|
770
|
+
# FIXME: Chained associations don't work yet in Spyke (#89)
|
771
|
+
#if @player_request.processed
|
772
|
+
# if @player_request.feedback.present?
|
773
|
+
# assert_instance_of(Player::Feedback, @player_request.feedback)
|
774
|
+
# elsif @player_request.log.present?
|
775
|
+
# assert_instance_of(Player::Log, @player_request.log)
|
776
|
+
# elsif @player_request.screenshot.present?
|
777
|
+
# assert_instance_of(Player::Screenshot, @player_request.screenshot)
|
778
|
+
# else
|
779
|
+
# fail "request should be associated either with feedback, a log or a screenshot"
|
780
|
+
# end
|
781
|
+
#end
|
781
782
|
end
|
782
783
|
|
783
784
|
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: 6.1.
|
4
|
+
version: 6.1.5
|
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: 2018-
|
11
|
+
date: 2018-06-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday_middleware
|
@@ -90,16 +90,22 @@ dependencies:
|
|
90
90
|
name: webmock
|
91
91
|
requirement: !ruby/object:Gem::Requirement
|
92
92
|
requirements:
|
93
|
-
- - "
|
93
|
+
- - ">="
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
version: '2'
|
96
|
+
- - "<"
|
94
97
|
- !ruby/object:Gem::Version
|
95
|
-
version:
|
98
|
+
version: '4'
|
96
99
|
type: :runtime
|
97
100
|
prerelease: false
|
98
101
|
version_requirements: !ruby/object:Gem::Requirement
|
99
102
|
requirements:
|
100
|
-
- - "
|
103
|
+
- - ">="
|
104
|
+
- !ruby/object:Gem::Version
|
105
|
+
version: '2'
|
106
|
+
- - "<"
|
101
107
|
- !ruby/object:Gem::Version
|
102
|
-
version:
|
108
|
+
version: '4'
|
103
109
|
- !ruby/object:Gem::Dependency
|
104
110
|
name: bundler
|
105
111
|
requirement: !ruby/object:Gem::Requirement
|