contentdm_api 0.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 +7 -0
- data/.gitignore +10 -0
- data/.travis.yml +4 -0
- data/CODE_OF_CONDUCT.md +49 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +75 -0
- data/Rakefile +10 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/contentdm_api.gemspec +26 -0
- data/lib/contentdm_api/compound_item.rb +61 -0
- data/lib/contentdm_api/request.rb +39 -0
- data/lib/contentdm_api/request_batch.rb +53 -0
- data/lib/contentdm_api/response.rb +23 -0
- data/lib/contentdm_api/service.rb +34 -0
- data/lib/contentdm_api/version.rb +3 -0
- data/lib/contentdm_api.rb +10 -0
- metadata +158 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: bf2ba5a1ff4e7315d73cbb6e99d105181cbcc277
|
4
|
+
data.tar.gz: 820ed7b399108439c2920caf845ae2a764b221d0
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: a8cf5688445b8c8d134f5eda8992c3da0a71f3d5ac4b58fe58412afeb6959bb749a6663f1b07ab1f3d60abe2c6aa0ce8f680aec723533edb22314ffe4779ab01
|
7
|
+
data.tar.gz: 993bc29b0603d6e031e0259a8ed74c7c4ddfd62ceb08c1bb633929899db41cebd1e740988691990eb3349be33892bf9ed6efb60d45c5bc34036be6507d89e987
|
data/.gitignore
ADDED
data/.travis.yml
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
# Contributor Code of Conduct
|
2
|
+
|
3
|
+
As contributors and maintainers of this project, and in the interest of
|
4
|
+
fostering an open and welcoming community, we pledge to respect all people who
|
5
|
+
contribute through reporting issues, posting feature requests, updating
|
6
|
+
documentation, submitting pull requests or patches, and other activities.
|
7
|
+
|
8
|
+
We are committed to making participation in this project a harassment-free
|
9
|
+
experience for everyone, regardless of level of experience, gender, gender
|
10
|
+
identity and expression, sexual orientation, disability, personal appearance,
|
11
|
+
body size, race, ethnicity, age, religion, or nationality.
|
12
|
+
|
13
|
+
Examples of unacceptable behavior by participants include:
|
14
|
+
|
15
|
+
* The use of sexualized language or imagery
|
16
|
+
* Personal attacks
|
17
|
+
* Trolling or insulting/derogatory comments
|
18
|
+
* Public or private harassment
|
19
|
+
* Publishing other's private information, such as physical or electronic
|
20
|
+
addresses, without explicit permission
|
21
|
+
* Other unethical or unprofessional conduct
|
22
|
+
|
23
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
24
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
25
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
26
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
27
|
+
threatening, offensive, or harmful.
|
28
|
+
|
29
|
+
By adopting this Code of Conduct, project maintainers commit themselves to
|
30
|
+
fairly and consistently applying these principles to every aspect of managing
|
31
|
+
this project. Project maintainers who do not follow or enforce the Code of
|
32
|
+
Conduct may be permanently removed from the project team.
|
33
|
+
|
34
|
+
This code of conduct applies both within project spaces and in public spaces
|
35
|
+
when an individual is representing the project or its community.
|
36
|
+
|
37
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
38
|
+
reported by contacting a project maintainer at fenne035@umn.edu. All
|
39
|
+
complaints will be reviewed and investigated and will result in a response that
|
40
|
+
is deemed necessary and appropriate to the circumstances. Maintainers are
|
41
|
+
obligated to maintain confidentiality with regard to the reporter of an
|
42
|
+
incident.
|
43
|
+
|
44
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
45
|
+
version 1.3.0, available at
|
46
|
+
[http://contributor-covenant.org/version/1/3/0/][version]
|
47
|
+
|
48
|
+
[homepage]: http://contributor-covenant.org
|
49
|
+
[version]: http://contributor-covenant.org/version/1/3/0/
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2016 University of Minnesota Libraries
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,75 @@
|
|
1
|
+
# CONTENTdm API for Ruby
|
2
|
+
|
3
|
+
Ruby bindings for the [CONTENTdm API](https://www.oclc.org/support/services/contentdm_api/help/customizing-website-help/other-customizations/contentdm_api-api-reference.en.html).
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
gem 'contentdm_api'
|
11
|
+
```
|
12
|
+
|
13
|
+
And then execute:
|
14
|
+
|
15
|
+
$ bundle
|
16
|
+
|
17
|
+
Or install it yourself as:
|
18
|
+
|
19
|
+
$ gem install contentdm_api
|
20
|
+
|
21
|
+
Include the library in your code:
|
22
|
+
|
23
|
+
`require 'contentdm_api'`
|
24
|
+
|
25
|
+
|
26
|
+
## Quick Start
|
27
|
+
|
28
|
+
|
29
|
+
**Retrieve Item Metadata Along With Its Compound Object Info (If it Exists)**
|
30
|
+
|
31
|
+
```
|
32
|
+
CONTENTdmAPI::CompoundItem.new(base_url: 'https://server16022.contentdm.oclc.org/dmwebservices/index.php', collection: 'p16022coll39', id: 446).metadata
|
33
|
+
```
|
34
|
+
|
35
|
+
CompoundItem has been added as a convenience. It is a wrapper around the `CONTENTdmAPI::RequestBatch` feature (see below).
|
36
|
+
|
37
|
+
**Call a CONTENTdm API function directoy**
|
38
|
+
|
39
|
+
The following shows the default keyword arguments for the Service class. Please refer to the [CONTENTdm API](https://www.oclc.org/support/services/contentdm_api/help/customizing-website-help/other-customizations/contentdm_api-api-reference.en.html) for details on each API function and corresponding parameters. Parameters must be passed as an array in the order specified in the CONTENTdm API instructions.
|
40
|
+
|
41
|
+
```
|
42
|
+
service = CONTENTdmAPI::Service.new(function: 'wsAPIDescribe', params: [], format: 'json')
|
43
|
+
|
44
|
+
response = CONTENTdmAPI::Request.new(base_url: 'https://server16022.contentdm.oclc.org/dmwebservices/index.php', service: service).fetch
|
45
|
+
```
|
46
|
+
|
47
|
+
**Request multiple CONTENTdm functions/endpoints at once**
|
48
|
+
|
49
|
+
```
|
50
|
+
service_configs = [{function: 'dmGetItemInfo', params: ['p16022coll39', 446]},
|
51
|
+
{function: 'dmGetCompoundObjectInfo', params: ['p16022coll39', 446]}]
|
52
|
+
|
53
|
+
responses = CONTENTdmAPI::RequestBatch.new(base_url: 'https://server16022.contentdm.oclc.org/dmwebservices/index.php', service_configs: service_configs).fetch
|
54
|
+
```
|
55
|
+
|
56
|
+
You may also use the Response class to parse and handle API inconsistencies (e.g. calls for non-existent collections result in non-JSON HTML responses):
|
57
|
+
|
58
|
+
```
|
59
|
+
responses.map { |resp| CONTENTdmAPI::Response.new(raw_data: resp[:value]).parsed }
|
60
|
+
```
|
61
|
+
|
62
|
+
## Development
|
63
|
+
|
64
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
65
|
+
|
66
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
67
|
+
|
68
|
+
## Contributing
|
69
|
+
|
70
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/UMNLibraries/contentdm_api. 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.
|
71
|
+
|
72
|
+
|
73
|
+
## License
|
74
|
+
|
75
|
+
MIT
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "contentdm_api"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start
|
data/bin/setup
ADDED
@@ -0,0 +1,26 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'contentdm_api/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "contentdm_api"
|
8
|
+
spec.version = CONTENTdmAPI::VERSION
|
9
|
+
spec.authors = ["Chad Fennell"]
|
10
|
+
spec.email = ["fenne035@umn.edu"]
|
11
|
+
|
12
|
+
spec.summary = %q{Ruby bindings for the ContentDM API}
|
13
|
+
spec.license = "MIT"
|
14
|
+
|
15
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
16
|
+
spec.bindir = "exe"
|
17
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
18
|
+
spec.require_paths = ["lib"]
|
19
|
+
|
20
|
+
spec.add_development_dependency "bundler", "~> 1.11"
|
21
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
22
|
+
spec.add_development_dependency "minitest", "~> 5.0"
|
23
|
+
spec.add_development_dependency 'webmock', '~> 1.24', '>= 1.24.0'
|
24
|
+
spec.add_development_dependency 'vcr', '~> 3.0', '>= 3.0.1'
|
25
|
+
spec.add_development_dependency "yard", "~> 0.9.0"
|
26
|
+
end
|
@@ -0,0 +1,61 @@
|
|
1
|
+
module CONTENTdmAPI
|
2
|
+
# A convenience method to retrive a Ruby hash of Item data from the CONTENTdm
|
3
|
+
# API
|
4
|
+
class CompoundItem
|
5
|
+
attr_reader :collection, :id, :requester, :base_url, :response
|
6
|
+
|
7
|
+
# @param [String] base_url URL to the CONTENTdm API
|
8
|
+
# "http://CdmServer.com:port/dmwebservices/index.php"
|
9
|
+
# @param [String] collection The CONTENTdm API calls this an "alias"
|
10
|
+
# @param [Integer] id The CONTENTdm API calls this a "pointer". It is the
|
11
|
+
# identifier for a a given CONTENTdm item.
|
12
|
+
# @param [Object] requester A class to make requests of the API.
|
13
|
+
# @param [Object] response A class to parse API responses.
|
14
|
+
#
|
15
|
+
# @return [Void]
|
16
|
+
def initialize(base_url: '',
|
17
|
+
collection: '',
|
18
|
+
id: 0,
|
19
|
+
requester: RequestBatch,
|
20
|
+
response: Response)
|
21
|
+
@collection = collection
|
22
|
+
@id = id
|
23
|
+
@requester = requester
|
24
|
+
@base_url = base_url
|
25
|
+
@response = response
|
26
|
+
end
|
27
|
+
|
28
|
+
# A hash of metadata with compound data for a given item
|
29
|
+
#
|
30
|
+
# @return [Hash] Merged responses from the dmGetItemInfo and
|
31
|
+
# dmGetCompoundObjectInfo functions
|
32
|
+
def metadata
|
33
|
+
values.first.merge(values.last).merge('id' => "#{collection}/#{id}")
|
34
|
+
end
|
35
|
+
|
36
|
+
private
|
37
|
+
|
38
|
+
def remove_errors(value)
|
39
|
+
(value['code'] != '-2') ? value : {}
|
40
|
+
end
|
41
|
+
|
42
|
+
def values
|
43
|
+
responses.map { |resp| remove_errors(parse(resp[:value])) }
|
44
|
+
end
|
45
|
+
|
46
|
+
def parse(value)
|
47
|
+
response.new(raw_data: value).parsed
|
48
|
+
end
|
49
|
+
|
50
|
+
def responses
|
51
|
+
requester.new(base_url: base_url, service_configs: service_configs).fetch
|
52
|
+
end
|
53
|
+
|
54
|
+
def service_configs
|
55
|
+
[
|
56
|
+
{ function: 'dmGetItemInfo', params: [collection, id] },
|
57
|
+
{ function: 'dmGetCompoundObjectInfo', params: [collection, id] }
|
58
|
+
]
|
59
|
+
end
|
60
|
+
end
|
61
|
+
end
|
@@ -0,0 +1,39 @@
|
|
1
|
+
require 'net/http'
|
2
|
+
module CONTENTdmAPI
|
3
|
+
# Form requests to the ContentDM API
|
4
|
+
class Request
|
5
|
+
attr_reader :base_url, :client, :service
|
6
|
+
# @param [String] base_url URL to the CONTENTdm API
|
7
|
+
# "http://CdmServer.com:port/dmwebservices/index.php"
|
8
|
+
# @param [Object] client An HTTP client to make requests of the API
|
9
|
+
# @param [Object] service A class to tell the Request class which function,
|
10
|
+
# params and format to request of the CONTENTdm API
|
11
|
+
#
|
12
|
+
# @return [Void]
|
13
|
+
def initialize(base_url: '', client: Net::HTTP, service: Service.new)
|
14
|
+
@base_url = base_url
|
15
|
+
@client = client
|
16
|
+
@service = service
|
17
|
+
end
|
18
|
+
|
19
|
+
# Fetch data from the CONTENTdm API
|
20
|
+
#
|
21
|
+
# @return [String] either XML or JSON
|
22
|
+
def fetch
|
23
|
+
request
|
24
|
+
end
|
25
|
+
|
26
|
+
# A URL for a given service
|
27
|
+
#
|
28
|
+
# @return [String] a url string
|
29
|
+
def url
|
30
|
+
"#{base_url}?q=#{service.url_params}"
|
31
|
+
end
|
32
|
+
|
33
|
+
private
|
34
|
+
|
35
|
+
def request
|
36
|
+
@response ||= client.get_response(URI(url)).body
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
@@ -0,0 +1,53 @@
|
|
1
|
+
module CONTENTdmAPI
|
2
|
+
# Make a batch of requests to the CONTENTdm API and combine them
|
3
|
+
class RequestBatch
|
4
|
+
attr_reader :service, :configs, :base_url, :requester
|
5
|
+
# @param [String] base_url URL to the CONTENTdm API
|
6
|
+
# "http://CdmServer.com:port/dmwebservices/index.php"
|
7
|
+
# @param [Array] service_configs An array of hash configurations for
|
8
|
+
# individual services
|
9
|
+
# "http://CdmServer.com:port/dmwebservices/index.php"
|
10
|
+
# @param [Object] service A Service class to tell the Request class
|
11
|
+
# which function, params and format to request of the CONTENTdm API
|
12
|
+
# @param [Object] requester A class to form requests to the ContentDM API
|
13
|
+
#
|
14
|
+
# @return [Void]
|
15
|
+
def initialize(base_url: '',
|
16
|
+
service_configs: [],
|
17
|
+
service: Service,
|
18
|
+
requester: Request)
|
19
|
+
|
20
|
+
@service = service
|
21
|
+
@configs = service_configs
|
22
|
+
@base_url = base_url
|
23
|
+
@requester = requester
|
24
|
+
end
|
25
|
+
|
26
|
+
# Fetch data from the CONTENTdm API
|
27
|
+
#
|
28
|
+
# @return [Array] an array of hashes containing Request response data
|
29
|
+
def fetch
|
30
|
+
responses
|
31
|
+
end
|
32
|
+
|
33
|
+
private
|
34
|
+
|
35
|
+
def service_objects
|
36
|
+
configs.map { |s| new_service(s[:function], s.fetch(:params, [])) }
|
37
|
+
end
|
38
|
+
|
39
|
+
def new_service(function, params)
|
40
|
+
service.new(function: function, params: params)
|
41
|
+
end
|
42
|
+
|
43
|
+
def responses
|
44
|
+
service_objects.map do |service|
|
45
|
+
{ service: service.function, value: request(service, base_url) }
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
def request(service, base_url)
|
50
|
+
requester.new(service: service, base_url: base_url).fetch
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
module CONTENTdmAPI
|
2
|
+
# A class to parse API responses.
|
3
|
+
class Response
|
4
|
+
attr_accessor :raw_data
|
5
|
+
# @param [String] raw_data A string of data received from the CONTENTdm API
|
6
|
+
#
|
7
|
+
# @return [Void]
|
8
|
+
def initialize(raw_data: '')
|
9
|
+
@raw_data = raw_data
|
10
|
+
end
|
11
|
+
|
12
|
+
# A parsed JSON string response that handles cases where the API does not
|
13
|
+
# return valid JSON (Response only supports JSON responses for now).
|
14
|
+
#
|
15
|
+
# @return [Hash] A ruby hash of a CONTENTdm response
|
16
|
+
def parsed
|
17
|
+
JSON.parse(raw_data)
|
18
|
+
rescue => e
|
19
|
+
# The contentdm_api api spits out HTML when it can't find a collection
|
20
|
+
{ 'code' => '-2', 'message' => e.to_s }
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,34 @@
|
|
1
|
+
module CONTENTdmAPI
|
2
|
+
# A class to tell the Request class which function, params and format to
|
3
|
+
# request of the CONTENTdm API
|
4
|
+
class Service
|
5
|
+
attr_reader :format, :function, :params
|
6
|
+
|
7
|
+
# @param [String] function function A CONTENTdm function
|
8
|
+
# @param [Array] params A set of params for a given function. Parameters
|
9
|
+
# must be passed as an array in the order specified in the CONTENTdm API
|
10
|
+
# documentation.
|
11
|
+
# "http://CdmServer.com:port/dmwebservices/index.php"
|
12
|
+
# @param [String] format Either XML or JSON. Defaults to JSON.
|
13
|
+
#
|
14
|
+
# @return [Void]
|
15
|
+
def initialize(function: 'wsAPIDescribe', params: [], format: 'json')
|
16
|
+
@format = format
|
17
|
+
@function = function
|
18
|
+
@params = params
|
19
|
+
end
|
20
|
+
|
21
|
+
# URL params for a given service
|
22
|
+
#
|
23
|
+
# @return [String] A CONTENTdm formatted url parameter string
|
24
|
+
def url_params
|
25
|
+
"#{function}/#{all_params.join('/')}"
|
26
|
+
end
|
27
|
+
|
28
|
+
private
|
29
|
+
|
30
|
+
def all_params
|
31
|
+
params.concat([format])
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
@@ -0,0 +1,10 @@
|
|
1
|
+
require "contentdm_api/version"
|
2
|
+
require 'net/http'
|
3
|
+
require 'json'
|
4
|
+
|
5
|
+
require_relative './contentdm_api/request'
|
6
|
+
require_relative './contentdm_api/request_batch'
|
7
|
+
require_relative './contentdm_api/service'
|
8
|
+
require_relative './contentdm_api/response'
|
9
|
+
require_relative './contentdm_api/compound_item'
|
10
|
+
|
metadata
ADDED
@@ -0,0 +1,158 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: contentdm_api
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Chad Fennell
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-07-15 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.11'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.11'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: minitest
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '5.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '5.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: webmock
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '1.24'
|
62
|
+
- - ">="
|
63
|
+
- !ruby/object:Gem::Version
|
64
|
+
version: 1.24.0
|
65
|
+
type: :development
|
66
|
+
prerelease: false
|
67
|
+
version_requirements: !ruby/object:Gem::Requirement
|
68
|
+
requirements:
|
69
|
+
- - "~>"
|
70
|
+
- !ruby/object:Gem::Version
|
71
|
+
version: '1.24'
|
72
|
+
- - ">="
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: 1.24.0
|
75
|
+
- !ruby/object:Gem::Dependency
|
76
|
+
name: vcr
|
77
|
+
requirement: !ruby/object:Gem::Requirement
|
78
|
+
requirements:
|
79
|
+
- - "~>"
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
version: '3.0'
|
82
|
+
- - ">="
|
83
|
+
- !ruby/object:Gem::Version
|
84
|
+
version: 3.0.1
|
85
|
+
type: :development
|
86
|
+
prerelease: false
|
87
|
+
version_requirements: !ruby/object:Gem::Requirement
|
88
|
+
requirements:
|
89
|
+
- - "~>"
|
90
|
+
- !ruby/object:Gem::Version
|
91
|
+
version: '3.0'
|
92
|
+
- - ">="
|
93
|
+
- !ruby/object:Gem::Version
|
94
|
+
version: 3.0.1
|
95
|
+
- !ruby/object:Gem::Dependency
|
96
|
+
name: yard
|
97
|
+
requirement: !ruby/object:Gem::Requirement
|
98
|
+
requirements:
|
99
|
+
- - "~>"
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: 0.9.0
|
102
|
+
type: :development
|
103
|
+
prerelease: false
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
requirements:
|
106
|
+
- - "~>"
|
107
|
+
- !ruby/object:Gem::Version
|
108
|
+
version: 0.9.0
|
109
|
+
description:
|
110
|
+
email:
|
111
|
+
- fenne035@umn.edu
|
112
|
+
executables: []
|
113
|
+
extensions: []
|
114
|
+
extra_rdoc_files: []
|
115
|
+
files:
|
116
|
+
- ".gitignore"
|
117
|
+
- ".travis.yml"
|
118
|
+
- CODE_OF_CONDUCT.md
|
119
|
+
- Gemfile
|
120
|
+
- LICENSE.txt
|
121
|
+
- README.md
|
122
|
+
- Rakefile
|
123
|
+
- bin/console
|
124
|
+
- bin/setup
|
125
|
+
- contentdm_api.gemspec
|
126
|
+
- lib/contentdm_api.rb
|
127
|
+
- lib/contentdm_api/compound_item.rb
|
128
|
+
- lib/contentdm_api/request.rb
|
129
|
+
- lib/contentdm_api/request_batch.rb
|
130
|
+
- lib/contentdm_api/response.rb
|
131
|
+
- lib/contentdm_api/service.rb
|
132
|
+
- lib/contentdm_api/version.rb
|
133
|
+
homepage:
|
134
|
+
licenses:
|
135
|
+
- MIT
|
136
|
+
metadata: {}
|
137
|
+
post_install_message:
|
138
|
+
rdoc_options: []
|
139
|
+
require_paths:
|
140
|
+
- lib
|
141
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0'
|
146
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
147
|
+
requirements:
|
148
|
+
- - ">="
|
149
|
+
- !ruby/object:Gem::Version
|
150
|
+
version: '0'
|
151
|
+
requirements: []
|
152
|
+
rubyforge_project:
|
153
|
+
rubygems_version: 2.4.8
|
154
|
+
signing_key:
|
155
|
+
specification_version: 4
|
156
|
+
summary: Ruby bindings for the ContentDM API
|
157
|
+
test_files: []
|
158
|
+
has_rdoc:
|