commonmeta-ruby 3.5.4 → 3.5.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c42c11b4ae0ee7743906d829813c5686e64359da51743c886b96dce34935556e
4
- data.tar.gz: 2ab7d6c4fce7c9d33fb546a002cbad7c1220a8576cd2e73eb2341b39259eae9a
3
+ metadata.gz: 9c8e2d972bcad519ed4521af6b13bfd4f21d708b99df243f038d62d2896091a8
4
+ data.tar.gz: b2eadeaf3d3e52ab88e7c0cfb1c1317e8191fe9d7ab367597d269fb684bbde1a
5
5
  SHA512:
6
- metadata.gz: f95088f184873a000063b3ea5bbc426723c3782d33b98956d07eeac152ba24c0445ad491b85b95aa7369df8c4705d867780d18d7ac92225839ef7133e8d7ee6e
7
- data.tar.gz: 5e836d35579afa5921c4e342b6d66f2b5059b5f8165194d1508e45b9c92060f1ac67bdbffd87477650c1bc48f8defd10daeea19a42ca5b52c3590162ddffab94
6
+ metadata.gz: f89aaf3a281c2cd60996ce69731fde9885cacfb2cabaa06226850167ac4d1928f317552423d13a3cf20c3356276952352d376bfa88ceaeb4dae5f5aac50bf1ae
7
+ data.tar.gz: ebf2502cdfee9151809656ea81f372e1e8e52f8da3bead8de70f5914882b570299b3ce4aa03e3fa9a01be307d4b064f5a5b32e5b772c9d80f56c45b9856319be
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- commonmeta-ruby (3.5.4)
4
+ commonmeta-ruby (3.5.5)
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)
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_not_indexed json_feed_unregistered json_feed_by_blog 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_not_indexed json_feed_unregistered json_feed_by_blog json_feed_blog_id 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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Commonmeta
4
- VERSION = '3.5.4'
4
+ VERSION = '3.5.5'
5
5
  end
data/spec/cli_spec.rb CHANGED
@@ -378,5 +378,10 @@ describe Commonmeta::CLI do
378
378
  input = "tyfqw20"
379
379
  expect { subject.json_feed_by_blog input }.to output(/37538c38-66e6-4ac4-ab5c-679684622ade/).to_stdout
380
380
  end
381
+
382
+ it "json_feed_blog_id" do
383
+ input = "01a92f9a-f8e0-442b-86e2-11530d9d5635"
384
+ expect { subject.json_feed_blog_id input }.to output(/eve/).to_stdout
385
+ end
381
386
  end
382
387
  end
@@ -0,0 +1,117 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://rogue-scholar.org/api/blogs/01a92f9a-f8e0-442b-86e2-11530d9d5635
6
+ body:
7
+ encoding: ASCII-8BIT
8
+ string: ''
9
+ headers:
10
+ Connection:
11
+ - close
12
+ Host:
13
+ - rogue-scholar.org
14
+ User-Agent:
15
+ - http.rb/5.1.1
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Age:
22
+ - '0'
23
+ Cache-Control:
24
+ - public, max-age=0, must-revalidate
25
+ Content-Length:
26
+ - '0'
27
+ Content-Type:
28
+ - application/json; charset=utf-8
29
+ Date:
30
+ - Sun, 01 Oct 2023 13:03:42 GMT
31
+ Server:
32
+ - Vercel
33
+ Strict-Transport-Security:
34
+ - max-age=63072000
35
+ X-Matched-Path:
36
+ - "/api/blogs/[...params]"
37
+ X-Vercel-Cache:
38
+ - MISS
39
+ X-Vercel-Id:
40
+ - fra1::iad1::l5p8f-1696165422190-26d900c36ebf
41
+ Connection:
42
+ - close
43
+ body:
44
+ encoding: UTF-8
45
+ string: ''
46
+ recorded_at: Sun, 01 Oct 2023 13:03:42 GMT
47
+ - request:
48
+ method: get
49
+ uri: https://rogue-scholar.org/api/posts/01a92f9a-f8e0-442b-86e2-11530d9d5635
50
+ body:
51
+ encoding: ASCII-8BIT
52
+ string: ''
53
+ headers:
54
+ Connection:
55
+ - close
56
+ Host:
57
+ - rogue-scholar.org
58
+ User-Agent:
59
+ - http.rb/5.1.1
60
+ response:
61
+ status:
62
+ code: 200
63
+ message: OK
64
+ headers:
65
+ Age:
66
+ - '0'
67
+ Cache-Control:
68
+ - public, max-age=0, must-revalidate
69
+ Content-Length:
70
+ - '3101'
71
+ Content-Type:
72
+ - application/json; charset=utf-8
73
+ Date:
74
+ - Sun, 01 Oct 2023 13:04:10 GMT
75
+ Etag:
76
+ - '"m7vq2i46dx2df"'
77
+ Server:
78
+ - Vercel
79
+ Strict-Transport-Security:
80
+ - max-age=63072000
81
+ X-Matched-Path:
82
+ - "/api/posts/[[...params]]"
83
+ X-Vercel-Cache:
84
+ - MISS
85
+ X-Vercel-Id:
86
+ - fra1::iad1::m4qk2-1696165449788-443242d21f91
87
+ Connection:
88
+ - close
89
+ body:
90
+ encoding: UTF-8
91
+ string: '{"id":"01a92f9a-f8e0-442b-86e2-11530d9d5635","doi":"https://doi.org/10.59348/dmq66-f5d26","url":"https://eve.gd/2017/05/07/an-important-note-if-you-have-a-lenovo-g580","archive_url":null,"title":"An
92
+ important note if you have a Lenovo G580","summary":"The Lenovo G580 comes
93
+ with Windows 8. It is possible to permanently lock yourself out of the operating
94
+ system if you begin with a Microsoft account and migrate this to a local account.","content_html":"<p>The
95
+ Lenovo G580 comes with Windows 8. It is possible to permanently lock yourself
96
+ out of the operating system if you begin with a Microsoft account and migrate
97
+ this to a local account. Further, you won’t be able to rescue the system since
98
+ <em>it is impossible to enter the BIOS setup in the machine’s default state
99
+ if you cannot login to Windows</em>.</p>\n\n<p>To fix this:</p>\n\n<ol>\n <li>Disable
100
+ “fast boot” mode in Windows 8. You can do this in “Power Settings”. If you
101
+ don’t do this, you can’t modify the Windows disk partition when booting from
102
+ a recovery USB.</li>\n <li><a href=\"https://download.lenovo.com/consumer/mobiles/62cn97ww_64.exe\">Update
103
+ your BIOS</a>. Do it now or you won’t be able to unless you can still login
104
+ to Windows 8.</li>\n <li>Go into the BIOS (shutdown the machine then press
105
+ the small button next to the power button and select “BIOS setup”). Then,
106
+ set an administrator password in the BIOS settings. Then, “disable secure
107
+ boot”. This will allow you to boot from a recovery USB stick such as Kali
108
+ or Ubuntu.</li>\n</ol>\n\n<p>Urgh. A Catch-22 where Microsoft Windows corrupted
109
+ a login (thanks, Microsoft) and a hardware defect stops you booting into a
110
+ recovery medium (thanks, Lenovo).</p>\n\n <p><a href=\"https://eve.gd/2017/05/07/an-important-note-if-you-have-a-lenovo-g580/\">An
111
+ important note if you have a Lenovo G580</a> was originally published by Martin
112
+ Paul Eve at <a href=\"https://eve.gd\">Martin Paul Eve</a> on May 07, 2017.</p>","published_at":1494172558,"updated_at":1494172558,"indexed_at":1696162656,"authors":[{"url":"https://orcid.org/0000-0002-5589-8511","name":"Martin
113
+ Paul Eve"}],"image":null,"tags":[],"language":"en","reference":[],"relationships":[],"blog_id":"z4b9d78","blog_name":"Martin
114
+ Paul Eve","blog_slug":"eve","blog":{"id":"z4b9d78","title":"Martin Paul Eve","description":null,"language":"en","favicon":"https://eve.gd/favicon.png","feed_url":"https://eve.gd/feed_all.xml","home_page_url":"https://eve.gd","user_id":"eb3f6a26-3e38-42ad-b752-250eb2c0bf89","created_at":"2023-07-26","feed_format":"application/atom+xml","license":"https://creativecommons.org/licenses/by/4.0/legalcode","generator":"Jekyll","category":"languagesAndLiterature","prefix":"10.59348","modified_at":"1970-01-01T00:00:00+00:00","version":"https://jsonfeed.org/version/1.1","current_feed_url":"https://eve.gd/feed.xml","status":"active","issn":null,"backlog":0,"authors":[{"url":null,"name":"Martin
115
+ Paul Eve"}],"plan":"Team","slug":"eve","use_mastodon":false,"api":false,"funding":null,"archive_prefix":null,"use_api":null,"relative_url":"blog","canonical_url":null}}'
116
+ recorded_at: Sun, 01 Oct 2023 13:04:10 GMT
117
+ recorded_with: VCR 6.2.0
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.5.4
4
+ version: 3.5.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Fenner
@@ -795,6 +795,7 @@ files:
795
795
  - spec/fixtures/vcr_cassettes/Commonmeta_CLI/find_from_format_by_id/kisti.yml
796
796
  - spec/fixtures/vcr_cassettes/Commonmeta_CLI/find_from_format_by_id/medra.yml
797
797
  - spec/fixtures/vcr_cassettes/Commonmeta_CLI/find_from_format_by_id/op.yml
798
+ - spec/fixtures/vcr_cassettes/Commonmeta_CLI/json_feed/json_feed_blog_id.yml
798
799
  - spec/fixtures/vcr_cassettes/Commonmeta_CLI/json_feed/json_feed_by_blog.yml
799
800
  - spec/fixtures/vcr_cassettes/Commonmeta_CLI/json_feed/json_feed_not_indexed.yml
800
801
  - spec/fixtures/vcr_cassettes/Commonmeta_CLI/json_feed/json_feed_unregistered.yml