wcc-media-client 0.7.3 → 0.7.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/wcc/media/active_record_shim.rb +1 -1
- data/lib/wcc/media/message.rb +5 -0
- data/lib/wcc/media/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f7933fd357d12e89fc43575a4dad5153bc9dd52dc4dc8678d45fa4992d523479
|
4
|
+
data.tar.gz: 11ddb0d5a0ba43a82f79198aeb3b0b3c48dc730cf705b7494c2bbfc4e7def919
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 83130887ea23f8e03da72ae4937c19ebc5e74d45d1413f75775df96ee081b0f04dc908cb22fa1666412a29ed551b35b71c683614bed33e099a81f7be1644b3fc
|
7
|
+
data.tar.gz: c922f90ed311a889aecd06f6e7c9fa95c3777c571096354ce7775665466cb9b88510cf0cbb7b030142fd09c6cb4b0e7eeb4b0d4380262ee0f09b400491e5a8a9
|
@@ -70,7 +70,7 @@ module WCC::Media::ActiveRecordShim
|
|
70
70
|
def where(**conditions)
|
71
71
|
# TODO: return a Query object that implements more of the ActiveRecord query interface
|
72
72
|
# https://guides.rubyonrails.org/active_record_querying.html#conditions
|
73
|
-
find_all(conditions)
|
73
|
+
find_all(**conditions)
|
74
74
|
end
|
75
75
|
end
|
76
76
|
|
data/lib/wcc/media/message.rb
CHANGED
@@ -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]
|
@@ -42,6 +43,10 @@ class WCC::Media::Message < WCC::Media::Base
|
|
42
43
|
raw['flags']['hide_from_internal_search'] || false
|
43
44
|
end
|
44
45
|
|
46
|
+
def archived?
|
47
|
+
raw['flags']['archived'] || false
|
48
|
+
end
|
49
|
+
|
45
50
|
def speakers
|
46
51
|
(raw['speakers'] || []).map { |val| WCC::Media::Speaker.new(val) }
|
47
52
|
end
|
data/lib/wcc/media/version.rb
CHANGED
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
|
+
version: 0.7.5
|
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:
|
11
|
+
date: 2024-02-15 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
|
@@ -73,7 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
73
73
|
version: '0'
|
74
74
|
requirements: []
|
75
75
|
rubygems_version: 3.1.6
|
76
|
-
signing_key:
|
76
|
+
signing_key:
|
77
77
|
specification_version: 4
|
78
78
|
summary: ''
|
79
79
|
test_files: []
|