wcc-media-client 0.7.4 → 0.7.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c7520440d4d77de583283297092fe59b06db2632e7f3f6d86ef9bc8b5e9b8ec5
4
- data.tar.gz: 48bc3175cb41051b740b728af30369de2387819a2790968e1ed0e2f81cd8f38d
3
+ metadata.gz: e07a7ff44c885b37ca0036cffd404ddbbd05188fd41c2b420f68909eee9938a9
4
+ data.tar.gz: 209c3ce7653bf3ac0e7c764089a9c038130097d932fde788604021d3a0c7f0db
5
5
  SHA512:
6
- metadata.gz: 39d309a03af5b80f6c17528b6b160d119014bbf483809d668bdb2143759c3e1d1b7e48cd0bf6247a845f27949a296cbceb2cb8bbf7e62a46a339ca2119e3ec19
7
- data.tar.gz: 3bc3c84c7dd25f88dc73771311004383cd1f07476f9cea864472c548693f5d599b79d789831b8ef0d018a481362ccafa88710a3f22c14ecd1a2d5a570d5bdb11
6
+ metadata.gz: e6c24fe3194837e2c34ec930f17064d694e9c918c9d44878855c3153f45454ef8eaefbdbc62da2e552b4edcca93703bf80a02538fce9fd9189cfccfba940e0c1
7
+ data.tar.gz: 2a48823f715b1fe6ba84c2b0be3e1f0e7b301626e3e101dd84288309508563b163890a712552b181e70332c3382da4d0ffa44f8684f8b3354c43b9f17c4232ba
data/Gemfile CHANGED
@@ -25,7 +25,7 @@ group :development, :test do
25
25
  gem 'simplecov', '~> 0.21.2', require: false
26
26
  gem 'simplecov-cobertura', '~> 1.4'
27
27
  gem 'sprockets', '< 4.0'
28
- gem 'sqlite3', '~> 1.3.6'
28
+ gem 'sqlite3', '>= 1.4'
29
29
  gem 'typhoeus', '~> 1.3'
30
30
  gem 'webmock', '~> 3.0'
31
31
  end
@@ -41,7 +41,7 @@ module WCC::Media::ActiveRecordShim
41
41
  def find_by(**filters)
42
42
  raise ArgumentError, 'You must provide at least one filter' if filters.empty?
43
43
 
44
- find_all(filters).first
44
+ find_all(**filters).first
45
45
  end
46
46
 
47
47
  def model_name
@@ -64,7 +64,7 @@ module WCC::Media::ActiveRecordShim
64
64
  offset: options.delete(:start) || 0
65
65
  }
66
66
 
67
- find_all(filter).each_slice(batch_size, &block)
67
+ find_all(**filter).each_slice(batch_size, &block)
68
68
  end
69
69
 
70
70
  def where(**conditions)
@@ -1,5 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require 'ostruct'
3
4
  require 'wcc/api/rest_client'
4
5
  require_relative 'message'
5
6
  require_relative 'series'
@@ -53,7 +54,7 @@ module WCC
53
54
  super(**options)
54
55
 
55
56
  RESOURCES.each do |(endpoint, model)|
56
- instance_variable_set("@#{endpoint}", Resource.new(self, model, @options))
57
+ instance_variable_set(:"@#{endpoint}", Resource.new(self, model, @options))
57
58
  end
58
59
  end
59
60
 
@@ -32,6 +32,7 @@ class WCC::Media::Message < WCC::Media::Base
32
32
  topic
33
33
  topics
34
34
  hide_from_internal_search
35
+ archived
35
36
  ].each do |att|
36
37
  define_method att do
37
38
  raw[att]
@@ -39,7 +40,11 @@ class WCC::Media::Message < WCC::Media::Base
39
40
  end
40
41
 
41
42
  def hide_from_internal_search
42
- raw['flags']['hide_from_internal_search'] || false
43
+ raw.dig('flags', 'hide_from_internal_search') || false
44
+ end
45
+
46
+ def archived?
47
+ raw.dig('flags', 'archived') || false
43
48
  end
44
49
 
45
50
  def speakers
@@ -2,6 +2,6 @@
2
2
 
3
3
  module WCC
4
4
  module Media
5
- VERSION = '0.7.4'
5
+ VERSION = '0.7.6'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wcc-media-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.4
4
+ version: 0.7.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Watermark Dev
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-01-17 00:00:00.000000000 Z
11
+ date: 2024-05-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: wcc-api
@@ -57,7 +57,7 @@ homepage: https://github.com/watermarkchurch/media/wcc-media-client
57
57
  licenses:
58
58
  - MIT
59
59
  metadata: {}
60
- post_install_message:
60
+ post_install_message:
61
61
  rdoc_options: []
62
62
  require_paths:
63
63
  - lib
@@ -72,8 +72,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
72
72
  - !ruby/object:Gem::Version
73
73
  version: '0'
74
74
  requirements: []
75
- rubygems_version: 3.1.6
76
- signing_key:
75
+ rubygems_version: 3.4.19
76
+ signing_key:
77
77
  specification_version: 4
78
78
  summary: ''
79
79
  test_files: []