commonmeta-ruby 3.3.6 → 3.3.7
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/lib/commonmeta/cli.rb +1 -1
- data/lib/commonmeta/utils.rb +2 -2
- data/lib/commonmeta/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a142d529ddbead4512d9a66531983b5dc8849631ccb28a0cc12b9801af7c7e6e
|
|
4
|
+
data.tar.gz: 77b47a7afa4e7aa2b0cb82d6dad99da9b01cfaedb0ee6aba90d03187aa8691f5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0a672da90701e5d53ba7a91ac095e8577dac584150aa4ca58c095e757d47a9fd473638a662a5402c334e1399574d9596a7dc0d2bb2354f08f4c25cd73992c7d2
|
|
7
|
+
data.tar.gz: 69c7a71c0dd770cd0685e792e639cc4d78f02196ce0dbad596107257557b1d4ff5e18e8caefc956d72fabbb45071432004c0653550eb94df6769ef2b8e21e5b6
|
data/Gemfile.lock
CHANGED
data/lib/commonmeta/cli.rb
CHANGED
data/lib/commonmeta/utils.rb
CHANGED
|
@@ -1473,7 +1473,7 @@ module Commonmeta
|
|
|
1473
1473
|
JWT.encode payload, [secret].pack("H*"), "HS256", header
|
|
1474
1474
|
end
|
|
1475
1475
|
|
|
1476
|
-
def
|
|
1476
|
+
def update_ghost_post_via_api(uuid)
|
|
1477
1477
|
api_key = ENV["API_KEY"]
|
|
1478
1478
|
api_url = ENV["API_URL"]
|
|
1479
1479
|
|
|
@@ -1491,7 +1491,7 @@ module Commonmeta
|
|
|
1491
1491
|
url = post.to_h.dig("url")
|
|
1492
1492
|
doi = validate_doi(post.to_h.dig("id"))
|
|
1493
1493
|
doi = doi_as_url(doi)
|
|
1494
|
-
|
|
1494
|
+
|
|
1495
1495
|
return nil unless url.present? && doi.present?
|
|
1496
1496
|
|
|
1497
1497
|
# get id and updated_at from ghost api
|
data/lib/commonmeta/version.rb
CHANGED