commonmeta-ruby 3.5.4 → 3.5.5
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 +1 -1
- data/bin/commonmeta +1 -1
- data/lib/commonmeta/version.rb +1 -1
- data/spec/cli_spec.rb +5 -0
- data/spec/fixtures/vcr_cassettes/Commonmeta_CLI/json_feed/json_feed_blog_id.yml +117 -0
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9c8e2d972bcad519ed4521af6b13bfd4f21d708b99df243f038d62d2896091a8
|
|
4
|
+
data.tar.gz: b2eadeaf3d3e52ab88e7c0cfb1c1317e8191fe9d7ab367597d269fb684bbde1a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f89aaf3a281c2cd60996ce69731fde9885cacfb2cabaa06226850167ac4d1928f317552423d13a3cf20c3356276952352d376bfa88ceaeb4dae5f5aac50bf1ae
|
|
7
|
+
data.tar.gz: ebf2502cdfee9151809656ea81f372e1e8e52f8da3bead8de70f5914882b570299b3ce4aa03e3fa9a01be307d4b064f5a5b32e5b772c9d80f56c45b9856319be
|
data/Gemfile.lock
CHANGED
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
|
data/lib/commonmeta/version.rb
CHANGED
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
|
+
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
|