libis-tools 0.9.49 → 0.9.50

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: 126e8ab6d9702232cdc3d787424f3a6a87825fec
4
- data.tar.gz: d90fd1aed354e349be0a0fdd7aa9266af714d150
3
+ metadata.gz: 22a9dadf4b74591ddc70cdaa12c26995e22dcd95
4
+ data.tar.gz: 7858858732a3f495f804bbbc3b7eabc5778c81f1
5
5
  SHA512:
6
- metadata.gz: 2fbdeb3e52a27f3607867c328822e982bd2f307440c3dabc3da21a79fb60d4e7ac09e566c35ecebb2ec0eda85b2e4145d5e1beac8bd09dc8e1fcc34549dc5dfd
7
- data.tar.gz: a6349ba0aa99aebab5d56af9ff63eeb8ddbf7ad8cc69a4c50c0bfbee73e787f5d6c0f4ca7ec775ce416436e6278ec7f04e26ff77b7de110005b428214bcd42c6
6
+ metadata.gz: 5bf801edc26a0f7c78acf5aa0ad26d90974de4e90c4b330923c9b61e242a798bd69a5185c82329c41a2ea28a2da4649a07c1d8d49856c553c0bb4684947244c8
7
+ data.tar.gz: afd0b5a684391e60bd04116fb6ffc4299df3f851598ba74997c70d42cd935bf1367b5e18d0d846c0e2d3fd76b8f6336c50ec3b10153cff0e5e7b142722aa9c67
data/.travis.yml CHANGED
@@ -2,23 +2,35 @@ language: ruby
2
2
  cache: bundler
3
3
  sudo: false
4
4
  rvm:
5
- - 2.1.0
6
- - 2.2.0
5
+ - 2.1.10
6
+ - 2.2.7
7
+ - 2.3.4
8
+ - 2.4.1
7
9
  - ruby-head
10
+ - jruby-9.0.5.0
8
11
  - jruby-9.1.5.0
12
+ - jruby-head
9
13
  jdk:
10
14
  - openjdk7
11
15
  - oraclejdk7
12
16
  - oraclejdk8
13
17
  matrix:
14
18
  exclude:
15
- - rvm: 2.1.0
19
+ - rvm: 2.1.10
16
20
  jdk: oraclejdk7
17
- - rvm: 2.1.0
21
+ - rvm: 2.1.10
18
22
  jdk: oraclejdk8
19
- - rvm: 2.2.0
23
+ - rvm: 2.2.7
20
24
  jdk: oraclejdk7
21
- - rvm: 2.2.0
25
+ - rvm: 2.2.7
26
+ jdk: oraclejdk8
27
+ - rvm: 2.3.4
28
+ jdk: oraclejdk7
29
+ - rvm: 2.3.4
30
+ jdk: oraclejdk8
31
+ - rvm: 2.4.1
32
+ jdk: oraclejdk7
33
+ - rvm: 2.4.1
22
34
  jdk: oraclejdk8
23
35
  - rvm: ruby-head
24
36
  jdk: oraclejdk7
@@ -26,7 +38,7 @@ matrix:
26
38
  jdk: oraclejdk8
27
39
  allow_failures:
28
40
  - rvm: ruby-head
29
- - rvm: jruby-9.1.5.0
41
+ - rvm: jruby-head
30
42
  branches:
31
43
  only:
32
44
  - master
@@ -19,11 +19,20 @@ module Libis
19
19
 
20
20
  doc = Libis::Tools::Metadata::DublinCoreRecord.new(self.to_xml)
21
21
 
22
- # add URI annotation
23
- doc.isPartOf['xsi:type'] = 'dcterms:URI'
22
+ if doc.isPartOf
24
23
 
25
- # rename isPartOf to isReferencedBy
26
- doc.isPartOf.name = 'isReferencedBy'
24
+ # create new node for isReferencedBy
25
+ new_node = doc.add_node(
26
+ 'isReferencedBy',
27
+ doc.isPartOf.content,
28
+ nil,
29
+ 'xsi:type' => 'dcterms:URI'
30
+ )
31
+
32
+ # Replace isPartOf with isReferencedBy
33
+ doc.isPartOf.replace new_node
34
+
35
+ end
27
36
 
28
37
  doc
29
38
 
@@ -1,5 +1,5 @@
1
1
  module Libis
2
2
  module Tools
3
- VERSION = '0.9.49'
3
+ VERSION = '0.9.50'
4
4
  end
5
5
  end
data/libis-tools.gemspec CHANGED
@@ -4,6 +4,7 @@ lib = File.expand_path('../lib', __FILE__)
4
4
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
5
 
6
6
  require 'libis/tools/version'
7
+ require 'date'
7
8
 
8
9
  Gem::Specification.new do |spec|
9
10
  spec.name = 'libis-tools'
data/spec/spec_helper.rb CHANGED
@@ -1,10 +1,14 @@
1
1
  # require 'codeclimate-test-reporter'
2
2
  # ::CodeClimate::TestReporter.start
3
3
 
4
- require 'coveralls'
5
- Coveralls.wear!
4
+ # if !defined?(RUBY_ENGINE) || RUBY_ENGINE != 'jruby'
5
+ require 'coveralls'
6
+ Coveralls.wear!
7
+ # end
6
8
 
9
+ # noinspection RubyResolve
7
10
  require 'bundler/setup'
11
+ # noinspection RubyResolve
8
12
  Bundler.setup
9
13
 
10
14
  require 'rspec'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: libis-tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.49
4
+ version: 0.9.50
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kris Dekeyser