File: default.mspec

package info (click to toggle)
ruby-backports 3.16.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 4,336 kB
  • sloc: ruby: 8,621; makefile: 25
file content (14 lines) | stat: -rw-r--r-- 569 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
if (Backports::TARGET_VERSION rescue false) # Conf loaded at different times, not sure why
  class MSpecScript
    # The set of substitutions to transform a spec filename
    # into a tag filename.
    main_version = RUBY_VERSION
    unless File.exist?(File.expand_path("../lib/backports/#{main_version}.rb", __FILE__))
      main_version = main_version.sub(/\.\d+$/, '.0')
    end

    set :tags_patterns, [ [%r(rubyspec/), "tags/#{main_version}/"] ]
  end

  SpecGuard.ruby_version_override = Backports::TARGET_VERSION if Backports::TARGET_VERSION > RUBY_VERSION
end