briard 2.6.2 → 2.6.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: 512d8c4f7af4d9509ceef4dea96b2aa5a8807e1361c578f3e98b34b9c279e6e8
4
- data.tar.gz: 60b5f9e71d33ce3d64be307edc8a49e4e3e1e2a95a000ec45bd85cdc80d1ceb5
3
+ metadata.gz: 15671322232d689001a5c0d663e85ef476e68f947fceb5dfc4364cbfcd1ac813
4
+ data.tar.gz: aed48d881d2f47e786d7913feb58389638355c459b7a1812efbd119ef2736aec
5
5
  SHA512:
6
- metadata.gz: d66b03341892c4ef1c708e90a53a216211027dcc4c7018495a7232c81d198fb9b827420c3743b9550907a7f9fda367e9fd8c8502cbc4c4934caeeb96a8616378
7
- data.tar.gz: 62850298e8c5f670d0282be555f13c40f8e4abc6225abd5d0f9f80d24e37ee90aaf1ff944abbcb132d4ff74405a4e57c96a551180a1dde8943984eda6db9bc03
6
+ metadata.gz: d38a67e567acbfbcaf3cdca79832f2507924908a05026f958768245d52d24a88de24f7b6373616100f603728b2a822309abc66a09670efaf94116f995693d5d4
7
+ data.tar.gz: 4b8429cb263e34193292bd25d76dfca5f58dacb3ffbc7c575a9458667b9c02807f2ea30e49466708000accbe2efa1484e52053fac3b457faadb2fdfe407056f2
@@ -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,13 @@
1
1
  # Changelog
2
2
 
3
+ ## [v2.6.4](https://github.com/front-matter/briard/tree/v2.6.4) (2022-10-04)
4
+
5
+ [Full Changelog](https://github.com/front-matter/briard/compare/v2.6.3...v2.6.4)
6
+
7
+ ## [v2.6.3](https://github.com/front-matter/briard/tree/v2.6.3) (2022-10-04)
8
+
9
+ [Full Changelog](https://github.com/front-matter/briard/compare/v2.5.1...v2.6.3)
10
+
3
11
  ## [v2.5.1](https://github.com/front-matter/briard/tree/v2.5.1) (2022-09-18)
4
12
 
5
13
  [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.5)
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/bin/briard CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  require File.expand_path("../../lib/briard", __FILE__)
4
4
 
5
- if (ARGV & %w(--version -v help --help encode)).empty?
5
+ if (ARGV & %w(--version -v help --help encode decode)).empty?
6
6
  Briard::CLI.start(ARGV.dup.unshift("convert"))
7
7
  else
8
8
  Briard::CLI.start
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.5'
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.5
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