commonmeta-ruby 3.2.4 → 3.2.6
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 +4 -4
- data/Gemfile.lock +7 -6
- data/lib/commonmeta/cli.rb +17 -21
- data/lib/commonmeta/readers/json_feed_reader.rb +6 -11
- data/lib/commonmeta/utils.rb +2 -4
- 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/fixtures/vcr_cassettes/Commonmeta_Metadata/get_json_feed/all_posts.yml +977 -0
- data/spec/readers/json_feed_reader_spec.rb +1 -19
- data/spec/utils_spec.rb +1 -7
- metadata +3 -2
@@ -109,27 +109,9 @@ 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
|
-
expect(response).to eq("
|
114
|
+
expect(response).to eq("e4872b3e-cd15-407d-8406-33642c1a98b0")
|
133
115
|
end
|
134
116
|
end
|
135
117
|
end
|
data/spec/utils_spec.rb
CHANGED
@@ -666,15 +666,9 @@ 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
|
-
expect(response).to eq("https://rogue-scholar.org/api/posts")
|
671
|
+
expect(response).to eq("https://rogue-scholar.org/api/posts/unregistered")
|
678
672
|
end
|
679
673
|
end
|
680
674
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-06-
|
11
|
+
date: 2023-06-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -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
|