Skip to content

Commit

Permalink
working pandoc
Browse files Browse the repository at this point in the history
  • Loading branch information
Fuzzwah committed Feb 28, 2024
1 parent 0e24daa commit 8a18397
Show file tree
Hide file tree
Showing 9 changed files with 56 additions and 51 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ RUN apt-get install -y \
gcc \
libxslt-dev \
libxml2-dev \
zlib1g-dev
zlib1g-dev \
libidn11-dev

ENV PATH $PATH:/opt/rakudo-pkg/bin
RUN install-zef
Expand All @@ -58,7 +59,7 @@ RUN bundle config --global build.nokogiri --use-system-libraries
WORKDIR /data/github-markup
COPY github-markup.gemspec .
COPY Gemfile .
COPY lib/github-markup.rb lib/github-markup.rb
ADD lib ./lib
RUN bundle

ENV LC_ALL en_US.UTF-8
Expand Down
15 changes: 8 additions & 7 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@ gem "redcarpet", :platforms => :ruby
gem "kramdown", :platforms => :jruby
gem "RedCloth"
gem "commonmarker", "= 1.0.4"
gem "rdoc", "~>3.6"
gem "org-ruby", "= 0.9.9"
gem "creole", "~>0.3.6"
gem 'rdoc', '~> 6.6', '>= 6.6.2'
gem 'org-ruby', '~> 0.9.12'
gem 'creole', '~> 0.5.0'
gem 'idn-ruby', '~> 0.1.5'
gem 'twitter-text', '~> 3.1'
gem "wikicloth", "=0.8.3"
gem "twitter-text", "~> 1.14"
gem "asciidoctor", "~> 2.0.5"
gem "rake", "~> 12"
gem "pandoc-ruby", "= 2.1.10"
gem 'asciidoctor', '~> 2.0', '>= 2.0.21'
gem 'rake', '~> 13.1'
gem 'pandoc-ruby', '~> 2.1', '>= 2.1.10'
Binary file removed github-markup-4.0.3.gem
Binary file not shown.
73 changes: 36 additions & 37 deletions github-markup.gemspec
Original file line number Diff line number Diff line change
@@ -1,39 +1,38 @@
require File.expand_path("../lib/github-markup", __FILE__)

Gem::Specification.new do |s|
s.name = "github-markup"
s.version = GitHub::Markup::VERSION
s.summary = "The code GitHub uses to render README.markup"
s.description = <<~DESC
This gem is used by GitHub to render any fancy markup such as Markdown,
Textile, Org-Mode, etc. Fork it and add your own!
DESC
s.authors = ["Chris Wanstrath"]
s.email = "chris@ozmm.org"
github_link = "https://github.com/github/markup"
s.homepage = github_link
s.license = "MIT"

s.metadata = {
"bug_tracker_uri" => "#{github_link}/issues",
"changelog_uri" => "#{github_link}/releases",
"documentation_uri" => github_link,
"homepage_uri" => s.homepage,
"source_code_uri" => github_link
# frozen_string_literal: true

require_relative "lib/github/markup/version"

Gem::Specification.new do |spec|
spec.name = "github-markup"
spec.version = GitHub::Markup::VERSION
spec.homepage = "https://github.com/github/markup"
spec.summary = "The code GitHub uses to render README.markup"
spec.description = <<~DESC
This gem is used by GitHub to render any fancy markup such as Markdown,
Textile, Org-Mode, etc. Fork it and add your own!
DESC
spec.authors = ["Chris Wanstrath", "Rob Crouch"]
spec.license = "MIT"

spec.metadata = {
"bug_tracker_uri" => "https://github.com/github/markup/issues",
"source_code_uri" => "https://github.com/github/markup"
}

s.files = `git ls-files`.split($\)
s.files += Dir['vendor/**/*']
s.executables = s.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
s.test_files = s.files.grep(%r{^(test|spec|features)/})
s.require_paths = %w[lib]

s.add_development_dependency 'rake', '~> 12'
s.add_development_dependency 'activesupport', '~> 4.0'
s.add_development_dependency 'minitest', '~> 5.4', '>= 5.4.3'
s.add_development_dependency 'html-pipeline', '~> 1.0'
s.add_development_dependency 'sanitize', '>= 4.6.3'
s.add_development_dependency 'nokogiri', '~> 1.8.1'
s.add_development_dependency 'nokogiri-diff', '~> 0.2.0'
s.add_development_dependency "github-linguist", ">= 7.1.3"
end
spec.required_ruby_version = ">= 3.2.3"

spec.files = Dir.glob("lib/**/*", File::FNM_DOTMATCH)
spec.executables = spec.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})

spec.add_development_dependency 'rake', '~> 13.1'
spec.add_development_dependency 'activesupport', '~> 7.1', '>= 7.1.3.2'
spec.add_development_dependency 'minitest', '~> 5.4', '>= 5.4.3'
spec.add_development_dependency 'html-pipeline', '~> 1.0'
spec.add_development_dependency "sanitize", "~> 4.6", ">= 4.6.3"
spec.add_development_dependency 'nokogiri', '~> 1.8.1'
spec.add_development_dependency 'nokogiri-diff', '~> 0.2.0'
spec.add_development_dependency "github-linguist", "~> 7.1", ">= 7.1.3"


end
6 changes: 6 additions & 0 deletions lib/github/markup/version.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module GitHub
module Markup
VERSION = '4.0.3'
Version = VERSION
end
end
2 changes: 1 addition & 1 deletion script/bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ set -e
cd $(dirname "$0")/..

bundle install
pip3 install docutils

3 changes: 0 additions & 3 deletions script/bootstrap.contrib
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,8 @@ set -e
cd $(dirname "$0")/..

bundle install --path vendor/bundle
virtualenv vendor/python && source vendor/python/bin/activate
pip install docutils

echo ""
echo "*** DONE ***"
echo ""
echo "activate python environment with 'source vendor/python/bin/activate'"
echo "run tests with 'bundle exec rake'"
2 changes: 1 addition & 1 deletion script/cibuild
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export RUBY_HEAP_SLOTS_INCREMENT=400000
export RUBY_HEAP_SLOTS_GROWTH_FACTOR=1

export PATH="/usr/share/rbenv/shims:$PATH"
export RBENV_VERSION="1.9.3"
export RBENV_VERSION="3.3.0"

# bootstrap gem environment changes
echo "Bootstrapping gem environment ..."
Expand Down
1 change: 1 addition & 0 deletions test/markup_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
require 'github/markup'
require 'minitest/autorun'
require 'html/pipeline'
require 'sanitize'
require 'nokogiri'
require 'nokogiri/diff'

Expand Down

0 comments on commit 8a18397

Please sign in to comment.