commonmeta-ruby 3.2.13 → 3.2.15
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 +2 -2
- data/lib/commonmeta/crossref_utils.rb +3 -3
- data/lib/commonmeta/readers/json_feed_reader.rb +6 -2
- data/lib/commonmeta/readers/schema_org_reader.rb +1 -1
- data/lib/commonmeta/utils.rb +6 -3
- data/lib/commonmeta/version.rb +1 -1
- data/lib/commonmeta/writers/bibtex_writer.rb +1 -1
- data/lib/commonmeta/writers/ris_writer.rb +1 -1
- data/lib/commonmeta/writers/schema_org_writer.rb +1 -1
- data/spec/fixtures/vcr_cassettes/Commonmeta_Metadata/get_json_feed_item_metadata/substack_post_with_broken_reference.yml +1316 -0
- data/spec/readers/cff_reader_spec.rb +33 -33
- data/spec/readers/codemeta_reader_spec.rb +8 -8
- data/spec/readers/json_feed_reader_spec.rb +204 -154
- data/spec/readers/schema_org_reader_spec.rb +38 -38
- data/spec/utils_spec.rb +3 -3
- data/spec/writers/bibtex_writer_spec.rb +3 -3
- data/spec/writers/cff_writer_spec.rb +2 -2
- data/spec/writers/crossref_xml_writer_spec.rb +21 -9
- data/spec/writers/ris_writer_spec.rb +8 -8
- data/spec/writers/schema_org_writer_spec.rb +6 -6
- metadata +3 -2
@@ -20,14 +20,14 @@ describe Commonmeta::Metadata, vcr: true do
|
|
20
20
|
'type' => 'Organization' }])
|
21
21
|
expect(subject.titles).to eq([{ 'title' => 'Ruby CFF Library' }])
|
22
22
|
expect(subject.descriptions.first['description']).to start_with('This library provides a Ruby interface to manipulate Citation File Format files')
|
23
|
-
expect(subject.subjects).to eq([{ 'subject' => '
|
24
|
-
{ 'subject' => '
|
25
|
-
{ 'subject' => '
|
26
|
-
{ 'subject' => '
|
27
|
-
{ 'subject' => '
|
28
|
-
{ 'subject' => '
|
29
|
-
{ 'subject' => '
|
30
|
-
{ 'subject' => '
|
23
|
+
expect(subject.subjects).to eq([{ 'subject' => 'Ruby' },
|
24
|
+
{ 'subject' => 'Credit' },
|
25
|
+
{ 'subject' => 'Software citation' },
|
26
|
+
{ 'subject' => 'Research software' },
|
27
|
+
{ 'subject' => 'Software sustainability' },
|
28
|
+
{ 'subject' => 'Metadata' },
|
29
|
+
{ 'subject' => 'Citation file format' },
|
30
|
+
{ 'subject' => 'Cff' }])
|
31
31
|
expect(subject.version).to eq('1.0.1')
|
32
32
|
expect(subject.date).to eq('published' => '2022-11-05')
|
33
33
|
expect(subject.publisher).to eq('name' => 'GitHub')
|
@@ -69,15 +69,15 @@ describe Commonmeta::Metadata, vcr: true do
|
|
69
69
|
'type' => 'Person' }])
|
70
70
|
expect(subject.titles).to eq([{ 'title' => 'cffconvert' }])
|
71
71
|
expect(subject.descriptions.first['description']).to start_with('Command line program to validate and convert CITATION.cff files')
|
72
|
-
expect(subject.subjects).to eq([{ 'subject' => '
|
73
|
-
{ 'subject' => '
|
74
|
-
{ 'subject' => '
|
75
|
-
{ 'subject' => '
|
76
|
-
{ 'subject' => '
|
77
|
-
{ 'subject' => '
|
78
|
-
{ 'subject' => '
|
79
|
-
{ 'subject' => '
|
80
|
-
{ 'subject' => '
|
72
|
+
expect(subject.subjects).to eq([{ 'subject' => 'Bibliography' },
|
73
|
+
{ 'subject' => 'Bibtex' },
|
74
|
+
{ 'subject' => 'Cff' },
|
75
|
+
{ 'subject' => 'Citation' },
|
76
|
+
{ 'subject' => 'Citation.cff' },
|
77
|
+
{ 'subject' => 'Codemeta' },
|
78
|
+
{ 'subject' => 'Endnote' },
|
79
|
+
{ 'subject' => 'Ris' },
|
80
|
+
{ 'subject' => 'Citation file format' }])
|
81
81
|
expect(subject.version).to eq('2.0.0')
|
82
82
|
expect(subject.date).to eq('published' => '2021-09-22')
|
83
83
|
expect(subject.publisher).to eq('name' => 'GitHub')
|
@@ -98,14 +98,14 @@ describe Commonmeta::Metadata, vcr: true do
|
|
98
98
|
'id' => 'https://orcid.org/0000-0002-9538-7919', 'type' => 'Person' }, { 'name' => 'The Ruby Citation File Format Developers', 'type' => 'Organization' }])
|
99
99
|
expect(subject.titles).to eq([{ 'title' => 'Ruby CFF Library' }])
|
100
100
|
expect(subject.descriptions.first['description']).to start_with('This library provides a Ruby interface to manipulate Citation File Format files')
|
101
|
-
expect(subject.subjects).to eq([{ 'subject' => '
|
102
|
-
{ 'subject' => '
|
103
|
-
{ 'subject' => '
|
104
|
-
{ 'subject' => '
|
105
|
-
{ 'subject' => '
|
106
|
-
{ 'subject' => '
|
107
|
-
{ 'subject' => '
|
108
|
-
{ 'subject' => '
|
101
|
+
expect(subject.subjects).to eq([{ 'subject' => 'Ruby' },
|
102
|
+
{ 'subject' => 'Credit' },
|
103
|
+
{ 'subject' => 'Software citation' },
|
104
|
+
{ 'subject' => 'Research software' },
|
105
|
+
{ 'subject' => 'Software sustainability' },
|
106
|
+
{ 'subject' => 'Metadata' },
|
107
|
+
{ 'subject' => 'Citation file format' },
|
108
|
+
{ 'subject' => 'Cff' }])
|
109
109
|
expect(subject.version).to eq('1.0.1')
|
110
110
|
expect(subject.date).to eq('published' => '2022-11-05')
|
111
111
|
expect(subject.publisher).to eq('name' => 'GitHub')
|
@@ -127,14 +127,14 @@ describe Commonmeta::Metadata, vcr: true do
|
|
127
127
|
'id' => 'https://orcid.org/0000-0002-9538-7919', 'type' => 'Person' }, { 'name' => 'The Ruby Citation File Format Developers', 'type' => 'Organization' }])
|
128
128
|
expect(subject.titles).to eq([{ 'title' => 'Ruby CFF Library' }])
|
129
129
|
expect(subject.descriptions.first['description']).to start_with('This library provides a Ruby interface to manipulate Citation File Format files')
|
130
|
-
expect(subject.subjects).to eq([{ 'subject' => '
|
131
|
-
{ 'subject' => '
|
132
|
-
{ 'subject' => '
|
133
|
-
{ 'subject' => '
|
134
|
-
{ 'subject' => '
|
135
|
-
{ 'subject' => '
|
136
|
-
{ 'subject' => '
|
137
|
-
{ 'subject' => '
|
130
|
+
expect(subject.subjects).to eq([{ 'subject' => 'Ruby' },
|
131
|
+
{ 'subject' => 'Credit' },
|
132
|
+
{ 'subject' => 'Software citation' },
|
133
|
+
{ 'subject' => 'Research software' },
|
134
|
+
{ 'subject' => 'Software sustainability' },
|
135
|
+
{ 'subject' => 'Metadata' },
|
136
|
+
{ 'subject' => 'Citation file format' },
|
137
|
+
{ 'subject' => 'Cff' }])
|
138
138
|
expect(subject.version).to eq('1.0.1')
|
139
139
|
expect(subject.date).to eq('published' => '2022-11-05')
|
140
140
|
expect(subject.publisher).to eq('name' => 'GitHub')
|
@@ -28,8 +28,8 @@ describe Commonmeta::Metadata, vcr: true do
|
|
28
28
|
'type' => 'Person' }])
|
29
29
|
expect(subject.titles).to eq([{ 'title' => 'Maremma: a Ruby library for simplified network calls' }])
|
30
30
|
expect(subject.descriptions.first['description']).to start_with('Ruby utility library for network requests')
|
31
|
-
expect(subject.subjects).to eq([{ 'subject' => '
|
32
|
-
{ 'subject' => '
|
31
|
+
expect(subject.subjects).to eq([{ 'subject' => 'Faraday' }, { 'subject' => 'Excon' },
|
32
|
+
{ 'subject' => 'Net/http' }])
|
33
33
|
expect(subject.date).to eq('created' => '2015-11-28',
|
34
34
|
'published' => '2017-02-24',
|
35
35
|
'updated' => '2017-02-24')
|
@@ -57,8 +57,8 @@ describe Commonmeta::Metadata, vcr: true do
|
|
57
57
|
'type' => 'Organization' }])
|
58
58
|
expect(subject.titles).to eq([{ 'title' => 'R Interface to the DataONE REST API' }])
|
59
59
|
expect(subject.descriptions.first['description']).to start_with('Provides read and write access to data and metadata')
|
60
|
-
expect(subject.subjects).to eq([{ 'subject' => '
|
61
|
-
{ 'subject' => '
|
60
|
+
expect(subject.subjects).to eq([{ 'subject' => 'Data sharing' }, { 'subject' => 'Data repository' },
|
61
|
+
{ 'subject' => 'Dataone' }])
|
62
62
|
expect(subject.version).to eq('2.0.0')
|
63
63
|
expect(subject.date).to eq('created' => '2016-05-27',
|
64
64
|
'published' => '2016-05-27',
|
@@ -82,8 +82,8 @@ describe Commonmeta::Metadata, vcr: true do
|
|
82
82
|
'type' => 'Person' }])
|
83
83
|
expect(subject.titles).to eq([{ 'title' => 'Maremma: a Ruby library for simplified network calls' }])
|
84
84
|
expect(subject.descriptions.first['description']).to start_with('Simplifies network calls')
|
85
|
-
expect(subject.subjects).to eq([{ 'subject' => '
|
86
|
-
{ 'subject' => '
|
85
|
+
expect(subject.subjects).to eq([{ 'subject' => 'Faraday' }, { 'subject' => 'Excon' },
|
86
|
+
{ 'subject' => 'Net/http' }])
|
87
87
|
expect(subject.date).to eq('created' => '2015-11-28',
|
88
88
|
'published' => '2017-02-24',
|
89
89
|
'updated' => '2017-02-24')
|
@@ -104,8 +104,8 @@ describe Commonmeta::Metadata, vcr: true do
|
|
104
104
|
'type' => 'Person')
|
105
105
|
expect(subject.titles).to eq([{ 'title' => 'DOI Registrations for Software' }])
|
106
106
|
expect(subject.descriptions.first['description']).to start_with('Analysis of DataCite DOIs registered for software')
|
107
|
-
expect(subject.subjects).to eq([{ 'subject' => '
|
108
|
-
{ 'subject' => '
|
107
|
+
expect(subject.subjects).to eq([{ 'subject' => 'Doi' }, { 'subject' => 'Software' },
|
108
|
+
{ 'subject' => 'Codemeta' }])
|
109
109
|
expect(subject.date).to eq('created' => '2018-03-09',
|
110
110
|
'published' => '2018-05-17',
|
111
111
|
'updated' => '2018-05-17')
|