lws 7.0.1 → 7.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lws/apps/digital_signage.rb +78 -2
- data/lib/lws/apps/resource.rb +20 -0
- data/lib/lws/version.rb +1 -1
- data/test/digital_signage_test.rb +7 -1
- metadata +17 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2baebac6cb99dc5b7106f8cb9eeff4953f623ed1c7a2465ef165e9bf48c0330a
|
4
|
+
data.tar.gz: 58833b0704e57635dcf70f06391f45276723efadac02ed05106efb23ce82f70d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1430d0b1e0927121be013e60191be69e41b3fcc8a388ac6f707d6c39471fcf540776cf82c674f50104fa200e0c43f28f7c6662b3e1787116205e8b5f04357d51
|
7
|
+
data.tar.gz: 98e60f674fc4b39ab09805accb562f6080c87573930dff4c660f42b8ef0c806c44460fdc191aa6bad86636374cc7619cedbb84ae90fbfdcab2dfeb50f7d6c832
|
@@ -78,6 +78,10 @@ module LWS::DigitalSignage
|
|
78
78
|
# @return [Array<Channel::Group>] the groups the channel is a member of
|
79
79
|
has_many :groups, class_name: "LWS::DigitalSignage::Channel::Group"
|
80
80
|
|
81
|
+
# @!attribute marquee_config
|
82
|
+
# @return [String] the marquee/ticker tape configuration (JSON) of the channel
|
83
|
+
attribute :marquee_config
|
84
|
+
|
81
85
|
# @!attribute name
|
82
86
|
# @return [String] the name of the channel
|
83
87
|
attribute :name
|
@@ -100,6 +104,10 @@ module LWS::DigitalSignage
|
|
100
104
|
# @return [Boolean] whether remote control is enabled for the channel
|
101
105
|
attribute :remote_control
|
102
106
|
|
107
|
+
# @!attribute slides
|
108
|
+
# @return [Array<Slide>] the slides schedules on the channel
|
109
|
+
has_many :slides, class_name: "LWS::DigitalSignage::Slide"
|
110
|
+
|
103
111
|
# @!attribute tags
|
104
112
|
# @return [Array<Channel::Tag>] the tags of the channel
|
105
113
|
has_many :tags, class_name: "LWS::DigitalSignage::Channel::Tag"
|
@@ -159,6 +167,10 @@ module LWS::DigitalSignage
|
|
159
167
|
# @return [Integer, nil] the ID of the parent group of the channel group
|
160
168
|
attribute :parent_id
|
161
169
|
|
170
|
+
# @!attribute slides
|
171
|
+
# @return [Array<Slide>] the slides schedules on the channel group
|
172
|
+
has_many :slides, class_name: "LWS::DigitalSignage::Slide"
|
173
|
+
|
162
174
|
#@!attribute tags
|
163
175
|
# @return [Array<Channel::Group::Tag>] the tags of the channel group
|
164
176
|
has_many :tags, class_name: "LWS::DigitalSignage::Channel::Group::Tag",
|
@@ -579,6 +591,10 @@ module LWS::DigitalSignage
|
|
579
591
|
# @!attribute name
|
580
592
|
# @return [String] the name of the layout category
|
581
593
|
attribute :name
|
594
|
+
|
595
|
+
# @!attribute translated_name
|
596
|
+
# @return [String] the translated name of the layout category
|
597
|
+
attribute :name
|
582
598
|
end
|
583
599
|
|
584
600
|
# = The layout element class
|
@@ -628,6 +644,10 @@ module LWS::DigitalSignage
|
|
628
644
|
# element
|
629
645
|
has_many :properties, class_name: "LWS::DigitalSignage::Layout::Element::Property"
|
630
646
|
|
647
|
+
# @!attribute title
|
648
|
+
# @return [String, nil] the title of the layout element
|
649
|
+
attribute :title
|
650
|
+
|
631
651
|
# @!attribute version
|
632
652
|
# @return [Layout::Verion] the layout version that contains the element
|
633
653
|
# FIXME: Missing endpoint in LWS
|
@@ -713,6 +733,10 @@ module LWS::DigitalSignage
|
|
713
733
|
# version
|
714
734
|
has_many :elements, class_name: "LWS::DigitalSignage::Layout::Element"
|
715
735
|
|
736
|
+
# @!attribute height
|
737
|
+
# @return [Integer] the intended height of the layout version
|
738
|
+
attribute :width
|
739
|
+
|
716
740
|
# @!attribute layout
|
717
741
|
# @return [Layout] the layout the layout version is for
|
718
742
|
belongs_to :layout
|
@@ -720,6 +744,28 @@ module LWS::DigitalSignage
|
|
720
744
|
# @!attribute layout_id
|
721
745
|
# @return [Integer] the ID of the layout the layout version is for
|
722
746
|
attribute :layout_id
|
747
|
+
|
748
|
+
# @!attribute rotation
|
749
|
+
# @return ["landscape", "portrait"] the rotation (orientation) of the
|
750
|
+
# layout version
|
751
|
+
attribute :rotation
|
752
|
+
|
753
|
+
# @!attribute rotation_angle
|
754
|
+
# @return [0, 90] the rotation angle of the layout version
|
755
|
+
attribute :rotation_angle
|
756
|
+
|
757
|
+
# @!attribute status [r]
|
758
|
+
# @return ["initializing", "creating_pack", "creating_thumbnail", "available", "archive"]
|
759
|
+
# the status of the layout version
|
760
|
+
attribute :status
|
761
|
+
|
762
|
+
# @!attribute thumbnail_url
|
763
|
+
# @return [String, nil] the URL of the thumbnail of the layout version
|
764
|
+
attribute :thumbnail_url
|
765
|
+
|
766
|
+
# @!attribute width
|
767
|
+
# @return [Integer] the intended width of the layout version
|
768
|
+
attribute :width
|
723
769
|
end
|
724
770
|
|
725
771
|
# = The player class
|
@@ -759,6 +805,10 @@ module LWS::DigitalSignage
|
|
759
805
|
# @return [Array<Player::Feedback>] the feedbacks for the player
|
760
806
|
has_many :feedbacks, class_name: "LWS::DigitalSignage::Player::Feedback"
|
761
807
|
|
808
|
+
# @!attribute [r] health_percentage
|
809
|
+
# @return [Fixnum] the health of the player (percentage)
|
810
|
+
attribute :health_percentage
|
811
|
+
|
762
812
|
# @!attribute [r] hostname
|
763
813
|
# @return [String] the hostname used by the player (for DHCP for example)
|
764
814
|
attribute :hostname
|
@@ -788,15 +838,27 @@ module LWS::DigitalSignage
|
|
788
838
|
# @return [Array<Player::Notification>] the notifications for the player
|
789
839
|
has_many :notifications, class_name: "LWS::DigitalSignage::Player::Notification"
|
790
840
|
|
791
|
-
# @!attribute
|
841
|
+
# @!attribute operational_hours [r]
|
842
|
+
# @return [String, nil] the number of hours the player has been operational
|
843
|
+
attribute :operational_hours
|
844
|
+
|
845
|
+
# @!attribute operational_since [r]
|
792
846
|
# @return [String, nil] the date/time when the player became operational
|
793
847
|
# for the first time
|
794
848
|
attribute :operational_since
|
795
849
|
|
850
|
+
# @!attribute os_release_version
|
851
|
+
# @return [String, nil] the OS version the player is using (if known)
|
852
|
+
attribute :os_release_version
|
853
|
+
|
796
854
|
# @!attribute parts
|
797
855
|
# @return [Array<Player::Component::Part>] the parts of the player
|
798
856
|
has_many :parts, class_name: "LWS::DigitalSignage::Player::Component::Part"
|
799
857
|
|
858
|
+
# @!attribute registration_locked
|
859
|
+
# @return [Boolean] whether registarion is locked for the player
|
860
|
+
attribute :registration_locked
|
861
|
+
|
800
862
|
# @!attribute release_channel
|
801
863
|
# @return [Player::Os::ReleaseChannel] the player OS release channel used
|
802
864
|
# by the player
|
@@ -824,7 +886,7 @@ module LWS::DigitalSignage
|
|
824
886
|
# @return [Boolean] whether the player is being serviced/is in service
|
825
887
|
attribute :service
|
826
888
|
|
827
|
-
# @!attribute status
|
889
|
+
# @!attribute status [r]
|
828
890
|
# @return ["unknown", "good", "warning", "bad"] the player status
|
829
891
|
attribute :status
|
830
892
|
|
@@ -1693,6 +1755,15 @@ module LWS::DigitalSignage
|
|
1693
1755
|
# @return [Integer] the ID of the account used for creating the slide
|
1694
1756
|
attribute :account_id
|
1695
1757
|
|
1758
|
+
# @!attribute channels
|
1759
|
+
# @return [Array<Channel>] the channels the slide is scheduled on
|
1760
|
+
has_many :channels, class_name: "LWS::DigitalSignage::Channel"
|
1761
|
+
|
1762
|
+
# @!attribute channel_groups
|
1763
|
+
# @return [Array<Channel::Group>] the channel group the slide is
|
1764
|
+
# scheduled on
|
1765
|
+
has_many :channel_groups, class_name: "LWS::DigitalSignage::Channel::Group"
|
1766
|
+
|
1696
1767
|
# @!attribute company
|
1697
1768
|
# @return [LWS::Auth::Company] the company the slide belongs to
|
1698
1769
|
belongs_to :company, class_name: "LWS::Auth::Company"
|
@@ -1721,6 +1792,11 @@ module LWS::DigitalSignage
|
|
1721
1792
|
# @return [Array<Schedule>] the slide schedules that apply for the slide
|
1722
1793
|
# FIXME: Missing endpoint in LWS
|
1723
1794
|
has_many :schedules, class_name: "LWS::DigitalSignage::Slide::Schedule"
|
1795
|
+
|
1796
|
+
# @!attribute status [r]
|
1797
|
+
# @return ["initializing", "waiting_content", "available", "error"]
|
1798
|
+
# the status of the slide
|
1799
|
+
attribute :status
|
1724
1800
|
end
|
1725
1801
|
|
1726
1802
|
# = The slide schedule class
|
data/lib/lws/apps/resource.rb
CHANGED
@@ -108,6 +108,11 @@ module LWS::Resource
|
|
108
108
|
# @return [String] the URL of a preview of the collection
|
109
109
|
attribute :preview_url
|
110
110
|
|
111
|
+
# @!attribute processing
|
112
|
+
# @return [Boolean] whether the collection is being processed (i.e. it is
|
113
|
+
# not ready for use)
|
114
|
+
attribute :processing
|
115
|
+
|
111
116
|
# @!attribute uuid
|
112
117
|
# @return [String] the UUID used for unique file name generation
|
113
118
|
attribute :uuid
|
@@ -537,6 +542,21 @@ module LWS::Resource
|
|
537
542
|
# @!attribute parent_id
|
538
543
|
# @return [Integer, nil] the ID of the parent folder of the folder
|
539
544
|
attribute :parent_id
|
545
|
+
|
546
|
+
# @!attribute permission
|
547
|
+
# A UNIX-style permission that indicates whether the folder is shared and
|
548
|
+
# who can read/write in it:
|
549
|
+
# * 700: not shared (the default), only readable/writable by the
|
550
|
+
# associated account
|
551
|
+
# * 740: readable by anyone in the company
|
552
|
+
# * 770: readable/writeable by anyone in the company
|
553
|
+
# @return ["700", "740", "770"] the (share) permission of the folder
|
554
|
+
attribute :permission
|
555
|
+
|
556
|
+
# @!attribute temporary
|
557
|
+
# @return [Boolean] whether the folder is temporary and thus will be
|
558
|
+
# deleted after some time
|
559
|
+
attribute :temporary
|
540
560
|
end
|
541
561
|
|
542
562
|
end
|
data/lib/lws/version.rb
CHANGED
@@ -30,6 +30,8 @@ class TestDigitalSignageChannel < MiniTest::Test
|
|
30
30
|
assert_instance_of(Display, @channel.display)
|
31
31
|
assert_instance_of(Channel::Group, @channel.groups.first)
|
32
32
|
assert_instance_of(Player, @channel.players.first)
|
33
|
+
# FIXME: Missing endpoint in LWS
|
34
|
+
#assert_instance_of(Slide, @channel.slides.first)
|
33
35
|
assert_instance_of(Channel::Tag, @channel.tags.first)
|
34
36
|
assert_instance_of(Channel::TimeSchedule, @channel.time_schedule)
|
35
37
|
assert_instance_of(Channel::TimeScheduleOverride, @channel.time_schedule_overrides.first)
|
@@ -55,6 +57,8 @@ class TestDigitalSignageChannelGroup < MiniTest::Test
|
|
55
57
|
assert_instance_of(Channel, @channel_group.channels.first)
|
56
58
|
assert_instance_of(LWS::Auth::Company, @channel_group.company)
|
57
59
|
assert_instance_of(Channel::Group, @channel_group.parent)
|
60
|
+
# FIXME: Missing endpoint in LWS
|
61
|
+
#assert_instance_of(Slide, @channel_group.slides.first)
|
58
62
|
assert_instance_of(Channel::Group::Tag, @channel_group.tags.first)
|
59
63
|
assert_instance_of(Channel::TimeScheduleOverride, @channel_group.time_schedule_overrides.first)
|
60
64
|
end
|
@@ -157,7 +161,7 @@ class TestDigitalSignageChannelTimeScheduleOverride < MiniTest::Test
|
|
157
161
|
include LWS::DigitalSignage
|
158
162
|
|
159
163
|
def setup
|
160
|
-
@channel_time_schedule_override = Channel::TimeScheduleOverride.
|
164
|
+
@channel_time_schedule_override = Channel::TimeScheduleOverride.find(1)
|
161
165
|
end
|
162
166
|
|
163
167
|
def test_valid
|
@@ -1002,6 +1006,8 @@ class TestDigitalSignageSlide < MiniTest::Test
|
|
1002
1006
|
|
1003
1007
|
def test_valid_associations
|
1004
1008
|
assert_instance_of(LWS::Auth::Account, @slide.account)
|
1009
|
+
assert_instance_of(Channel, @slide.channels.first)
|
1010
|
+
assert_instance_of(Channel::Group, @slide.channel_groups.first)
|
1005
1011
|
assert_instance_of(LWS::Auth::Company, @slide.company)
|
1006
1012
|
assert_instance_of(Layout, @slide.layout)
|
1007
1013
|
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.0.
|
4
|
+
version: 7.0.2
|
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: 2020-
|
11
|
+
date: 2020-03-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday_middleware
|
@@ -296,27 +296,27 @@ signing_key:
|
|
296
296
|
specification_version: 4
|
297
297
|
summary: LeftClick web services library for Ruby
|
298
298
|
test_files:
|
299
|
-
- test/
|
299
|
+
- test/fixtures/auth.yml
|
300
|
+
- test/fixtures/permissions.yml
|
300
301
|
- test/json_parser_test.rb
|
301
302
|
- test/test_helper.rb
|
302
303
|
- test/setup_test.rb
|
303
|
-
- test/
|
304
|
-
- test/api_token_middleware_test.rb
|
304
|
+
- test/auth_test.rb
|
305
305
|
- test/stubbing_test.rb
|
306
|
-
- test/presence_test.rb
|
307
306
|
- test/digital_signage_test.rb
|
308
|
-
- test/
|
309
|
-
- test/
|
310
|
-
- test/
|
311
|
-
- test/
|
312
|
-
- test/maps_test.rb
|
313
|
-
- test/corporate_website_test.rb
|
307
|
+
- test/api_token_middleware_test.rb
|
308
|
+
- test/config/full.yml
|
309
|
+
- test/config/switch_env.yml
|
310
|
+
- test/config/invalid.yml
|
314
311
|
- test/config/tokens.yml
|
315
312
|
- test/config/empty.yml
|
316
313
|
- test/config/endpoints.yml
|
317
|
-
- test/
|
318
|
-
- test/
|
319
|
-
- test/
|
314
|
+
- test/maps_test.rb
|
315
|
+
- test/logger_test.rb
|
316
|
+
- test/ticket_test.rb
|
317
|
+
- test/support/with_env.rb
|
320
318
|
- test/caching_test.rb
|
321
|
-
- test/
|
322
|
-
- test/
|
319
|
+
- test/presence_test.rb
|
320
|
+
- test/corporate_website_test.rb
|
321
|
+
- test/resource_test.rb
|
322
|
+
- test/generic_test.rb
|