Skip to content

Commit

Permalink
support ruby-2.2 and unsupport ruby-1.9.3 in release package
Browse files Browse the repository at this point in the history
  • Loading branch information
machu committed Jan 12, 2015
1 parent 5e40075 commit 9a407f5
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/tdiary/tasks/release.rake
Original file line number Diff line number Diff line change
Expand Up @@ -50,19 +50,19 @@ def make_tarball( repo, version = nil )
Dir.chdir '.bundle/ruby' do
v = `ls`.chomp
case v
when '2.2.0'
FileUtils.cp_r '2.2.0', '2.0.0'
FileUtils.cp_r '2.2.0', '2.1.0'
when '2.1.0'
FileUtils.cp_r '2.1.0', '1.9.1'
FileUtils.cp_r '2.1.0', '2.0.0'
FileUtils.cp_r '2.1.0', '2.2.0'
when '2.0.0'
FileUtils.cp_r '2.0.0', '1.9.1'
FileUtils.cp_r '2.0.0', '2.1.0'
when '1.9.1'
FileUtils.cp_r '1.9.1', '2.0.0'
FileUtils.cp_r '1.9.1', '2.1.0'
FileUtils.cp_r '2.0.0', '2.2.0'
else
FileUtils.cp_r v, '2.2.0'
FileUtils.cp_r v, '2.1.0'
FileUtils.cp_r v, '2.0.0'
FileUtils.cp_r v, '1.9.1'
FileUtils.rm_rf v
end
end
Expand Down

0 comments on commit 9a407f5

Please sign in to comment.