libis-tools 1.1.2 → 1.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2b02e37bfe8b5dd756b8b65272bbe7b346d4fc6cd8a478c8a4252dce211d63be
4
- data.tar.gz: 592c999acd6ff302e4c6e0a0ffa2740dc9d4d36c90a8db774a79adf0b9178e64
3
+ metadata.gz: 383ebb0e93220ce9cd2b8669493517f910373a7fdc9b2ff22b16a96f11c8b119
4
+ data.tar.gz: ff415e3da50e18ee17a44db7814c28b7cf9b62a9fb36788e36214dc817ff31d5
5
5
  SHA512:
6
- metadata.gz: 302b631cb8ca6691b427ac4f7b8ba1e649de94e4f90dd66220c8fe5318a86fddd828784c854757790a5bd38076396197de6504adf1283aed080ccedc1b96b884
7
- data.tar.gz: 27fa341317da84e0703e014d1f77f45dd65e8260420f92c76d686e90fe98830acea2a60193495c70d6031a2a3b79a7df9f6cb573349549c1869f6c0c7a0eefb6
6
+ metadata.gz: c87a0aaf89d366d0e1e5ce9b9330b1ea5a3a0f07e5dc46971a058c9eb4734d0bda3e4dda1b7353a3b9103ebc3ab5e09468fd8119e1e4de0e71df2bdbfdaf1784
7
+ data.tar.gz: 9ffae07c9bebd34b7a153df700d630b184ecf8f84822eec2f3ceae16f8b413897d363638a360bae79016c8d5332322ba75021c7d602b18349bb5247ee453d7a3
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## [v1.1.3](https://github.com/libis/LIBIS_Tools/tree/v1.1.3) (14/03/2025)
4
+
5
+ [Full Changelog](https://github.com/libis/LIBIS_Tools/compare/v1.1.2...v1.1.3)
6
+
7
+ ## [v1.1.2](https://github.com/libis/LIBIS_Tools/tree/v1.1.2) (20/06/2024)
8
+
9
+ [Full Changelog](https://github.com/libis/LIBIS_Tools/compare/v1.1.1...v1.1.2)
10
+
3
11
  ## [v1.1.1](https://github.com/libis/LIBIS_Tools/tree/v1.1.1) (26/03/2024)
4
12
 
5
13
  [Full Changelog](https://github.com/libis/LIBIS_Tools/compare/v1.1.0...v1.1.1)
data/Makefile ADDED
@@ -0,0 +1,15 @@
1
+ IMAGE_VERSION := $(shell ruby -e 'require_relative "lib/libis/tools/version"; puts Libis::Tools::VERSION')
2
+
3
+ install:
4
+ bundle install
5
+
6
+ update:
7
+ bundle update
8
+
9
+ release:
10
+ git commit -am "Version bump: v$(IMAGE_VERSION)" || true
11
+ git tag --force "v$(IMAGE_VERSION)"
12
+ git push --force --tags
13
+ bundle exec rake changelog
14
+ git commit -a -m "Changelog update" || true
15
+ git push --force
@@ -1,5 +1,6 @@
1
1
  # encoding: utf-8
2
2
  require 'ostruct'
3
+ require 'cgi'
3
4
 
4
5
  require 'libis/tools/extend/hash'
5
6
  require_relative 'xml_document'
@@ -385,7 +386,7 @@ module Libis
385
386
  xml[:mets].FLocat(
386
387
  LOCTYPE: 'URL',
387
388
  'xmlns:xlin' => NS[:xlin],
388
- 'xlin:href' => object.target_location,
389
+ 'xlin:href' => CGI.escape(object.target_location),
389
390
  )
390
391
  }
391
392
  end
@@ -1,5 +1,5 @@
1
1
  module Libis
2
2
  module Tools
3
- VERSION = '1.1.2'
3
+ VERSION = '1.1.3'
4
4
  end
5
5
  end
@@ -565,19 +565,19 @@ describe 'METS File' do
565
565
  xml[:mets].fileSec do
566
566
  xml[:mets].fileGrp ID: 'rep1', USE: 'VIEW', ADMID: 'rep1-amd' do
567
567
  xml[:mets].file ID: 'fid1', MIMETYPE: 'application/msword', ADMID: 'fid1-amd', GROUPID: 'grp' do
568
- xml[:mets].FLocat 'xmlns:xlin' => 'http://www.w3.org/1999/xlink', LOCTYPE: 'URL', 'xlin:href' => 'aaa á aaa/b/abc.doc'
568
+ xml[:mets].FLocat 'xmlns:xlin' => 'http://www.w3.org/1999/xlink', LOCTYPE: 'URL', 'xlin:href' => CGI.escape('aaa á aaa/b/abc.doc')
569
569
  end
570
570
  xml[:mets].file ID: 'fid2', MIMETYPE: 'application/msword', ADMID: 'fid2-amd', GROUPID: 'grp' do
571
- xml[:mets].FLocat 'xmlns:xlin' => 'http://www.w3.org/1999/xlink', LOCTYPE: 'URL', 'xlin:href' => 'aaa á aaa/b/def.dóc'
571
+ xml[:mets].FLocat 'xmlns:xlin' => 'http://www.w3.org/1999/xlink', LOCTYPE: 'URL', 'xlin:href' => CGI.escape('aaa á aaa/b/def.dóc')
572
572
  end
573
573
  xml[:mets].file ID: 'fid3', MIMETYPE: 'application/msword', ADMID: 'fid3-amd', GROUPID: 'grp' do
574
- xml[:mets].FLocat 'xmlns:xlin' => 'http://www.w3.org/1999/xlink', LOCTYPE: 'URL', 'xlin:href' => 'aaa á aaa/b/ábc.doc'
574
+ xml[:mets].FLocat 'xmlns:xlin' => 'http://www.w3.org/1999/xlink', LOCTYPE: 'URL', 'xlin:href' => CGI.escape('aaa á aaa/b/ábc.doc')
575
575
  end
576
576
  xml[:mets].file ID: 'fid4', MIMETYPE: 'application/msword', ADMID: 'fid4-amd', GROUPID: 'grp' do
577
- xml[:mets].FLocat 'xmlns:xlin' => 'http://www.w3.org/1999/xlink', LOCTYPE: 'URL', 'xlin:href' => 'aaa á aaa/ccçcc/ã b ç d ë ¼.doc'
577
+ xml[:mets].FLocat 'xmlns:xlin' => 'http://www.w3.org/1999/xlink', LOCTYPE: 'URL', 'xlin:href' => CGI.escape('aaa á aaa/ccçcc/ã b ç d ë ¼.doc')
578
578
  end
579
579
  xml[:mets].file ID: 'fid5', MIMETYPE: 'application/msword', ADMID: 'fid5-amd', GROUPID: 'grp' do
580
- xml[:mets].FLocat 'xmlns:xlin' => 'http://www.w3.org/1999/xlink', LOCTYPE: 'URL', 'xlin:href' => 'aaa á aaa/ss$ss/ã b ç d ë ¼.doc'
580
+ xml[:mets].FLocat 'xmlns:xlin' => 'http://www.w3.org/1999/xlink', LOCTYPE: 'URL', 'xlin:href' => CGI.escape('aaa á aaa/ss$ss/ã b ç d ë ¼.doc')
581
581
  end
582
582
  end
583
583
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: libis-tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kris Dekeyser
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-06-20 00:00:00.000000000 Z
11
+ date: 2025-03-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -290,6 +290,7 @@ files:
290
290
  - ".travis.yml"
291
291
  - CHANGELOG.md
292
292
  - Gemfile
293
+ - Makefile
293
294
  - README.md
294
295
  - Rakefile
295
296
  - bin/libis_tool
@@ -358,7 +359,7 @@ homepage: https://github.com/libis/LIBIS_Tools
358
359
  licenses:
359
360
  - MIT
360
361
  metadata: {}
361
- post_install_message:
362
+ post_install_message:
362
363
  rdoc_options: []
363
364
  require_paths:
364
365
  - lib
@@ -374,7 +375,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
374
375
  version: '0'
375
376
  requirements: []
376
377
  rubygems_version: 3.4.19
377
- signing_key:
378
+ signing_key:
378
379
  specification_version: 4
379
380
  summary: LIBIS toolbox.
380
381
  test_files: