relaton-ccsds 2.0.0 → 2.1.0

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: 69c08f27e1d25a5de1458f4521bdf494d19e4fb2fc7161f3652d33634ef1cb83
4
- data.tar.gz: e7722a8cd4c8419c27dacc69f4329891094b327114e86e5957f67faf5fd5281e
3
+ metadata.gz: 2d92c06f314e6feea0a614a115dcb22b2e3da34c7fb45da493be1f72c124e2ce
4
+ data.tar.gz: 2794019d03d8e70e02ed4bb8389ddb56b0f0d34b7d1b842d467bb5b4f78ed456
5
5
  SHA512:
6
- metadata.gz: 72fb87a40a350323f48e75380ffce68cff7a50f9ef5d71dd5f80be3dddb0240dd516a69f0bf3d303fa7b8ed4c7118f61b5153662541f4b82e3ef686d7e049100
7
- data.tar.gz: 7554bed07fef8bc0541d253dbbdc565857c9190005e51e3186dcd0f971c6e0905c6a15bd01fa82569d882a6d62d4cc55e57e659801d20d6e82857e921cc268ed
6
+ metadata.gz: 037f0144b85678d80ace2514874b1b44800314d9e24c7819de492bcfd9a9537eb4d117beed887f7a55ec35185749dd2a1739e9272c5254423c528af7a0ac1993
7
+ data.tar.gz: 28586b130c4c8fcf74d440b930e9899ecfb4ad8dafbddb63ece73b04a5eaeca3938fb5cc44f475f8930da1238a4723b9412d9d6c2c83839778f8fcda6d13a311
data/CLAUDE.md ADDED
@@ -0,0 +1,13 @@
1
+ # CLAUDE.md
2
+
3
+ ## Development
4
+
5
+ - `bundle install` — install dependencies
6
+ - `bundle exec rake spec` — run tests
7
+ - `bundle exec rubocop` — lint
8
+
9
+ ## Testing
10
+
11
+ - **Framework:** RSpec with VCR cassettes and WebMock
12
+ - **Index fixture:** `spec/fixtures/index-v1.zip` is pre-loaded into `Relaton::Index` pool in `before(:suite)` (configured in `spec/support/webmock.rb`). Run `rake spec:update_index` to refresh from relaton-data-ccsds.
13
+ - **VCR cassettes:** `spec/vcr_cassettes/` — index download requests are ignored by VCR (handled by fixture).
data/Gemfile CHANGED
@@ -5,6 +5,7 @@ source "https://rubygems.org"
5
5
  # Specify your gem's dependencies in relaton-ccsds.gemspec
6
6
  gemspec
7
7
 
8
+
8
9
  gem "equivalent-xml", "~> 0.6"
9
10
  gem "rake", "~> 13.0"
10
11
  gem "rspec", "~> 3.0"
data/README.adoc CHANGED
@@ -158,6 +158,8 @@ RelatonCcsds uses the relaton-logger gem for logging. By default, it logs to STD
158
158
 
159
159
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
160
160
 
161
+ To update the index test fixture (used by tests), run `rake spec:update_index`. This downloads the latest `index-v1.zip` from the https://github.com/relaton/relaton-data-ccsds[relaton-data-ccsds] repository.
162
+
161
163
  To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
162
164
 
163
165
  == Contributing
data/Rakefile CHANGED
@@ -10,3 +10,25 @@ require "rubocop/rake_task"
10
10
  RuboCop::RakeTask.new
11
11
 
12
12
  task default: %i[spec]
13
+
14
+ namespace :spec do
15
+ desc "Download latest CCSDS index fixture from relaton-data-ccsds"
16
+ task :update_index do
17
+ require "net/http"
18
+ require "uri"
19
+
20
+ url = "https://raw.githubusercontent.com/relaton/relaton-data-ccsds/data-v2/index-v1.zip"
21
+ dest = File.join(__dir__, "spec", "fixtures", "index-v1.zip")
22
+
23
+ puts "Downloading \#{url} ..."
24
+ uri = URI.parse(url)
25
+ response = Net::HTTP.get_response(uri)
26
+
27
+ if response.is_a?(Net::HTTPSuccess)
28
+ File.binwrite(dest, response.body)
29
+ puts "Updated \#{dest} (\#{response.body.bytesize} bytes)"
30
+ else
31
+ abort "Failed to download: HTTP \#{response.code}"
32
+ end
33
+ end
34
+ end
data/ccsdsallpubs.html CHANGED
@@ -65,60 +65,60 @@ window._wpemojiSettings = {"baseUrl":"https:\/\/s.w.org\/images\/core\/emoji\/16
65
65
  .wp-rich-text-font-awesome-icon svg::before {content: unset;}
66
66
  </style>
67
67
  <style id='gravityview_default_style-inline-css'>
68
- /* Reset for Single Entry Page */
69
- .gv-table-single-container table tr,
70
- .gv-table-single-container table thead tr:first-child th {
71
- background-color: transparent !important;
72
- color: inherit !important;
73
- }
74
-
75
- /* Settings for Multi Entry Page */
76
- table tr{
77
- background-color:#343a40;
78
- }
79
- table thead tr:first-child th {
80
- color: white;
81
- }
82
- .gv-datatables tfoot{ display: none; }
83
-
84
- .dataTables_length {
85
- display: none;
86
- }
87
-
88
- /*Only Show First 4 Columns in Parent*/
89
- .gv-datatables tbody tr td:nth-child(n+5),
90
- .gv-datatables thead tr th:nth-child(n+5) {
91
- display: none;
92
- }
93
-
94
- /*Wraps Description*/
95
- .gv-datatables tbody tr.child td {
96
- white-space: normal !important;
97
- /* Ensures wrapping */
98
- word-wrap: break-word;
99
- /* Breaks long words */
100
- overflow-wrap: break-word;
101
- /* Modern equivalent for breaking */
102
- }
103
-
104
- /*Wraps Document Title*/
105
- .gv-datatables tbody td:nth-child(3) {
106
- white-space: normal !important;
107
- /* Allows wrapping */
108
- word-wrap: break-word;
109
- /* Breaks long words */
110
- overflow-wrap: break-word;
111
- /* Modern equivalent for breaking */
112
- }
113
-
114
- /*Wraps Document Title*/
115
- .gv-datatables tbody td:nth-child(4) {
116
- white-space: normal !important;
117
- /* Allows wrapping */
118
- word-wrap: break-word;
119
- /* Breaks long words */
120
- overflow-wrap: break-word;
121
- /* Modern equivalent for breaking */
68
+ /* Reset for Single Entry Page */
69
+ .gv-table-single-container table tr,
70
+ .gv-table-single-container table thead tr:first-child th {
71
+ background-color: transparent !important;
72
+ color: inherit !important;
73
+ }
74
+
75
+ /* Settings for Multi Entry Page */
76
+ table tr{
77
+ background-color:#343a40;
78
+ }
79
+ table thead tr:first-child th {
80
+ color: white;
81
+ }
82
+ .gv-datatables tfoot{ display: none; }
83
+
84
+ .dataTables_length {
85
+ display: none;
86
+ }
87
+
88
+ /*Only Show First 4 Columns in Parent*/
89
+ .gv-datatables tbody tr td:nth-child(n+5),
90
+ .gv-datatables thead tr th:nth-child(n+5) {
91
+ display: none;
92
+ }
93
+
94
+ /*Wraps Description*/
95
+ .gv-datatables tbody tr.child td {
96
+ white-space: normal !important;
97
+ /* Ensures wrapping */
98
+ word-wrap: break-word;
99
+ /* Breaks long words */
100
+ overflow-wrap: break-word;
101
+ /* Modern equivalent for breaking */
102
+ }
103
+
104
+ /*Wraps Document Title*/
105
+ .gv-datatables tbody td:nth-child(3) {
106
+ white-space: normal !important;
107
+ /* Allows wrapping */
108
+ word-wrap: break-word;
109
+ /* Breaks long words */
110
+ overflow-wrap: break-word;
111
+ /* Modern equivalent for breaking */
112
+ }
113
+
114
+ /*Wraps Document Title*/
115
+ .gv-datatables tbody td:nth-child(4) {
116
+ white-space: normal !important;
117
+ /* Allows wrapping */
118
+ word-wrap: break-word;
119
+ /* Breaks long words */
120
+ overflow-wrap: break-word;
121
+ /* Modern equivalent for breaking */
122
122
  }
123
123
  </style>
124
124
  <noscript><link rel='stylesheet' id='dashicons-css' href='https://ccsds.org/wp-includes/css/dashicons.min.css?ver=6.8.3' media='all' />
data/grammars/biblio.rng CHANGED
@@ -2015,15 +2015,11 @@ provided that it is not the entire bibliographic item that is so related</a:docu
2015
2015
  <a:documentation>A version of the bibliographic item (within an edition). Can be used for drafts</a:documentation>
2016
2016
  <element name="version">
2017
2017
  <optional>
2018
- <ref name="revision-date">
2019
- <a:documentation>The date at which the current version of the bibliographic item was produced</a:documentation>
2020
- </ref>
2021
- </optional>
2022
- <optional>
2023
- <ref name="draft">
2024
- <a:documentation>The identifier for the current draft of the bibliographic item</a:documentation>
2025
- </ref>
2018
+ <attribute name="type">
2019
+ <a:documentation>Versioning scheme, in case of multiple versioning schemes</a:documentation>
2020
+ </attribute>
2026
2021
  </optional>
2022
+ <text/>
2027
2023
  </element>
2028
2024
  </define>
2029
2025
  <define name="vedition">
@@ -1,6 +1,7 @@
1
1
  module Relaton
2
2
  module Ccsds
3
3
  class Bibdata < Item
4
+ model ItemData
4
5
  include Bib::BibdataShared
5
6
  end
6
7
  end
@@ -1,6 +1,7 @@
1
1
  module Relaton
2
2
  module Ccsds
3
3
  class Bibitem < Item
4
+ model ItemData
4
5
  include Bib::BibitemShared
5
6
  end
6
7
  end
@@ -1,5 +1,5 @@
1
1
  module Relaton
2
2
  module Ccsds
3
- VERSION = "2.0.0".freeze
3
+ VERSION = "2.1.0".freeze
4
4
  end
5
5
  end
@@ -28,7 +28,7 @@ Gem::Specification.new do |spec|
28
28
  spec.add_dependency "mechanize", "~> 2.10"
29
29
  spec.add_dependency "openssl", "~> 3.3.2"
30
30
  spec.add_dependency "pubid-ccsds", "~> 1.15.2"
31
- spec.add_dependency "relaton-bib", "~> 2.0.0"
31
+ spec.add_dependency "relaton-bib", "~> 2.1.0"
32
32
  spec.add_dependency "relaton-core", "~> 0.0.9"
33
33
  spec.add_dependency "relaton-index", "~> 0.2.16"
34
34
  # For more information and examples about making a new gem, check out our
metadata CHANGED
@@ -1,13 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relaton-ccsds
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
+ autorequire:
8
9
  bindir: exe
9
10
  cert_chain: []
10
- date: 1980-01-02 00:00:00.000000000 Z
11
+ date: 2026-05-04 00:00:00.000000000 Z
11
12
  dependencies:
12
13
  - !ruby/object:Gem::Dependency
13
14
  name: csv
@@ -71,14 +72,14 @@ dependencies:
71
72
  requirements:
72
73
  - - "~>"
73
74
  - !ruby/object:Gem::Version
74
- version: 2.0.0
75
+ version: 2.1.0
75
76
  type: :runtime
76
77
  prerelease: false
77
78
  version_requirements: !ruby/object:Gem::Requirement
78
79
  requirements:
79
80
  - - "~>"
80
81
  - !ruby/object:Gem::Version
81
- version: 2.0.0
82
+ version: 2.1.0
82
83
  - !ruby/object:Gem::Dependency
83
84
  name: relaton-core
84
85
  requirement: !ruby/object:Gem::Requirement
@@ -119,6 +120,7 @@ files:
119
120
  - ".gitignore"
120
121
  - ".rspec"
121
122
  - ".rubocop.yml"
123
+ - CLAUDE.md
122
124
  - Gemfile
123
125
  - README.adoc
124
126
  - Rakefile
@@ -148,11 +150,12 @@ files:
148
150
  - lib/relaton/ccsds/processor.rb
149
151
  - lib/relaton/ccsds/util.rb
150
152
  - lib/relaton/ccsds/version.rb
151
- - relaton_ccsds.gemspec
153
+ - relaton-ccsds.gemspec
152
154
  homepage: https://github.com/metanorma/relaton-ccsds
153
155
  licenses:
154
156
  - MIT
155
157
  metadata: {}
158
+ post_install_message:
156
159
  rdoc_options: []
157
160
  require_paths:
158
161
  - lib
@@ -167,7 +170,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
167
170
  - !ruby/object:Gem::Version
168
171
  version: '0'
169
172
  requirements: []
170
- rubygems_version: 3.6.9
173
+ rubygems_version: 3.5.22
174
+ signing_key:
171
175
  specification_version: 4
172
176
  summary: 'Relaton::Ccsds: retrive www.ccsds.org Standards'
173
177
  test_files: []