briard 2.6.2 → 2.6.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 512d8c4f7af4d9509ceef4dea96b2aa5a8807e1361c578f3e98b34b9c279e6e8
4
- data.tar.gz: 60b5f9e71d33ce3d64be307edc8a49e4e3e1e2a95a000ec45bd85cdc80d1ceb5
3
+ metadata.gz: a9492201dfa128cb033d3b8a6c15544a8ef4e9b3bfd32837f3027a2a010d88e8
4
+ data.tar.gz: c54c1763a33c771f101dc4cb298f7853ad8b2317c2f4fe5ef55dfc8013acad6b
5
5
  SHA512:
6
- metadata.gz: d66b03341892c4ef1c708e90a53a216211027dcc4c7018495a7232c81d198fb9b827420c3743b9550907a7f9fda367e9fd8c8502cbc4c4934caeeb96a8616378
7
- data.tar.gz: 62850298e8c5f670d0282be555f13c40f8e4abc6225abd5d0f9f80d24e37ee90aaf1ff944abbcb132d4ff74405a4e57c96a551180a1dde8943984eda6db9bc03
6
+ metadata.gz: cfa97d37ad0ad136521665794bb9cd284e7261f27ad609b1ba6feca348d552b05a3b8c16e926890938e394bea2f6dcfacad26b48b321c87cc5935a9b98ac548a
7
+ data.tar.gz: 95af8e1581d74a26e6061107eb20943853ada26456c3fe0f204690206b1151ab96e30a758290891757808177156e022c676c3c41cbbcaec2d95e41bec515342c
@@ -22,14 +22,12 @@ jobs:
22
22
  bundle install
23
23
  bundle exec rspec
24
24
 
25
- - name: Publish code coverage
26
- uses: paambaati/codeclimate-action@v3.0.0
27
- env:
28
- CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
29
- with:
30
- coverageCommand: bundle exec rspec
31
- coverageLocations: ${{ github.workspace }}/coverage/coverage.json:simplecov
32
-
25
+ # - name: SonarCloud Scan
26
+ # uses: sonarsource/sonarcloud-github-action@master
27
+ # env:
28
+ # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29
+ # SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
30
+
33
31
  - name: Notify Slack
34
32
  uses: adamkdean/simple-slack-notify@1.0.4
35
33
  with:
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## [v2.6.3](https://github.com/front-matter/briard/tree/v2.6.3) (2022-10-04)
4
+
5
+ [Full Changelog](https://github.com/front-matter/briard/compare/v2.5.1...v2.6.3)
6
+
3
7
  ## [v2.5.1](https://github.com/front-matter/briard/tree/v2.5.1) (2022-09-18)
4
8
 
5
9
  [Full Changelog](https://github.com/front-matter/briard/compare/v2.5.0...v2.5.1)
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- briard (2.6.2)
4
+ briard (2.6.4)
5
5
  activesupport (>= 4.2.5)
6
6
  base32-url (>= 0.5.0, < 1)
7
7
  benchmark_methods (~> 0.7)
@@ -177,7 +177,7 @@ GEM
177
177
  rdf-xsd (3.2.1)
178
178
  rdf (~> 3.2)
179
179
  rexml (~> 3.2)
180
- regexp_parser (2.5.0)
180
+ regexp_parser (2.6.0)
181
181
  rexml (3.2.5)
182
182
  rspec (3.11.0)
183
183
  rspec-core (~> 3.11.0)
data/README.md CHANGED
@@ -1,8 +1,7 @@
1
1
  [![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.5785519.svg)](https://doi.org/10.5281/zenodo.5785519)
2
2
  [![Gem Version](https://badge.fury.io/rb/briard.svg)](https://badge.fury.io/rb/briard)
3
- ![Build Ruby Gem](https://github.com/front-matter/briard/workflows/Build%20Ruby%20Gem/badge.svg)
4
- [![Maintainability](https://api.codeclimate.com/v1/badges/42577c8858b5ab71a801/maintainability)](https://codeclimate.com/github/front-matter/briard/maintainability)
5
- [![Test Coverage](https://api.codeclimate.com/v1/badges/42577c8858b5ab71a801/test_coverage)](https://codeclimate.com/github/front-matter/briard/test_coverage)
3
+ [![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=front-matter_briard&metric=sqale_rating)](https://sonarcloud.io/summary/new_code?id=front-matter_briard)
4
+ [![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=front-matter_briard&metric=security_rating)](https://sonarcloud.io/summary/new_code?id=front-matter_briard)
6
5
 
7
6
  # Briard: a Ruby library for conversion of DOI Metadata
8
7
 
data/lib/briard/cli.rb CHANGED
@@ -57,6 +57,11 @@ module Briard
57
57
  puts encode_doi(prefix)
58
58
  end
59
59
 
60
+ desc '', 'decode'
61
+ def decode(doi)
62
+ puts decode_doi(doi)
63
+ end
64
+
60
65
  default_task :convert
61
66
  end
62
67
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Briard
4
- VERSION = '2.6.2'
4
+ VERSION = '2.6.4'
5
5
  end
data/spec/cli_spec.rb CHANGED
@@ -231,4 +231,12 @@ describe Briard::CLI do
231
231
  expect { subject.encode input }.to output(/https:\/\/doi.org\/10.53731/).to_stdout
232
232
  end
233
233
  end
234
+
235
+ describe "decode" do
236
+ let(:input) { "10.53731/cjx855h-hn5jtq8" }
237
+
238
+ it "blog post" do
239
+ expect { subject.decode input }.to output(/464528469187255429864\n/).to_stdout
240
+ end
241
+ end
234
242
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: briard
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.2
4
+ version: 2.6.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Fenner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-09-25 00:00:00.000000000 Z
11
+ date: 2022-10-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport