dor-fetcher 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/dor-fetcher.rb +7 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NDNjOTBjMGVjY2U0MWI0Y2RlYzk0MDZhZWYzOGI3OWMwOTJlYmZjMA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZDQ5YTBiMGZiZGY1NDUyMDc5OWFlNDU3NGNiYzNmOTMxNDRhNTUyNw==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YzhmODI1ODIwY2FkZTBkMGQ0NDM0NjI2MmVjYWU3MTk0NTE1MGYwZTlkYWUz
|
10
|
+
ZWIzZGNmZTU3NmQyMWUxNjY3Nzk5NGU0YWRlYTQyODk3MTRmM2M3NjRjMTc5
|
11
|
+
ODQzYzE3OGFiYzExN2UwZWE4ODc0N2ZkOWY5ODM3MWM1OTAwYTI=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MDhiZTE4NThlNTIwZGQxMTQ4NzkwOTQwM2UyMTU2MzNkMmYzOGVjOWE4MzIz
|
14
|
+
ZWQ1Njk0N2M5YzRlMmJhY2FjMGM5ZGZlZjY5YzUzNDM4YzhhMjAwMjUwYjcy
|
15
|
+
N2QzMTJkY2EzYTMzY2Q0NDEwMWI1NDA1ZjViYTY0N2E5ZmQ4ZjQ=
|
data/lib/dor-fetcher.rb
CHANGED
@@ -8,11 +8,12 @@ module DorFetcher
|
|
8
8
|
@@supported_params = [:first_modified, :last_modified]
|
9
9
|
@@count_only_param = "?rows=0"
|
10
10
|
@@default_service_url = 'http://127.0.0.1:3000'
|
11
|
+
@@counts_key = 'counts'
|
11
12
|
|
12
13
|
#Create a new instance of DorFetcher::Client
|
13
14
|
#@param options [Hash] Currently supports :service_url and :skip_heartbeat.
|
14
|
-
|
15
|
-
|
15
|
+
#@param :service_url is the base url for API queries. Defaults to http://127.0.0.1:3000
|
16
|
+
#@param :skip_heartbeat will tell the init to skip querying the :service_url and seeing if the API is responsive
|
16
17
|
#@example
|
17
18
|
# df = DorFetcher::Client.new({:service_url='http://SERVICEURL'})
|
18
19
|
def initialize options = {}
|
@@ -104,8 +105,10 @@ module DorFetcher
|
|
104
105
|
return_list = []
|
105
106
|
j = response
|
106
107
|
j.keys.each do |key|
|
107
|
-
|
108
|
-
|
108
|
+
if key != @@counts_key
|
109
|
+
j[key].each do |item|
|
110
|
+
return_list << item['druid'] if item['druid'] != nil
|
111
|
+
end
|
109
112
|
end
|
110
113
|
end
|
111
114
|
return return_list
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dor-fetcher
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Carrick Rogers
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2014-11-
|
13
|
+
date: 2014-11-07 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rspec
|