wcc-media-client 0.7.5 → 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: f7933fd357d12e89fc43575a4dad5153bc9dd52dc4dc8678d45fa4992d523479
4
- data.tar.gz: 11ddb0d5a0ba43a82f79198aeb3b0b3c48dc730cf705b7494c2bbfc4e7def919
3
+ metadata.gz: e07a7ff44c885b37ca0036cffd404ddbbd05188fd41c2b420f68909eee9938a9
4
+ data.tar.gz: 209c3ce7653bf3ac0e7c764089a9c038130097d932fde788604021d3a0c7f0db
5
5
  SHA512:
6
- metadata.gz: 83130887ea23f8e03da72ae4937c19ebc5e74d45d1413f75775df96ee081b0f04dc908cb22fa1666412a29ed551b35b71c683614bed33e099a81f7be1644b3fc
7
- data.tar.gz: c922f90ed311a889aecd06f6e7c9fa95c3777c571096354ce7775665466cb9b88510cf0cbb7b030142fd09c6cb4b0e7eeb4b0d4380262ee0f09b400491e5a8a9
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
 
@@ -40,11 +40,11 @@ class WCC::Media::Message < WCC::Media::Base
40
40
  end
41
41
 
42
42
  def hide_from_internal_search
43
- raw['flags']['hide_from_internal_search'] || false
43
+ raw.dig('flags', 'hide_from_internal_search') || false
44
44
  end
45
45
 
46
46
  def archived?
47
- raw['flags']['archived'] || false
47
+ raw.dig('flags', 'archived') || false
48
48
  end
49
49
 
50
50
  def speakers
@@ -2,6 +2,6 @@
2
2
 
3
3
  module WCC
4
4
  module Media
5
- VERSION = '0.7.5'
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.5
4
+ version: 0.7.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Watermark Dev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-02-15 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
@@ -72,7 +72,7 @@ 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
75
+ rubygems_version: 3.4.19
76
76
  signing_key:
77
77
  specification_version: 4
78
78
  summary: ''