Sha256: ba3e1894c429f6a5e756b1c9c0f418abd317530079e2635c7a0b1efaba4b5521

Contents?: true

Size: 1.42 KB

Versions: 24

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/test/unit/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

24 entries across 24 versions & 6 rubygems

Version Path
psych-3.3.4-java Rakefile
psych-3.3.4 Rakefile
psych-3.3.3-java Rakefile
psych-3.3.3 Rakefile
mountapi-0.11.1 vendor/bundle/ruby/2.7.0/gems/psych-3.3.2/Rakefile
ory-client-0.0.1.alpha21 vendor/bundle/ruby/2.5.0/gems/psych-4.0.1/Rakefile
ory-keto-client-0.7.0.alpha1 vendor/bundle/ruby/2.5.0/gems/psych-4.0.1/Rakefile
ory-keto-client-0.7.0.alpha0 vendor/bundle/ruby/2.5.0/gems/psych-4.0.1/Rakefile
ory-kratos-client-0.7.6.alpha7 vendor/bundle/ruby/2.5.0/gems/psych-4.0.1/Rakefile
ory-kratos-client-0.7.6.alpha6 vendor/bundle/ruby/2.5.0/gems/psych-4.0.1/Rakefile
ory-kratos-client-0.7.6.alpha5 vendor/bundle/ruby/2.5.0/gems/psych-4.0.1/Rakefile
ory-kratos-client-0.7.6.alpha4 vendor/bundle/ruby/2.5.0/gems/psych-4.0.1/Rakefile
ory-kratos-client-0.7.6.alpha3 vendor/bundle/ruby/2.5.0/gems/psych-4.0.1/Rakefile
ory-kratos-client-0.7.6.alpha1 vendor/bundle/ruby/2.5.0/gems/psych-4.0.1/Rakefile
ory-kratos-client-0.7.5.alpha2 vendor/bundle/ruby/2.5.0/gems/psych-4.0.1/Rakefile
mx-platform-ruby-0.4.0 vendor/bundle/ruby/2.6.0/gems/psych-4.0.1/Rakefile
mx-platform-ruby-0.3.2 vendor/bundle/ruby/2.6.0/gems/psych-4.0.1/Rakefile
mx-platform-ruby-0.3.1 vendor/bundle/ruby/2.6.0/gems/psych-4.0.1/Rakefile
psych-4.0.1-java Rakefile
psych-4.0.1 Rakefile