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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: caadca5cd377ef986fe543832065034345b663edd712f6fcee97d532c5b85203
4
- data.tar.gz: 248abeac8b28b415dd153ea230ff22613ef29a784b0cbadd11921d76bc5901a7
3
+ metadata.gz: 04acb04f4b67b4c455bbf9406090419eb77c3ad03c7f0cd44c0c83e19c6a2bba
4
+ data.tar.gz: 37a89024ff34103d7e36d5d554ae30d27a6d306bb0448caea2363e94d3603420
5
5
  SHA512:
6
- metadata.gz: bbbcb5e1724786a88d157c84da7a15ee96ce2b16a9bf89cfe9087537b702b441d4c48fac49c1d7c88ab484778af8ee4c9c7d92c2ebd94eb44e15e60c9ca6826e
7
- data.tar.gz: db36ad93abee600eaddf8701add8dc803b9ecfc480a61dc68dc2aeb275ebf605a5fe03a15e3953418a7a28412f608f4b77b450ff93569af6fbae99ee2fe7c4b0
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) fetching...
99
- [relaton-ccsd] (CCSDS 720.6-Y-1) found `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) fetching...
117
- [relaton-ccsd] (CCSDS 230.2-G-1) found `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)) fetching...
128
- [relaton-ccsd] (CCSDS 720.4-Y-1 (DOC)) found `CCSDS 720.4-Y-1`.
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)) fetching...
143
- [relaton-ccsd] (CCSDS 720.4-Y-1 (PDF)) found `CCSDS 720.4-Y-1`.
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: invalid doctype: `#{args[:doctype]}`"
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}) fetching..."
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}) not found."
34
+ Util.warn "(#{reference}) Not found."
35
35
  return nil
36
36
  end
37
- Util.warn "(#{reference}) found `#{hits.first.code}`."
37
+ Util.warn "(#{reference}) Found: `#{hits.first.code}`."
38
38
  doc
39
39
  end
40
40
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RelatonCcsds
4
- VERSION = "1.16.2"
4
+ VERSION = "1.16.3"
5
5
  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.2
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-09-29 00:00:00.000000000 Z
11
+ date: 2023-10-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mechanize