dor-fetcher 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +13 -5
  2. data/lib/dor-fetcher.rb +8 -8
  3. metadata +15 -15
checksums.yaml CHANGED
@@ -1,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 5a1fe464fcac95b99e0136e9b2efed102927f6c3
4
- data.tar.gz: 1ef59399da0edc8abfb759d0f385b7ef3fff0a56
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ YmY4MWI0NWE3ODI3Nzc2ZWQwODM2YmE4MWZkYmQxMTFlMjFhMTQ0Mg==
5
+ data.tar.gz: !binary |-
6
+ MTY2NjhlOGJjYmFkMThhYTllNTNiMmFmN2EzNmU4MzkyYTEyODc5Zg==
5
7
  SHA512:
6
- metadata.gz: 1ee6988a6c963de4f25c3fd11debfa586f7aa8d2b5467ea04f163e46c61f850f8efa12ebfde2fe0897cfb5e8a72a14ef690fc38bbfe10356750fe1fb223aa7d9
7
- data.tar.gz: 0233b07bb7d84b5aba138aaf488d9339e289b26cea04be5492ec39058e7677828ae3290f584929819907133936d05cef175e4dea97c0ada13392fd1768fa7ce4
8
+ metadata.gz: !binary |-
9
+ M2M5OWI4Y2VlZWNjMmM5ZWM2YWYzZDNhZDcxM2ZkNmY3MjZhMjZiM2Y0ZTAw
10
+ Y2MzZDhlZjRmNGEwZDM5NmQ3ZDI2OTA1ZTJlYjJkN2FjOTZhYTZjODBmZThk
11
+ YTNjN2MyYWRjMWVlOTYzODFhZDY5NzRjMGM4OTk2YjU4ZWQxMWI=
12
+ data.tar.gz: !binary |-
13
+ N2VhZDMyOGMwZTFkZDg3YmUyYTU1MDQ4ODFlZGEwZTI0Mzk4YTY5NjY3OTU1
14
+ MWE4NWFhNmU2OGU2NTBmOWJhYjZhYmQ3NmQ2NDY3MGYyZWU5NTU5NjE5MTEw
15
+ ZTYxMWI3Y2JjOTc3MDZhNzlkMmE5NTVjYzAyOGM1ZWUxZDJlZmU=
data/lib/dor-fetcher.rb CHANGED
@@ -27,7 +27,7 @@ module DorFetcher
27
27
  #@return [Hash] Hash of all objects in the collection including
28
28
  #pid/druid, title, date last modified, and count
29
29
  def get_collection(collection, params = {})
30
- return query_api('collection', collection, params)
30
+ return query_api('collections', collection, params)
31
31
  end
32
32
 
33
33
  #Get the count of the number of items in a collection, including the
@@ -36,20 +36,20 @@ module DorFetcher
36
36
  #@param params [Hash] we expect :count_only or any of @@supported_params
37
37
  #@return [Integer] Number found
38
38
  def get_count_for_collection(collection, params = {})
39
- return query_api('collection', collection, add_count_only_param(params))
39
+ return query_api('collections', collection, add_count_only_param(params))
40
40
  end
41
41
 
42
42
  #Get a Hash of all the collections in the digital repository
43
43
  #@return [Hash] Hash of all collections including pid/druid, title,
44
44
  #date last modified, and count
45
45
  def list_all_collections
46
- return query_api('collection', '', {})
46
+ return query_api('collections', '', {})
47
47
  end
48
48
 
49
49
  #Get a Count of all the collections in the digital repository
50
50
  #@return [Integer] Number of all collections
51
51
  def total_collection_count
52
- return query_api('collection', '', {:count_only=>true})
52
+ return query_api('collections', '', {:count_only=>true})
53
53
  end
54
54
 
55
55
  #Get the APO and all objects governed by the APO
@@ -58,7 +58,7 @@ module DorFetcher
58
58
  #@return [Hash] Hash of all objects governed by the APO including
59
59
  #pid/druid, title, date last modified, and count
60
60
  def get_apo(apo, params= {})
61
- return query_api('apo', apo, params)
61
+ return query_api('apos', apo, params)
62
62
  end
63
63
 
64
64
  #Get the count of the number of objects in an APO, including the
@@ -67,20 +67,20 @@ module DorFetcher
67
67
  #@param params [Hash] we expect :count_only or any of @@supported_params
68
68
  #@return [Integer] Number found
69
69
  def get_count_for_apo(apo, params={})
70
- return query_api('apo', apo, add_count_only_param(params))
70
+ return query_api('apos', apo, add_count_only_param(params))
71
71
  end
72
72
 
73
73
  #Get a Hash of all the APOs in the digital repository
74
74
  #@return [Hash] Hash of all APOs including pid/druid, title,
75
75
  #date last modified, and count
76
76
  def list_all_apos
77
- return query_api('apo', '', {})
77
+ return query_api('apos', '', {})
78
78
  end
79
79
 
80
80
  #Get a Count of all the APOs in the digital repository
81
81
  #@return [Integer] Number of all APOs
82
82
  def total_apo_count
83
- return query_api('apo', '', {:count_only=>true})
83
+ return query_api('apos', '', {:count_only=>true})
84
84
  end
85
85
 
86
86
  #Method to parse full Hash into an array containing only the druids
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.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Carrick Rogers
@@ -10,76 +10,76 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2014-10-21 00:00:00.000000000 Z
13
+ date: 2014-11-03 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rspec
17
17
  requirement: !ruby/object:Gem::Requirement
18
18
  requirements:
19
- - - ">="
19
+ - - ! '>='
20
20
  - !ruby/object:Gem::Version
21
21
  version: '0'
22
22
  type: :development
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  requirements:
26
- - - ">="
26
+ - - ! '>='
27
27
  - !ruby/object:Gem::Version
28
28
  version: '0'
29
29
  - !ruby/object:Gem::Dependency
30
30
  name: vcr
31
31
  requirement: !ruby/object:Gem::Requirement
32
32
  requirements:
33
- - - ">="
33
+ - - ! '>='
34
34
  - !ruby/object:Gem::Version
35
35
  version: '0'
36
36
  type: :development
37
37
  prerelease: false
38
38
  version_requirements: !ruby/object:Gem::Requirement
39
39
  requirements:
40
- - - ">="
40
+ - - ! '>='
41
41
  - !ruby/object:Gem::Version
42
42
  version: '0'
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: webmock
45
45
  requirement: !ruby/object:Gem::Requirement
46
46
  requirements:
47
- - - ">="
47
+ - - ! '>='
48
48
  - !ruby/object:Gem::Version
49
49
  version: '0'
50
50
  type: :development
51
51
  prerelease: false
52
52
  version_requirements: !ruby/object:Gem::Requirement
53
53
  requirements:
54
- - - ">="
54
+ - - ! '>='
55
55
  - !ruby/object:Gem::Version
56
56
  version: '0'
57
57
  - !ruby/object:Gem::Dependency
58
58
  name: yard
59
59
  requirement: !ruby/object:Gem::Requirement
60
60
  requirements:
61
- - - ">="
61
+ - - ! '>='
62
62
  - !ruby/object:Gem::Version
63
63
  version: '0'
64
64
  type: :development
65
65
  prerelease: false
66
66
  version_requirements: !ruby/object:Gem::Requirement
67
67
  requirements:
68
- - - ">="
68
+ - - ! '>='
69
69
  - !ruby/object:Gem::Version
70
70
  version: '0'
71
71
  - !ruby/object:Gem::Dependency
72
72
  name: coveralls
73
73
  requirement: !ruby/object:Gem::Requirement
74
74
  requirements:
75
- - - ">="
75
+ - - ! '>='
76
76
  - !ruby/object:Gem::Version
77
77
  version: '0'
78
78
  type: :development
79
79
  prerelease: false
80
80
  version_requirements: !ruby/object:Gem::Requirement
81
81
  requirements:
82
- - - ">="
82
+ - - ! '>='
83
83
  - !ruby/object:Gem::Version
84
84
  version: '0'
85
85
  description: Wrapper for the Dor Fetcher Services RESTful API.
@@ -102,17 +102,17 @@ require_paths:
102
102
  - lib
103
103
  required_ruby_version: !ruby/object:Gem::Requirement
104
104
  requirements:
105
- - - ">="
105
+ - - ! '>='
106
106
  - !ruby/object:Gem::Version
107
107
  version: '0'
108
108
  required_rubygems_version: !ruby/object:Gem::Requirement
109
109
  requirements:
110
- - - ">="
110
+ - - ! '>='
111
111
  - !ruby/object:Gem::Version
112
112
  version: '0'
113
113
  requirements: []
114
114
  rubyforge_project:
115
- rubygems_version: 2.2.2
115
+ rubygems_version: 2.4.2
116
116
  signing_key:
117
117
  specification_version: 4
118
118
  summary: DorFetcher Gem