bolognese 1.8.13 → 1.8.17

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: ea0a1d41de990f8bc6e940f8df5c3734b8751b262306273084e770bfe0834ddb
4
- data.tar.gz: a3bbc207e08285915c00db8c1294a09ebc0c3bc2f6a13a996a76a6b2e36c6a6b
3
+ metadata.gz: e6b9c0c7ee54d2b9775b2466d8f2a4da859dc1d263754d7317c80928f7b85fa5
4
+ data.tar.gz: c559c1dd56d6acf593482099498ecb9ad2df11af30ee1dfebd7f82939979792a
5
5
  SHA512:
6
- metadata.gz: 40d1961b4ef91c03d58ec3bc9782c03c2862db4aa81eeaca42e8873fa475d4181c05057846030ef7508323c88a1e80c36fa783c8b057b7bd3145a9831f89d286
7
- data.tar.gz: 86018966453c45e25911663ceb7e910a8a251a51fe2d441210255c2ea3f3ebf69f62c5b3bbc942f0dd5504efc1322071724c2b2f44ec87bb40c9d2340e7405d7
6
+ metadata.gz: 4444fe16f7ccc8b64a089ac554338e936a4704d219cd3b6a447661ceaac79a0b9f7ffc2095682da458d7abc7e840f9aabf5f884dca34166643390ae29cb67bc3
7
+ data.tar.gz: 27ab78404aec764f26693b92ac5e7bd7aee32af8ebaf82799414738972c3718598ad629700d91ba5fb584b4cdbd8e922b37b4d35b5032c96ae921d02302c5bb0
@@ -0,0 +1,23 @@
1
+ name: Deploy Ruby Gem
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - "master"
7
+ jobs:
8
+ build:
9
+ name: Build + Publish
10
+ runs-on: ubuntu-latest
11
+
12
+ steps:
13
+ - uses: actions/checkout@v2
14
+ - name: Set up Ruby 2.6
15
+ uses: actions/setup-ruby@v1
16
+ with:
17
+ ruby-version: 2.6.x
18
+
19
+ - name: Build and test
20
+ run: |
21
+ gem install bundler
22
+ bundle install
23
+ bundle exec rspec spec
@@ -0,0 +1,33 @@
1
+ name: Ruby Gem
2
+
3
+ on:
4
+ release:
5
+ types: [published]
6
+ jobs:
7
+ build:
8
+ name: Build + Publish
9
+ runs-on: ubuntu-latest
10
+
11
+ steps:
12
+ - uses: actions/checkout@v2
13
+ - name: Set up Ruby 2.6
14
+ uses: actions/setup-ruby@v1
15
+ with:
16
+ ruby-version: 2.6.x
17
+
18
+ - name: Build and test
19
+ run: |
20
+ gem install bundler
21
+ bundle install
22
+ bundle exec rspec spec
23
+
24
+ - name: Publish to RubyGems
25
+ run: |
26
+ mkdir -p $HOME/.gem
27
+ touch $HOME/.gem/credentials
28
+ chmod 0600 $HOME/.gem/credentials
29
+ printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
30
+ gem build *.gemspec
31
+ gem push *.gem
32
+ env:
33
+ GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_AUTH_TOKEN}}"
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bolognese (1.8.13)
4
+ bolognese (1.8.17)
5
5
  activesupport (>= 4.2.5)
6
6
  benchmark_methods (~> 0.7)
7
7
  bibtex-ruby (>= 5.1.0)
@@ -39,30 +39,30 @@ GEM
39
39
  addressable (2.7.0)
40
40
  public_suffix (>= 2.0.2, < 5.0)
41
41
  benchmark_methods (0.7)
42
- bibtex-ruby (5.1.4)
42
+ bibtex-ruby (5.1.5)
43
43
  latex-decode (~> 0.0)
44
44
  builder (3.2.4)
45
45
  citeproc (1.0.10)
46
46
  namae (~> 1.0)
47
- citeproc-ruby (1.1.12)
47
+ citeproc-ruby (1.1.13)
48
48
  citeproc (~> 1.0, >= 1.0.9)
49
49
  csl (~> 1.5)
50
50
  colorize (0.8.1)
51
51
  concurrent-ruby (1.1.7)
52
52
  crack (0.4.4)
53
53
  crass (1.0.6)
54
- csl (1.5.1)
54
+ csl (1.5.2)
55
55
  namae (~> 1.0)
56
56
  csl-styles (1.0.1.10)
57
57
  csl (~> 1.0)
58
58
  diff-lcs (1.4.4)
59
59
  docile (1.3.2)
60
- ebnf (2.1.1)
60
+ ebnf (2.1.2)
61
61
  htmlentities (~> 4.3)
62
62
  rdf (~> 3.1)
63
63
  scanf (~> 1.0)
64
64
  sxp (~> 1.1)
65
- edtf (3.0.5)
65
+ edtf (3.0.6)
66
66
  activesupport (>= 3.0, < 7.0)
67
67
  excon (0.71.1)
68
68
  faraday (0.17.3)
@@ -97,7 +97,7 @@ GEM
97
97
  jsonlint (0.3.0)
98
98
  oj (~> 3)
99
99
  optimist (~> 3)
100
- latex-decode (0.3.1)
100
+ latex-decode (0.3.2)
101
101
  link_header (0.0.8)
102
102
  loofah (2.7.0)
103
103
  crass (~> 1.0.2)
@@ -120,7 +120,7 @@ GEM
120
120
  namae (1.0.1)
121
121
  nokogiri (1.10.10)
122
122
  mini_portile2 (~> 2.4.0)
123
- oj (3.10.14)
123
+ oj (3.10.15)
124
124
  oj_mimic_json (1.0.1)
125
125
  optimist (3.0.1)
126
126
  postrank-uri (1.0.24)
@@ -156,24 +156,24 @@ GEM
156
156
  rdf (~> 3.1, >= 3.1.2)
157
157
  rdf-xsd (3.1.0)
158
158
  rdf (~> 3.1)
159
- rspec (3.9.0)
160
- rspec-core (~> 3.9.0)
161
- rspec-expectations (~> 3.9.0)
162
- rspec-mocks (~> 3.9.0)
163
- rspec-core (3.9.3)
164
- rspec-support (~> 3.9.3)
165
- rspec-expectations (3.9.2)
159
+ rspec (3.10.0)
160
+ rspec-core (~> 3.10.0)
161
+ rspec-expectations (~> 3.10.0)
162
+ rspec-mocks (~> 3.10.0)
163
+ rspec-core (3.10.0)
164
+ rspec-support (~> 3.10.0)
165
+ rspec-expectations (3.10.0)
166
166
  diff-lcs (>= 1.2.0, < 2.0)
167
- rspec-support (~> 3.9.0)
168
- rspec-mocks (3.9.1)
167
+ rspec-support (~> 3.10.0)
168
+ rspec-mocks (3.10.0)
169
169
  diff-lcs (>= 1.2.0, < 2.0)
170
- rspec-support (~> 3.9.0)
171
- rspec-support (3.9.3)
170
+ rspec-support (~> 3.10.0)
171
+ rspec-support (3.10.0)
172
172
  rspec-xsd (0.1.0)
173
173
  nokogiri (~> 1.6)
174
174
  rspec (~> 3)
175
175
  scanf (1.0.0)
176
- simplecov (0.19.0)
176
+ simplecov (0.19.1)
177
177
  docile (~> 1.1)
178
178
  simplecov-html (~> 0.11)
179
179
  simplecov-html (0.12.3)
@@ -187,11 +187,11 @@ GEM
187
187
  thread_safe (~> 0.1)
188
188
  unicode_utils (1.4.0)
189
189
  vcr (3.0.3)
190
- webmock (3.9.2)
190
+ webmock (3.9.3)
191
191
  addressable (>= 2.3.6)
192
192
  crack (>= 0.3.2)
193
193
  hashdiff (>= 0.4.0, < 2.0.0)
194
- zeitwerk (2.4.0)
194
+ zeitwerk (2.4.1)
195
195
 
196
196
  PLATFORMS
197
197
  ruby
@@ -0,0 +1,28 @@
1
+ name: Build Ruby Gem
2
+
3
+ on:
4
+ push:
5
+ branches:
6
+ - "master"
7
+ jobs:
8
+ build:
9
+ runs-on: ubuntu-latest
10
+
11
+ steps:
12
+ - uses: actions/checkout@v2
13
+ - name: Set up Ruby 2.6
14
+ uses: actions/setup-ruby@v1
15
+ with:
16
+ ruby-version: 2.6.x
17
+
18
+ - name: Build and test
19
+ run: |
20
+ gem install bundler
21
+ bundle install
22
+ bundle exec rspec spec
23
+
24
+ - name: Code Climate Test Reporter
25
+ uses: aktions/codeclimate-test-reporter@v1
26
+ with:
27
+ codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
28
+ command: after-build
@@ -0,0 +1,39 @@
1
+ name: Release Ruby Gem
2
+
3
+ on:
4
+ release:
5
+ types: [published]
6
+ jobs:
7
+ build:
8
+ name: Build + Publish
9
+ runs-on: ubuntu-latest
10
+
11
+ steps:
12
+ - uses: actions/checkout@v2
13
+ - name: Set up Ruby 2.6
14
+ uses: actions/setup-ruby@v1
15
+ with:
16
+ ruby-version: 2.6.x
17
+
18
+ - name: Build and test
19
+ run: |
20
+ gem install bundler
21
+ bundle install
22
+ bundle exec rspec spec
23
+
24
+ - name: Code Climate Test Reporter
25
+ uses: aktions/codeclimate-test-reporter@v1
26
+ with:
27
+ codeclimate-test-reporter-id: ${{ secrets.CC_TEST_REPORTER_ID }}
28
+ command: after-build
29
+
30
+ - name: Publish to RubyGems
31
+ run: |
32
+ mkdir -p $HOME/.gem
33
+ touch $HOME/.gem/credentials
34
+ chmod 0600 $HOME/.gem/credentials
35
+ printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
36
+ gem build *.gemspec
37
+ gem push *.gem
38
+ env:
39
+ GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_AUTH_TOKEN}}"
@@ -1,3 +1,3 @@
1
1
  module Bolognese
2
- VERSION = "1.8.13"
2
+ VERSION = "1.8.17"
3
3
  end
@@ -153,7 +153,7 @@ describe Bolognese::Metadata, vcr: true do
153
153
  it "missing_comma" do
154
154
  json = IO.read(fixture_path + "datacite_software_missing_comma.json")
155
155
  response = subject.jsonlint(json)
156
- expect(response).to eq(["expected comma, not a string (after doi) at line 4, column 11 [parse.c:373]"])
156
+ expect(response).to eq(["expected comma, not a string (after doi) at line 4, column 11 [parse.c:370]"])
157
157
  end
158
158
 
159
159
  it "overlapping_keys" do
@@ -46,7 +46,7 @@ describe Bolognese::Metadata, vcr: true do
46
46
  input = fixture_path + "datacite_software_missing_comma.json"
47
47
  subject = Bolognese::Metadata.new(input: input, from: "datacite_json", show_errors: true)
48
48
  expect(subject.valid?).to be false
49
- expect(subject.errors).to eq(["expected comma, not a string (after doi) at line 4, column 11 [parse.c:373]"])
49
+ expect(subject.errors).to eq(["expected comma, not a string (after doi) at line 4, column 11 [parse.c:370]"])
50
50
  expect(subject.codemeta).to be_nil
51
51
  end
52
52
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bolognese
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.13
4
+ version: 1.8.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Fenner
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-10-13 00:00:00.000000000 Z
11
+ date: 2020-11-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: maremma
@@ -559,6 +559,8 @@ extensions: []
559
559
  extra_rdoc_files:
560
560
  - README.md
561
561
  files:
562
+ - ".github/workflows/deploy.yml"
563
+ - ".github/workflows/release.yml"
562
564
  - ".gitignore"
563
565
  - ".rubocop.yml"
564
566
  - ".travis.yml"
@@ -571,6 +573,8 @@ files:
571
573
  - bin/bolognese
572
574
  - bolognese.gemspec
573
575
  - lib/bolognese.rb
576
+ - lib/bolognese/.github/workflows/build.yml
577
+ - lib/bolognese/.github/workflows/release.yml
574
578
  - lib/bolognese/array.rb
575
579
  - lib/bolognese/author_utils.rb
576
580
  - lib/bolognese/cli.rb
@@ -1253,7 +1257,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1253
1257
  - !ruby/object:Gem::Version
1254
1258
  version: '0'
1255
1259
  requirements: []
1256
- rubygems_version: 3.0.8
1260
+ rubygems_version: 3.0.3
1257
1261
  signing_key:
1258
1262
  specification_version: 4
1259
1263
  summary: Ruby client library for conversion of DOI Metadata