uri_service-client 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +12 -0
- data/.rspec +3 -0
- data/.rubocop.yml +13 -0
- data/.travis.yml +5 -0
- data/Gemfile +6 -0
- data/Gemfile.lock +90 -0
- data/README.md +59 -0
- data/Rakefile +9 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/lib/uri_service/client.rb +23 -0
- data/lib/uri_service/client/connection.rb +67 -0
- data/lib/uri_service/client/error.rb +6 -0
- data/lib/uri_service/client/form_fields.rb +64 -0
- data/lib/uri_service/client/requests/custom_fields.rb +26 -0
- data/lib/uri_service/client/requests/terms.rb +37 -0
- data/lib/uri_service/client/requests/vocabularies.rb +28 -0
- data/lib/uri_service/client/response.rb +20 -0
- data/lib/uri_service/client/version.rb +5 -0
- data/uri_service-client.gemspec +27 -0
- metadata +161 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: eb3aaec6e73b78430f7bd3a1755d1e63d1d90a57
|
4
|
+
data.tar.gz: ae641aa76758fdce2f335e6dceb06581f505346f
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 82f1b938cd6a7752345f347bf4cf9d64d43bda382027bd72b2f27d83fec056f3a879e42d309300e29e8015b72dd6e3028ec5d90177263eeaa5895618a583cc26
|
7
|
+
data.tar.gz: 533a498d4c76050166aa22c1ea52958c8d2d0201637c1e52b7fe5bf02511f4a466afbb82f44e08e3a2a0143c8d8343f6a9b9f92f0108fb018a73cacb62615b1e
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.rubocop.yml
ADDED
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,90 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
uri_service-client (0.1.0)
|
5
|
+
faraday (~> 0.15.4)
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: https://rubygems.org/
|
9
|
+
specs:
|
10
|
+
addressable (2.5.2)
|
11
|
+
public_suffix (>= 2.0.2, < 4.0)
|
12
|
+
ast (2.4.0)
|
13
|
+
bixby (1.0.0)
|
14
|
+
rubocop (~> 0.50, <= 0.52.1)
|
15
|
+
rubocop-rspec (~> 1.22, <= 1.22.2)
|
16
|
+
coveralls (0.8.22)
|
17
|
+
json (>= 1.8, < 3)
|
18
|
+
simplecov (~> 0.16.1)
|
19
|
+
term-ansicolor (~> 1.3)
|
20
|
+
thor (~> 0.19.4)
|
21
|
+
tins (~> 1.6)
|
22
|
+
crack (0.4.3)
|
23
|
+
safe_yaml (~> 1.0.0)
|
24
|
+
diff-lcs (1.3)
|
25
|
+
docile (1.3.1)
|
26
|
+
faraday (0.15.4)
|
27
|
+
multipart-post (>= 1.2, < 3)
|
28
|
+
hashdiff (0.3.8)
|
29
|
+
json (2.1.0)
|
30
|
+
multipart-post (2.0.0)
|
31
|
+
parallel (1.13.0)
|
32
|
+
parser (2.6.0.0)
|
33
|
+
ast (~> 2.4.0)
|
34
|
+
powerpack (0.1.2)
|
35
|
+
public_suffix (3.0.3)
|
36
|
+
rainbow (3.0.0)
|
37
|
+
rake (10.5.0)
|
38
|
+
rspec (3.8.0)
|
39
|
+
rspec-core (~> 3.8.0)
|
40
|
+
rspec-expectations (~> 3.8.0)
|
41
|
+
rspec-mocks (~> 3.8.0)
|
42
|
+
rspec-core (3.8.0)
|
43
|
+
rspec-support (~> 3.8.0)
|
44
|
+
rspec-expectations (3.8.2)
|
45
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
46
|
+
rspec-support (~> 3.8.0)
|
47
|
+
rspec-mocks (3.8.0)
|
48
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
49
|
+
rspec-support (~> 3.8.0)
|
50
|
+
rspec-support (3.8.0)
|
51
|
+
rubocop (0.52.1)
|
52
|
+
parallel (~> 1.10)
|
53
|
+
parser (>= 2.4.0.2, < 3.0)
|
54
|
+
powerpack (~> 0.1)
|
55
|
+
rainbow (>= 2.2.2, < 4.0)
|
56
|
+
ruby-progressbar (~> 1.7)
|
57
|
+
unicode-display_width (~> 1.0, >= 1.0.1)
|
58
|
+
rubocop-rspec (1.22.2)
|
59
|
+
rubocop (>= 0.52.1)
|
60
|
+
ruby-progressbar (1.10.0)
|
61
|
+
safe_yaml (1.0.4)
|
62
|
+
simplecov (0.16.1)
|
63
|
+
docile (~> 1.1)
|
64
|
+
json (>= 1.8, < 3)
|
65
|
+
simplecov-html (~> 0.10.0)
|
66
|
+
simplecov-html (0.10.2)
|
67
|
+
term-ansicolor (1.7.0)
|
68
|
+
tins (~> 1.0)
|
69
|
+
thor (0.19.4)
|
70
|
+
tins (1.20.2)
|
71
|
+
unicode-display_width (1.4.1)
|
72
|
+
webmock (3.5.1)
|
73
|
+
addressable (>= 2.3.6)
|
74
|
+
crack (>= 0.3.2)
|
75
|
+
hashdiff
|
76
|
+
|
77
|
+
PLATFORMS
|
78
|
+
ruby
|
79
|
+
|
80
|
+
DEPENDENCIES
|
81
|
+
bixby (~> 1.0.0)
|
82
|
+
bundler (~> 1.16)
|
83
|
+
coveralls
|
84
|
+
rake (~> 10.0)
|
85
|
+
rspec (~> 3.0)
|
86
|
+
uri_service-client!
|
87
|
+
webmock
|
88
|
+
|
89
|
+
BUNDLED WITH
|
90
|
+
1.16.1
|
data/README.md
ADDED
@@ -0,0 +1,59 @@
|
|
1
|
+
# UriService::Client
|
2
|
+
[![Build Status](https://travis-ci.org/cul/uri_service-client.svg?branch=master)](https://travis-ci.org/cul/uri_service-client) [![Coverage Status](https://coveralls.io/repos/github/cul/uri_service-client/badge.svg?branch=master)](https://coveralls.io/github/cul/uri_service-client?branch=master)
|
3
|
+
|
4
|
+
This gem is a lightweight ruby wrapper around the UriService API.
|
5
|
+
|
6
|
+
## Installation
|
7
|
+
|
8
|
+
Add this line to your application's Gemfile:
|
9
|
+
|
10
|
+
```ruby
|
11
|
+
gem 'uri_service-client'
|
12
|
+
```
|
13
|
+
|
14
|
+
And then execute:
|
15
|
+
|
16
|
+
$ bundle
|
17
|
+
|
18
|
+
Or install it yourself as:
|
19
|
+
|
20
|
+
$ gem install uri_service-client
|
21
|
+
|
22
|
+
## Usage
|
23
|
+
|
24
|
+
### Configuring Connection
|
25
|
+
In order to make a connection to the URI Service API a `url` and an `api_key` are required. The following shows an example on how to set the url and api_key for every request. They can also be set on a per-connection basis. This is shown in the next section.
|
26
|
+
|
27
|
+
```ruby
|
28
|
+
UriService::Client.configure do |c|
|
29
|
+
c.url = 'https://example.com'
|
30
|
+
c.api_key = 'reallysecretapikey'
|
31
|
+
end
|
32
|
+
```
|
33
|
+
|
34
|
+
### Creating Connection
|
35
|
+
```ruby
|
36
|
+
# Creates connection using globally set url and api_key.
|
37
|
+
uri_service = UriService::Client.connection
|
38
|
+
|
39
|
+
# Creates connection by setting url and api_keu per connection.
|
40
|
+
uri_service = UriService::Client.connection(url: 'https://example.com', api_key: 'reallysecretapikey')
|
41
|
+
```
|
42
|
+
|
43
|
+
### Making Requests
|
44
|
+
|
45
|
+
```ruby
|
46
|
+
uri_service = UriService::Client.connection
|
47
|
+
uri_service.all_vocabularies
|
48
|
+
|
49
|
+
```
|
50
|
+
|
51
|
+
## Development
|
52
|
+
|
53
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
54
|
+
|
55
|
+
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).
|
56
|
+
|
57
|
+
## Contributing
|
58
|
+
|
59
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/uri_service-client.
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'bundler/setup'
|
4
|
+
require 'uri_service/client'
|
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(__FILE__)
|
data/bin/setup
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
require 'uri_service/client/version'
|
2
|
+
require 'uri_service/client/connection'
|
3
|
+
|
4
|
+
module UriService
|
5
|
+
module Client
|
6
|
+
class << self
|
7
|
+
attr_accessor :url, :api_key
|
8
|
+
|
9
|
+
def connection(options = {})
|
10
|
+
UriService::Client::Connection.new(options)
|
11
|
+
end
|
12
|
+
|
13
|
+
def configure
|
14
|
+
yield self
|
15
|
+
end
|
16
|
+
|
17
|
+
def reset!
|
18
|
+
@url = nil
|
19
|
+
@api_key = nil
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,67 @@
|
|
1
|
+
require 'faraday'
|
2
|
+
require 'uri_service/client/error'
|
3
|
+
require 'uri_service/client/form_fields'
|
4
|
+
require 'uri_service/client/requests/custom_fields'
|
5
|
+
require 'uri_service/client/requests/terms'
|
6
|
+
require 'uri_service/client/requests/vocabularies'
|
7
|
+
|
8
|
+
module UriService
|
9
|
+
module Client
|
10
|
+
class Connection
|
11
|
+
include UriService::Client::Requests::Terms
|
12
|
+
include UriService::Client::Requests::Vocabularies
|
13
|
+
include UriService::Client::Requests::CustomFields
|
14
|
+
|
15
|
+
attr_reader :connection, :url, :api_key
|
16
|
+
|
17
|
+
BASE_PATH = '/api/v1'.freeze
|
18
|
+
JSON_MIME = 'application/json'.freeze
|
19
|
+
|
20
|
+
def initialize(options = {})
|
21
|
+
config(options)
|
22
|
+
|
23
|
+
@connection = Faraday.new(url: url) do |conn|
|
24
|
+
conn.request :url_encoded # form-encode POST params
|
25
|
+
conn.token_auth api_key
|
26
|
+
|
27
|
+
# Must be the last middleware, must be set.
|
28
|
+
conn.adapter Faraday.default_adapter
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
def request(method, path, body: {}, params: {})
|
33
|
+
response = connection.send(method, "#{BASE_PATH}#{path}") do |r|
|
34
|
+
r.headers['Accept'] = JSON_MIME
|
35
|
+
|
36
|
+
unless body.nil? || body.empty?
|
37
|
+
r.body = body.to_json
|
38
|
+
r.headers['Content-Type'] = JSON_MIME
|
39
|
+
end
|
40
|
+
|
41
|
+
params.each { |k, v| r.params[k] = v }
|
42
|
+
end
|
43
|
+
|
44
|
+
UriService::Client::Response.new(response)
|
45
|
+
rescue StandardError
|
46
|
+
raise UriService::Client::Error
|
47
|
+
end
|
48
|
+
|
49
|
+
def form_fields
|
50
|
+
response = request(:get, '/open_api_specification')
|
51
|
+
UriService::Client::FormFields.new(response)
|
52
|
+
rescue StandardError
|
53
|
+
raise UriService::Client::Error
|
54
|
+
end
|
55
|
+
|
56
|
+
private
|
57
|
+
|
58
|
+
def config(options = {})
|
59
|
+
[:url, :api_key].each do |f|
|
60
|
+
instance_variable_set("@#{f}", options[f] || UriService::Client.send(f))
|
61
|
+
|
62
|
+
raise UriService::Client::ConfigurationError, "Missing UriService::Client.#{f}" if send(f).nil? || send(f).empty?
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|
@@ -0,0 +1,64 @@
|
|
1
|
+
module UriService
|
2
|
+
module Client
|
3
|
+
class FormFields
|
4
|
+
attr_reader :specification
|
5
|
+
|
6
|
+
def initialize(response)
|
7
|
+
@specification = response.data
|
8
|
+
end
|
9
|
+
|
10
|
+
def vocabulary(action)
|
11
|
+
case action.to_s
|
12
|
+
when 'index'
|
13
|
+
params_for('/vocabularies', 'get')
|
14
|
+
when 'show'
|
15
|
+
params_for('/vocabularies/{string_key}', 'get')
|
16
|
+
when 'create'
|
17
|
+
params_for('/vocabularies', 'post')
|
18
|
+
when 'update'
|
19
|
+
params_for('/vocabularies/{string_key}', 'patch')
|
20
|
+
when 'delete'
|
21
|
+
params_for('/vocabularies/{string_key}', 'delete')
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
def custom_fields(action)
|
26
|
+
case action.to_s
|
27
|
+
when 'create'
|
28
|
+
params_for('/vocabularies/{string_key}/custom_fields', 'post')
|
29
|
+
when 'update'
|
30
|
+
params_for(
|
31
|
+
'/vocabularies/{string_key}/custom_fields/{field_key}',
|
32
|
+
'patch'
|
33
|
+
)
|
34
|
+
when 'delete'
|
35
|
+
params_for('/vocabularies/{string_key}/custom_fields/{field_key}',
|
36
|
+
'delete')
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
def term(vocabulary, action)
|
41
|
+
case action.to_s
|
42
|
+
when 'index'
|
43
|
+
params_for("/vocabularies/#{vocabulary}/terms", 'get')
|
44
|
+
when 'show'
|
45
|
+
params_for("/vocabularies/#{vocabulary}/terms/{uri}", 'get')
|
46
|
+
when 'create'
|
47
|
+
params_for("/vocabularies/#{vocabulary}/terms", 'post')
|
48
|
+
when 'update'
|
49
|
+
params_for("/vocabularies/#{vocabulary}/terms/{uri}", 'patch')
|
50
|
+
when 'delete'
|
51
|
+
params_for("/vocabularies/#{vocabulary}/terms/{uri}", 'delete')
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
private
|
56
|
+
|
57
|
+
def params_for(path, action)
|
58
|
+
@specification['paths'][path][action]['parameters'].keep_if do |h|
|
59
|
+
h.key?('in') && h['in'] == 'query'
|
60
|
+
end
|
61
|
+
end
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
@@ -0,0 +1,26 @@
|
|
1
|
+
module UriService
|
2
|
+
module Client
|
3
|
+
module Requests
|
4
|
+
module CustomFields
|
5
|
+
def create_custom_field(vocabulary, custom_field = {})
|
6
|
+
request(:post,
|
7
|
+
"/vocabularies/#{vocabulary}/custom_fields",
|
8
|
+
body: custom_field)
|
9
|
+
end
|
10
|
+
|
11
|
+
def update_custom_field(vocabulary, custom_field = {})
|
12
|
+
field_key = custom_field.delete('field_key') || custom_field.delete(:field_key)
|
13
|
+
|
14
|
+
request(:patch,
|
15
|
+
"/vocabularies/#{vocabulary}/custom_fields/#{field_key}",
|
16
|
+
body: custom_field)
|
17
|
+
end
|
18
|
+
|
19
|
+
def delete_custom_field(vocabulary, field_key)
|
20
|
+
request(:delete,
|
21
|
+
"/vocabularies/#{vocabulary}/custom_fields/#{field_key}")
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,37 @@
|
|
1
|
+
require 'uri_service/client/response'
|
2
|
+
|
3
|
+
module UriService
|
4
|
+
module Client
|
5
|
+
module Requests
|
6
|
+
module Terms
|
7
|
+
def term(vocabulary, uri)
|
8
|
+
uri = CGI.escape(uri)
|
9
|
+
request(:get, "/vocabularies/#{vocabulary}/terms/#{uri}")
|
10
|
+
end
|
11
|
+
|
12
|
+
def create_term(vocabulary, term = {})
|
13
|
+
request(:post, "/vocabularies/#{vocabulary}/terms", body: term)
|
14
|
+
end
|
15
|
+
|
16
|
+
def update_term(vocabulary, term = {})
|
17
|
+
uri = term.delete('uri') || term.delete(:uri)
|
18
|
+
request(:patch,
|
19
|
+
"/vocabularies/#{vocabulary}/terms/#{CGI.escape(uri)}",
|
20
|
+
body: term)
|
21
|
+
end
|
22
|
+
|
23
|
+
def delete_term(vocabulary, uri)
|
24
|
+
uri = CGI.escape(uri)
|
25
|
+
request(:delete, "/vocabularies/#{vocabulary}/terms/#{uri}")
|
26
|
+
end
|
27
|
+
|
28
|
+
def search_terms(vocabulary, search_params = {})
|
29
|
+
request(:get,
|
30
|
+
"/vocabularies/#{vocabulary}/terms",
|
31
|
+
params: search_params)
|
32
|
+
end
|
33
|
+
alias terms search_terms
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
@@ -0,0 +1,28 @@
|
|
1
|
+
module UriService
|
2
|
+
module Client
|
3
|
+
module Requests
|
4
|
+
module Vocabularies
|
5
|
+
def vocabularies(params = {})
|
6
|
+
request(:get, '/vocabularies', params: params)
|
7
|
+
end
|
8
|
+
|
9
|
+
def vocabulary(string_key)
|
10
|
+
request(:get, "/vocabularies/#{string_key}")
|
11
|
+
end
|
12
|
+
|
13
|
+
def create_vocabulary(vocabulary = {})
|
14
|
+
request(:post, '/vocabularies', body: vocabulary)
|
15
|
+
end
|
16
|
+
|
17
|
+
def update_vocabulary(vocabulary = {})
|
18
|
+
string_key = vocabulary.delete(:string_key) || vocabulary.delete('string_key')
|
19
|
+
request(:patch, "/vocabularies/#{string_key}", body: vocabulary)
|
20
|
+
end
|
21
|
+
|
22
|
+
def delete_vocabulary(string_key)
|
23
|
+
request(:delete, "/vocabularies/#{string_key}")
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
require 'json'
|
2
|
+
|
3
|
+
module UriService
|
4
|
+
module Client
|
5
|
+
class Response
|
6
|
+
attr_reader :raw, :data, :status
|
7
|
+
|
8
|
+
def initialize(response)
|
9
|
+
@status = response.status
|
10
|
+
@raw = response.body
|
11
|
+
@data = raw.nil? || raw.empty? ? nil : JSON.parse(raw)
|
12
|
+
end
|
13
|
+
|
14
|
+
# Checks if errors are present in the response
|
15
|
+
def errors?
|
16
|
+
data.key?('errors') # and check status
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
lib = File.expand_path('lib', __dir__)
|
2
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
|
+
require 'uri_service/client/version'
|
4
|
+
|
5
|
+
Gem::Specification.new do |spec|
|
6
|
+
spec.name = 'uri_service-client'
|
7
|
+
spec.version = UriService::Client::VERSION
|
8
|
+
spec.authors = ['Carla Galarza']
|
9
|
+
spec.email = ['cmg2228@columbia.edu']
|
10
|
+
spec.summary = 'Uri Service Client'
|
11
|
+
spec.description = 'Simple Ruby wrapper around the UriService API.'
|
12
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
13
|
+
f.match(%r{^(test|spec|features)/})
|
14
|
+
end
|
15
|
+
spec.bindir = 'exe'
|
16
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
17
|
+
spec.require_paths = ['lib']
|
18
|
+
|
19
|
+
spec.add_runtime_dependency 'faraday', '~> 0.15.4'
|
20
|
+
|
21
|
+
spec.add_development_dependency 'bundler', '~> 1.16'
|
22
|
+
spec.add_development_dependency 'bixby', '~> 1.0.0'
|
23
|
+
spec.add_development_dependency 'coveralls'
|
24
|
+
spec.add_development_dependency 'rake', '~> 10.0'
|
25
|
+
spec.add_development_dependency 'rspec', '~> 3.0'
|
26
|
+
spec.add_development_dependency 'webmock'
|
27
|
+
end
|
metadata
ADDED
@@ -0,0 +1,161 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: uri_service-client
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Carla Galarza
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2019-03-14 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: faraday
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 0.15.4
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 0.15.4
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bundler
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.16'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.16'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: bixby
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 1.0.0
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 1.0.0
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: coveralls
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rake
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '10.0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '10.0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rspec
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '3.0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '3.0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: webmock
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
description: Simple Ruby wrapper around the UriService API.
|
112
|
+
email:
|
113
|
+
- cmg2228@columbia.edu
|
114
|
+
executables: []
|
115
|
+
extensions: []
|
116
|
+
extra_rdoc_files: []
|
117
|
+
files:
|
118
|
+
- ".gitignore"
|
119
|
+
- ".rspec"
|
120
|
+
- ".rubocop.yml"
|
121
|
+
- ".travis.yml"
|
122
|
+
- Gemfile
|
123
|
+
- Gemfile.lock
|
124
|
+
- README.md
|
125
|
+
- Rakefile
|
126
|
+
- bin/console
|
127
|
+
- bin/setup
|
128
|
+
- lib/uri_service/client.rb
|
129
|
+
- lib/uri_service/client/connection.rb
|
130
|
+
- lib/uri_service/client/error.rb
|
131
|
+
- lib/uri_service/client/form_fields.rb
|
132
|
+
- lib/uri_service/client/requests/custom_fields.rb
|
133
|
+
- lib/uri_service/client/requests/terms.rb
|
134
|
+
- lib/uri_service/client/requests/vocabularies.rb
|
135
|
+
- lib/uri_service/client/response.rb
|
136
|
+
- lib/uri_service/client/version.rb
|
137
|
+
- uri_service-client.gemspec
|
138
|
+
homepage:
|
139
|
+
licenses: []
|
140
|
+
metadata: {}
|
141
|
+
post_install_message:
|
142
|
+
rdoc_options: []
|
143
|
+
require_paths:
|
144
|
+
- lib
|
145
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
146
|
+
requirements:
|
147
|
+
- - ">="
|
148
|
+
- !ruby/object:Gem::Version
|
149
|
+
version: '0'
|
150
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
151
|
+
requirements:
|
152
|
+
- - ">="
|
153
|
+
- !ruby/object:Gem::Version
|
154
|
+
version: '0'
|
155
|
+
requirements: []
|
156
|
+
rubyforge_project:
|
157
|
+
rubygems_version: 2.5.2
|
158
|
+
signing_key:
|
159
|
+
specification_version: 4
|
160
|
+
summary: Uri Service Client
|
161
|
+
test_files: []
|