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 +4 -4
- data/.travis.yml +19 -7
- data/lib/libis/tools/metadata/mappers/scope.rb +13 -4
- data/lib/libis/tools/version.rb +1 -1
- data/libis-tools.gemspec +1 -0
- data/spec/spec_helper.rb +6 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 22a9dadf4b74591ddc70cdaa12c26995e22dcd95
|
4
|
+
data.tar.gz: 7858858732a3f495f804bbbc3b7eabc5778c81f1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
6
|
-
- 2.2.
|
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.
|
19
|
+
- rvm: 2.1.10
|
16
20
|
jdk: oraclejdk7
|
17
|
-
- rvm: 2.1.
|
21
|
+
- rvm: 2.1.10
|
18
22
|
jdk: oraclejdk8
|
19
|
-
- rvm: 2.2.
|
23
|
+
- rvm: 2.2.7
|
20
24
|
jdk: oraclejdk7
|
21
|
-
- rvm: 2.2.
|
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-
|
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
|
-
|
23
|
-
doc.isPartOf['xsi:type'] = 'dcterms:URI'
|
22
|
+
if doc.isPartOf
|
24
23
|
|
25
|
-
|
26
|
-
|
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
|
|
data/lib/libis/tools/version.rb
CHANGED
data/libis-tools.gemspec
CHANGED
data/spec/spec_helper.rb
CHANGED
@@ -1,10 +1,14 @@
|
|
1
1
|
# require 'codeclimate-test-reporter'
|
2
2
|
# ::CodeClimate::TestReporter.start
|
3
3
|
|
4
|
-
|
5
|
-
|
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'
|