evergreen_holdings 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/evergreen_holdings.rb +3 -0
- data/lib/evergreen_holdings/errors.rb +2 -0
- metadata +12 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 7f1ded6a6dc9a553da283e9ed64dfb04c6334d0bd8b7259cc18fc00ac76f713e
|
4
|
+
data.tar.gz: 037d0726e922e58b20bcffe0daaa8fcbdbcfe1e8973109d69e18ff75e761a1c9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 798f5c3213570fdaee11a90382469be3466165b5c96bf850fa9ab5d2eadfed1dde9859e28a2e9665201839e5aec67b2337b780aa4493ffbe6336608b849306cc
|
7
|
+
data.tar.gz: 0aa44ee1fcb9f66ff00df1a2cce7b79fbda8becee930a6559829292f0ca6ee686bd415efe2accff16f390d936f50b9c87f83cc901a67720d549f44de09d098a3
|
data/lib/evergreen_holdings.rb
CHANGED
@@ -25,6 +25,9 @@ module EvergreenHoldings
|
|
25
25
|
# Usage: `stat = conn.get_holdings 23405`
|
26
26
|
# If you just want holdings at a specific org_unit: `my_connection.get_holdings 23405, org_unit: 5`
|
27
27
|
def get_holdings tcn, options = {}
|
28
|
+
if tcn.nil? || tcn.empty?
|
29
|
+
raise NoCatalogIdProvidedError
|
30
|
+
end
|
28
31
|
if options.key?(:org_unit)
|
29
32
|
if options[:descendants]
|
30
33
|
params = "format=json&input_format=json&service=open-ils.cat&method=open-ils.cat.asset.copy_tree.retrieve¶m=auth_token_not_needed_for_this_call¶m=#{tcn}"
|
metadata
CHANGED
@@ -1,38 +1,38 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: evergreen_holdings
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jane Sandberg
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-06-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name: minitest
|
15
14
|
requirement: !ruby/object:Gem::Requirement
|
16
15
|
requirements:
|
17
16
|
- - ">="
|
18
17
|
- !ruby/object:Gem::Version
|
19
18
|
version: '0'
|
20
|
-
|
19
|
+
name: minitest
|
21
20
|
prerelease: false
|
21
|
+
type: :development
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name: coveralls
|
29
28
|
requirement: !ruby/object:Gem::Requirement
|
30
29
|
requirements:
|
31
30
|
- - '='
|
32
31
|
- !ruby/object:Gem::Version
|
33
32
|
version: 0.7.0
|
34
|
-
|
33
|
+
name: coveralls
|
35
34
|
prerelease: false
|
35
|
+
type: :development
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - '='
|
@@ -47,11 +47,11 @@ files:
|
|
47
47
|
- lib/evergreen_holdings.rb
|
48
48
|
- lib/evergreen_holdings/errors.rb
|
49
49
|
- test/evergreen_holdings_test.rb
|
50
|
-
homepage:
|
50
|
+
homepage:
|
51
51
|
licenses:
|
52
52
|
- MIT
|
53
53
|
metadata: {}
|
54
|
-
post_install_message:
|
54
|
+
post_install_message:
|
55
55
|
rdoc_options: []
|
56
56
|
require_paths:
|
57
57
|
- lib
|
@@ -66,9 +66,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
66
66
|
- !ruby/object:Gem::Version
|
67
67
|
version: '0'
|
68
68
|
requirements: []
|
69
|
-
rubyforge_project:
|
70
|
-
rubygems_version: 2.
|
71
|
-
signing_key:
|
69
|
+
rubyforge_project:
|
70
|
+
rubygems_version: 2.6.13
|
71
|
+
signing_key:
|
72
72
|
specification_version: 4
|
73
73
|
summary: A ruby gem for getting information about copy availability from Evergreen
|
74
74
|
ILS
|