Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: jruby/jruby
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 6a9f22e3be1e
Choose a base ref
...
head repository: jruby/jruby
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 772bbcc09691
Choose a head ref
  • 2 commits
  • 2 files changed
  • 1 contributor

Commits on Jul 15, 2015

  1. Fixes #3135. Provide sha256 sums

    enebo committed Jul 15, 2015
    Copy the full SHA
    eaaa4f0 View commit details
  2. Copy the full SHA
    772bbcc View commit details
Showing with 14 additions and 11 deletions.
  1. +11 −1 rakelib/helpers.rb
  2. +3 −10 rakelib/release.rake
12 changes: 11 additions & 1 deletion rakelib/helpers.rb
Original file line number Diff line number Diff line change
@@ -57,6 +57,16 @@ def sha1_checksum(filename)
HashTask.hash_for(filename, Digest::SHA1)
end

def sha256_checksum(filename)
HashTask.hash_for(filename, Digest::SHA256)
end

def checksums(filename)
md5_checksum filename
sha1_checksum filename
sha256_checksum filename
end

def permute_tests(base_name, options, *prereqs, &block)
permute_task("test", Rake::TestTask, base_name, options, *prereqs, &block)
end
@@ -105,4 +115,4 @@ def permute_task(task_desc, task_type, base_name, options, *prereqs, &block)
all_tasks ||= tasks.keys
desc "Run #{task_desc}s for #{all_tasks.inspect}"
task "#{base_name}:all" => all_tasks.map {|key| tasks[key]}
end
end
13 changes: 3 additions & 10 deletions rakelib/release.rake
Original file line number Diff line number Diff line change
@@ -17,21 +17,14 @@ task :post_process_artifacts => :windows_installer do
real_file = real_file.sub(/-src/, '').sub(/-/, '-src-')
end
mv file, real_file
md5_checksum real_file
sha1_checksum real_file
checksums real_file
end

cp Dir[File.join(JRUBY_COMPLETE_DIR, JRUBY_COMPLETE_GLOB)], RELEASE_DIR
Dir[File.join(RELEASE_DIR, JRUBY_COMPLETE_GLOB)].each do |file|
md5_checksum file
sha1_checksum file
end
Dir[File.join(RELEASE_DIR, JRUBY_COMPLETE_GLOB)].each {|file| checksums file }

cp Dir[File.join(JRUBY_JARS_DIR, JRUBY_JARS_GLOB)], RELEASE_DIR
Dir[File.join(RELEASE_DIR, JRUBY_JARS_GLOB)].each do |file|
md5_checksum file
sha1_checksum file
end
Dir[File.join(RELEASE_DIR, JRUBY_JARS_GLOB)].each {|file| checksums file }
end

# Assume there will only be one release performed after a clean so