commonmeta-ruby 3.2.10 → 3.2.12

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.
@@ -207,5 +207,11 @@ describe Commonmeta::Metadata, vcr: true do
207
207
  response = subject.get_json_feed_unregistered
208
208
  expect(response).to eq("ca2a7df4-f3b9-487c-82e9-27f54de75ea8")
209
209
  end
210
+
211
+ it 'by blog_id' do
212
+ response = subject.get_json_feed_by_blog('tyfqw20').split('\n')
213
+ expect(response.length).to eq(25)
214
+ expect(response.first).to eq("3e1278f6-e7c0-43e1-bb54-6829e1344c0d")
215
+ end
210
216
  end
211
217
  end
data/spec/utils_spec.rb CHANGED
@@ -654,7 +654,6 @@ describe Commonmeta::Metadata, vcr: true do
654
654
  prefix = "10.53731"
655
655
  uuid = "c3095752-2af0-40a4-a229-3ceb7424bce2"
656
656
  response = subject.encode_doi(prefix, uuid: uuid)
657
- puts response
658
657
  expect(response).to match(%r{#{prefix}/[a-z0-9]+})
659
658
  expect(response.length).to eq(56)
660
659
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: commonmeta-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.10
4
+ version: 3.2.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Fenner
@@ -1079,6 +1079,7 @@ files:
1079
1079
  - spec/fixtures/vcr_cassettes/Commonmeta_CLI/find_from_format_by_id/op.yml
1080
1080
  - spec/fixtures/vcr_cassettes/Commonmeta_CLI/json_feed/blog_post.yml
1081
1081
  - spec/fixtures/vcr_cassettes/Commonmeta_CLI/json_feed/blog_post_uuid.yml
1082
+ - spec/fixtures/vcr_cassettes/Commonmeta_CLI/json_feed/json_feed_by_blog.yml
1082
1083
  - spec/fixtures/vcr_cassettes/Commonmeta_CLI/json_feed_unregistered/blog_post_uuid.yml
1083
1084
  - spec/fixtures/vcr_cassettes/Commonmeta_Metadata/change_metadata_as_datacite_xml/with_data_citation.yml
1084
1085
  - spec/fixtures/vcr_cassettes/Commonmeta_Metadata/doi_registration_agency/crossref.yml
@@ -1169,6 +1170,7 @@ files:
1169
1170
  - spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_datetime_from_time/present.yml
1170
1171
  - spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_json_feed/all_posts.yml
1171
1172
  - spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_json_feed/behind_the_science.yml
1173
+ - spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_json_feed/by_blog_id.yml
1172
1174
  - spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_json_feed/citation_style_language.yml
1173
1175
  - spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_json_feed/citation_style_language_blog.yml
1174
1176
  - spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_json_feed/front-matter_blog.yml