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 +4 -4
- data/Gemfile +1 -1
- data/lib/wcc/media/active_record_shim.rb +2 -2
- data/lib/wcc/media/client.rb +2 -1
- data/lib/wcc/media/message.rb +6 -1
- data/lib/wcc/media/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e07a7ff44c885b37ca0036cffd404ddbbd05188fd41c2b420f68909eee9938a9
|
4
|
+
data.tar.gz: 209c3ce7653bf3ac0e7c764089a9c038130097d932fde788604021d3a0c7f0db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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', '
|
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)
|
data/lib/wcc/media/client.rb
CHANGED
@@ -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
|
|
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]
|
@@ -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
|
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
|
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.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-
|
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.
|
76
|
-
signing_key:
|
75
|
+
rubygems_version: 3.4.19
|
76
|
+
signing_key:
|
77
77
|
specification_version: 4
|
78
78
|
summary: ''
|
79
79
|
test_files: []
|