nist-pubid 0.1.1 → 0.1.2

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: 95b5276baaa0fa40ff0f83f3e5def09f571328cef45c7dfb43c76de42da80313
4
- data.tar.gz: b12d0f41be03994096d50e3a8132c15736137210fde2e96788086c50b677fbdf
3
+ metadata.gz: 0eda4fda43009a4ec9c9cdd35c0abcada305c5c9868d246b4df0c324f84ea326
4
+ data.tar.gz: 1392bed11a8b5d05126e6eb368fa650f013f4aac7a9c78d05f319b6e785bb42f
5
5
  SHA512:
6
- metadata.gz: c6a61d374eabd7e8ab5e8aa67cc7c62735ccf0c15e60697f2f8e0fe5e07d503cfed45b0265d79e633857458c8d0ed4d87ad77276e08846c8feb9a4ef3e48d3b7
7
- data.tar.gz: 8d320e322a4b9e4ed7e0dda53aa15aef7e9cb70d34cbb5ad90741d2c8cd1101bc76f618cda823ceadb9fe29b5707d7c60dbe3c8727a5a801e90490d5468b066b
6
+ metadata.gz: 13a9854c8b67b0c7fc5202306501d8ec9d61ede0b73de2afbaefc8373fb7f798b7f7baa0caca9e6ab256bd6a929c55f09376ff2728465300d7d6098d929c2cad
7
+ data.tar.gz: d6e3685000eea4ccf494fc4b1ade59b5002a561bdc9597c9a11b7ae738d730461f3297b60b2f66a98b23ff4670c1c2cdc899562f409a6063e4c609096f73ea97
@@ -4,7 +4,7 @@ name: rake
4
4
 
5
5
  on:
6
6
  push:
7
- branches: [ master, main ]
7
+ branches: [ main ]
8
8
  tags: [ v* ]
9
9
  pull_request:
10
10
 
data/Gemfile CHANGED
@@ -2,3 +2,7 @@ source "https://rubygems.org"
2
2
 
3
3
  # Specify your gem's dependencies in relaton_nist.gemspec
4
4
  gemspec
5
+
6
+ gem "rubocop-performance"
7
+ gem "rubocop-rake"
8
+ gem "rubocop-rspec"
@@ -50,7 +50,7 @@ module NistPubid
50
50
 
51
51
  def self.parse(code)
52
52
  matches = {
53
- publisher: match(Publisher.regexp, code),
53
+ publisher: match(Publisher.regexp, code) || "NIST",
54
54
  serie: match(Serie.regexp, code)&.gsub(/\./, " "),
55
55
  stage: match(Stage.regexp, code),
56
56
  docnumber: match(/(?<=\.|\s)[0-9-]{3,}[A-Z]?/, code),
@@ -5,7 +5,7 @@ module NistPubid
5
5
  attr_accessor :serie
6
6
 
7
7
  def initialize(serie:)
8
- @serie = serie
8
+ @serie = serie == "NISTIR" ? "NIST IR" : serie
9
9
  end
10
10
 
11
11
  def to_s(format)
@@ -18,7 +18,7 @@ module NistPubid
18
18
  end
19
19
 
20
20
  def self.regexp
21
- /(#{(SERIES["long"].keys + SERIES["mr"].values).join('|')})(?=\.|\s)/
21
+ /(#{(SERIES["long"].keys + SERIES["mr"].values + ["NISTIR"]).join('|')})(?=\.|\s)/
22
22
  end
23
23
  end
24
24
  end
@@ -1,3 +1,3 @@
1
1
  module NistPubid
2
- VERSION = "0.1.1".freeze
2
+ VERSION = "0.1.2".freeze
3
3
  end
data/nist_pubid.gemspec CHANGED
@@ -8,9 +8,9 @@ Gem::Specification.new do |spec|
8
8
  spec.authors = ["Ribose Inc."]
9
9
  spec.email = ["open.source@ribose.com"]
10
10
 
11
- spec.homepage = "http://github.com/metanorma/nist-pubid"
12
- spec.summary = "Extract and convert NIST machine-readable PubID."
13
- spec.description = "Extract and convert NIST machine-readable PubID."
11
+ spec.homepage = "https://github.com/metanorma/nist-pubid"
12
+ spec.summary = "Library to generate, parse and manipulate NIST PubID."
13
+ spec.description = "Library to generate, parse and manipulate NIST PubID."
14
14
  spec.license = "BSD-2-Clause"
15
15
 
16
16
  # Specify which files should be added to the gem when it is released.
@@ -26,13 +26,6 @@ Gem::Specification.new do |spec|
26
26
  spec.require_paths = ["lib"]
27
27
  spec.required_ruby_version = Gem::Requirement.new(">= 2.5.0")
28
28
 
29
- spec.add_development_dependency "pry-byebug"
30
29
  spec.add_development_dependency "rake", "~> 13.0"
31
30
  spec.add_development_dependency "rspec", "~> 3.0"
32
- spec.add_development_dependency "rubocop", "~> 1.23.0"
33
- spec.add_development_dependency "rubocop-performance", "~> 1.12.0"
34
- spec.add_development_dependency "rubocop-rails", "~> 2.12.4"
35
- spec.metadata = {
36
- "rubygems_mfa_required" => "true",
37
- }
38
31
  end
metadata CHANGED
@@ -1,29 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nist-pubid
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-12-04 00:00:00.000000000 Z
11
+ date: 2021-12-08 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: pry-byebug
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: '0'
20
- type: :development
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - ">="
25
- - !ruby/object:Gem::Version
26
- version: '0'
27
13
  - !ruby/object:Gem::Dependency
28
14
  name: rake
29
15
  requirement: !ruby/object:Gem::Requirement
@@ -52,49 +38,7 @@ dependencies:
52
38
  - - "~>"
53
39
  - !ruby/object:Gem::Version
54
40
  version: '3.0'
55
- - !ruby/object:Gem::Dependency
56
- name: rubocop
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - "~>"
60
- - !ruby/object:Gem::Version
61
- version: 1.23.0
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - "~>"
67
- - !ruby/object:Gem::Version
68
- version: 1.23.0
69
- - !ruby/object:Gem::Dependency
70
- name: rubocop-performance
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - "~>"
74
- - !ruby/object:Gem::Version
75
- version: 1.12.0
76
- type: :development
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - "~>"
81
- - !ruby/object:Gem::Version
82
- version: 1.12.0
83
- - !ruby/object:Gem::Dependency
84
- name: rubocop-rails
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - "~>"
88
- - !ruby/object:Gem::Version
89
- version: 2.12.4
90
- type: :development
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - "~>"
95
- - !ruby/object:Gem::Version
96
- version: 2.12.4
97
- description: Extract and convert NIST machine-readable PubID.
41
+ description: Library to generate, parse and manipulate NIST PubID.
98
42
  email:
99
43
  - open.source@ribose.com
100
44
  executables: []
@@ -107,7 +51,6 @@ files:
107
51
  - ".rspec"
108
52
  - ".rubocop.yml"
109
53
  - Gemfile
110
- - Gemfile.lock
111
54
  - LICENSE.txt
112
55
  - README.adoc
113
56
  - Rakefile
@@ -121,11 +64,10 @@ files:
121
64
  - publishers.yaml
122
65
  - series.yaml
123
66
  - stages.yaml
124
- homepage: http://github.com/metanorma/nist-pubid
67
+ homepage: https://github.com/metanorma/nist-pubid
125
68
  licenses:
126
69
  - BSD-2-Clause
127
- metadata:
128
- rubygems_mfa_required: 'true'
70
+ metadata: {}
129
71
  post_install_message:
130
72
  rdoc_options: []
131
73
  require_paths:
@@ -141,9 +83,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
141
83
  - !ruby/object:Gem::Version
142
84
  version: '0'
143
85
  requirements: []
144
- rubyforge_project:
145
- rubygems_version: 2.7.10
86
+ rubygems_version: 3.1.4
146
87
  signing_key:
147
88
  specification_version: 4
148
- summary: Extract and convert NIST machine-readable PubID.
89
+ summary: Library to generate, parse and manipulate NIST PubID.
149
90
  test_files: []
data/Gemfile.lock DELETED
@@ -1,89 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- nist-pubid (0.1.1)
5
-
6
- GEM
7
- remote: https://rubygems.org/
8
- specs:
9
- activesupport (6.1.4.1)
10
- concurrent-ruby (~> 1.0, >= 1.0.2)
11
- i18n (>= 1.6, < 2)
12
- minitest (>= 5.1)
13
- tzinfo (~> 2.0)
14
- zeitwerk (~> 2.3)
15
- ast (2.4.2)
16
- byebug (11.1.3)
17
- coderay (1.1.3)
18
- concurrent-ruby (1.1.9)
19
- diff-lcs (1.4.4)
20
- i18n (1.8.11)
21
- concurrent-ruby (~> 1.0)
22
- method_source (1.0.0)
23
- minitest (5.14.4)
24
- parallel (1.21.0)
25
- parser (3.0.3.1)
26
- ast (~> 2.4.1)
27
- pry (0.13.1)
28
- coderay (~> 1.1)
29
- method_source (~> 1.0)
30
- pry-byebug (3.9.0)
31
- byebug (~> 11.0)
32
- pry (~> 0.13.0)
33
- rack (2.2.3)
34
- rainbow (3.0.0)
35
- rake (13.0.6)
36
- regexp_parser (2.1.1)
37
- rexml (3.2.5)
38
- rspec (3.10.0)
39
- rspec-core (~> 3.10.0)
40
- rspec-expectations (~> 3.10.0)
41
- rspec-mocks (~> 3.10.0)
42
- rspec-core (3.10.1)
43
- rspec-support (~> 3.10.0)
44
- rspec-expectations (3.10.1)
45
- diff-lcs (>= 1.2.0, < 2.0)
46
- rspec-support (~> 3.10.0)
47
- rspec-mocks (3.10.2)
48
- diff-lcs (>= 1.2.0, < 2.0)
49
- rspec-support (~> 3.10.0)
50
- rspec-support (3.10.3)
51
- rubocop (1.23.0)
52
- parallel (~> 1.10)
53
- parser (>= 3.0.0.0)
54
- rainbow (>= 2.2.2, < 4.0)
55
- regexp_parser (>= 1.8, < 3.0)
56
- rexml
57
- rubocop-ast (>= 1.12.0, < 2.0)
58
- ruby-progressbar (~> 1.7)
59
- unicode-display_width (>= 1.4.0, < 3.0)
60
- rubocop-ast (1.14.0)
61
- parser (>= 3.0.1.1)
62
- rubocop-performance (1.12.0)
63
- rubocop (>= 1.7.0, < 2.0)
64
- rubocop-ast (>= 0.4.0)
65
- rubocop-rails (2.12.4)
66
- activesupport (>= 4.2.0)
67
- rack (>= 1.1)
68
- rubocop (>= 1.7.0, < 2.0)
69
- ruby-progressbar (1.11.0)
70
- tzinfo (2.0.4)
71
- concurrent-ruby (~> 1.0)
72
- unicode-display_width (2.1.0)
73
- zeitwerk (2.5.1)
74
-
75
- PLATFORMS
76
- ruby
77
- x86_64-darwin-20
78
-
79
- DEPENDENCIES
80
- nist-pubid!
81
- pry-byebug
82
- rake (~> 13.0)
83
- rspec (~> 3.0)
84
- rubocop (~> 1.23.0)
85
- rubocop-performance (~> 1.12.0)
86
- rubocop-rails (~> 2.12.4)
87
-
88
- BUNDLED WITH
89
- 2.2.22