wcc-jtj-client 0.1.1 → 0.1.2

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: 1bad5a870ee2626cf3ca961591d8d9ccc9d33ad6cf8ec85ac5b93347b376013a
4
- data.tar.gz: 1ba7d0c5ad2fc58d904bfcc3b6fb388fd2796d5cf0dfaa2db99aa19b43fd999a
3
+ metadata.gz: 835ccc14a2a9312be469424004cf257cd1eb4874199fb768ccd1bfdb47a3aefa
4
+ data.tar.gz: 56b6f796658eb2828836c9fb281dc089476c94e2a6495eb279a8f371a10f23f0
5
5
  SHA512:
6
- metadata.gz: '05091af67a5b43c4704ba50e28675b7509ab46d5f10cb1bd176d91fc6a979cd69f51a67595448e938f6c06a9ef641e047cae454cf943c72f549c232e355842e9'
7
- data.tar.gz: ade4a32a1fedcced55f05cb99ba23b8dd6fcc930324ea987d75f6e485587e6785566700b30760c23becb68e48f90f855a068d39115b970ba7535243da201eeda
6
+ metadata.gz: 5d0832ed505ddfe1d466764cd26d75cc7f3da62213589409ef04ca1ae73fc9feae9c0a12687415a9c9714f0302fa5d8f235c6cbdc06b8cc89d82f5100a0e55f4
7
+ data.tar.gz: 7a770f814a47ae183389744a60458b454d23b5ba65416f72729e45cd5d39c13ba1b1e6e7aa8ab12e73a81241d70fa8412a6317fb600254ba1ae7ebb3981abd0a
@@ -40,6 +40,13 @@ module WCC::JTJ::Client::Schemas
40
40
  end
41
41
  end
42
42
 
43
+ def podcast
44
+ @podcast ||=
45
+ if raw['podcast']
46
+ WCC::JTJ::Client::Schemas::Podcast.new(raw['podcast'], client: @client)
47
+ end
48
+ end
49
+
43
50
  def links
44
51
  OpenStruct.new(raw['links']) if raw['links']
45
52
  end
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative '../utils'
4
+
5
+ module WCC::JTJ::Client::Schemas
6
+ class Podcast < Base
7
+ define_camelcase_alias(
8
+ 'promo_text'
9
+ ) do |camelcase|
10
+ raw[camelcase]
11
+ end
12
+
13
+ def links
14
+ OpenStruct.new(raw['links']) if raw['links']
15
+ end
16
+ end
17
+ end
@@ -3,7 +3,7 @@
3
3
  module WCC
4
4
  module JTJ
5
5
  class Client
6
- VERSION = '0.1.1'
6
+ VERSION = '0.1.2'
7
7
  end
8
8
  end
9
9
  end
@@ -12,6 +12,7 @@ require_relative './client/schemas/curriculum_summary'
12
12
  require_relative './client/schemas/entry_summary'
13
13
  require_relative './client/schemas/entry'
14
14
  require_relative './client/schemas/scripture'
15
+ require_relative './client/schemas/podcast'
15
16
  require_relative './client/schemas/writer'
16
17
  require_relative './client/schemas/memory_verse_summary'
17
18
  require_relative './client/schemas/memory_verse'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wcc-jtj-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Watermark Dev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-11-09 00:00:00.000000000 Z
11
+ date: 2022-11-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -52,6 +52,7 @@ files:
52
52
  - lib/wcc/jtj/client/schemas/entry_summary.rb
53
53
  - lib/wcc/jtj/client/schemas/memory_verse.rb
54
54
  - lib/wcc/jtj/client/schemas/memory_verse_summary.rb
55
+ - lib/wcc/jtj/client/schemas/podcast.rb
55
56
  - lib/wcc/jtj/client/schemas/schema_validation_error.rb
56
57
  - lib/wcc/jtj/client/schemas/scripture.rb
57
58
  - lib/wcc/jtj/client/schemas/writer.rb
@@ -77,7 +78,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
77
78
  - !ruby/object:Gem::Version
78
79
  version: '0'
79
80
  requirements: []
80
- rubygems_version: 3.1.6
81
+ rubygems_version: 3.3.22
81
82
  signing_key:
82
83
  specification_version: 4
83
84
  summary: Internal Watermark.org gem, not licensed for external use.