pubid-core 1.0.0 → 1.0.1

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: e4f9bff0cb4e318de8dab3eb5c8155cb5fe3c560cc24d0616cb38f71a9a83d1c
4
- data.tar.gz: 306cc2e013df2f7d236ef62b45fdaccc0038d8e220827898e817a8b2d47dc19e
3
+ metadata.gz: 6fc24ad8424ccb4843c213b8642d558e4139671d9f7a302246f917510a20ad71
4
+ data.tar.gz: c8284af8dcb32ae4e13853ea8195e376769bbc745984f6639ee86780405f57d4
5
5
  SHA512:
6
- metadata.gz: a8845cff2602c572ccf3a8bc081aa8f326dcaa0384c06353dd1ca842ae94405acc821b12b3fdb9c7eb14c70da61c9abcee2297d01a94a56125e8298411cf9f72
7
- data.tar.gz: 78a9452536f524523c470d09973490bb6d2f7c634c531e05dc4150a92ef21bffedb3b0a3bb65c1a32afae17c4c3eee63dd5c0fc055549d80bf7cf9bbd491edeb
6
+ metadata.gz: 6dafa25189561f26dd3e3908294d4649af1c891175eb6b546ca8e95c90aafb4dfbde8b1fa4271ca8bb540ce3824947a7d7e08c10945853530615204692990504
7
+ data.tar.gz: d7b4857f481c5aac96491c83b70367ebc50d3dd3e9d2ee4956d2c5b825f210657419e3778d23f3c8fccb975acd444c051c6aebb93eec392143bd35747218f831
@@ -113,10 +113,15 @@ module Pubid::Core
113
113
  Transformer
114
114
  end
115
115
 
116
+ # @return [Hash, nil] replacement patterns
117
+ def get_update_codes
118
+ nil
119
+ end
120
+
116
121
  def update_old_code(code)
117
- return code unless defined?(UPDATE_CODES)
122
+ return code unless get_update_codes
118
123
 
119
- UPDATE_CODES.each do |from, to|
124
+ get_update_codes.each do |from, to|
120
125
  code = code.gsub(from.match?(/^\/.*\/$/) ? Regexp.new(from[1..-2]) : /^#{Regexp.escape(from)}$/, to)
121
126
  end
122
127
  code
@@ -1,5 +1,5 @@
1
1
  module Pubid
2
2
  module Core
3
- VERSION = "1.0.0".freeze
3
+ VERSION = "1.0.1".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pubid-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.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: 2022-08-05 00:00:00.000000000 Z
11
+ date: 2022-08-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake