Skip to content

Commit

Permalink
Update various stuff
Browse files Browse the repository at this point in the history
- Remove deprecated function use
- Remove unimplemented tests
  • Loading branch information
niknetniko committed Sep 19, 2024
1 parent 9cbcbe7 commit 8fd1d38
Show file tree
Hide file tree
Showing 9 changed files with 7 additions and 58 deletions.
3 changes: 0 additions & 3 deletions .github/FUNDING.yml

This file was deleted.

27 changes: 0 additions & 27 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,6 @@ jobs:
- name: Run integration tests
run: bundle exec rake cucumber

# FIXME: broken
#- name: Report test coverage to Code Climate
# run: bundle exec codeclimate-test-reporter
# env:
# CODECLIMATE_REPO_TOKEN: ${{ secrets.CODECLIMATE_REPO_TOKEN }}
lint:
name: Run Rubocop
runs-on: ubuntu-latest
Expand All @@ -47,25 +42,3 @@ jobs:
- env:
RAILS_ENV: "test"
run: bundle exec rubocop -c .rubocop.yml

# publish:
# name: Publish to RubyGems
# needs: [ test ]
# if: startsWith(github.ref, 'refs/tags/v')
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
#
# - uses: ruby/setup-ruby@v1
# with:
# ruby-version: 3.3
# bundler-cache: true
#
# - name: Publish to RubyGems
# run: |
# install -D -m 0600 /dev/null $HOME/.gem/credentials
# printf -- '---\n:rubygems_api_key: %s\n' "$RUBYGEMS_API_KEY" > $HOME/.gem/credentials
# gem build *.gemspec
# gem push *.gem
# env:
# RUBYGEMS_API_KEY: ${{ secrets.RUBYGEMS_API_KEY }}
8 changes: 0 additions & 8 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,4 @@ rescue LoadError => e
warn "#{e.path} is not available"
end

begin
require 'yard'
# options are defined in .yardopts
YARD::Rake::YardocTask.new(:yard)
rescue LoadError => e
warn "#{e.path} is not available"
end

task default: default_tasks
3 changes: 0 additions & 3 deletions asciidoctor-doctest.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,11 @@ A tool for end-to-end testing of Asciidoctor backends based on comparing of text
s.add_development_dependency 'rubocop-rake', '~> 0.6'
s.add_development_dependency 'rubocop-rspec', '~> 3.0'
s.add_development_dependency 'thread_safe', '~> 0.3'
s.add_development_dependency 'yard', '~> 0.9'

# unit tests
s.add_development_dependency 'codeclimate-test-reporter', '~> 1.0'
s.add_development_dependency 'fakefs', '~> 2.5'
s.add_development_dependency 'rspec', '~> 3.1'
s.add_development_dependency 'rspec-collection_matchers', '~> 1.1'
s.add_development_dependency 'simplecov', '~> 0.22.0'

# integration tests
s.add_development_dependency 'aruba', '~> 2.0'
Expand Down
4 changes: 2 additions & 2 deletions data/examples/asciidoc/document.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ v1.0, October 2, 2013: First incarnation
// .footnotes
The hail-and-rainbow protocol can be initiated at five levels: double, tertiary, supernumerary,
supermassive, and apocalyptic party.footnote:[The double hail-and-rainbow level makes my toes tingle.]
A bold statement.footnoteref:[disclaimer,Opinions are my own.]
A bold statement.footnote:disclaimer[Opinions are my own.]

Another outrageous statement.footnoteref:[disclaimer]
Another outrageous statement.footnote:disclaimer[]

// .toc
// Actual TOC content is rendered in the outline template, this template
Expand Down
4 changes: 2 additions & 2 deletions data/examples/asciidoc/embedded.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@
// .footnotes
The hail-and-rainbow protocol can be initiated at five levels: double, tertiary, supernumerary,
supermassive, and apocalyptic party.footnote:[The double hail-and-rainbow level makes my toes tingle.]
A bold statement.footnoteref:[disclaimer,Opinions are my own.]
A bold statement.footnote:disclaimer[Opinions are my own.]

Another outrageous statement.footnoteref:[disclaimer]
Another outrageous statement.footnote:disclaimer[]
6 changes: 3 additions & 3 deletions data/examples/asciidoc/inline_footnote.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
Apocalyptic party.footnote:[The double hail-and-rainbow level makes my toes tingle.]

// .xref
A bold statement.footnoteref:[disclaimer,Opinions are my own.]
Another outrageous statement.footnoteref:[disclaimer]
A bold statement.footnote:disclaimer[Opinions are my own.]
Another outrageous statement.footnote:disclaimer[]

// .xref-unresolved
A bold statement.footnoteref:[foobar]
A bold statement.footnote:foobar[]
2 changes: 0 additions & 2 deletions spec/html/converter_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ module DocTest
.with(input.content, converter_opts).and_return(rendered)
end

it 'returns array of converted input content and output content'

context 'with :exclude option' do
let(:output_opts) { { exclude: ['.//p', './/code'] } }

Expand Down
8 changes: 0 additions & 8 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
unless RUBY_ENGINE == 'jruby'
require 'simplecov'

SimpleCov.start do
add_filter '/spec/'
end
end

require 'corefines'
require 'rspec/collection_matchers'
require 'simplecov'
Expand Down

0 comments on commit 8fd1d38

Please sign in to comment.