wcc-jtj-client 0.1.11 → 0.1.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 78b1ad1f00d9cc68a26c29f73c1b0d4aa9543cdb73faed89b988c3cb31445524
4
- data.tar.gz: f76fc49bdc4d216f0ed53fe3c196d0a000d25581e3566eaec67ad8e8d2d113c6
3
+ metadata.gz: 60e6385eb23ecc9b01ebd8b44c34c242f32573a9ae465ffb320fa92b3a486d5f
4
+ data.tar.gz: 44b80530b513faa1a894a59156788f6f355abc6e9a72f03c1279de4e213f8a32
5
5
  SHA512:
6
- metadata.gz: 34119ea2191d16488c0abda2de1b467761b920387cc37a69690cabf757d97413ea84b9816247b6762d14a0e1c382502f40c119e3e7c15f1d2b05ed8e4f17901f
7
- data.tar.gz: 901b284e47ac85bf265e80463ce19ee0476ffedb51e34c53306116db984e688fa03e3b0ea4088bd701e825bf907443f2f1cfe0d2e65d47685a137146c99a0d40
6
+ metadata.gz: e8f35915537e4864c26fdbb7f83a6f069dc08a09a3f95065d3409ce92edf1d16e0b6de4a52535a6590f57d9890520d83074eb086c5b7c10decdc9044a3250ccd
7
+ data.tar.gz: ee80882537fad7edccf88512a96ca552ee5a9cb3717ff2990abec9b4fed6f7d57be5e319ff09fea2a1aa0bd1322adb433ef6a732d8a10a628ec1786f28bda85a
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative '../utils'
4
+
5
+ module WCC::JTJ::Client::Schemas
6
+ class EsvResource < Base
7
+ define_camelcase_alias(
8
+ 'id',
9
+ 'title',
10
+ 'html'
11
+ ) do |camelcase|
12
+ raw[camelcase]
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,76 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative '../utils'
4
+
5
+ module WCC::JTJ::Client::Schemas
6
+ class FrontMatter < Base
7
+ define_camelcase_alias(
8
+ 'id'
9
+ ) do |camelcase|
10
+ raw[camelcase]
11
+ end
12
+
13
+ def introductions
14
+ @introductions ||=
15
+ raw['introductions']&.map do |introduction|
16
+ WCC::JTJ::Client::Schemas::EsvResource.new(
17
+ introduction, client: @client
18
+ )
19
+ end
20
+ end
21
+
22
+ def facts
23
+ @facts ||=
24
+ raw['facts']&.map do |fact|
25
+ WCC::JTJ::Client::Schemas::EsvResource.new(
26
+ fact, client: @client
27
+ )
28
+ end
29
+ end
30
+
31
+ def profiles
32
+ @profiles ||=
33
+ raw['profiles']&.map do |profile|
34
+ WCC::JTJ::Client::Schemas::EsvResource.new(
35
+ profile, client: @client
36
+ )
37
+ end
38
+ end
39
+
40
+ def charts
41
+ @charts ||=
42
+ raw['charts']&.map do |chart|
43
+ WCC::JTJ::Client::Schemas::EsvResource.new(
44
+ chart, client: @client
45
+ )
46
+ end
47
+ end
48
+
49
+ def maps
50
+ @maps ||=
51
+ raw['maps']&.map do |map|
52
+ WCC::JTJ::Client::Schemas::EsvResource.new(
53
+ map, client: @client
54
+ )
55
+ end
56
+ end
57
+
58
+ def diagrams
59
+ @diagrams ||=
60
+ raw['diagrams']&.map do |diagram|
61
+ WCC::JTJ::Client::Schemas::EsvResource.new(
62
+ diagram, client: @client
63
+ )
64
+ end
65
+ end
66
+
67
+ def illustrations
68
+ @illustrations ||=
69
+ raw['illustrations']&.map do |illustration|
70
+ WCC::JTJ::Client::Schemas::EsvResource.new(
71
+ illustration, client: @client
72
+ )
73
+ end
74
+ end
75
+ end
76
+ end
@@ -22,6 +22,12 @@ module WCC::JTJ::Client::Schemas
22
22
  end
23
23
  alias_method :annotatedVerses, :annotated_verses
24
24
 
25
+ def front_matter
26
+ @front_matter ||= WCC::JTJ::Client::Schemas::FrontMatter.new(
27
+ raw['front_matter'], client: @client
28
+ )
29
+ end
30
+
25
31
  def links
26
32
  OpenStruct.new(raw['links']) if raw['links']
27
33
  end
@@ -3,7 +3,7 @@
3
3
  module WCC
4
4
  module JTJ
5
5
  class Client
6
- VERSION = '0.1.11'
6
+ VERSION = '0.1.13'
7
7
  end
8
8
  end
9
9
  end
@@ -14,6 +14,8 @@ require_relative 'client/schemas/entry'
14
14
  require_relative 'client/schemas/scripture'
15
15
  require_relative 'client/schemas/study_note'
16
16
  require_relative 'client/schemas/annotated_verse'
17
+ require_relative 'client/schemas/front_matter'
18
+ require_relative 'client/schemas/esv_resource'
17
19
  require_relative 'client/schemas/podcast'
18
20
  require_relative 'client/schemas/writer'
19
21
  require_relative 'client/schemas/memory_verse_summary'
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.11
4
+ version: 0.1.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Watermark Dev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-16 00:00:00.000000000 Z
11
+ date: 2023-12-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -51,6 +51,8 @@ files:
51
51
  - lib/wcc/jtj/client/schemas/curriculum_summary.rb
52
52
  - lib/wcc/jtj/client/schemas/entry.rb
53
53
  - lib/wcc/jtj/client/schemas/entry_summary.rb
54
+ - lib/wcc/jtj/client/schemas/esv_resource.rb
55
+ - lib/wcc/jtj/client/schemas/front_matter.rb
54
56
  - lib/wcc/jtj/client/schemas/memory_verse.rb
55
57
  - lib/wcc/jtj/client/schemas/memory_verse_summary.rb
56
58
  - lib/wcc/jtj/client/schemas/podcast.rb