briard 2.6.1 → 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: '079443c6a699983314b50894d71e41f9f00fb37ac345c3c9adce1b393390232c'
4
- data.tar.gz: 1daacb3634f9dca35e94af70d6240efda36b9d44c66a923837d86199acdd80e0
3
+ metadata.gz: a9492201dfa128cb033d3b8a6c15544a8ef4e9b3bfd32837f3027a2a010d88e8
4
+ data.tar.gz: c54c1763a33c771f101dc4cb298f7853ad8b2317c2f4fe5ef55dfc8013acad6b
5
5
  SHA512:
6
- metadata.gz: 5dc7a33c5a48e8e18921dc7e7e32717a4a743bdb15008ec1c53f70738b9bb42019aa29aaef9d792a187c28f12acc09011128815bfda0c1889e0f98d903eec551
7
- data.tar.gz: 875cae3964a4a6716729f521779f1e6344483420da3843023b11312217f1a3524c4ec7f8220676f18d4956d752f08827228d152233d6c8913ac7e6ac5e408d86
6
+ metadata.gz: cfa97d37ad0ad136521665794bb9cd284e7261f27ad609b1ba6feca348d552b05a3b8c16e926890938e394bea2f6dcfacad26b48b321c87cc5935a9b98ac548a
7
+ data.tar.gz: 95af8e1581d74a26e6061107eb20943853ada26456c3fe0f204690206b1151ab96e30a758290891757808177156e022c676c3c41cbbcaec2d95e41bec515342c
@@ -22,11 +22,12 @@ jobs:
22
22
  bundle install
23
23
  bundle exec rspec
24
24
 
25
- # - name: Publish code coverage
26
- # uses: paambaati/codeclimate-action@v2.7.4
25
+ # - name: SonarCloud Scan
26
+ # uses: sonarsource/sonarcloud-github-action@master
27
27
  # env:
28
- # CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
29
-
28
+ # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29
+ # SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
30
+
30
31
  - name: Notify Slack
31
32
  uses: adamkdean/simple-slack-notify@1.0.4
32
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.1)
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)
@@ -216,11 +216,12 @@ GEM
216
216
  rubocop (~> 1.33)
217
217
  ruby-progressbar (1.11.0)
218
218
  scanf (1.0.0)
219
- simplecov (0.17.1)
219
+ simplecov (0.21.2)
220
220
  docile (~> 1.1)
221
- json (>= 1.8, < 3)
222
- simplecov-html (~> 0.10.0)
223
- simplecov-html (0.10.2)
221
+ simplecov-html (~> 0.11)
222
+ simplecov_json_formatter (~> 0.1)
223
+ simplecov-html (0.12.3)
224
+ simplecov_json_formatter (0.1.4)
224
225
  sxp (1.2.2)
225
226
  matrix
226
227
  rdf (~> 3.2)
@@ -254,7 +255,8 @@ DEPENDENCIES
254
255
  rubocop-performance (~> 1.15)
255
256
  rubocop-rake (~> 0.6.0)
256
257
  rubocop-rspec (~> 2.13)
257
- simplecov (= 0.17.1)
258
+ simplecov (= 0.21.2)
259
+ simplecov_json_formatter (~> 0.1.2)
258
260
  vcr (~> 3.0, >= 3.0.3)
259
261
  webmock (~> 3.0, >= 3.0.1)
260
262
 
data/README.md CHANGED
@@ -1,6 +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)
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)
4
5
 
5
6
  # Briard: a Ruby library for conversion of DOI Metadata
6
7
 
data/briard.gemspec CHANGED
@@ -57,7 +57,8 @@ Gem::Specification.new do |s|
57
57
  s.add_development_dependency 'rubocop-performance', '~> 1.15'
58
58
  s.add_development_dependency 'rubocop-rake', '~> 0.6.0'
59
59
  s.add_development_dependency 'rubocop-rspec', '~> 2.13'
60
- s.add_development_dependency 'simplecov', '0.17.1'
60
+ s.add_development_dependency 'simplecov', '0.21.2'
61
+ s.add_development_dependency 'simplecov_json_formatter', '~> 0.1.2'
61
62
  s.add_development_dependency 'vcr', '~> 3.0', '>= 3.0.3'
62
63
  s.add_development_dependency 'webmock', '~> 3.0', '>= 3.0.1'
63
64
 
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.1'
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
data/spec/spec_helper.rb CHANGED
@@ -4,6 +4,8 @@ require 'bundler/setup'
4
4
  Bundler.setup
5
5
 
6
6
  require 'simplecov'
7
+ require 'simplecov_json_formatter'
8
+ SimpleCov.formatter = SimpleCov::Formatter::JSONFormatter
7
9
  SimpleCov.start
8
10
 
9
11
  require 'briard'
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.1
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-24 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
@@ -640,14 +640,28 @@ dependencies:
640
640
  requirements:
641
641
  - - '='
642
642
  - !ruby/object:Gem::Version
643
- version: 0.17.1
643
+ version: 0.21.2
644
644
  type: :development
645
645
  prerelease: false
646
646
  version_requirements: !ruby/object:Gem::Requirement
647
647
  requirements:
648
648
  - - '='
649
649
  - !ruby/object:Gem::Version
650
- version: 0.17.1
650
+ version: 0.21.2
651
+ - !ruby/object:Gem::Dependency
652
+ name: simplecov_json_formatter
653
+ requirement: !ruby/object:Gem::Requirement
654
+ requirements:
655
+ - - "~>"
656
+ - !ruby/object:Gem::Version
657
+ version: 0.1.2
658
+ type: :development
659
+ prerelease: false
660
+ version_requirements: !ruby/object:Gem::Requirement
661
+ requirements:
662
+ - - "~>"
663
+ - !ruby/object:Gem::Version
664
+ version: 0.1.2
651
665
  - !ruby/object:Gem::Dependency
652
666
  name: vcr
653
667
  requirement: !ruby/object:Gem::Requirement