bolognese 0.8.10 → 0.8.11

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
  SHA1:
3
- metadata.gz: 15f219d9b18e82200e7598750840f7a451699773
4
- data.tar.gz: 275e83eaf0d4b4ed9610eec29e1d9f19e3f03c5c
3
+ metadata.gz: 9385c4cd78ed7a379e2ba3fb158897165d1bbf5e
4
+ data.tar.gz: 498d94f9145253b28c7174512d0411f66d1baf3b
5
5
  SHA512:
6
- metadata.gz: 3719bcc99039398b11af3468bbf9cdd05b55790e13407f84947bb06e6addebdb2094ef292e2016762acc35f54f218d94caaf1dc1243cb4f2015dbed2f549ec0e
7
- data.tar.gz: 6fa28bb6fad35e895f51a3c79b93a0fc86ba99c7477eb5bedcbc1f079983a219b5745b97daf12a6c5093f34e49aeb7cf078ebc57c9d078e6126599f22a04e3d8
6
+ metadata.gz: d3d247e561259eafc5a4563b709c80fb4099b3b7431b6649270c369b5f933ffea3ca12490db12c05a7bfba2da9023998aba85558cdd2ba8a5179eff8d71181de
7
+ data.tar.gz: 30c346a1f04313b7ae44acf311a94a4261964bb81b03855e4a020faeeba9f514f00ca6885b3fa077f2a5186d6a0bf013f8889e9aadab9bd04901e2c361eb03f0
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bolognese (0.8.10)
4
+ bolognese (0.8.11)
5
5
  activesupport (~> 4.2, >= 4.2.5)
6
6
  bibtex-ruby (~> 4.1)
7
7
  builder (~> 3.2, >= 3.2.2)
@@ -71,7 +71,7 @@ module Bolognese
71
71
  end
72
72
 
73
73
  def ris_type
74
- SO_TO_RIS_TRANSLATIONS[resource_type_general.to_s.dasherize] || "GEN"
74
+ DC_TO_RIS_TRANSLATIONS[resource_type_general.to_s.dasherize] || "GEN"
75
75
  end
76
76
 
77
77
  def additional_type
@@ -177,6 +177,23 @@ module Bolognese
177
177
  "book-set" => nil
178
178
  }
179
179
 
180
+ DC_TO_RIS_TRANSLATIONS = {
181
+ "Audiovisual" => "MPCT",
182
+ "Collection" => nil,
183
+ "Dataset" => "DATA",
184
+ "Event" => nil,
185
+ "Image" => "FIGURE",
186
+ "InteractiveResource" => nil,
187
+ "Model" => nil,
188
+ "PhysicalObject" => nil,
189
+ "Service" => nil,
190
+ "Software" => "COMP",
191
+ "Sound" => "SOUND",
192
+ "Text" => "RPRT",
193
+ "Workflow" => nil,
194
+ "Other" => nil
195
+ }
196
+
180
197
  CP_TO_RIS_TRANSLATIONS = {
181
198
  "post-weblog" => "BLOG",
182
199
  "dataset" => "DATA",
@@ -1,3 +1,3 @@
1
1
  module Bolognese
2
- VERSION = "0.8.10"
2
+ VERSION = "0.8.11"
3
3
  end
@@ -316,7 +316,7 @@ describe Bolognese::Datacite, vcr: true do
316
316
  subject = Bolognese::Datacite.new(id: id)
317
317
  expect(subject.valid?).to be true
318
318
  ris = subject.ris.split("\r\n")
319
- expect(ris[0]).to eq("TY - GEN")
319
+ expect(ris[0]).to eq("TY - RPRT")
320
320
  expect(ris[1]).to eq("T1 - Eating your own Dog Food")
321
321
  expect(ris[2]).to eq("T2 - DataCite")
322
322
  expect(ris[3]).to eq("AU - Fenner, Martin")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bolognese
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.10
4
+ version: 0.8.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Fenner