iiif-presentation 1.0.0 → 1.1.0

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
  SHA256:
3
- metadata.gz: 595091b364990a3c3c5119ad55629ad137b9f59ad2b59b5fd0ae763b12afc340
4
- data.tar.gz: ad8be940ec5dd37006b619456d23eb0d410f201a36587a6045917739ba69c94f
3
+ metadata.gz: 39369e50dc0a31ebfdac97d49008eb26e020ac21c595c400906dc6a54de45097
4
+ data.tar.gz: e127162464e102ef0d2ee9800cf81713e0cd681edde07e3123bf5353b1b1fb90
5
5
  SHA512:
6
- metadata.gz: 23600bbc87868cc9b7d0455228d0c7f8a1dca235a4e732b343e9dc0987f485f0dd4e59f64ae6434afec341ba8ae36add4ab48b91a0bc4d2be9e94596879b247e
7
- data.tar.gz: ddd645e0cb9fd3464547826504b4078798e02cb06d766c6b9e10fb28d7b4999e0a643414f7ddb737bf91d2469e6693e7cbdbb556bd73d191d50063442c3dae18
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
- [![Build Status](https://travis-ci.org/iiif-prezi/osullivan.svg?branch=development)](https://travis-ci.org/iiif-prezi/osullivan)
4
3
  [![Coverage Status](https://coveralls.io/repos/github/iiif-prezi/osullivan/badge.svg?branch=development)](https://coveralls.io/github/iiif-prezi/osullivan?branch=development)
5
4
 
6
5
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.0
1
+ 1.1.0
@@ -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.exists?(s)
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.exists?(s)
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.0.0
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: 2020-06-17 00:00:00.000000000 Z
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.1.2
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:
data/.travis.yml DELETED
@@ -1,11 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.7.0
4
-
5
- env:
6
- - RAILS_VERSION='~> 5.2'
7
- - RAILS_VERSION='~> 6.0'
8
- - RAILS_VERSION='~> 6.0' FARADAY_VERSION='< 1.0'
9
- install:
10
- - "gem install bundler"
11
- - "bundle install --jobs=3 --retry=3"