relaton-iso-bib 0.7.0 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/relaton_iso_bib/iso_bibliographic_item.rb +8 -3
- data/lib/relaton_iso_bib/version.rb +1 -1
- data/relaton_iso_bib.gemspec +1 -2
- metadata +2 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3376a78eee7e1994137090287bfc9f31f7e1431935934a8b13640c56bb4fed96
|
4
|
+
data.tar.gz: 1775614a24980aded9778a69ca4c303abc5872fdc62ce0df419dff359804a23b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 43d26653e681d77de26babd46b00e988f9e8dfd3ac701ee8fb9f5026e64f8c10821025c47ff806ce9720f9e4c27e7c1ecb8c360ba6f20cb73d5bce3ee16ebf11
|
7
|
+
data.tar.gz: f9c0b8e331f6779d52f9d799230261e10b8295cb9a4ccec5729c68d567ab74204b9254b266cbd18036aecdb5b29f4fd300b380a9d5d3b93bf1b717999e41c3b7
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
require "nokogiri"
|
4
4
|
require "isoics"
|
5
|
-
require "deep_clone"
|
5
|
+
# require "deep_clone"
|
6
6
|
require "relaton_bib"
|
7
7
|
require "relaton_iso_bib/typed_title_string"
|
8
8
|
require "relaton_iso_bib/editorial_group"
|
@@ -170,7 +170,7 @@ module RelatonIsoBib
|
|
170
170
|
|
171
171
|
# remove title part components and abstract
|
172
172
|
def to_all_parts
|
173
|
-
me =
|
173
|
+
me = deep_clone
|
174
174
|
me.disable_id_attribute
|
175
175
|
@relation << RelatonBib::DocumentRelation.new(
|
176
176
|
type: "instance", bibitem: me,
|
@@ -191,12 +191,17 @@ module RelatonIsoBib
|
|
191
191
|
@all_parts = true
|
192
192
|
end
|
193
193
|
|
194
|
+
def deep_clone
|
195
|
+
dump = Marshal.dump self
|
196
|
+
Marshal.load dump
|
197
|
+
end
|
198
|
+
|
194
199
|
# convert ISO:yyyy reference to reference to most recent
|
195
200
|
# instance of reference, removing date-specific infomration:
|
196
201
|
# date of publication, abstracts. Make dated reference Instance relation
|
197
202
|
# of the redacated document
|
198
203
|
def to_most_recent_reference
|
199
|
-
me =
|
204
|
+
me = deep_clone
|
200
205
|
me.disable_id_attribute
|
201
206
|
@relation << RelatonBib::DocumentRelation.new(type: "instance", bibitem: me)
|
202
207
|
@abstract = []
|
data/relaton_iso_bib.gemspec
CHANGED
@@ -35,6 +35,5 @@ Gem::Specification.new do |spec|
|
|
35
35
|
spec.add_development_dependency "ruby-jing"
|
36
36
|
|
37
37
|
spec.add_dependency "isoics", "~> 0.1.6"
|
38
|
-
spec.add_dependency "relaton-bib", "~>0.
|
39
|
-
spec.add_dependency "ruby_deep_clone", "~> 0.8.0"
|
38
|
+
spec.add_dependency "relaton-bib", "~>0.8.0"
|
40
39
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: relaton-iso-bib
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ribose Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-02-
|
11
|
+
date: 2020-02-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry-byebug
|
@@ -138,20 +138,6 @@ dependencies:
|
|
138
138
|
version: 0.1.6
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
140
|
name: relaton-bib
|
141
|
-
requirement: !ruby/object:Gem::Requirement
|
142
|
-
requirements:
|
143
|
-
- - "~>"
|
144
|
-
- !ruby/object:Gem::Version
|
145
|
-
version: 0.7.0
|
146
|
-
type: :runtime
|
147
|
-
prerelease: false
|
148
|
-
version_requirements: !ruby/object:Gem::Requirement
|
149
|
-
requirements:
|
150
|
-
- - "~>"
|
151
|
-
- !ruby/object:Gem::Version
|
152
|
-
version: 0.7.0
|
153
|
-
- !ruby/object:Gem::Dependency
|
154
|
-
name: ruby_deep_clone
|
155
141
|
requirement: !ruby/object:Gem::Requirement
|
156
142
|
requirements:
|
157
143
|
- - "~>"
|