░▒▓████████████████████████████████▓▒░ ░▒▓█ ▓▒░ ░▒▓█ ~ S W A M P ~ ▓▒░ ░▒▓█ ▓▒░ ░▒▓████████████████████████████████▓▒░
pplmvsvm
LOCATION:
/var/www/canvas/vendor/bundle/ruby/3.1.0/gems/bluecloth-2.2.0/spec/lib
☗ ROOT
↻ REFRESH
✎ CARVE FLESH
EDITING: helpers.rb
#!/usr/bin/ruby # encoding: utf-8 require 'rspec' require 'bluecloth' require 'spec/lib/constants' require 'spec/lib/matchers' module BlueCloth::SpecHelpers include BlueCloth::Matchers ############### module_function ############### ### Make an easily-comparable version vector out of +ver+ and return it. def vvec( ver ) return ver.split('.').collect {|char| char.to_i }.pack('N*') end end # module BlueCloth::SpecHelpers abort "You need a version of RSpec >= 2.6.0" unless defined?( RSpec ) ### Mock with Rspec RSpec.configure do |c| c.mock_with :rspec c.include( BlueCloth::SpecHelpers ) c.include( BlueCloth::Matchers ) c.filter_run_excluding( :ruby_19_only => true ) if BlueCloth::SpecHelpers.vvec( RUBY_VERSION ) < BlueCloth::SpecHelpers.vvec('1.9.0') c.filter_run_excluding( :pedantic => true ) unless ENV['MAINTAINER_MODE'] end # vim: set nosta noet ts=4 sw=4:
CANCEL
Name
Type
Size
Modified
Actions
↩ ..
DIR
—
—
📄 constants.rb
RB
53 B
2023-09-24 03:47
EDIT
📄 helpers.rb
RB
899 B
2023-09-24 03:47
EDIT
📄 matchers.rb
RB
6.2 KB
2023-09-24 03:47
EDIT