iiif_manifest 1.1.0 → 1.1.1

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: ce4c4a874b8b50d50d11344dac0e635248754bb2b3498331cbd94945a5f3be75
4
- data.tar.gz: 3da6a490d37ea8107e50a4393c21d5189ff97e47e9f34a65bd87848f3504f307
3
+ metadata.gz: ebfc009f93b6b56223eefbe2387b77b481b0897e74ff06861dd9731f1cb11da4
4
+ data.tar.gz: 9db51ecae1599ccf29cfa94d32b73630cb8f29e77909556bf9621224d0d0c728
5
5
  SHA512:
6
- metadata.gz: e54f567e6ed14b4a802d05433a17547e119da18ee6dc851db026f157eb344e431649d8bc84076d102449bbee5b7d69a73bbf8b22d36eb43e6e46d7062e4c7133
7
- data.tar.gz: ea7afaf08fdd7d142d7bbe6c0087521ddcda5ec520f183f7d2ae479961dd36908fa4b34054fdb379ad88f6c71c4a898d0e5c19419528e0135005a49be3deb6ee
6
+ metadata.gz: 40acf74c8a9fbab07080e074d24216d705af922ec44bb9c318cd4bf0c74acf1e00ac0a6de22dc737ed678dcbcc172229dc4c5d5dcf5195d94906bfd2fc558321
7
+ data.tar.gz: cf16d75f2eab225b03ca7935aa4bf6ec8d22c45f8173a9b9fe654f6db7aaacb97a807b8ec594d7422e29925c4aaeebf45ac81daf781b47a862aaf52b1530d509
data/.circleci/config.yml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  version: 2.1
3
3
  orbs:
4
- samvera: samvera/circleci-orb@0
4
+ samvera: samvera/circleci-orb@1.0
5
5
 
6
6
  jobs:
7
7
  test:
@@ -10,7 +10,7 @@ jobs:
10
10
  type: string
11
11
  bundler_version:
12
12
  type: string
13
- default: 2.0.2
13
+ default: 2.3.10
14
14
 
15
15
  executor:
16
16
  name: 'samvera/ruby'
@@ -36,16 +36,35 @@ workflows:
36
36
  jobs:
37
37
  - test:
38
38
  name: "ruby3-0"
39
- ruby_version: "3.0.0"
39
+ ruby_version: "3.0.3"
40
40
  - test:
41
41
  name: "ruby2-7"
42
- ruby_version: "2.7.0"
42
+ ruby_version: "2.7.5"
43
43
  - test:
44
44
  name: "ruby2-6"
45
- ruby_version: "2.6.5"
45
+ ruby_version: "2.6.9"
46
46
  - test:
47
47
  name: "ruby2-5"
48
- ruby_version: "2.5.7"
48
+ ruby_version: "2.5.9"
49
+
50
+ nightly:
51
+ triggers:
52
+ - schedule:
53
+ cron: "0 0 * * *"
54
+ filters:
55
+ branches:
56
+ only:
57
+ - main
58
+ jobs:
49
59
  - test:
50
- name: "ruby2-4"
51
- ruby_version: "2.4.9"
60
+ name: "ruby3-0"
61
+ ruby_version: "3.0.3"
62
+ - test:
63
+ name: "ruby2-7"
64
+ ruby_version: "2.7.5"
65
+ - test:
66
+ name: "ruby2-6"
67
+ ruby_version: "2.6.9"
68
+ - test:
69
+ name: "ruby2-5"
70
+ ruby_version: "2.5.9"
data/README.md CHANGED
@@ -4,7 +4,7 @@ Code: [![CircleCI](https://circleci.com/gh/samvera/iiif_manifest.svg?style=svg)]
4
4
 
5
5
  Docs: [![Contribution Guidelines](http://img.shields.io/badge/CONTRIBUTING-Guidelines-blue.svg)](./CONTRIBUTING.md) [![Apache 2.0 License](http://img.shields.io/badge/APACHE2-license-blue.svg)](./LICENSE)
6
6
 
7
- Jump in: [![Slack Status](http://slack.samvera.org/badge.svg)](http://slack.samvera.org/)
7
+ Join the conversation on slack: [![Slack Status](https://raw.githubusercontent.com/samvera/maintenance/main/assets/slack_icon.png)](http://slack.samvera.org/)
8
8
 
9
9
  # What is IIIFManifest
10
10
 
@@ -171,21 +171,6 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
171
171
 
172
172
  Bug reports and pull requests are welcome on GitHub at <https://github.com/samvera-labs/iiif_manifest>. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
173
173
 
174
- ## Releasing
175
-
176
- 1. `bundle install`
177
- 2. Increase the version number in `lib/iiif_manifest/version.rb`
178
- 3. Increase the same version number in `.github_changelog_generator`
179
- 4. Update `CHANGELOG.md` by running this command:
180
-
181
- ```
182
- github_changelog_generator --user samvera --project iiif_manifest --token YOUR_GITHUB_TOKEN_HERE
183
- ```
184
-
185
- 5. Commit these changes to the master branch
186
-
187
- 6. Run `rake release`
188
-
189
174
  ## Help
190
175
 
191
176
  The Samvera community is here to help. Please see our [support guide](./SUPPORT.md).
@@ -194,4 +179,4 @@ The Samvera community is here to help. Please see our [support guide](./SUPPORT.
194
179
 
195
180
  This software has been developed by and is brought to you by the Samvera community. Learn more at the [Samvera website](http://samvera.org/).
196
181
 
197
- ![Samvera Logo](https://wiki.duraspace.org/download/thumbnails/87459292/samvera-fall-font2-200w.png?version=1&modificationDate=1498550535816&api=v2)
182
+ ![Samvera Logo](https://raw.githubusercontent.com/samvera/maintenance/main/assets/samvera_tree.png)
@@ -6,7 +6,7 @@ module IIIFManifest
6
6
  @inner_hash = initial_attributes
7
7
  end
8
8
 
9
- delegate :[]=, :[], :as_json, :to_json, :has_key?, to: :inner_hash
9
+ delegate :[]=, :[], :as_json, :to_json, :has_key?, :key?, to: :inner_hash
10
10
 
11
11
  def initial_attributes
12
12
  {}
@@ -12,9 +12,9 @@ module IIIFManifest
12
12
 
13
13
  def apply(canvas)
14
14
  annotation['target'] = canvas['id']
15
- canvas['width'] = annotation.body['width']
16
- canvas['height'] = annotation.body['height']
17
- canvas['duration'] = annotation.body['duration']
15
+ canvas['width'] = annotation.body['width'] if annotation.body['width'].present?
16
+ canvas['height'] = annotation.body['height'] if annotation.body['height'].present?
17
+ canvas['duration'] = annotation.body['duration'] if annotation.body['duration'].present?
18
18
  # Assume first item in canvas is an annotation page
19
19
  canvas.items.first.items += [annotation]
20
20
  end
@@ -1,3 +1,3 @@
1
1
  module IIIFManifest
2
- VERSION = '1.1.0'.freeze
2
+ VERSION = '1.1.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iiif_manifest
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Coyne
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2021-01-13 00:00:00.000000000 Z
12
+ date: 2022-04-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
@@ -189,7 +189,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
189
189
  - !ruby/object:Gem::Version
190
190
  version: '0'
191
191
  requirements: []
192
- rubygems_version: 3.2.3
192
+ rubygems_version: 3.1.6
193
193
  signing_key:
194
194
  specification_version: 4
195
195
  summary: Generate IIIF presentation manifests for Hydra::Works