Skip to content

Commit e098690

Browse files
committed
lock to mruby 1.2.0 for stability
1 parent 919e8e8 commit e098690

2 files changed

Lines changed: 14 additions & 3 deletions

File tree

Rakefile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
1+
require 'fileutils'
2+
3+
MRUBY_VERSION="1.2.0"
4+
15
file :mruby do
2-
sh "git clone --depth=1 https://github.com/mruby/mruby"
6+
#sh "git clone --depth=1 https://github.com/mruby/mruby"
7+
sh "curl -L --fail --retry 3 --retry-delay 1 https://github.com/mruby/mruby/archive/#{MRUBY_VERSION}.tar.gz -s -o - | tar zxf -"
8+
FileUtils.mv("mruby-#{MRUBY_VERSION}", "mruby")
39
end
410

511
APP_NAME=ENV["APP_NAME"] || "mruby-cli"
@@ -67,7 +73,6 @@ end
6773
desc "generate a release tarball"
6874
task :release do
6975
require 'tmpdir'
70-
require 'fileutils'
7176
require_relative 'mrblib/mruby-cli/version'
7277

7378
# since we're in the mruby/

mrblib/mruby-cli/setup.rb

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,8 +306,14 @@ def docker_compose_yml
306306

307307
def rakefile
308308
<<RAKEFILE
309+
require 'fileutils'
310+
311+
MRUBY_VERSION="1.2.0"
312+
309313
file :mruby do
310-
sh "git clone --depth=1 https://github.com/mruby/mruby"
314+
#sh "git clone --depth=1 https://github.com/mruby/mruby"
315+
sh "curl -L --fail --retry 3 --retry-delay 1 https://github.com/mruby/mruby/archive/#{MRUBY_VERSION}.tar.gz -s -o - | tar zxf -"
316+
FileUtils.mv("mruby-#{MRUBY_VERSION}", "mruby")
311317
end
312318
313319
APP_NAME=ENV["APP_NAME"] || "#{@name}"

0 commit comments

Comments
 (0)