relaton-xsf 2.1.0 → 2.2.0.pre.alpha.1

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: 2eff61967040fd3ea6500df569aeb613bbe63073e229452ff38cf74ad772f049
4
- data.tar.gz: c6abda880e33632ccd613c85a24f343d7cd159cd471b8792f2bbb76209d400f0
3
+ metadata.gz: 940ee4e4ab551ef029f6d0d32293588c8dfe0841d54dfd25296b8530889f8de8
4
+ data.tar.gz: 783890b115755fd7aa6f011a1c370de633ec457eae96053bd6f5e87d45bed2bc
5
5
  SHA512:
6
- metadata.gz: a4c11b6c3de956757d00a77d95e12d0ceb52c4c7601b774fcceb030402c1950c534c2af6882818f4d6d2f087082c21eddcc4c361e0213da6257ddf8de06f821d
7
- data.tar.gz: 50b47c9c717b7745e822c2d4a8e8aea426f02b56d7eb139ef6439d6e7d5083b63b884107fb2b1acc0fb7568e03688d3754f0f75826e91d02bf6743365df16be0
6
+ metadata.gz: 0521eb9a01c8e182d3e9205169ddaa1b1e1e046efc9e98680241ebae189c67030ae4fee7ea3b6ded9143f502ba99dcb9adc70a20b757e2f2f825ca58119a7fe4
7
+ data.tar.gz: 1d2d4402738040e75eb72bf436b22af37df93fc950042ff00e5d4b1a9bb386908a4b1fbba4f112d5e3874b76611b2a03b95ac4e51a348955832f5859c836ffb5
data/CLAUDE.md CHANGED
@@ -33,7 +33,7 @@ Data flow: `Processor#get` → `Bibliography.get` → `HitCollection.search` →
33
33
 
34
34
  DataFetcher flow: Crawls `https://xmpp.org/extensions/refs/`, parses each XML ref via `Relaton::Bib::Converter::BibXml.to_item`, sets `ext.flavor = "xsf"`, saves to disk.
35
35
 
36
- Constants: `INDEXFILE = "index-v1"`, `GHDATA_URL` points to relaton-data-xsf `data-v2` branch.
36
+ Constants: `INDEXFILE = "index-v1"`, `GHDATA_URL` points to relaton-data-xsf `v2` branch.
37
37
 
38
38
  ## Testing
39
39
 
data/Gemfile CHANGED
@@ -5,6 +5,14 @@ source "https://rubygems.org"
5
5
  # Specify your gem's dependencies in relaton_xsf.gemspec
6
6
  gemspec
7
7
 
8
+ # Use local monorepo sibling gems where available.
9
+ Dir["../*/"].each do |dir|
10
+ name = File.basename(dir)
11
+ next if name == File.basename(__dir__)
12
+ next unless File.exist?(File.join(dir, "#{name}.gemspec"))
13
+ gem name, path: dir
14
+ end
15
+
8
16
 
9
17
  gem "equivalent-xml", "~> 0.6"
10
18
  gem "rake", "~> 13.0"
data/Rakefile CHANGED
@@ -17,7 +17,7 @@ namespace :spec do
17
17
  require "net/http"
18
18
  require "uri"
19
19
 
20
- url = "https://raw.githubusercontent.com/relaton/relaton-data-xsf/data-v2/index-v1.zip"
20
+ url = "https://raw.githubusercontent.com/relaton/relaton-data-xsf/v2/index-v1.zip"
21
21
  dest = File.join(__dir__, "spec", "fixtures", "index-v1.zip")
22
22
 
23
23
  puts "Downloading \#{url} ..."
@@ -1,7 +1,7 @@
1
1
  module Relaton
2
2
  module Xsf
3
3
  class HitCollection < Relaton::Core::HitCollection
4
- GHDATA_URL = "https://raw.githubusercontent.com/relaton/relaton-data-xsf/data-v2/".freeze
4
+ GHDATA_URL = "https://raw.githubusercontent.com/relaton/relaton-data-xsf/v2/".freeze
5
5
 
6
6
  def search
7
7
  @array = index.search(ref).sort_by { |hit| hit[:id] }.map do |row|
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Relaton
4
4
  module Xsf
5
- VERSION = "2.1.0"
5
+ VERSION = "2.2.0.pre.alpha.1"
6
6
  end
7
7
  end
@@ -0,0 +1,40 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "lib/relaton/xsf/version"
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "relaton-xsf"
7
+ spec.version = Relaton::Xsf::VERSION
8
+ spec.authors = ["Ribose Inc."]
9
+ spec.email = ["open.source@ribose.com"]
10
+
11
+ spec.summary = "Relaton::Xsf: retrieve ISO Standards for bibliographic use " \
12
+ "using the IsoBibliographicItem model"
13
+ spec.description = "Relaton::Xsf: retrieve ISO Standards for bibliographic use " \
14
+ "using the IsoBibliographicItem model"
15
+ spec.homepage = "https://github.com/relaton/relaton-xsf"
16
+ spec.license = "BSD-2-Clause"
17
+ spec.required_ruby_version = Gem::Requirement.new(">= 3.3.0")
18
+
19
+ # spec.metadata["allowed_push_host"] = "TODO: Set to your gem server 'https://example.com'"
20
+
21
+ spec.metadata["homepage_uri"] = spec.homepage
22
+ # spec.metadata["source_code_uri"] = "TODO: Put your gem's public repo URL here."
23
+ # spec.metadata["changelog_uri"] = "TODO: Put your gem's CHANGELOG.md URL here."
24
+
25
+ # Specify which files should be added to the gem when it is released.
26
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
27
+ spec.files = Dir.chdir(__dir__) do
28
+ `git ls-files -z`.split("\x0").reject do |f|
29
+ (File.expand_path(f) == __FILE__) || f.start_with?(*%w[bin/ test/ spec/ features/ .git .circleci appveyor])
30
+ end
31
+ end
32
+ spec.bindir = "exe"
33
+ spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
34
+ spec.require_paths = ["lib"]
35
+
36
+ spec.add_dependency "mechanize", "~> 2.10"
37
+ spec.add_dependency "relaton-bib", "~> 2.2.0.pre.alpha.1"
38
+ spec.add_dependency "relaton-core", "~> 2.2.0.pre.alpha.1"
39
+ spec.add_dependency "relaton-index", "~> 2.2.0.pre.alpha.1"
40
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: relaton-xsf
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.2.0.pre.alpha.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-05-04 00:00:00.000000000 Z
11
+ date: 2026-06-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mechanize
@@ -30,42 +30,42 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 2.1.0
33
+ version: 2.2.0.pre.alpha.1
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 2.1.0
40
+ version: 2.2.0.pre.alpha.1
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: relaton-core
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 0.0.13
47
+ version: 2.2.0.pre.alpha.1
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 0.0.13
54
+ version: 2.2.0.pre.alpha.1
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: relaton-index
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 0.2.0
61
+ version: 2.2.0.pre.alpha.1
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 0.2.0
68
+ version: 2.2.0.pre.alpha.1
69
69
  description: 'Relaton::Xsf: retrieve ISO Standards for bibliographic use using the
70
70
  IsoBibliographicItem model'
71
71
  email:
@@ -75,7 +75,6 @@ extensions: []
75
75
  extra_rdoc_files: []
76
76
  files:
77
77
  - ".rspec"
78
- - ".rubocop.yml"
79
78
  - CLAUDE.md
80
79
  - Gemfile
81
80
  - LICENSE.txt
@@ -93,6 +92,7 @@ files:
93
92
  - lib/relaton/xsf/processor.rb
94
93
  - lib/relaton/xsf/util.rb
95
94
  - lib/relaton/xsf/version.rb
95
+ - relaton-xsf.gemspec
96
96
  - sig/relaton_xsf.rbs
97
97
  homepage: https://github.com/relaton/relaton-xsf
98
98
  licenses:
@@ -107,7 +107,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - ">="
109
109
  - !ruby/object:Gem::Version
110
- version: 3.2.0
110
+ version: 3.3.0
111
111
  required_rubygems_version: !ruby/object:Gem::Requirement
112
112
  requirements:
113
113
  - - ">="
data/.rubocop.yml DELETED
@@ -1,12 +0,0 @@
1
- # This project follows the Ribose OSS style guide.
2
- # https://github.com/riboseinc/oss-guides
3
- # All project-specific additions and overrides should be specified in this file.
4
-
5
- require: rubocop-rails
6
-
7
- inherit_from:
8
- - https://raw.githubusercontent.com/riboseinc/oss-guides/master/ci/rubocop.yml
9
- AllCops:
10
- TargetRubyVersion: 3.2
11
- Rails:
12
- Enabled: false