commonmeta-ruby 3.7.2 → 3.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/publish.yml +23 -0
  3. data/Gemfile.lock +30 -29
  4. data/bin/commonmeta +1 -1
  5. data/docs/.gitignore +1 -0
  6. data/docs/_publish.yml +4 -0
  7. data/docs/_quarto.yml +46 -0
  8. data/docs/_site/favicon.ico +0 -0
  9. data/docs/_site/images/icon.png +0 -0
  10. data/docs/_site/index.html +947 -0
  11. data/docs/_site/readers/bibtex_reader.html +802 -0
  12. data/docs/_site/search.json +74 -0
  13. data/docs/_site/site_libs/bootstrap/bootstrap-dark.min.css +9 -0
  14. data/docs/_site/site_libs/bootstrap/bootstrap-icons.css +2078 -0
  15. data/docs/_site/site_libs/bootstrap/bootstrap-icons.woff +0 -0
  16. data/docs/_site/site_libs/bootstrap/bootstrap.min.css +9 -0
  17. data/docs/_site/site_libs/bootstrap/bootstrap.min.js +7 -0
  18. data/docs/_site/site_libs/clipboard/clipboard.min.js +7 -0
  19. data/docs/_site/site_libs/quarto-html/anchor.min.js +9 -0
  20. data/docs/_site/site_libs/quarto-html/popper.min.js +6 -0
  21. data/docs/_site/site_libs/quarto-html/quarto-syntax-highlighting-dark.css +179 -0
  22. data/docs/_site/site_libs/quarto-html/quarto-syntax-highlighting.css +179 -0
  23. data/docs/_site/site_libs/quarto-html/quarto.js +889 -0
  24. data/docs/_site/site_libs/quarto-html/tippy.css +1 -0
  25. data/docs/_site/site_libs/quarto-html/tippy.umd.min.js +2 -0
  26. data/docs/_site/site_libs/quarto-nav/headroom.min.js +7 -0
  27. data/docs/_site/site_libs/quarto-nav/quarto-nav.js +288 -0
  28. data/docs/_site/site_libs/quarto-search/autocomplete.umd.js +3 -0
  29. data/docs/_site/site_libs/quarto-search/fuse.min.js +9 -0
  30. data/docs/_site/site_libs/quarto-search/quarto-search.js +1241 -0
  31. data/docs/_site/utils/doi_utils.html +787 -0
  32. data/docs/_site/writers/bibtex_writer.html +803 -0
  33. data/docs/favicon.ico +0 -0
  34. data/docs/images/icon.png +0 -0
  35. data/docs/index.qmd +83 -0
  36. data/docs/readers/bibtex_reader.ipynb +37 -0
  37. data/docs/theme.scss +7 -0
  38. data/docs/utils/doi_utils.ipynb +28 -0
  39. data/docs/writers/bibtex_writer.ipynb +39 -0
  40. data/lib/commonmeta/cli.rb +5 -5
  41. data/lib/commonmeta/crossref_utils.rb +7 -1
  42. data/lib/commonmeta/doi_utils.rb +5 -0
  43. data/lib/commonmeta/metadata.rb +66 -62
  44. data/lib/commonmeta/readers/json_feed_reader.rb +15 -5
  45. data/lib/commonmeta/version.rb +1 -1
  46. data/spec/cli_spec.rb +2 -2
  47. data/spec/doi_utils_spec.rb +14 -0
  48. data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/json_feed/json_feed_blog_slug.yml +71 -0
  49. data/spec/readers/json_feed_reader_spec.rb +40 -8
  50. data/spec/writers/crossref_xml_writer_spec.rb +25 -8
  51. metadata +40 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fe9597494d8229d62e5fbfe7d60869465963ae8cb27455b428cf21131a9a8973
4
- data.tar.gz: 0b4199c7d706e064d0edb767acffe16d033d66833f2f43f405749a3e9cc5208a
3
+ metadata.gz: acaeef11b787265fa53f7997c4d6d8d4942f786eb633b1b32df5e0d09b5752a6
4
+ data.tar.gz: 675258b94dc8cc1bbb327f88f7ae7b86b104af5d27b9c44d74172630d1bf6ed7
5
5
  SHA512:
6
- metadata.gz: 709cc4b413280e974e177a69587edff1ebf923a051ba05d41ca2ed4429651aed51b1abdeb9174ae88e7c028b33208ffa5e3c42a29b198e9dd3e27d0e920928bd
7
- data.tar.gz: c5ebc9f76d2cbf8a9bc61f343c44d84454be253e4ae0785510afb375e451ea8173800eaf7271d9acfb29a79933025b4b8cf3cbde380644407a540917e2bd6904
6
+ metadata.gz: 1eab3f0ee1f997259b8c9b0e0aa9d3458277ca41b81e67013153fb65bbfaed149b35548866728d8c26d5f9c2b71dc6935a8d69a25c91b62ceca3896445920af0
7
+ data.tar.gz: 2d725b722aee5c0829ec8e5d037f83c3939acf138aa4b312ed3c417772ff8e327ca32ea638493b73151f011417231a49bb91f5d0d176e9544f8a0b4599aa4ea4
@@ -0,0 +1,23 @@
1
+ on:
2
+ workflow_dispatch:
3
+ push:
4
+ branches: ["main", "master"]
5
+
6
+ name: Quarto Publish
7
+
8
+ jobs:
9
+ build-deploy:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - name: Check out repository
13
+ uses: actions/checkout@v4
14
+ - name: Set up Quarto
15
+ uses: quarto-dev/quarto-actions/setup@v2
16
+ with:
17
+ version: pre-release
18
+ - name: Render and Publish
19
+ uses: quarto-dev/quarto-actions/publish@v2
20
+ with:
21
+ path: docs
22
+ target: netlify
23
+ NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- commonmeta-ruby (3.7.2)
4
+ commonmeta-ruby (3.8.0)
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)
@@ -27,7 +27,7 @@ PATH
27
27
  GEM
28
28
  remote: https://rubygems.org/
29
29
  specs:
30
- activesupport (7.1.1)
30
+ activesupport (7.1.2)
31
31
  base64
32
32
  bigdecimal
33
33
  concurrent-ruby (~> 1.0, >= 1.0.2)
@@ -44,9 +44,10 @@ GEM
44
44
  uuidtools (~> 2.1, >= 2.1.5)
45
45
  base64 (0.2.0)
46
46
  bcp47_spec (0.2.1)
47
- bibtex-ruby (6.0.0)
47
+ bibtex-ruby (6.1.0)
48
48
  latex-decode (~> 0.0)
49
- bigdecimal (3.1.4)
49
+ racc (~> 1.7)
50
+ bigdecimal (3.1.5)
50
51
  builder (3.2.4)
51
52
  citeproc (1.0.10)
52
53
  namae (~> 1.0)
@@ -67,15 +68,14 @@ GEM
67
68
  csl (~> 2.0)
68
69
  diff-lcs (1.5.0)
69
70
  docile (1.4.0)
70
- domain_name (0.5.20190701)
71
- unf (>= 0.0.5, < 1.0.0)
71
+ domain_name (0.6.20240107)
72
72
  drb (2.2.0)
73
73
  ruby2_keywords
74
- ebnf (2.4.0)
74
+ ebnf (2.5.0)
75
75
  htmlentities (~> 4.3)
76
76
  rdf (~> 3.3)
77
77
  scanf (~> 1.0)
78
- sxp (~> 1.3)
78
+ sxp (~> 2.0)
79
79
  unicode-types (~> 1.8)
80
80
  edtf (3.1.1)
81
81
  activesupport (>= 3.0, < 8.0)
@@ -101,11 +101,11 @@ GEM
101
101
  i18n (1.14.1)
102
102
  concurrent-ruby (~> 1.0)
103
103
  iniparser (1.0.1)
104
- json (2.6.3)
105
- json-canonicalization (0.3.2)
106
- json-ld (3.3.0)
104
+ json (2.7.1)
105
+ json-canonicalization (1.0.0)
106
+ json-ld (3.3.1)
107
107
  htmlentities (~> 4.3)
108
- json-canonicalization (~> 0.3, >= 0.3.2)
108
+ json-canonicalization (~> 1.0)
109
109
  link_header (~> 0.0, >= 0.0.8)
110
110
  multi_json (~> 1.15)
111
111
  rack (>= 2.2, < 4)
@@ -128,7 +128,7 @@ GEM
128
128
  ffi-compiler (~> 1.0)
129
129
  rake (~> 13.0)
130
130
  logutils (0.6.1)
131
- loofah (2.21.4)
131
+ loofah (2.22.0)
132
132
  crass (~> 1.0.2)
133
133
  nokogiri (>= 1.12.0)
134
134
  matrix (0.4.2)
@@ -136,12 +136,13 @@ GEM
136
136
  multi_json (1.15.0)
137
137
  mutex_m (0.2.0)
138
138
  namae (1.1.1)
139
- nokogiri (1.15.4-arm64-darwin)
139
+ nokogiri (1.16.0-arm64-darwin)
140
140
  racc (~> 1.4)
141
- oj (3.16.1)
141
+ oj (3.16.3)
142
+ bigdecimal (>= 3.0)
142
143
  optimist (3.1.0)
143
- parallel (1.23.0)
144
- parser (3.2.2.4)
144
+ parallel (1.24.0)
145
+ parser (3.3.0.2)
145
146
  ast (~> 2.4.1)
146
147
  racc
147
148
  postrank-uri (1.1)
@@ -171,7 +172,7 @@ GEM
171
172
  rdf-xsd (3.3.0)
172
173
  rdf (~> 3.3)
173
174
  rexml (~> 3.2)
174
- regexp_parser (2.8.2)
175
+ regexp_parser (2.9.0)
175
176
  rexml (3.2.6)
176
177
  rspec (3.12.0)
177
178
  rspec-core (~> 3.12.0)
@@ -189,7 +190,7 @@ GEM
189
190
  rspec-xsd (0.1.0)
190
191
  nokogiri (~> 1.6)
191
192
  rspec (~> 3)
192
- rubocop (1.57.2)
193
+ rubocop (1.59.0)
193
194
  json (~> 2.3)
194
195
  language_server-protocol (>= 3.17.0)
195
196
  parallel (~> 1.10)
@@ -197,21 +198,21 @@ GEM
197
198
  rainbow (>= 2.2.2, < 4.0)
198
199
  regexp_parser (>= 1.8, < 3.0)
199
200
  rexml (>= 3.2.5, < 4.0)
200
- rubocop-ast (>= 1.28.1, < 2.0)
201
+ rubocop-ast (>= 1.30.0, < 2.0)
201
202
  ruby-progressbar (~> 1.7)
202
203
  unicode-display_width (>= 2.4.0, < 3.0)
203
204
  rubocop-ast (1.30.0)
204
205
  parser (>= 3.2.1.0)
205
- rubocop-capybara (2.19.0)
206
+ rubocop-capybara (2.20.0)
206
207
  rubocop (~> 1.41)
207
- rubocop-factory_bot (2.24.0)
208
- rubocop (~> 1.33)
209
- rubocop-performance (1.19.1)
210
- rubocop (>= 1.7.0, < 2.0)
211
- rubocop-ast (>= 0.4.0)
208
+ rubocop-factory_bot (2.25.1)
209
+ rubocop (~> 1.41)
210
+ rubocop-performance (1.20.2)
211
+ rubocop (>= 1.48.1, < 2.0)
212
+ rubocop-ast (>= 1.30.0, < 2.0)
212
213
  rubocop-rake (0.6.0)
213
214
  rubocop (~> 1.0)
214
- rubocop-rspec (2.25.0)
215
+ rubocop-rspec (2.26.1)
215
216
  rubocop (~> 1.40)
216
217
  rubocop-capybara (~> 2.17)
217
218
  rubocop-factory_bot (~> 2.22)
@@ -227,7 +228,7 @@ GEM
227
228
  simplecov_json_formatter (0.1.4)
228
229
  simpleidn (0.2.1)
229
230
  unf (~> 0.1.4)
230
- sxp (1.3.0)
231
+ sxp (2.0.0)
231
232
  matrix (~> 0.4)
232
233
  rdf (~> 3.3)
233
234
  textutils (1.4.0)
@@ -240,7 +241,7 @@ GEM
240
241
  concurrent-ruby (~> 1.0)
241
242
  unf (0.1.4)
242
243
  unf_ext
243
- unf_ext (0.0.8.2)
244
+ unf_ext (0.0.9.1)
244
245
  unicode-display_width (2.5.0)
245
246
  unicode-types (1.9.0)
246
247
  uuidtools (2.2.0)
data/bin/commonmeta CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  require File.expand_path("../../lib/commonmeta", __FILE__)
4
4
 
5
- if (ARGV & %w(--version -v help --help encode decode encode_id decode_id encode_by_blog encode_by_id json_feed_updated json_feed_unregistered json_feed_by_blog json_feed_blog_id update_ghost_post generate_ghost_api_token)).empty?
5
+ if (ARGV & %w(--version -v help --help encode decode encode_id decode_id encode_by_blog encode_by_id json_feed_updated json_feed_unregistered json_feed_by_blog json_feed_blog_slug update_ghost_post generate_ghost_api_token)).empty?
6
6
  Commonmeta::CLI.start(ARGV.dup.unshift("convert"))
7
7
  else
8
8
  Commonmeta::CLI.start
data/docs/.gitignore ADDED
@@ -0,0 +1 @@
1
+ /.quarto/
data/docs/_publish.yml ADDED
@@ -0,0 +1,4 @@
1
+ - source: project
2
+ netlify:
3
+ - id: 1820630d-bc59-43bd-923b-41b6e81bf378
4
+ url: 'https://commonmeta-ruby.netlify.app'
data/docs/_quarto.yml ADDED
@@ -0,0 +1,46 @@
1
+ project:
2
+ type: website
3
+ output-dir: _site
4
+ preview:
5
+ port: 4400
6
+ execute:
7
+ freeze: true
8
+ website:
9
+ title: "commonmeta-ruby"
10
+ favicon: favicon.ico
11
+ bread-crumbs: false
12
+ navbar:
13
+ background: light
14
+ logo: "/images/icon.png"
15
+ logo-alt: "commonmeta-py"
16
+ right:
17
+ - icon: github
18
+ href: https://github.com/front-matter/commonmeta-ruby
19
+ sidebar:
20
+ contents:
21
+ - index.qmd
22
+ - section: "Readers"
23
+ contents: "readers/*.ipynb"
24
+ - section: "Writers"
25
+ contents: "writers/*.ipynb"
26
+ - section: "Utils"
27
+ contents: "utils/*.ipynb"
28
+ page-footer:
29
+ left: "Copyright &copy;2023 Front Matter."
30
+ right:
31
+ - icon: envelope
32
+ href: mailto:info@front-matter.io
33
+ - icon: mastodon
34
+ href: https://rogue-scholar.social/@admin
35
+
36
+ format:
37
+ html:
38
+ theme:
39
+ light: [flatly, theme.scss]
40
+ dark: [darkly, theme.scss]
41
+ code-fold: false
42
+ code-block-bg: true
43
+ code-block-border-left: "#38a169"
44
+ highlight-style: github
45
+ toc: true
46
+ toc-location: right
Binary file
Binary file