iiif-presentation 1.0.0 → 1.1.0
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 +4 -4
- data/.github/workflows/ruby.yml +35 -0
- data/README.md +0 -1
- data/VERSION +1 -1
- data/lib/iiif/hash_behaviours.rb +1 -1
- data/lib/iiif/service.rb +2 -2
- metadata +7 -7
- data/.travis.yml +0 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 39369e50dc0a31ebfdac97d49008eb26e020ac21c595c400906dc6a54de45097
|
4
|
+
data.tar.gz: e127162464e102ef0d2ee9800cf81713e0cd681edde07e3123bf5353b1b1fb90
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 230c5a28d5e5dbc405b32f9e6ca1f3d60e7f8e2d3cbbeab85f9650dbf24bb701d0a1c6af1b29d1cd844ac971e11e1ab8a65644cf10f33778e1465d8b1fcc01ad
|
7
|
+
data.tar.gz: 0ab62efe7287d7eaae0ae7ab2a569b18cd2238753569e15857478976a834e5746df1dd919befe211299f31fae63822a735e25fe9da22b5e74b7d05b08457e608
|
@@ -0,0 +1,35 @@
|
|
1
|
+
# This workflow uses actions that are not certified by GitHub.
|
2
|
+
# They are provided by a third-party and are governed by
|
3
|
+
# separate terms of service, privacy policy, and support
|
4
|
+
# documentation.
|
5
|
+
# This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
|
6
|
+
# For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
|
7
|
+
|
8
|
+
name: Ruby
|
9
|
+
|
10
|
+
on:
|
11
|
+
push:
|
12
|
+
branches: [ "development" ]
|
13
|
+
pull_request:
|
14
|
+
branches: [ "development" ]
|
15
|
+
|
16
|
+
permissions:
|
17
|
+
contents: read
|
18
|
+
|
19
|
+
jobs:
|
20
|
+
test:
|
21
|
+
|
22
|
+
runs-on: ubuntu-latest
|
23
|
+
strategy:
|
24
|
+
matrix:
|
25
|
+
ruby-version: ['2.7', '3.0', '3.1', '3.2']
|
26
|
+
|
27
|
+
steps:
|
28
|
+
- uses: actions/checkout@v3
|
29
|
+
- name: Set up Ruby
|
30
|
+
uses: ruby/setup-ruby@v1
|
31
|
+
with:
|
32
|
+
ruby-version: ${{ matrix.ruby-version }}
|
33
|
+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
34
|
+
- name: Run tests
|
35
|
+
run: bundle exec rake
|
data/README.md
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
# O'Sullivan: A Ruby API for working with IIIF Presentation manifests
|
2
2
|
|
3
|
-
[](https://travis-ci.org/iiif-prezi/osullivan)
|
4
3
|
[](https://coveralls.io/github/iiif-prezi/osullivan?branch=development)
|
5
4
|
|
6
5
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.1.0
|
data/lib/iiif/hash_behaviours.rb
CHANGED
@@ -8,7 +8,7 @@ module IIIF
|
|
8
8
|
# * reject
|
9
9
|
# * replace
|
10
10
|
|
11
|
-
def_delegators :@data, :[], :[]=, :camelize_keys, :delete, :empty?,
|
11
|
+
def_delegators :@data, :[], :[]=, :camelize_keys, :delete, :dig, :empty?,
|
12
12
|
:fetch, :has_key?, :has_value?, :include?, :insert, :insert_after,
|
13
13
|
:insert_before, :key, :key?, :keys, :length, :member?, :shift, :size,
|
14
14
|
:snakeize_keys, :store, :unshift, :value?, :values
|
data/lib/iiif/service.rb
CHANGED
@@ -33,9 +33,9 @@ module IIIF
|
|
33
33
|
# Parse from a file path, string, or existing hash
|
34
34
|
def parse(s)
|
35
35
|
ordered_hash = nil
|
36
|
-
if s.kind_of?(String) && File.
|
36
|
+
if s.kind_of?(String) && File.exist?(s)
|
37
37
|
ordered_hash = IIIF::OrderedHash[JSON.parse(IO.read(s))]
|
38
|
-
elsif s.kind_of?(String) && !File.
|
38
|
+
elsif s.kind_of?(String) && !File.exist?(s)
|
39
39
|
ordered_hash = IIIF::OrderedHash[JSON.parse(s)]
|
40
40
|
elsif s.kind_of?(Hash)
|
41
41
|
ordered_hash = IIIF::OrderedHash[s]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: iiif-presentation
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jon Stroop
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-01-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -157,9 +157,9 @@ executables: []
|
|
157
157
|
extensions: []
|
158
158
|
extra_rdoc_files: []
|
159
159
|
files:
|
160
|
+
- ".github/workflows/ruby.yml"
|
160
161
|
- ".gitignore"
|
161
162
|
- ".rspec"
|
162
|
-
- ".travis.yml"
|
163
163
|
- Gemfile
|
164
164
|
- LICENSE
|
165
165
|
- README.md
|
@@ -211,7 +211,7 @@ homepage: https://github.com/iiif/osullivan
|
|
211
211
|
licenses:
|
212
212
|
- Simplified BSD
|
213
213
|
metadata: {}
|
214
|
-
post_install_message:
|
214
|
+
post_install_message:
|
215
215
|
rdoc_options: []
|
216
216
|
require_paths:
|
217
217
|
- lib
|
@@ -226,8 +226,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
226
226
|
- !ruby/object:Gem::Version
|
227
227
|
version: '0'
|
228
228
|
requirements: []
|
229
|
-
rubygems_version: 3.
|
230
|
-
signing_key:
|
229
|
+
rubygems_version: 3.3.26
|
230
|
+
signing_key:
|
231
231
|
specification_version: 4
|
232
232
|
summary: API for working with IIIF Presentation manifests.
|
233
233
|
test_files:
|