lws 7.4.1 → 7.5.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 +24 -3
- data/lib/lws/apps/resource.rb +3 -0
- data/lib/lws/config.rb +3 -1
- data/lib/lws/stubbing.rb +3 -1
- data/lib/lws/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b99d34205cd4ffde5b0f179231bc246389b34e72c568f57111c14c209a8e62a1
|
4
|
+
data.tar.gz: 7817ee1db2af892eb4364b42108c56649c1ba85466aa411a15159f8a02ba4206
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 846e9c8541020b87204294b639578635db29849b04a01d0255ab6cc94f3b698e0fb36509a72cc0db4d64e56387634d5afce424e4d9ff6a5fa6d37b0ce7f5b415
|
7
|
+
data.tar.gz: 788437c7e9b84bbe701473eec1d76a9c9326e37dfcfb1959f5a9a7f6f415ba9d532e6b98603354f5b36cd3f73b8ba97d99aecc6de96a976473df605b8dffe919
|
@@ -710,6 +710,10 @@ module LWS::DigitalSignage
|
|
710
710
|
# @return [String] the customizable attribute/property name
|
711
711
|
attribute :attr
|
712
712
|
|
713
|
+
# @!attribute description
|
714
|
+
# @return [String] the customizable attribute/property description
|
715
|
+
attribute :description
|
716
|
+
|
713
717
|
# @!attribute element
|
714
718
|
# @return [Layout::element] the layout element the customizable property
|
715
719
|
# is for
|
@@ -719,9 +723,13 @@ module LWS::DigitalSignage
|
|
719
723
|
# @return [Integer] the ID of the layout element the customizable is for
|
720
724
|
attribute :element_id
|
721
725
|
|
722
|
-
# @!attribute
|
723
|
-
# @return [String] the customizable attribute/property
|
724
|
-
attribute :
|
726
|
+
# @!attribute help
|
727
|
+
# @return [String] the customizable attribute/property help text
|
728
|
+
attribute :help
|
729
|
+
|
730
|
+
# @!attribute placeholder
|
731
|
+
# @return [String] the customizable attribute/property placholder text
|
732
|
+
attribute :placeholder
|
725
733
|
|
726
734
|
# @!attribute presets
|
727
735
|
# This is a list of mappings of the preset label (key +"label"+) to the
|
@@ -730,6 +738,14 @@ module LWS::DigitalSignage
|
|
730
738
|
# @return [Array<Hash{String => String}>] the presets for attribute values
|
731
739
|
attribute :presets
|
732
740
|
|
741
|
+
# @!attribute required
|
742
|
+
# @return [String] whether the customizable attribute/property is required
|
743
|
+
attribute :required
|
744
|
+
|
745
|
+
# @!attribute title
|
746
|
+
# @return [String] the customizable attribute/property title
|
747
|
+
attribute :title
|
748
|
+
|
733
749
|
# @!attribute uuid
|
734
750
|
# @return [String] the UUID of the customizable attribute/property
|
735
751
|
attribute :uuid
|
@@ -953,6 +969,11 @@ module LWS::DigitalSignage
|
|
953
969
|
# @return [Boolean] whether the player is being serviced/is in service
|
954
970
|
attribute :service
|
955
971
|
|
972
|
+
# @!attribute service_reason
|
973
|
+
# @return [String, nil] the reason the player is being serviced/is in
|
974
|
+
# service
|
975
|
+
attribute :service_reason
|
976
|
+
|
956
977
|
# @!attribute status [r]
|
957
978
|
# @return ["unknown", "good", "warning", "bad"] the player status
|
958
979
|
attribute :status
|
data/lib/lws/apps/resource.rb
CHANGED
@@ -522,6 +522,9 @@ module LWS::Resource
|
|
522
522
|
# @return [String] the description of the folder
|
523
523
|
attribute :description
|
524
524
|
|
525
|
+
# @!attribute email [r]
|
526
|
+
# @return [String] the email adress of the folder
|
527
|
+
|
525
528
|
# @!attribute folders
|
526
529
|
# @return [Array<Folder>] the folders contained in the folder
|
527
530
|
has_many :folders
|
data/lib/lws/config.rb
CHANGED
@@ -155,7 +155,9 @@ module LWS
|
|
155
155
|
# @return [Boolean] whether the config file was used
|
156
156
|
def load_config_file(config_file, force_environment = nil)
|
157
157
|
return false unless File.exist? config_file
|
158
|
-
config_data =
|
158
|
+
config_data = File.open(config_file) do |f|
|
159
|
+
YAML.safe_load(f, filename: config_file, aliases: true)
|
160
|
+
end
|
159
161
|
default_config = config_data["default"] || {}
|
160
162
|
|
161
163
|
self.environment = force_environment ||
|
data/lib/lws/stubbing.rb
CHANGED
@@ -57,7 +57,9 @@ module LWS
|
|
57
57
|
end
|
58
58
|
@fixtures = {}
|
59
59
|
Dir["#{stubs_dir}/**/*.yml"].each do |yml_file|
|
60
|
-
yml =
|
60
|
+
yml = File.open(yml_file) do |f|
|
61
|
+
YAML.safe_load(f, filename: yml_file, aliases: true)
|
62
|
+
end
|
61
63
|
@fixtures.deep_merge! yml
|
62
64
|
end
|
63
65
|
|
data/lib/lws/version.rb
CHANGED
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.5.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:
|
11
|
+
date: 2022-05-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday-http-cache
|