cdmbl 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 48502d2d45023a03df1bb78ef376bca9f1be4977
4
- data.tar.gz: ee88711b42d87772d6bb2e91a2c0876c2c0adb72
3
+ metadata.gz: b0f4d7eaf7431fec406529b5fc904372d88aee7e
4
+ data.tar.gz: 488ed93432759365ef29c22694174bd95877e2b1
5
5
  SHA512:
6
- metadata.gz: 6b36549f3fc364a2aa1e00ddd55899dbbdcf102997929fd55506c571bd06addba143cb99ebc7a802c59df554dde91eb518a8bfaf132758274acf63876b91d6a1
7
- data.tar.gz: e0e08c16ed335a2bc7a948772b1d36d11e6b70c9926e04f6f2348714deff84e00e67c259ebaf2594b4800acf1d95fdd7d403ab12866c8fd68a300ba2afb2f771
6
+ metadata.gz: 20e7af0da4b89fa46e8612c196f61a3d633e386d5b830eba0308dcf6db156b6103e4456e3ae4cc3a68448ef6dc98136a19ef7f7a6d095e4cf2daa419dac26286
7
+ data.tar.gz: 7aca903cd1a245a514ec39a5b0fc6e7d896c8b79dfa72d481b082868d550b85b14214ca94660a6ad54465797559d2dae10fffc68bd5d61d7c541775d6342a321
@@ -65,7 +65,6 @@ module CDMBL
65
65
  end
66
66
 
67
67
  def cdm_request(collection, id)
68
- Rails.logger.info("-----------Ingesting:#{collection}/#{id}-----------")
69
68
  cdm_item.new(base_url: cdm_endpoint, collection: collection, id: id).metadata
70
69
  end
71
70
 
@@ -12,7 +12,6 @@ module CDMBL
12
12
  end
13
13
 
14
14
  def identifiers
15
- Rails.logger.info("===============#{first_batch_uri}===============")
16
15
  (resumption_token) ? request(batch_uri) : request(first_batch_uri)
17
16
  end
18
17
 
@@ -23,15 +22,15 @@ module CDMBL
23
22
  private
24
23
 
25
24
  def first_batch_uri
26
- "#{base_uri}&verb=ListIdentifiers&metadataPrefix=oai_dc&from=#{from}"
25
+ "#{base_uri}?verb=ListIdentifiers&metadataPrefix=oai_dc&from=#{from}"
27
26
  end
28
27
 
29
28
  def batch_uri
30
- "#{base_uri}&verb=ListIdentifiers&resumptionToken=#{resumption_token}"
29
+ "#{base_uri}?verb=ListIdentifiers&resumptionToken=#{resumption_token}"
31
30
  end
32
31
 
33
32
  def sets_uri
34
- "http://reflections.mndigital.org/oai/oai.php?verb=ListSets"
33
+ "#{base_uri}?verb=ListSets"
35
34
  end
36
35
 
37
36
  def request(location)
data/lib/cdmbl/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module CDMBL
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cdmbl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - chadfennell