Sha256: ccbd639402f463b1dc915dcd9ffecb496aba1fa28f9a86f3b128e898eb1ba879

Contents?: true

Size: 1.42 KB

Versions: 2085

Compression:

Stored size: 1.42 KB

Contents

require "bundler"
Bundler::GemHelper.install_tasks

require "rake/testtask"
Rake::TestTask.new(:test) do |t|
  t.libs << "test/lib" << "test"
  t.ruby_opts << "-rhelper"
  t.test_files = FileList['test/**/test_*.rb']
  t.verbose = true
  t.warning = true
end

if RUBY_PLATFORM =~ /java/
  require 'rake/javaextensiontask'
  Rake::JavaExtensionTask.new("psych") do |ext|
    require 'maven/ruby/maven'
    # force load of versions to overwrite constants with values from repo.
    load './lib/psych/versions.rb'
    # uses Mavenfile to write classpath into pkg/classpath
    # and tell maven via system properties the snakeyaml version
    # this is basically the same as running from the commandline:
    # rmvn dependency:build-classpath -Dsnakeyaml.version='use version from Psych::DEFAULT_SNAKEYAML_VERSION here'
    Maven::Ruby::Maven.new.exec('dependency:build-classpath', "-Dsnakeyaml.version=#{Psych::DEFAULT_SNAKEYAML_VERSION}", '-Dverbose=true')
    ext.source_version = '1.7'
    ext.target_version = '1.7'
    ext.classpath = File.read('pkg/classpath')
    ext.ext_dir = 'ext/java'
  end
else
  require 'rake/extensiontask'
  Rake::ExtensionTask.new("psych")
end

task :sync_tool do
  require 'fileutils'
  FileUtils.cp "../ruby/tool/lib/core_assertions.rb", "./test/lib"
  FileUtils.cp "../ruby/tool/lib/envutil.rb", "./test/lib"
  FileUtils.cp "../ruby/tool/lib/find_executable.rb", "./test/lib"
end

task :default => [:compile, :test]

Version data entries

2,085 entries across 2,082 versions & 13 rubygems

Version Path
mux_ruby-3.20.0 vendor/bundle/ruby/3.2.0/gems/psych-4.0.4/Rakefile
ory-client-1.15.12 vendor/bundle/ruby/3.1.0/gems/psych-4.0.6/Rakefile
ory-client-1.15.10 vendor/bundle/ruby/3.1.0/gems/psych-4.0.6/Rakefile
mux_ruby-3.19.0 vendor/bundle/ruby/3.2.0/gems/psych-4.0.4/Rakefile
ory-client-1.15.7 vendor/bundle/ruby/3.1.0/gems/psych-4.0.6/Rakefile
ory-client-1.15.6 vendor/bundle/ruby/3.1.0/gems/psych-4.0.6/Rakefile
ory-client-1.15.5 vendor/bundle/ruby/3.1.0/gems/psych-4.0.6/Rakefile
ory-client-1.15.4 vendor/bundle/ruby/3.1.0/gems/psych-4.0.6/Rakefile
ory-client-1.15.3 vendor/bundle/ruby/3.1.0/gems/psych-4.0.6/Rakefile
ory-client-1.15.0 vendor/bundle/ruby/3.1.0/gems/psych-4.0.6/Rakefile
ory-client-1.14.5 vendor/bundle/ruby/3.1.0/gems/psych-4.0.6/Rakefile
mux_ruby-3.18.0 vendor/bundle/ruby/3.2.0/gems/psych-4.0.4/Rakefile
ory-client-1.14.4 vendor/bundle/ruby/3.1.0/gems/psych-4.0.6/Rakefile
ory-client-1.14.3 vendor/bundle/ruby/3.1.0/gems/psych-4.0.6/Rakefile
ory-client-1.14.2 vendor/bundle/ruby/3.1.0/gems/psych-4.0.6/Rakefile
ory-kratos-client-1.2.1 vendor/bundle/ruby/3.1.0/gems/psych-4.0.6/Rakefile
ory-client-1.14.1 vendor/bundle/ruby/3.1.0/gems/psych-4.0.6/Rakefile
ory-client-1.14.0 vendor/bundle/ruby/3.1.0/gems/psych-4.0.6/Rakefile
ory-hydra-client-2.2.1 vendor/bundle/ruby/3.1.0/gems/psych-4.0.6/Rakefile
ory-oathkeeper-client-0.40.8 vendor/bundle/ruby/3.1.0/gems/psych-4.0.6/Rakefile