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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9c6bf72f3f461942da9dc344e9a7ca16d8ce4add60c245deb203f422fb46532c
4
- data.tar.gz: 651010aa3bf5d9ea26930af6f977fd2cda0e55cfec0015096cfd8ac82e50d944
3
+ metadata.gz: 3376a78eee7e1994137090287bfc9f31f7e1431935934a8b13640c56bb4fed96
4
+ data.tar.gz: 1775614a24980aded9778a69ca4c303abc5872fdc62ce0df419dff359804a23b
5
5
  SHA512:
6
- metadata.gz: c69b9418f0da674a1f11914359f40ca38432308914ce7f0d21f2af7ec3d0931052a9f3ed4ef3371f18c0d740259dc32e52d99e6d92d7703eadaf59a7f82ef744
7
- data.tar.gz: c9af62c5dc0a224c3a19009ad38fa238bcd0954cde48f88ea96f7bf67007a4d4e4b7f8ae3234665a532e52ccc8b91fb29c119f78678af7ef435e58bd882eebb1
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 = DeepClone.clone(self)
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 = DeepClone.clone(self)
204
+ me = deep_clone
200
205
  me.disable_id_attribute
201
206
  @relation << RelatonBib::DocumentRelation.new(type: "instance", bibitem: me)
202
207
  @abstract = []
@@ -1,3 +1,3 @@
1
1
  module RelatonIsoBib
2
- VERSION = "0.7.0".freeze
2
+ VERSION = "0.8.0".freeze
3
3
  end
@@ -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.7.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.7.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-16 00:00:00.000000000 Z
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
  - - "~>"