jekyll-scholar 7.1.1 → 7.1.2

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: ac1895a4efe7e09adee56f87d17f9b1ff555a9be15c5139a1e0bdc3f5845d5cb
4
- data.tar.gz: 303fd1416949c484b16c54308cec9a9710724d12cabbafbd7c85913833537f7a
3
+ metadata.gz: 81098ed7e4e47ed39b43afb5dd63eae4735e693f088b99cb71d29d7b42bc229f
4
+ data.tar.gz: cb4dcf7e6465b9d81f516e19809acf1748cb0286fe8163d2e2ab3b2d12e01013
5
5
  SHA512:
6
- metadata.gz: 35eaf9ac85b7ff25953ca2e485979f76f34198b46a919827f8723253adcc065dff092a6700de63ece08c79a17bf4540b36f73f3620810480c6756d21781f705e
7
- data.tar.gz: cf324e39015123c0ee89e1f1f25511fd3eb23fd23d5d4e0fa09d6909eb923cee4b71fbe12ae2bd7a8b3dc81df6bf21006055aaf7b8c7d6b86784e58b42160248
6
+ metadata.gz: 0f3c5268cfd61bd78d0abcbb3e0a5df8f7c9c7d9c318e840edc9aa36e852022399c49ce53984f5bbd05ff2f0852848cd3a1cb4c06261e78f04ce8e813947a1e6
7
+ data.tar.gz: 6a4e57956066742e75a9512c8c9c02273961009032e8680b07d59c0527b26d0a57e36a7025c8ed51f0513bc262d333b30a0d5f5303d44c0cb7ad5534b23ff053
@@ -0,0 +1,46 @@
1
+ name: CI
2
+ on:
3
+ push:
4
+ branches: [ main ]
5
+ pull_request:
6
+ branches: [ main ]
7
+ concurrency:
8
+ group: ci-${{ github.ref }}
9
+ cancel-in-progress: true
10
+ jobs:
11
+ ci:
12
+ name: ${{ matrix.ruby-version }} ${{ matrix.friendlyName }}-${{ matrix.arch }}
13
+ runs-on: ${{ matrix.os }}
14
+
15
+ strategy:
16
+ matrix:
17
+ ruby-version:
18
+ - "2.6"
19
+ - "2.7"
20
+ - "3.0"
21
+ - "3.1"
22
+ - "3.2"
23
+ os:
24
+ - ubuntu-latest
25
+ - macos-latest
26
+ - windows-latest
27
+ arch:
28
+ - x64
29
+ include:
30
+ - os: ubuntu-latest
31
+ friendlyName: Linux
32
+ - os: macos-latest
33
+ friendlyName: macOS
34
+ - os: windows-latest
35
+ friendlyName: Windows
36
+
37
+ steps:
38
+ - name: Checkout repository
39
+ uses: actions/checkout@v3
40
+ - name: Setup Ruby and install bundle
41
+ uses: ruby/setup-ruby@v1
42
+ with:
43
+ ruby-version: ${{ matrix.ruby-version }}
44
+ bundler-cache: true
45
+ - name: Compile and run test
46
+ run: bundle exec cucumber
data/Gemfile CHANGED
@@ -16,10 +16,9 @@ group :extra do
16
16
  end
17
17
 
18
18
  group :coverage do
19
- gem 'coveralls', :require => false
20
19
  gem 'simplecov', :require => false
21
20
  end
22
21
 
23
22
  group :debug do
24
- gem 'byebug', :require => false, :platform => :mri
23
+ gem 'debug', '>= 1.0.0', :require => false
25
24
  end
data/README.md CHANGED
@@ -1,14 +1,12 @@
1
1
  Jekyll-Scholar
2
2
  ==============
3
+ [![CI](https://github.com/inukshuk/jekyll-scholar/actions/workflows/ci.yml/badge.svg)](https://github.com/inukshuk/jekyll-scholar/actions/workflows/ci.yml)
3
4
 
4
5
  Jekyll-Scholar is for all the academic bloggers out there. It is a set of
5
6
  extensions to [Jekyll](http://jekyllrb.com/), the awesome, blog aware, static
6
7
  site generator; it formats your bibliographies and reading lists for the web
7
8
  and gives your blog posts citation super-powers.
8
9
 
9
- [![Build Status](https://travis-ci.org/inukshuk/jekyll-scholar.png?branch=master)](https://travis-ci.org/inukshuk/jekyll-scholar)
10
- [![Coverage Status](https://coveralls.io/repos/inukshuk/jekyll-scholar/badge.png)](https://coveralls.io/r/inukshuk/jekyll-scholar)
11
-
12
10
  Already using Jekyll-Scholar and interested to help out? Please get in touch with us if you would like to become a maintainer!
13
11
 
14
12
  Installation
data/Rakefile CHANGED
@@ -15,14 +15,6 @@ Cucumber::Rake::Task.new(:features)
15
15
 
16
16
  task :default => [:features]
17
17
 
18
- begin
19
- require 'coveralls/rake/task'
20
- Coveralls::RakeTask.new
21
- task :test_with_coveralls => [:features, 'coveralls:push']
22
- rescue LoadError => e
23
- # ignore
24
- end
25
-
26
18
  task :release do |t|
27
19
  system "gem build jekyll-scholar.gemspec"
28
20
  system "git tag v#{Jekyll::Scholar::VERSION}"
data/cucumber.yml CHANGED
@@ -1 +1 @@
1
- default: --require features --color
1
+ default: --require features --color --publish-quiet
@@ -155,7 +155,7 @@ Feature: PDF Repository
155
155
  | source | ./_bibliography |
156
156
  | repository | papers |
157
157
  | bibliography_template | bibliography |
158
- | repository_file_delimiter | ':' |
158
+ | repository_file_delimiter | '-' |
159
159
 
160
160
  And I have a "_bibliography" directory
161
161
  And I have a file "_bibliography/references.bib":
@@ -168,11 +168,11 @@ Feature: PDF Repository
168
168
  }
169
169
  """
170
170
  And I have a "papers" directory
171
- And I have a file "papers/ruby.ref:pdf":
171
+ And I have a file "papers/ruby.ref-pdf":
172
172
  """
173
173
  The PDF
174
174
  """
175
- And I have a file "papers/ruby.ref:slides.pdf":
175
+ And I have a file "papers/ruby.ref-slides.pdf":
176
176
  """
177
177
  The Slides PDF
178
178
  """
@@ -191,11 +191,11 @@ Feature: PDF Repository
191
191
  """
192
192
  When I run jekyll
193
193
  Then the _site directory should exist
194
- And the "_site/papers/ruby.ref:pdf" file should exist
195
- And the "_site/papers/ruby.ref:slides.pdf" file should exist
194
+ And the "_site/papers/ruby.ref-pdf" file should exist
195
+ And the "_site/papers/ruby.ref-slides.pdf" file should exist
196
196
  And I should see "The Ruby Programming Language" in "_site/scholar.html"
197
- And I should see "Link: /papers/ruby.ref:pdf" in "_site/scholar.html"
198
- And I should see "Slides: /papers/ruby.ref:slides.pdf" in "_site/scholar.html"
197
+ And I should see "Link: /papers/ruby.ref-pdf" in "_site/scholar.html"
198
+ And I should see "Slides: /papers/ruby.ref-slides.pdf" in "_site/scholar.html"
199
199
 
200
200
  @repository
201
201
  Scenario: A bibliography with a single entry and a repository with a directory
@@ -63,5 +63,5 @@ Then(/^the "(.*)" file should exist$/) do |file|
63
63
  end
64
64
 
65
65
  Then(/^the "(.*)" file should not exist$/) do |file|
66
- assert !File.exists?(file)
66
+ assert !File.exist?(file)
67
67
  end
@@ -1,12 +1,11 @@
1
1
  begin
2
2
  require 'simplecov'
3
- require 'coveralls' if ENV['CI']
4
3
  rescue LoadError
5
4
  # ignore
6
5
  end
7
6
 
8
7
  begin
9
- require 'byebug'
8
+ require 'debug'
10
9
  rescue LoadError
11
10
  # ignore
12
11
  end
@@ -457,10 +457,10 @@ module Jekyll
457
457
 
458
458
  # Return as is if it is an absolute path
459
459
  # Improve by using Pathname from stdlib?
460
- return name if name.start_with?('/') && File.exists?(name)
460
+ return name if name.start_with?('/') && File.exist?(name)
461
461
 
462
462
  name = File.join scholar_source, name
463
- name << '.bib' if File.extname(name).empty? && !File.exists?(name)
463
+ name << '.bib' if File.extname(name).empty? && !File.exist?(name)
464
464
  name
465
465
  end
466
466
 
@@ -468,7 +468,7 @@ module Jekyll
468
468
  source = config['source']
469
469
 
470
470
  # Improve by using Pathname from stdlib?
471
- return source if source.start_with?('/') && File.exists?(source)
471
+ return source if source.start_with?('/') && File.exist?(source)
472
472
 
473
473
  File.join site.source, source
474
474
  end
@@ -1,5 +1,5 @@
1
1
  module Jekyll
2
2
  class Scholar
3
- VERSION = '7.1.1'.freeze
3
+ VERSION = '7.1.2'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-scholar
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.1.1
4
+ version: 7.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sylvester Keil
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-10-17 00:00:00.000000000 Z
11
+ date: 2023-01-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -75,10 +75,9 @@ executables: []
75
75
  extensions: []
76
76
  extra_rdoc_files: []
77
77
  files:
78
- - ".coveralls.yml"
78
+ - ".github/workflows/ci.yml"
79
79
  - ".gitignore"
80
80
  - ".simplecov"
81
- - ".travis.yml"
82
81
  - Gemfile
83
82
  - LICENSE
84
83
  - README.md
@@ -152,7 +151,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
152
151
  - !ruby/object:Gem::Version
153
152
  version: 1.3.6
154
153
  requirements: []
155
- rubygems_version: 3.2.15
154
+ rubygems_version: 3.4.2
156
155
  signing_key:
157
156
  specification_version: 4
158
157
  summary: Jekyll extensions for the academic blogger.
data/.coveralls.yml DELETED
@@ -1,2 +0,0 @@
1
- service_name: travis-ci
2
-
data/.travis.yml DELETED
@@ -1,31 +0,0 @@
1
- language: ruby
2
- sudo: false
3
- cache: bundler
4
- matrix:
5
- include:
6
- - rvm: 2.7
7
- env: WITH_COVERALLS=true
8
- - rvm: 2.6
9
- env: WITH_COVERALLS=false
10
- - rvm: 2.5
11
- env: WITH_COVERALLS=false
12
- - rvm: 2.4
13
- env: WITH_COVERALLS=false
14
- install:
15
- - if [[ $WITH_COVERALLS = "true" ]]; then
16
- bundle install --without debug extra;
17
- else
18
- bundle install --without debug extra coverage;
19
- fi
20
- script:
21
- - if [[ $WITH_COVERALLS = "true" ]]; then
22
- bundle exec rake test_with_coveralls;
23
- else
24
- bundle exec rake;
25
- fi
26
- notifications:
27
- email:
28
- recipients:
29
- - sylvester@keil.or.at
30
- on_success: change
31
- on_failure: change