ddr-aux-client 1.0.0.rc1 → 1.0.0.rc2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/console +1 -1
- data/lib/ddr_aux/client/api.rb +20 -6
- data/lib/ddr_aux/client/api/find_license.rb +10 -0
- data/lib/ddr_aux/client/{license.rb → api/get_license.rb} +1 -1
- data/lib/ddr_aux/client/api/get_licenses.rb +9 -0
- data/lib/ddr_aux/client/version.rb +1 -1
- metadata +4 -3
- data/lib/ddr_aux/client/licenses.rb +0 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 79a541eacdf4582c5f1334777a2ad9d61d54a9e2
|
4
|
+
data.tar.gz: f2fcad95edbf1e82e9f39a6cce495638abc44582
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a9826251f28755f1c6b5f991b8dd95965d902bc5ef66eeb1b87a1a5049e3e595b2d1cb8e9e90248a1ed55cf23c0a2c0d6740150c54ecfba1bd1134cc8dc267ad
|
7
|
+
data.tar.gz: c098a9079ba080e923ca0258c05f1cd3ddb7ecc38acff879220769fac7cd64515463e401e47d4ee3323b4bad445923d7c10f387e4dfc23b5ddda0527f0b26ce3
|
data/bin/console
CHANGED
data/lib/ddr_aux/client/api.rb
CHANGED
@@ -1,14 +1,28 @@
|
|
1
1
|
module DdrAux::Client
|
2
2
|
module Api
|
3
3
|
|
4
|
-
def license(
|
5
|
-
|
6
|
-
|
4
|
+
def license(arg)
|
5
|
+
if arg.respond_to?(:to_h)
|
6
|
+
find_license(**(arg.to_h))
|
7
|
+
else
|
8
|
+
get_license(arg)
|
9
|
+
end
|
7
10
|
end
|
8
11
|
|
9
|
-
def
|
10
|
-
require_relative "
|
11
|
-
|
12
|
+
def get_license(id)
|
13
|
+
require_relative "api/get_license"
|
14
|
+
GetLicense.call(id)
|
15
|
+
end
|
16
|
+
|
17
|
+
def get_licenses
|
18
|
+
require_relative "api/get_licenses"
|
19
|
+
GetLicenses.call
|
20
|
+
end
|
21
|
+
alias_method :licenses, :get_licenses
|
22
|
+
|
23
|
+
def find_license(**args)
|
24
|
+
require_relative "api/find_license"
|
25
|
+
FindLicense.call(**args)
|
12
26
|
end
|
13
27
|
|
14
28
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ddr-aux-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.
|
4
|
+
version: 1.0.0.rc2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Chandek-Stark
|
@@ -84,9 +84,10 @@ files:
|
|
84
84
|
- ddr-aux-client.gemspec
|
85
85
|
- lib/ddr_aux/client.rb
|
86
86
|
- lib/ddr_aux/client/api.rb
|
87
|
+
- lib/ddr_aux/client/api/find_license.rb
|
88
|
+
- lib/ddr_aux/client/api/get_license.rb
|
89
|
+
- lib/ddr_aux/client/api/get_licenses.rb
|
87
90
|
- lib/ddr_aux/client/connection.rb
|
88
|
-
- lib/ddr_aux/client/license.rb
|
89
|
-
- lib/ddr_aux/client/licenses.rb
|
90
91
|
- lib/ddr_aux/client/version.rb
|
91
92
|
homepage: https://github.com/duke-libraries/ddr-aux-client
|
92
93
|
licenses: []
|