commonmeta-ruby 3.2.5 → 3.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/commonmeta/cli.rb +17 -21
- data/lib/commonmeta/readers/json_feed_reader.rb +6 -11
- data/lib/commonmeta/utils.rb +1 -3
- data/lib/commonmeta/version.rb +1 -1
- data/spec/cli_spec.rb +2 -4
- data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/json_feed/blog_post_uuid.yml +980 -0
- data/spec/readers/json_feed_reader_spec.rb +0 -18
- data/spec/utils_spec.rb +0 -6
- metadata +2 -1
@@ -109,24 +109,6 @@ describe Commonmeta::Metadata, vcr: true do
|
|
109
109
|
end
|
110
110
|
|
111
111
|
context 'get json_feed' do
|
112
|
-
it 'front-matter blog' do
|
113
|
-
id = 'f0m0e38'
|
114
|
-
response = subject.get_json_feed(id)
|
115
|
-
expect(response).to be_nil
|
116
|
-
end
|
117
|
-
|
118
|
-
it 'upstream' do
|
119
|
-
id = 'pm0p222'
|
120
|
-
response = subject.get_json_feed(id)
|
121
|
-
expect(response).to be_nil
|
122
|
-
end
|
123
|
-
|
124
|
-
it 'behind the science' do
|
125
|
-
id = '468ap65'
|
126
|
-
response = subject.get_json_feed(id)
|
127
|
-
expect(response).to eq("84651758-f820-4e18-ae5f-4483ff4f4e92")
|
128
|
-
end
|
129
|
-
|
130
112
|
it 'all posts' do
|
131
113
|
response = subject.get_json_feed
|
132
114
|
expect(response).to eq("e4872b3e-cd15-407d-8406-33642c1a98b0")
|
data/spec/utils_spec.rb
CHANGED
@@ -666,12 +666,6 @@ describe Commonmeta::Metadata, vcr: true do
|
|
666
666
|
end
|
667
667
|
|
668
668
|
context 'json_feed_url' do
|
669
|
-
it 'front-matter blog' do
|
670
|
-
id = 'f0m0e38'
|
671
|
-
response = subject.json_feed_url(id)
|
672
|
-
expect(response).to eq("https://rogue-scholar.org/api/blogs/f0m0e38")
|
673
|
-
end
|
674
|
-
|
675
669
|
it 'all posts' do
|
676
670
|
response = subject.json_feed_url
|
677
671
|
expect(response).to eq("https://rogue-scholar.org/api/posts/unregistered")
|
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.
|
4
|
+
version: 3.2.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Martin Fenner
|
@@ -1064,6 +1064,7 @@ files:
|
|
1064
1064
|
- spec/fixtures/vcr_cassettes/Commonmeta_CLI/find_from_format_by_id/medra.yml
|
1065
1065
|
- spec/fixtures/vcr_cassettes/Commonmeta_CLI/find_from_format_by_id/op.yml
|
1066
1066
|
- spec/fixtures/vcr_cassettes/Commonmeta_CLI/json_feed/blog_post.yml
|
1067
|
+
- spec/fixtures/vcr_cassettes/Commonmeta_CLI/json_feed/blog_post_uuid.yml
|
1067
1068
|
- spec/fixtures/vcr_cassettes/Commonmeta_Metadata/change_metadata_as_datacite_xml/with_data_citation.yml
|
1068
1069
|
- spec/fixtures/vcr_cassettes/Commonmeta_Metadata/doi_registration_agency/crossref.yml
|
1069
1070
|
- spec/fixtures/vcr_cassettes/Commonmeta_Metadata/doi_registration_agency/datacite.yml
|