commonmeta-ruby 3.3.6 → 3.3.7

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: edf931672f4de5668583515c8d61aff5b4538cf86b929d961866691dc56c0850
4
- data.tar.gz: fcd58d117198ee30dd0387bd96ff38ad4c82d1b67b538fcf997661ed3d2019e6
3
+ metadata.gz: a142d529ddbead4512d9a66531983b5dc8849631ccb28a0cc12b9801af7c7e6e
4
+ data.tar.gz: 77b47a7afa4e7aa2b0cb82d6dad99da9b01cfaedb0ee6aba90d03187aa8691f5
5
5
  SHA512:
6
- metadata.gz: 466b00b27e4382baeccab8c5bc82adb516e9a68a2651ba4cb9bbeb6f3e5cc7d6665a25fcf07142dc19fa5ef1dabf4ab273c4c6a75d8377070ea5f54f96af3e5e
7
- data.tar.gz: 07634a0d50aed5280e6536cafa0a68fbe267d5d4b1065039aa1d433b305cfd220379e8fb9eab66385b2aa15eea01afb02c974643eb98d6aeb12e399eb9d03b60
6
+ metadata.gz: 0a672da90701e5d53ba7a91ac095e8577dac584150aa4ca58c095e757d47a9fd473638a662a5402c334e1399574d9596a7dc0d2bb2354f08f4c25cd73992c7d2
7
+ data.tar.gz: 69c7a71c0dd770cd0685e792e639cc4d78f02196ce0dbad596107257557b1d4ff5e18e8caefc956d72fabbb45071432004c0653550eb94df6769ef2b8e21e5b6
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- commonmeta-ruby (3.3.6)
4
+ commonmeta-ruby (3.3.7)
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)
@@ -118,7 +118,7 @@ module Commonmeta
118
118
  desc "", "update_ghost_post"
119
119
 
120
120
  def update_ghost_post(uuid)
121
- puts update_ghost_post(uuid)
121
+ puts update_ghost_post_via_api(uuid)
122
122
  end
123
123
 
124
124
  default_task :convert
@@ -1473,7 +1473,7 @@ module Commonmeta
1473
1473
  JWT.encode payload, [secret].pack("H*"), "HS256", header
1474
1474
  end
1475
1475
 
1476
- def update_ghost_post(uuid)
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Commonmeta
4
- VERSION = '3.3.6'
4
+ VERSION = '3.3.7'
5
5
  end
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.3.6
4
+ version: 3.3.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Fenner