pubid-jis 0.3.0 → 0.3.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: 07eef4940f4a38e169eebcd786cb2d4456814c9bb0ab6eafba78eaf619dee42b
4
- data.tar.gz: 6e42254073b7bcb5d8a00fc5c1d8c74d0a0ac116340f8b25ba6a77bbbc8b4de8
3
+ metadata.gz: c3d5cc66b8b3513adc0e544ee5c0441d8dc2a1eec51a3cc89f52133f5f714842
4
+ data.tar.gz: 85d4a30804216a49e54caffe19e6d2e80cb06430aa070ed4e508344677b4c805
5
5
  SHA512:
6
- metadata.gz: e94361974bb9a05aa7613270dbe940afeb45909274d279c505fa4612cb292854cea31b46c28d280348867cda5c9a620fb3fa4218dd833be84f8061d02ba4e254
7
- data.tar.gz: b29aa12e363a0536f5a31bf8bc336ccaedc7e83d6e9f3a7c9ceb6d99f5f621245bd514150828c91fdbaea0039ffadec96ea40e353598e8c9fd668a44dba7ba70
6
+ metadata.gz: 13bc9729801227c88e73cb74c2ffbc1678b5e2d56fd658b76c6ed8776a1874f05892fc8fbe3ec986a36e377ea1451be36b306da5b9bae7e35b194f3590e6a5be
7
+ data.tar.gz: 366f14471717b84fb2f73fb8dc3416abbdf8cdb603e64ab2c763fff963a69b77261d9c56ecd37312ae6d16885e67ef48bd03bf95598be7222429fee795c717c7
@@ -25,8 +25,8 @@ module Pubid::Jis
25
25
 
26
26
  def ==(other)
27
27
  if all_parts? || other.all_parts?
28
- return get_params.reject { |k, _| [:year, :part, :all_parts].include?(k) } ==
29
- other.get_params.reject { |k, _| [:year, :part, :all_parts].include?(k) }
28
+ return to_h.reject { |k, _| [:year, :part, :all_parts].include?(k) } ==
29
+ other.to_h.reject { |k, _| [:year, :part, :all_parts].include?(k) }
30
30
  end
31
31
 
32
32
  super
@@ -37,7 +37,7 @@ module Pubid::Jis
37
37
  options = {}
38
38
  options[:with_publisher] = with_publisher
39
39
 
40
- self.class.get_renderer_class.new(get_params).render(**options)
40
+ self.class.get_renderer_class.new(to_h(deep: false)).render(**options)
41
41
  end
42
42
 
43
43
  class << self
@@ -19,7 +19,7 @@ module Pubid::Jis::Renderer
19
19
  end
20
20
 
21
21
  def render_part(part, opts, _params)
22
- return "-#{part.reverse.join('-')}" if part.is_a?(Array)
22
+ return "-#{part.join('-')}" if part.is_a?(Array)
23
23
 
24
24
  "-#{part}"
25
25
  end
@@ -1,5 +1,5 @@
1
1
  module Pubid
2
2
  module Jis
3
- VERSION = "0.3.0".freeze
3
+ VERSION = "0.3.2".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pubid-jis
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.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: 2023-04-12 00:00:00.000000000 Z
11
+ date: 2024-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -38,48 +38,6 @@ dependencies:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '3.0'
41
- - !ruby/object:Gem::Dependency
42
- name: nokogiri
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - ">="
46
- - !ruby/object:Gem::Version
47
- version: '0'
48
- type: :runtime
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ">="
53
- - !ruby/object:Gem::Version
54
- version: '0'
55
- - !ruby/object:Gem::Dependency
56
- name: thor
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - ">="
60
- - !ruby/object:Gem::Version
61
- version: '0'
62
- type: :runtime
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - ">="
67
- - !ruby/object:Gem::Version
68
- version: '0'
69
- - !ruby/object:Gem::Dependency
70
- name: lightly
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - ">="
74
- - !ruby/object:Gem::Version
75
- version: '0'
76
- type: :runtime
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - ">="
81
- - !ruby/object:Gem::Version
82
- version: '0'
83
41
  - !ruby/object:Gem::Dependency
84
42
  name: parslet
85
43
  requirement: !ruby/object:Gem::Requirement
@@ -100,14 +58,14 @@ dependencies:
100
58
  requirements:
101
59
  - - "~>"
102
60
  - !ruby/object:Gem::Version
103
- version: 1.8.0
61
+ version: 1.12.2
104
62
  type: :runtime
105
63
  prerelease: false
106
64
  version_requirements: !ruby/object:Gem::Requirement
107
65
  requirements:
108
66
  - - "~>"
109
67
  - !ruby/object:Gem::Version
110
- version: 1.8.0
68
+ version: 1.12.2
111
69
  description: Library to generate, parse and manipulate JIS PubID.
112
70
  email:
113
71
  - open.source@ribose.com
@@ -154,7 +112,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
154
112
  - !ruby/object:Gem::Version
155
113
  version: '0'
156
114
  requirements: []
157
- rubygems_version: 3.0.3.1
115
+ rubygems_version: 3.3.26
158
116
  signing_key:
159
117
  specification_version: 4
160
118
  summary: Library to generate, parse and manipulate JIS PubID.