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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4cfd4d2b9ebc649615031a04a68c930ef94e22f7b4523386113983c1f74aa46a
|
4
|
+
data.tar.gz: 7a4cff01fdd43b9f351d8e3a65e496f2aa58149bb4d2feb9501e57506a594dde
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6eb5644e62108ebf3efbc7b4e239ce468d493e6eb3ed58220d937f4ee0001124adf1e16c6bc5e3ba0021df6446c5c12b4a31e5aa35943a61c997e132a0397d4c
|
7
|
+
data.tar.gz: 5e12c08388d4d82ffa9421c89b234a1cf06fc8fd155672feb945ab7c5cbb01cd2d9da45da18ec0571a143680c8855d9e5defdd06bc9043a57360f05c7653dca4
|
@@ -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
|
data/lib/wcc/jtj/client.rb
CHANGED
@@ -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.
|
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-
|
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.
|
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: []
|