relaton-ccsds 1.16.2 → 1.16.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.adoc +8 -8
- data/lib/relaton_ccsds/bibliographic_item.rb +1 -1
- data/lib/relaton_ccsds/bibliography.rb +3 -3
- data/lib/relaton_ccsds/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 04acb04f4b67b4c455bbf9406090419eb77c3ad03c7f0cd44c0c83e19c6a2bba
|
4
|
+
data.tar.gz: 37a89024ff34103d7e36d5d554ae30d27a6d306bb0448caea2363e94d3603420
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 859719c12454ad67c2b1614ac4ff9c65bb2b1b7d0abcb1c778ff8b593441f715ed26ad0af1084f95beff4531a84ff76b2a305124112838d5232bc74e0fb2b624
|
7
|
+
data.tar.gz: 777d29e9a4e150220bcc75836cbc9f5dab248bc0a07a17c0b86632752d9227e09fec328074f14a163c5ed005dbe33c7cd2d971dae55c7bab5f68be8f1286f3a9
|
data/README.adoc
CHANGED
@@ -95,8 +95,8 @@ item.link
|
|
95
95
|
@type="pdf">]
|
96
96
|
|
97
97
|
RelatonCcsds::Bibliography.get("CCSDS 720.6-Y-1").link
|
98
|
-
[relaton-ccsd] (CCSDS 720.6-Y-1)
|
99
|
-
[relaton-ccsd] (CCSDS 720.6-Y-1)
|
98
|
+
[relaton-ccsd] (CCSDS 720.6-Y-1) Fetching from Relaton repository ...
|
99
|
+
[relaton-ccsd] (CCSDS 720.6-Y-1) Found: `CCSDS 720.6-Y-1`.
|
100
100
|
=> [#<RelatonBib::TypedUri:0x0000000114183bb0
|
101
101
|
@content=#<Addressable::URI:0xca8 URI:https://public.ccsds.org/Pubs/720x6y1.pdf>,
|
102
102
|
@language=nil,
|
@@ -113,8 +113,8 @@ RelatonCcsds::Bibliography.get("CCSDS 720.6-Y-1").link
|
|
113
113
|
[source,ruby]
|
114
114
|
----
|
115
115
|
RelatonCcsds::Bibliography.get("CCSDS 230.2-G-1")
|
116
|
-
[relaton-ccsd] (CCSDS 230.2-G-1)
|
117
|
-
[relaton-ccsd] (CCSDS 230.2-G-1)
|
116
|
+
[relaton-ccsd] (CCSDS 230.2-G-1) Fetching from Relaton repository ...
|
117
|
+
[relaton-ccsd] (CCSDS 230.2-G-1) Found: `CCSDS 230.2-G-1`.
|
118
118
|
=> #<RelatonCcsds::BibliographicItem:0x00000001135dade0
|
119
119
|
...
|
120
120
|
----
|
@@ -124,8 +124,8 @@ RelatonCcsds::Bibliography.get("CCSDS 230.2-G-1")
|
|
124
124
|
[source,ruby]
|
125
125
|
----
|
126
126
|
item = RelatonCcsds::Bibliography.get("CCSDS 720.4-Y-1 (DOC)")
|
127
|
-
[relaton-ccsd] (CCSDS 720.4-Y-1 (DOC))
|
128
|
-
[relaton-ccsd] (CCSDS 720.4-Y-1 (DOC))
|
127
|
+
[relaton-ccsd] (CCSDS 720.4-Y-1 (DOC)) Fetching from Relaton repository ...
|
128
|
+
[relaton-ccsd] (CCSDS 720.4-Y-1 (DOC)) Found: `CCSDS 720.4-Y-1`.
|
129
129
|
=> #<RelatonCcsds::BibliographicItem:0x000000011100dfe0
|
130
130
|
...
|
131
131
|
|
@@ -139,8 +139,8 @@ pry(main)> item.link[0].content.to_s
|
|
139
139
|
=> "https://public.ccsds.org/Pubs/720x4y1.doc"
|
140
140
|
|
141
141
|
item = RelatonCcsds::Bibliography.get("CCSDS 720.4-Y-1 (PDF)")
|
142
|
-
[relaton-ccsd] (CCSDS 720.4-Y-1 (PDF))
|
143
|
-
[relaton-ccsd] (CCSDS 720.4-Y-1 (PDF))
|
142
|
+
[relaton-ccsd] (CCSDS 720.4-Y-1 (PDF)) Fetching from Relaton repository ...
|
143
|
+
[relaton-ccsd] (CCSDS 720.4-Y-1 (PDF)) Found: `CCSDS 720.4-Y-1`.
|
144
144
|
=> #<RelatonCcsds::BibliographicItem:0x0000000111004620
|
145
145
|
...
|
146
146
|
|
@@ -7,7 +7,7 @@ module RelatonCcsds
|
|
7
7
|
# @param technology_area [String, nil]
|
8
8
|
def initialize(**args)
|
9
9
|
if args[:doctype] && !DOCTYPES.include?(args[:doctype])
|
10
|
-
Util.warn "WARNING:
|
10
|
+
Util.warn "WARNING: Invalid doctype: `#{args[:doctype]}`"
|
11
11
|
end
|
12
12
|
@technology_area = args.delete(:technology_area)
|
13
13
|
super
|
@@ -27,14 +27,14 @@ module RelatonCcsds
|
|
27
27
|
def get(reference, _year = nil, opts = {}) # rubocop:disable Metrics/MethodLength
|
28
28
|
ref = reference.sub(/\s\((DOC|PDF)\)$/, "")
|
29
29
|
opts[:format] ||= Regexp.last_match(1)
|
30
|
-
Util.warn "(#{reference})
|
30
|
+
Util.warn "(#{reference}) Fetching from Relaton repository ..."
|
31
31
|
hits = search ref
|
32
32
|
doc = hits.first&.doc&.to_format(opts[:format])
|
33
33
|
unless doc
|
34
|
-
Util.warn "(#{reference})
|
34
|
+
Util.warn "(#{reference}) Not found."
|
35
35
|
return nil
|
36
36
|
end
|
37
|
-
Util.warn "(#{reference})
|
37
|
+
Util.warn "(#{reference}) Found: `#{hits.first.code}`."
|
38
38
|
doc
|
39
39
|
end
|
40
40
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: relaton-ccsds
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.16.
|
4
|
+
version: 1.16.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-10-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mechanize
|