Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
language: ruby
rvm:
- 2.4
- 2.5
- 2.6
- ruby-head
matrix:
allow_failures:
- rvm: ruby-head
Comment thread
saturnflyer marked this conversation as resolved.
branches:
only: master
5 changes: 4 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
source "https://rubygems.org"
source "https://gem.zdsys.com/gems/"

gem "rake"
gem "rake-compiler"
gem "minitest"

gemspec
9 changes: 5 additions & 4 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,20 @@ PATH

GEM
remote: https://rubygems.org/
remote: https://gem.zdsys.com/gems/
specs:
rake (10.3.2)
rake-compiler (0.9.2)
minitest (5.12.2)
rake (13.0.0)
rake-compiler (1.0.8)
rake

PLATFORMS
ruby

DEPENDENCIES
minitest
rake
rake-compiler
zendesk-rinku!

BUNDLED WITH
1.12.5
1.17.3
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Rake::ExtensionTask.new('rinku')
require 'rake/testtask'
Rake::TestTask.new('test') do |t|
t.test_files = FileList['test/*_test.rb']
t.ruby_opts += ['-rubygems'] if defined? Gem
t.ruby_opts += ['-r rubygems'] if defined? Gem
end
task 'test' => [:compile]

Expand Down
Binary file removed lib/rinku.bundle
Binary file not shown.
2 changes: 0 additions & 2 deletions rinku.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,4 @@ Gem::Specification.new do |s|
rinku.gemspec
]
s.extensions = ["ext/rinku/extconf.rb"]
s.add_development_dependency "rake"
s.add_development_dependency "rake-compiler"
end
9 changes: 4 additions & 5 deletions test/autolink_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
rootdir = File.dirname(File.dirname(__FILE__))
$LOAD_PATH.unshift "#{rootdir}/lib"

require 'test/unit'
require 'minitest/autorun'
require 'cgi'
require 'uri'
require 'rinku'

class RedcarpetAutolinkTest < Test::Unit::TestCase
class RedcarpetAutolinkTest < Minitest::Test

SAFE_CHARS = "{}[]~'"

Expand All @@ -25,7 +25,7 @@ def test_escapes_quotes
end

def test_global_skip_tags
assert_equal Rinku.skip_tags, nil
assert_nil Rinku.skip_tags
Rinku.skip_tags = ['pre']
assert_equal Rinku.skip_tags, ['pre']

Expand All @@ -34,7 +34,7 @@ def test_global_skip_tags
assert_equal Rinku.auto_link(url), url

Rinku.skip_tags = nil
assert_not_equal Rinku.auto_link(url), url
refute_equal Rinku.auto_link(url), url
end

def test_auto_link_with_single_trailing_punctuation_and_space
Expand Down Expand Up @@ -259,7 +259,6 @@ def test_links_like_autolink_rails
email2_result = %{<a href="mailto:#{email2_raw}">#{email2_raw}</a>}
link_raw = 'http://www.rubyonrails.com'
link_result = %{<a href="#{link_raw}">#{link_raw}</a>}
link_result_with_options = %{<a href="#{link_raw}" target="_blank">#{link_raw}</a>}
link2_raw = 'www.rubyonrails.com'
link2_result = %{<a href="http://#{link2_raw}">#{link2_raw}</a>}
link3_raw = 'http://manuals.ruby-on-rails.com/read/chapter.need_a-period/103#page281'
Expand Down