relaton-3gpp 1.14.6 → 1.16.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 +4 -4
 - data/.github/workflows/release.yml +2 -1
 - data/grammars/biblio.rng +1 -1
 - data/lib/relaton_3gpp/bibliographic_item.rb +7 -7
 - data/lib/relaton_3gpp/bibliography.rb +3 -3
 - data/lib/relaton_3gpp/config.rb +10 -0
 - data/lib/relaton_3gpp/util.rb +9 -0
 - data/lib/relaton_3gpp/version.rb +1 -1
 - data/lib/relaton_3gpp.rb +6 -4
 - data/relaton_3gpp.gemspec +1 -1
 - metadata +6 -4
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 7044b7a40312d4be81499ffec99b78ca23a1ce244b1b40cb813c446e1b77bdcf
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 32c1aac44fb279a09e91db52e930f4543620eeb9d937abb7edb1ccb5aae1c6e0
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 784095e42a3a215f41d252b8640251ebde283775acf822d2f37b9169c4f7d22584645944fc72ae4f85d01440e820a3593a1ef9ee1f6dee0763f9a4c0bdba812c
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 11b8f3e63592d6caf64542cfe4918f447ded9eb603b371941d9d37d1918d68a36052c1a58c35db4ba80f86c2ba1c56c58e51a39c56de6b4516cc3f83f858dd1b
         
     | 
| 
         @@ -7,7 +7,8 @@ on: 
     | 
|
| 
       7 
7 
     | 
    
         
             
                inputs:
         
     | 
| 
       8 
8 
     | 
    
         
             
                  next_version:
         
     | 
| 
       9 
9 
     | 
    
         
             
                    description: |
         
     | 
| 
       10 
     | 
    
         
            -
                      Next release version. Possible values: x.y.z, major, minor, patch or pre|rc|etc
         
     | 
| 
      
 10 
     | 
    
         
            +
                      Next release version. Possible values: x.y.z, major, minor, patch (or pre|rc|etc).
         
     | 
| 
      
 11 
     | 
    
         
            +
                      Also, you can pass 'skip' to skip 'git tag' and do 'gem push' for the current version
         
     | 
| 
       11 
12 
     | 
    
         
             
                    required: true
         
     | 
| 
       12 
13 
     | 
    
         
             
                    default: 'skip'
         
     | 
| 
       13 
14 
     | 
    
         
             
              repository_dispatch:
         
     | 
    
        data/grammars/biblio.rng
    CHANGED
    
    
| 
         @@ -14,19 +14,19 @@ module Relaton3gpp 
     | 
|
| 
       14 
14 
     | 
    
         
             
                def initialize(**args) # rubocop:disable Metrics/AbcSize, Metrics/MethodLength, Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity
         
     | 
| 
       15 
15 
     | 
    
         
             
                  @radiotechnology = args.delete(:radiotechnology)
         
     | 
| 
       16 
16 
     | 
    
         
             
                  if @radiotechnology && !RADIOTECHNOLOGIES.include?(@radiotechnology)
         
     | 
| 
       17 
     | 
    
         
            -
                    warn " 
     | 
| 
       18 
     | 
    
         
            -
                    warn " 
     | 
| 
      
 17 
     | 
    
         
            +
                    Util.warn "Unknown radiotechnology type: `#{@radiotechnology}`"
         
     | 
| 
      
 18 
     | 
    
         
            +
                    Util.warn "Possible radiotechnology types: `#{RADIOTECHNOLOGIES.join '`, `'}`"
         
     | 
| 
       19 
19 
     | 
    
         
             
                  end
         
     | 
| 
       20 
20 
     | 
    
         
             
                  @common_ims_spec = args.delete(:common_ims_spec)
         
     | 
| 
       21 
21 
     | 
    
         
             
                  @release = args.delete(:release)
         
     | 
| 
       22 
     | 
    
         
            -
                  if args[:doctype].nil? then warn " 
     | 
| 
      
 22 
     | 
    
         
            +
                  if args[:doctype].nil? then Util.warn "doctype is missing"
         
     | 
| 
       23 
23 
     | 
    
         
             
                  elsif !DOCTYPES.include?(args[:doctype])
         
     | 
| 
       24 
     | 
    
         
            -
                    warn " 
     | 
| 
       25 
     | 
    
         
            -
                    warn " 
     | 
| 
      
 24 
     | 
    
         
            +
                    Util.warn "Unknown doctype: `#{args[:doctype]}`"
         
     | 
| 
      
 25 
     | 
    
         
            +
                    Util.warn "Possible doctypes: `#{DOCTYPES.join '`, `'}`"
         
     | 
| 
       26 
26 
     | 
    
         
             
                  end
         
     | 
| 
       27 
27 
     | 
    
         
             
                  if args[:docsubtype] && !DOCSUBTYPES.include?(args[:docsubtype])
         
     | 
| 
       28 
     | 
    
         
            -
                    warn " 
     | 
| 
       29 
     | 
    
         
            -
                    warn " 
     | 
| 
      
 28 
     | 
    
         
            +
                    Util.warn "Unknown docsubtype: `#{args[:docsubtype]}`"
         
     | 
| 
      
 29 
     | 
    
         
            +
                    Util.warn "Possible docsubtypes: `#{DOCSUBTYPES.join '`, `'}`"
         
     | 
| 
       30 
30 
     | 
    
         
             
                  end
         
     | 
| 
       31 
31 
     | 
    
         
             
                  super(**args)
         
     | 
| 
       32 
32 
     | 
    
         
             
                end
         
     | 
| 
         @@ -34,14 +34,14 @@ module Relaton3gpp 
     | 
|
| 
       34 
34 
     | 
    
         
             
                # @param opts [Hash] options
         
     | 
| 
       35 
35 
     | 
    
         
             
                # @return [RelatonBib::BibliographicItem]
         
     | 
| 
       36 
36 
     | 
    
         
             
                def get(ref, _year = nil, _opts = {})
         
     | 
| 
       37 
     | 
    
         
            -
                  warn " 
     | 
| 
      
 37 
     | 
    
         
            +
                  Util.warn "(#{ref}) fetching..."
         
     | 
| 
       38 
38 
     | 
    
         
             
                  result = search(ref)
         
     | 
| 
       39 
39 
     | 
    
         
             
                  unless result
         
     | 
| 
       40 
     | 
    
         
            -
                    warn " 
     | 
| 
      
 40 
     | 
    
         
            +
                    Util.warn "(#{ref}) not found"
         
     | 
| 
       41 
41 
     | 
    
         
             
                    return
         
     | 
| 
       42 
42 
     | 
    
         
             
                  end
         
     | 
| 
       43 
43 
     | 
    
         | 
| 
       44 
     | 
    
         
            -
                  warn " 
     | 
| 
      
 44 
     | 
    
         
            +
                  Util.warn "(#{ref}) found `#{result.docidentifier[0].id}`"
         
     | 
| 
       45 
45 
     | 
    
         
             
                  result
         
     | 
| 
       46 
46 
     | 
    
         
             
                end
         
     | 
| 
       47 
47 
     | 
    
         | 
    
        data/lib/relaton_3gpp/version.rb
    CHANGED
    
    
    
        data/lib/relaton_3gpp.rb
    CHANGED
    
    | 
         @@ -4,6 +4,8 @@ require "net/http" 
     | 
|
| 
       4 
4 
     | 
    
         
             
            require "relaton/index"
         
     | 
| 
       5 
5 
     | 
    
         
             
            require "relaton_bib"
         
     | 
| 
       6 
6 
     | 
    
         
             
            require_relative "relaton_3gpp/version"
         
     | 
| 
      
 7 
     | 
    
         
            +
            require_relative "relaton_3gpp/config"
         
     | 
| 
      
 8 
     | 
    
         
            +
            require_relative "relaton_3gpp/util"
         
     | 
| 
       7 
9 
     | 
    
         
             
            require_relative "relaton_3gpp/release"
         
     | 
| 
       8 
10 
     | 
    
         
             
            require_relative "relaton_3gpp/bibliographic_item"
         
     | 
| 
       9 
11 
     | 
    
         
             
            require_relative "relaton_3gpp/hash_converter"
         
     | 
| 
         @@ -18,9 +20,9 @@ module Relaton3gpp 
     | 
|
| 
       18 
20 
     | 
    
         
             
              # Returns hash of XML reammar
         
     | 
| 
       19 
21 
     | 
    
         
             
              # @return [String]
         
     | 
| 
       20 
22 
     | 
    
         
             
              def self.grammar_hash
         
     | 
| 
       21 
     | 
    
         
            -
                gem_path = File.expand_path "..", __dir__
         
     | 
| 
       22 
     | 
    
         
            -
                grammars_path = File.join gem_path, "grammars", "*"
         
     | 
| 
       23 
     | 
    
         
            -
                grammars = Dir[grammars_path].sort.map { |gp| File.read gp }.join
         
     | 
| 
       24 
     | 
    
         
            -
                Digest::MD5.hexdigest grammars
         
     | 
| 
      
 23 
     | 
    
         
            +
                # gem_path = File.expand_path "..", __dir__
         
     | 
| 
      
 24 
     | 
    
         
            +
                # grammars_path = File.join gem_path, "grammars", "*"
         
     | 
| 
      
 25 
     | 
    
         
            +
                # grammars = Dir[grammars_path].sort.map { |gp| File.read gp }.join
         
     | 
| 
      
 26 
     | 
    
         
            +
                Digest::MD5.hexdigest Relaton3gpp::VERSION + RelatonBib::VERSION # grammars
         
     | 
| 
       25 
27 
     | 
    
         
             
              end
         
     | 
| 
       26 
28 
     | 
    
         
             
            end
         
     | 
    
        data/relaton_3gpp.gemspec
    CHANGED
    
    | 
         @@ -38,7 +38,7 @@ Gem::Specification.new do |spec| 
     | 
|
| 
       38 
38 
     | 
    
         | 
| 
       39 
39 
     | 
    
         
             
              spec.add_dependency "mdb", "~> 0.5.0"
         
     | 
| 
       40 
40 
     | 
    
         
             
              spec.add_dependency "net-ftp", "~> 0.1.0"
         
     | 
| 
       41 
     | 
    
         
            -
              spec.add_dependency "relaton-bib", "~> 1. 
     | 
| 
      
 41 
     | 
    
         
            +
              spec.add_dependency "relaton-bib", "~> 1.16.0"
         
     | 
| 
       42 
42 
     | 
    
         
             
              spec.add_dependency "relaton-index", "~> 0.2.0"
         
     | 
| 
       43 
43 
     | 
    
         
             
              spec.add_dependency "rubyzip", "~> 2.3.0"
         
     | 
| 
       44 
44 
     | 
    
         
             
            end
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,14 +1,14 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: relaton-3gpp
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 1. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 1.16.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: 2023- 
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2023-09-20 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies:
         
     | 
| 
       13 
13 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       14 
14 
     | 
    
         
             
              name: mdb
         
     | 
| 
         @@ -44,14 +44,14 @@ dependencies: 
     | 
|
| 
       44 
44 
     | 
    
         
             
                requirements:
         
     | 
| 
       45 
45 
     | 
    
         
             
                - - "~>"
         
     | 
| 
       46 
46 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       47 
     | 
    
         
            -
                    version: 1. 
     | 
| 
      
 47 
     | 
    
         
            +
                    version: 1.16.0
         
     | 
| 
       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: 1. 
     | 
| 
      
 54 
     | 
    
         
            +
                    version: 1.16.0
         
     | 
| 
       55 
55 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       56 
56 
     | 
    
         
             
              name: relaton-index
         
     | 
| 
       57 
57 
     | 
    
         
             
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
         @@ -107,11 +107,13 @@ files: 
     | 
|
| 
       107 
107 
     | 
    
         
             
            - lib/relaton_3gpp.rb
         
     | 
| 
       108 
108 
     | 
    
         
             
            - lib/relaton_3gpp/bibliographic_item.rb
         
     | 
| 
       109 
109 
     | 
    
         
             
            - lib/relaton_3gpp/bibliography.rb
         
     | 
| 
      
 110 
     | 
    
         
            +
            - lib/relaton_3gpp/config.rb
         
     | 
| 
       110 
111 
     | 
    
         
             
            - lib/relaton_3gpp/data_fetcher.rb
         
     | 
| 
       111 
112 
     | 
    
         
             
            - lib/relaton_3gpp/hash_converter.rb
         
     | 
| 
       112 
113 
     | 
    
         
             
            - lib/relaton_3gpp/parser.rb
         
     | 
| 
       113 
114 
     | 
    
         
             
            - lib/relaton_3gpp/processor.rb
         
     | 
| 
       114 
115 
     | 
    
         
             
            - lib/relaton_3gpp/release.rb
         
     | 
| 
      
 116 
     | 
    
         
            +
            - lib/relaton_3gpp/util.rb
         
     | 
| 
       115 
117 
     | 
    
         
             
            - lib/relaton_3gpp/version.rb
         
     | 
| 
       116 
118 
     | 
    
         
             
            - lib/relaton_3gpp/xml_parser.rb
         
     | 
| 
       117 
119 
     | 
    
         
             
            - relaton_3gpp.gemspec
         
     |