lws 6.1.2 → 6.1.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6c28a47576f5116e961f09171fffaa9ce938ac66
4
- data.tar.gz: 1da0aa547debc76bd41de01e5adf1a4c3f1c4e9c
3
+ metadata.gz: e6267aca741594637c3e7b0ddae082ac3cc98b41
4
+ data.tar.gz: b7eb1f7e0125fe0cbc5684f571090f90b81fe99b
5
5
  SHA512:
6
- metadata.gz: 427a6172d9968b9137ac68ae67be607ac5277dc2a961332e1dd8b48c3544d34996d4e91c4b465443fd0c858481413dd74ea61e2472c041f96e5c7a37deba112f
7
- data.tar.gz: 165cba8de10e722a3786c9bedc032fb6f64f818b88da6940be9fde35837478c02b461d8e16cabedc46c747405724b3001c435f7f89be9e81d1c1b06d7b0c1cb9
6
+ metadata.gz: c8bab2ce1b6a0b03332e5e159ddbd9adf134ae386e0886bed568020b8b02ac919fb2c3c7d75692bd67e927805828a5aecc3db02a9eca125732de8d207e957f65
7
+ data.tar.gz: c4e2ebb8bd41a53c6fee1df9cdba2ab89c4363a60a0ae91496d57fe050eba5c189f6dc512c442b1a51cfc5122bc562551fdbe0ad12f82e7b51de7b6620d5120a
data/CHANGELOG.md CHANGED
@@ -4,6 +4,15 @@ 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.3
8
+
9
+ * Fix `#find` on has many-associations not working
10
+
11
+ ### Development
12
+
13
+ * Many fixes in the gemspec
14
+ * Use the SpecReporter for tests
15
+
7
16
  ## v6.1.2
8
17
 
9
18
  * Small tweaks to LWS Console
data/lib/lws/apps/auth.rb CHANGED
@@ -240,7 +240,7 @@ module LWS::Auth
240
240
  # @!attribute usage_reports
241
241
  # @return [Array<UsageReport>] the usage reports available/generated
242
242
  # for the company
243
- has_many :usage_reports, uri: "company/:company_id/reports"
243
+ has_many :usage_reports, uri: "company/:company_id/reports/(:id)"
244
244
 
245
245
  # @!attribute uuid
246
246
  # @return [String] the UUID of the company
@@ -125,7 +125,7 @@ module LWS::DigitalSignage
125
125
  # @!attribute channels
126
126
  # @return [Array<Channel>] the channels that are part of the channel group
127
127
  has_many :channels, class_name: "LWS::DigitalSignage::Channel",
128
- uri: "channel/groups/:group_id/channels"
128
+ uri: "channel/groups/:group_id/channels/(:id)"
129
129
 
130
130
  # @!attribute company
131
131
  # @return [LWS::Auth::Company] the company the channel group belongs to
@@ -152,12 +152,12 @@ module LWS::DigitalSignage
152
152
  #@!attribute tags
153
153
  # @return [Array<Channel::Group::Tag>] the tags of the channel group
154
154
  has_many :tags, class_name: "LWS::DigitalSignage::Channel::Group::Tag",
155
- uri: "channel/groups/:group_id/tags"
155
+ uri: "channel/groups/:group_id/tags/(:id)"
156
156
 
157
157
  # @!attribute time_schedule_overrides
158
158
  # @return [Array<Channel::TimeScheduleOverride>] the time schedule overrides of the channel group
159
159
  has_many :time_schedule_overrides, class_name: "LWS::DigitalSignage::Channel::TimeScheduleOverride",
160
- uri: "channel/groups/:group_id/time_schedule_overrides"
160
+ uri: "channel/groups/:group_id/time_schedule_overrides/(:id)"
161
161
 
162
162
  # @!attribute created_at [r]
163
163
  # @return [String] the timestamp of when the channel group was created
@@ -272,13 +272,13 @@ module LWS::DigitalSignage
272
272
  # @!attribute channels
273
273
  # @return [Array<Channel>] the channels using the time schedule
274
274
  has_many :channels, class_name: "LWS::DigitalSignage::Channel",
275
- uri: "channel/time_schedules/:time_schedule_id/channels"
275
+ uri: "channel/time_schedules/:time_schedule_id/channels/(:id)"
276
276
 
277
277
  # @!attribute days
278
278
  # @return [Array<Channel::TimeSchedule::Day>] the days included in the
279
279
  # channel time schedule
280
280
  has_many :days, class_name: "LWS::DigitalSignage::Channel::TimeSchedule::Day",
281
- uri: "channel/time_schedules/:time_schedule_id/days"
281
+ uri: "channel/time_schedules/:time_schedule_id/days/(:id)"
282
282
 
283
283
  # @!attribute name
284
284
  # @return [String] the name of the channel time schedule
@@ -349,7 +349,7 @@ module LWS::DigitalSignage
349
349
  # @!attribute channels
350
350
  # @return [Array<Channel>] the channels using the time schedule override
351
351
  has_many :channels, class_name: "LWS::DigitalSignage::Channel",
352
- uri: "channel/time_schedule_overrides/:time_schedule_override_id/channels"
352
+ uri: "channel/time_schedule_overrides/:time_schedule_override_id/channels/(:id)"
353
353
 
354
354
  # @!attribute company
355
355
  # @return [LWS::Auth::Company] the company the channel time schedule override belongs to
@@ -366,7 +366,7 @@ module LWS::DigitalSignage
366
366
  # @!attribute channel_groups
367
367
  # @return [Array<Channel::Group>] the channel groups using the time schedule override
368
368
  has_many :groups, class_name: "LWS::DigitalSignage::Channel::Group",
369
- uri: "channel/time_schedule_overrides/:time_schedule_override_id/groups"
369
+ uri: "channel/time_schedule_overrides/:time_schedule_override_id/groups/(:id)"
370
370
 
371
371
  # @!attribute name
372
372
  # @return [String] the name of the channel time schedule override
@@ -545,7 +545,7 @@ module LWS::DigitalSignage
545
545
  # @!attribute displays
546
546
  # @return [Array<Display>] the displays supporting the display resolution
547
547
  has_many :displays, class_name: "LWS::DigitalSignage::Display",
548
- uri: "display/resolutions/:resolution_id/displays"
548
+ uri: "display/resolutions/:resolution_id/displays/(:id)"
549
549
 
550
550
  # @!attribute height
551
551
  # @return [Fixnum] the height of the resolution
@@ -555,7 +555,7 @@ module LWS::DigitalSignage
555
555
  # @return [Array<Player::Model>] the player models that support the
556
556
  # display resolution
557
557
  has_many :models, class_name: "LWS::DigitalSignage::Player::Model",
558
- uri: "display/resolutions/:resolution_id/models"
558
+ uri: "display/resolutions/:resolution_id/models/(:id)"
559
559
 
560
560
  # @!attribute scanning_mode
561
561
  # @return ["progressive", "interlaced"] the scanning mode setting of
@@ -710,7 +710,7 @@ module LWS::DigitalSignage
710
710
  # @!attribute models
711
711
  # @return [Array<Player::Model>] the player models that use the component
712
712
  has_many :models, class_name: "LWS::DigitalSignage::Player::Model",
713
- uri: "player/components/:component_id/models"
713
+ uri: "player/components/:component_id/models/(:id)"
714
714
 
715
715
  # @!attribute name
716
716
  # @return [String] the name of the player component
@@ -719,7 +719,7 @@ module LWS::DigitalSignage
719
719
  # @!attribute parts
720
720
  # @return [Array<Player::Component::Part>] the parts the component is made out of
721
721
  has_many :parts, class_name: "LWS::DigitalSignage::Player::Component::Part",
722
- uri: "player/components/:component_id/parts"
722
+ uri: "player/components/:component_id/parts/(:id)"
723
723
 
724
724
  # @!attribute slug [r]
725
725
  # @return [String] the slug(ified name) of the player component
@@ -815,7 +815,7 @@ module LWS::DigitalSignage
815
815
  # @!attribute players
816
816
  # @return [Array<Player>] the players the configuration is used for
817
817
  has_many :players, class_name: "LWS::DigitalSignage::Player",
818
- uri: "player/configurations/:configuration_id/players"
818
+ uri: "player/configurations/:configuration_id/players/(:id)"
819
819
 
820
820
  # @!attribute predefined_configuration
821
821
  # @return [Player::PredefinedConfiguration, nil] the predefined
@@ -831,7 +831,7 @@ module LWS::DigitalSignage
831
831
  # @!attribute settings
832
832
  # @return [Player::Configuration::Setting] the settings of the player configuration
833
833
  has_many :settings, class_name: "LWS::DigitalSignage::Player::Configuration::Setting",
834
- uri: "player/configurations/:configuration_id/settings"
834
+ uri: "player/configurations/:configuration_id/settings/(:id)"
835
835
 
836
836
  # @!attribute created_at [r]
837
837
  # @return [String] the timestamp of when the player configuration was created
@@ -922,7 +922,7 @@ module LWS::DigitalSignage
922
922
  # @return [Array<Player::Feedback::Result>] the results of the player feedback
923
923
  # FIXME: Chained associations don't work yet in Spyke (#89)
924
924
  has_many :results, class_name: "LWS::DigitalSignage::Player::Feedback::Result",
925
- uri: "players/:player_id/feedbacks/:feedback_id/results"
925
+ uri: "players/:player_id/feedbacks/:feedback_id/results/(:id)"
926
926
 
927
927
  # @!attribute created_at [r]
928
928
  # @return [String] the timestamp of when the player feedback was created
@@ -1030,19 +1030,19 @@ module LWS::DigitalSignage
1030
1030
  # @return [Array<Player::Os::Branch>] the player OS branches allowed for
1031
1031
  # the player model
1032
1032
  has_many :branches, class_name: "LWS::DigitalSignage::Player::Os::Branch",
1033
- uri: "player/models/:model_id/branches"
1033
+ uri: "player/models/:model_id/branches/(:id)"
1034
1034
 
1035
1035
  # @!attribute capabilities
1036
1036
  # @return [Array<Player::Model::Capability>] the capabilities of the
1037
1037
  # player model
1038
1038
  has_many :capabilities, class_name: "LWS::DigitalSignage::Player::Model::Capability",
1039
- uri: "player/models/:model_id/capabilities"
1039
+ uri: "player/models/:model_id/capabilities/(:id)"
1040
1040
 
1041
1041
  # @!attribute components
1042
1042
  # @return [Array<Player::Component>] the player components that are
1043
1043
  # used in the player model
1044
1044
  has_many :components, class_name: "LWS::DigitalSignage::Player::Component",
1045
- uri: "player/models/:model_id/components"
1045
+ uri: "player/models/:model_id/components/(:id)"
1046
1046
 
1047
1047
  # @!attribute mbf_hours
1048
1048
  # @return [Fixnum] the MBF (mean time between failures) in hours of
@@ -1056,19 +1056,19 @@ module LWS::DigitalSignage
1056
1056
  # @!attribute players
1057
1057
  # @return [Array<Player>] the player that have the player model
1058
1058
  has_many :players, class_name: "LWS::DigitalSignage::Player",
1059
- uri: "player/models/:model_id/players"
1059
+ uri: "player/models/:model_id/players/(:id)"
1060
1060
 
1061
1061
  # @!attribute release_channels
1062
1062
  # @return [Array<Player::Os::ReleaseChannel>] the player OS release
1063
1063
  # channels used for the player model
1064
1064
  has_many :release_channels, class_name: "LWS::DigitalSignage::Player::Os::ReleaseChannel",
1065
- uri: "player/models/:model_id/release_channels"
1065
+ uri: "player/models/:model_id/release_channels/(:id)"
1066
1066
 
1067
1067
  # @!attribute resolutions
1068
1068
  # @return [Array<Display::Resolution>] the display resolutions
1069
1069
  # supported by the player model
1070
1070
  has_many :resolutions, class_name: "LWS::DigitalSignage::Display::Resolution",
1071
- uri: "player/models/:model_id/resolutions"
1071
+ uri: "player/models/:model_id/resolutions/(:id)"
1072
1072
 
1073
1073
  # @!attribute slug [r]
1074
1074
  # @return [String] the slug(ified name) of the player model
@@ -1227,7 +1227,7 @@ module LWS::DigitalSignage
1227
1227
  # @return [Array<Player::Os::Branch::Release>] the releases that are part
1228
1228
  # of the branch
1229
1229
  has_many :releases, class_name: "LWS::DigitalSignage::Player::Os::Branch::Release",
1230
- uri: "player/os/branches/:branch_id/releases"
1230
+ uri: "player/os/branches/:branch_id/releases/(:id)"
1231
1231
 
1232
1232
  # @!attribute slug [r]
1233
1233
  # @return [String] the slug(ified name) of the player OS branch
@@ -1281,14 +1281,14 @@ module LWS::DigitalSignage
1281
1281
  # versions in this release
1282
1282
  # FIXME: Chained associations don't work yet in Spyke (#89)
1283
1283
  has_many :package_versions, class_name: "LWS::DigitalSignage::Player::Os::Package::Version",
1284
- uri: "player/os/branches/:branch_id/releases/:release_id/package_versions"
1284
+ uri: "player/os/branches/:branch_id/releases/:release_id/package_versions/(:id)"
1285
1285
 
1286
1286
  # @!attribute package_version_changes
1287
1287
  # @return [Array<Player::Os::Package::VersionChange>] the player OS package
1288
1288
  # version changes in this release
1289
1289
  # FIXME: Chained associations don't work yet in Spyke (#89)
1290
1290
  has_many :package_version_changes, class_name: "LWS::DigitalSignage::Player::Os::Package::VersionChange",
1291
- uri: "player/os/branches/:branch_id/releases/:release_id/package_version_changes"
1291
+ uri: "player/os/branches/:branch_id/releases/:release_id/package_version_changes/(:id)"
1292
1292
 
1293
1293
  # @!attribute parent
1294
1294
  # @return [Player::Os::Branch::Release, nil] the parent of the player OS
@@ -1348,13 +1348,13 @@ module LWS::DigitalSignage
1348
1348
  # @return [Array<Player::Os::Package::VersionChange>] the version
1349
1349
  # changes of the player OS package present in branches
1350
1350
  has_many :version_changes, class_name: "LWS::DigitalSignage::Player::Os::Package::VersionChange",
1351
- uri: "player/os/packages/:package_id/version_changes"
1351
+ uri: "player/os/packages/:package_id/version_changes/(:id)"
1352
1352
 
1353
1353
  # @!attribute versions
1354
1354
  # @return [Array<Player::Os::Package::Version>] the versions of the
1355
1355
  # player OS package present in branches
1356
1356
  has_many :versions, class_name: "LWS::DigitalSignage::Player::Os::Package::Version",
1357
- uri: "player/os/packages/:package_id/versions"
1357
+ uri: "player/os/packages/:package_id/versions/(:id)"
1358
1358
 
1359
1359
  # @!attribute created_at [r]
1360
1360
  # @return [String] the timestamp of when the player OS package was created
@@ -1513,7 +1513,7 @@ module LWS::DigitalSignage
1513
1513
  # @return [Array<Player::Os::Branch>] the branches that belong to the
1514
1514
  # player OS release channel
1515
1515
  has_many :branches, class_name: "LWS::DigitalSignage::Player::Os::Branch",
1516
- uri: "player/os/release_channels/:release_channel_id/branches"
1516
+ uri: "player/os/release_channels/:release_channel_id/branches/(:id)"
1517
1517
 
1518
1518
  # @!attribute name
1519
1519
  # @return [String] the name of the player OS release channel
@@ -1522,7 +1522,7 @@ module LWS::DigitalSignage
1522
1522
  # @!attribute players
1523
1523
  # @return [Array<Player>] the players that use the player OS release channel
1524
1524
  has_many :players, class_name: "LWS::DigitalSignage::Player",
1525
- uri: "player/os/release_channels/:release_channel_id/players"
1525
+ uri: "player/os/release_channels/:release_channel_id/players/(:id)"
1526
1526
 
1527
1527
  # @!attribute slug [r]
1528
1528
  # @return [String] the slug(ified name) of the player OS release channel
@@ -1558,7 +1558,7 @@ module LWS::DigitalSignage
1558
1558
  # @return [Array<Player::Configuration>] the player configurations that use
1559
1559
  # the predefined player configuration as a basis
1560
1560
  has_many :configurations, class_name: "LWS::DigitalSignage::Player::Configuration",
1561
- uri: "player/predefined_configurations/:predefined_configuration_id/configurations"
1561
+ uri: "player/predefined_configurations/:predefined_configuration_id/configurations/(:id)"
1562
1562
 
1563
1563
  # @!attribute description
1564
1564
  # @return [String] the description of the predefined player configuration
@@ -1572,7 +1572,7 @@ module LWS::DigitalSignage
1572
1572
  # @return [Player::PredefinedConfiguration::Setting] the settings of the
1573
1573
  # predefined player configuration
1574
1574
  has_many :settings, class_name: "LWS::DigitalSignage::Player::PredefinedConfiguration::Setting",
1575
- uri: "player/predefined_configurations/:predefined_configuration_id/settings"
1575
+ uri: "player/predefined_configurations/:predefined_configuration_id/settings/(:id)"
1576
1576
 
1577
1577
  # @!attribute created_at [r]
1578
1578
  # @return [String] the timestamp of when the predefined player configuration was created
data/lib/lws/version.rb CHANGED
@@ -13,6 +13,6 @@ module LWS
13
13
 
14
14
  # The LWS library version.
15
15
  # @note The major and minor version parts match the LWS API version!
16
- VERSION = '6.1.2'
16
+ VERSION = '6.1.3'.freeze
17
17
 
18
18
  end
data/lws.gemspec CHANGED
@@ -12,21 +12,20 @@ Gem::Specification.new do |s|
12
12
  web services/applications using a model-based structure that abstracts from API calls
13
13
  using the available REST interfaces.}
14
14
 
15
- s.add_runtime_dependency "faraday_middleware", ">= 0.10.0", "< 1.0"
15
+ s.add_runtime_dependency 'faraday_middleware', '>= 0.10.0', '< 1.0'
16
16
  s.add_runtime_dependency 'hashie'
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
20
  s.add_runtime_dependency 'webmock', '~> 2.1.0'
21
21
 
22
- s.add_development_dependency "faraday_middleware", ">= 0.10.0", "< 1.0"
23
- s.add_development_dependency 'hashie'
22
+ s.add_development_dependency 'bundler'
24
23
  s.add_development_dependency 'minitest'
25
- s.add_development_dependency 'multi_json'
24
+ s.add_development_dependency 'minitest-reporters'
26
25
  s.add_development_dependency 'rake', '~> 0.9.2'
27
26
  s.add_development_dependency 'simplecov'
28
27
  s.add_development_dependency 'simplecov-rcov'
29
- s.add_development_dependency 'spyke', '~> 0.5.1'
28
+ s.add_development_dependency 'yard'
30
29
 
31
30
  s.files = `git ls-files`.split("\n")
32
31
  s.test_files = `git ls-files -- test/*`.split("\n")
data/test/test_helper.rb CHANGED
@@ -37,6 +37,10 @@ end
37
37
  require "logger"
38
38
  require "lws"
39
39
  require "minitest/autorun"
40
+ require "minitest/reporters"
41
+
42
+ # Select the Minitest reporter
43
+ Minitest::Reporters.use! Minitest::Reporters::SpecReporter.new
40
44
 
41
45
  # Load the support libraries
42
46
  Dir[File.expand_path("../support/**.rb", __FILE__)].each { |f| require f }
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.2
4
+ version: 6.1.3
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-03-02 00:00:00.000000000 Z
11
+ date: 2018-03-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday_middleware
@@ -101,27 +101,7 @@ dependencies:
101
101
  - !ruby/object:Gem::Version
102
102
  version: 2.1.0
103
103
  - !ruby/object:Gem::Dependency
104
- name: faraday_middleware
105
- requirement: !ruby/object:Gem::Requirement
106
- requirements:
107
- - - ">="
108
- - !ruby/object:Gem::Version
109
- version: 0.10.0
110
- - - "<"
111
- - !ruby/object:Gem::Version
112
- version: '1.0'
113
- type: :development
114
- prerelease: false
115
- version_requirements: !ruby/object:Gem::Requirement
116
- requirements:
117
- - - ">="
118
- - !ruby/object:Gem::Version
119
- version: 0.10.0
120
- - - "<"
121
- - !ruby/object:Gem::Version
122
- version: '1.0'
123
- - !ruby/object:Gem::Dependency
124
- name: hashie
104
+ name: bundler
125
105
  requirement: !ruby/object:Gem::Requirement
126
106
  requirements:
127
107
  - - ">="
@@ -149,7 +129,7 @@ dependencies:
149
129
  - !ruby/object:Gem::Version
150
130
  version: '0'
151
131
  - !ruby/object:Gem::Dependency
152
- name: multi_json
132
+ name: minitest-reporters
153
133
  requirement: !ruby/object:Gem::Requirement
154
134
  requirements:
155
135
  - - ">="
@@ -205,19 +185,19 @@ dependencies:
205
185
  - !ruby/object:Gem::Version
206
186
  version: '0'
207
187
  - !ruby/object:Gem::Dependency
208
- name: spyke
188
+ name: yard
209
189
  requirement: !ruby/object:Gem::Requirement
210
190
  requirements:
211
- - - "~>"
191
+ - - ">="
212
192
  - !ruby/object:Gem::Version
213
- version: 0.5.1
193
+ version: '0'
214
194
  type: :development
215
195
  prerelease: false
216
196
  version_requirements: !ruby/object:Gem::Requirement
217
197
  requirements:
218
- - - "~>"
198
+ - - ">="
219
199
  - !ruby/object:Gem::Version
220
- version: 0.5.1
200
+ version: '0'
221
201
  description: |-
222
202
  This library for Ruby provides access to the LeftClick
223
203
  web services/applications using a model-based structure that abstracts from API calls