commonmeta-ruby 3.3.15 → 3.3.16

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
  SHA256:
3
- metadata.gz: d7f58c5181ad8210359b3e6cb897e6a7c0b66d6065f2dda0836998e1a59939af
4
- data.tar.gz: 780639668c9bc7b2fec43061818db60e3c05d4c6e430e6d03349d02ae781eacd
3
+ metadata.gz: 1959fba18a127e97c92b94c7e0e78d42c4538e3bccf6b9e6019035931e19d2f4
4
+ data.tar.gz: 190a4ddc0e6789c56f6f9a5a97355c8684e103abf121d2dfefdd5c1d816bd2d2
5
5
  SHA512:
6
- metadata.gz: 65ab7d09ed4a84c4ba153a94f142de3a4878899832135883d83123b6bfdfa48b7c21f47b87ae6f385a158d874316ebed4236d531bd8f9921ce2a4802561b2015
7
- data.tar.gz: b3970a10d049bcce65a9ac9a2f357b5569422335b2cc317877821aa7dddb3a0aa29070c2ab196dcccdfbd02f670f827d9515083c480f94c2686c34b3ceb5b524
6
+ metadata.gz: d5994587ca3efda69c8f1e4efca204a89db31d9e4b48a4b683e0312e32209c720f3a24506026152dd69d6ee49895919d72ee4d3aea6557da2b972a1fdb94092a
7
+ data.tar.gz: 56b4e03114cff5155c502f08f953afb3f2ba13c82bdefecfed73b752131b6b718cd21460eaa8d6506b7b50ded9655330e7c040c833a81c5feeb105c489306ab9
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- commonmeta-ruby (3.3.15)
4
+ commonmeta-ruby (3.3.16)
5
5
  activesupport (>= 4.2.5, < 8.0)
6
6
  addressable (~> 2.8.1, < 2.8.2)
7
7
  base32-url (>= 0.7.0, < 1)
@@ -111,7 +111,7 @@ module Commonmeta
111
111
  return { "string" => nil, "state" => "not_found" } unless response.status.success?
112
112
 
113
113
  posts = JSON.parse(response.body.to_s)
114
- posts.map { |post| post["uuid"] }.first
114
+ posts.map { |post| post["id"] }.first
115
115
  end
116
116
 
117
117
  def get_json_feed_not_indexed
@@ -122,7 +122,8 @@ module Commonmeta
122
122
  return { "string" => nil, "state" => "not_found" } unless response.status.success?
123
123
 
124
124
  posts = JSON.parse(response.body.to_s)
125
- posts.map { |post| post["uuid"] }.first
125
+ puts posts.inspect
126
+ posts.map { |post| post["id"] }.first
126
127
  end
127
128
 
128
129
  def get_json_feed_by_blog(blog_id)
@@ -133,7 +134,7 @@ module Commonmeta
133
134
  return { "string" => nil, "state" => "not_found" } unless response.status.success?
134
135
 
135
136
  blog = JSON.parse(response.body.to_s)
136
- blog["items"].map { |item| item["uuid"] }.first
137
+ blog["items"].map { |item| item["id"] }.first
137
138
  end
138
139
 
139
140
  def get_doi_prefix_by_blog_id(blog_id)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Commonmeta
4
- VERSION = '3.3.15'
4
+ VERSION = '3.3.16'
5
5
  end
data/spec/cli_spec.rb CHANGED
@@ -367,7 +367,7 @@ describe Commonmeta::CLI do
367
367
 
368
368
  describe "json_feed", vcr: true do
369
369
  it "json_feed_unregistered" do
370
- expect { subject.json_feed_unregistered }.to output(/031faba3-3a6e-49d1-a540-26523be2fd09/).to_stdout
370
+ expect { subject.json_feed_unregistered }.to output(/3023e24a-817d-452e-bb6e-ddadecce94c6/).to_stdout
371
371
  end
372
372
 
373
373
  it "json_feed_not_indexed" do
@@ -376,7 +376,7 @@ describe Commonmeta::CLI do
376
376
 
377
377
  it "json_feed_by_blog" do
378
378
  input = "tyfqw20"
379
- expect { subject.json_feed_by_blog input }.to output(/3e1278f6-e7c0-43e1-bb54-6829e1344c0d/).to_stdout
379
+ expect { subject.json_feed_by_blog input }.to output(/37538c38-66e6-4ac4-ab5c-679684622ade/).to_stdout
380
380
  end
381
381
  end
382
382
  end