wcc-jtj-client 0.1.11 → 0.1.12

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: 78b1ad1f00d9cc68a26c29f73c1b0d4aa9543cdb73faed89b988c3cb31445524
4
- data.tar.gz: f76fc49bdc4d216f0ed53fe3c196d0a000d25581e3566eaec67ad8e8d2d113c6
3
+ metadata.gz: 4cfd4d2b9ebc649615031a04a68c930ef94e22f7b4523386113983c1f74aa46a
4
+ data.tar.gz: 7a4cff01fdd43b9f351d8e3a65e496f2aa58149bb4d2feb9501e57506a594dde
5
5
  SHA512:
6
- metadata.gz: 34119ea2191d16488c0abda2de1b467761b920387cc37a69690cabf757d97413ea84b9816247b6762d14a0e1c382502f40c119e3e7c15f1d2b05ed8e4f17901f
7
- data.tar.gz: 901b284e47ac85bf265e80463ce19ee0476ffedb51e34c53306116db984e688fa03e3b0ea4088bd701e825bf907443f2f1cfe0d2e65d47685a137146c99a0d40
6
+ metadata.gz: 6eb5644e62108ebf3efbc7b4e239ce468d493e6eb3ed58220d937f4ee0001124adf1e16c6bc5e3ba0021df6446c5c12b4a31e5aa35943a61c997e132a0397d4c
7
+ data.tar.gz: 5e12c08388d4d82ffa9421c89b234a1cf06fc8fd155672feb945ab7c5cbb01cd2d9da45da18ec0571a143680c8855d9e5defdd06bc9043a57360f05c7653dca4
@@ -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,58 @@
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 charts
32
+ @charts ||=
33
+ raw['charts']&.map do |chart|
34
+ WCC::JTJ::Client::Schemas::EsvResource.new(
35
+ chart, client: @client
36
+ )
37
+ end
38
+ end
39
+
40
+ def maps
41
+ @maps ||=
42
+ raw['maps']&.map do |map|
43
+ WCC::JTJ::Client::Schemas::EsvResource.new(
44
+ map, client: @client
45
+ )
46
+ end
47
+ end
48
+
49
+ def diagrams
50
+ @diagrams ||=
51
+ raw['diagrams']&.map do |diagram|
52
+ WCC::JTJ::Client::Schemas::EsvResource.new(
53
+ diagram, client: @client
54
+ )
55
+ end
56
+ end
57
+ end
58
+ 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.12'
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.12
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: 2023-11-16 00:00:00.000000000 Z
11
+ date: 2023-11-29 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
@@ -61,12 +63,12 @@ files:
61
63
  - lib/wcc/jtj/client/utils.rb
62
64
  - lib/wcc/jtj/client/version.rb
63
65
  - wcc-jtj-client.gemspec
64
- homepage:
66
+ homepage:
65
67
  licenses:
66
68
  - Not licensed for external use
67
69
  metadata:
68
70
  rubygems_mfa_required: 'true'
69
- post_install_message:
71
+ post_install_message:
70
72
  rdoc_options: []
71
73
  require_paths:
72
74
  - lib
@@ -81,8 +83,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
81
83
  - !ruby/object:Gem::Version
82
84
  version: '0'
83
85
  requirements: []
84
- rubygems_version: 3.4.11
85
- signing_key:
86
+ rubygems_version: 3.1.6
87
+ signing_key:
86
88
  specification_version: 4
87
89
  summary: Internal Watermark.org gem, not licensed for external use.
88
90
  test_files: []