Skip to content

Commit

Permalink
AVRO-3203: Fix the Ruby distribution build to work (#1330)
Browse files Browse the repository at this point in the history
  • Loading branch information
sekikn authored Oct 6, 2021
1 parent a86dde2 commit 753ff03
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
5 changes: 0 additions & 5 deletions lang/ruby/Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,3 @@ HERE = File.expand_path(File.dirname(__FILE__))
SHARE = HERE + '/../../share'
SCHEMAS = SHARE + '/test/schemas'
BUILD = HERE + '/../../build'

task :dist => [:gem] do
mkdir_p "../../dist/ruby"
cp "pkg/avro-#{VERSION}.gem", "../../dist/ruby"
end
7 changes: 6 additions & 1 deletion lang/ruby/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,12 @@ do
;;

dist)
bundle exec rake dist
bundle exec rake build_gemspec
gem build
DIST="../../dist/ruby"
mkdir -p "${DIST}"
VERSION=$(cat lib/avro/VERSION.txt)
cp "avro-${VERSION}.gem" "${DIST}"
;;

clean)
Expand Down

0 comments on commit 753ff03

Please sign in to comment.