From 78651a64c3ea51d1fca284daa3affe618871693f Mon Sep 17 00:00:00 2001 From: Yuichiro MASUI Date: Sun, 6 Jan 2013 15:54:10 +0900 Subject: Remove unused rules in .gitignore and Makefile --- doc/mrbgems/c_and_ruby_extension_example/.gitignore | 5 ----- doc/mrbgems/c_extension_example/.gitignore | 5 ----- doc/mrbgems/ruby_extension_example/.gitignore | 4 ---- 3 files changed, 14 deletions(-) delete mode 100644 doc/mrbgems/c_and_ruby_extension_example/.gitignore delete mode 100644 doc/mrbgems/c_extension_example/.gitignore delete mode 100644 doc/mrbgems/ruby_extension_example/.gitignore (limited to 'doc') diff --git a/doc/mrbgems/c_and_ruby_extension_example/.gitignore b/doc/mrbgems/c_and_ruby_extension_example/.gitignore deleted file mode 100644 index 4c2f4480b..000000000 --- a/doc/mrbgems/c_and_ruby_extension_example/.gitignore +++ /dev/null @@ -1,5 +0,0 @@ -# mrbgems -*.d -gem_init.c -gem_test.c - diff --git a/doc/mrbgems/c_extension_example/.gitignore b/doc/mrbgems/c_extension_example/.gitignore deleted file mode 100644 index 4c2f4480b..000000000 --- a/doc/mrbgems/c_extension_example/.gitignore +++ /dev/null @@ -1,5 +0,0 @@ -# mrbgems -*.d -gem_init.c -gem_test.c - diff --git a/doc/mrbgems/ruby_extension_example/.gitignore b/doc/mrbgems/ruby_extension_example/.gitignore deleted file mode 100644 index af1362229..000000000 --- a/doc/mrbgems/ruby_extension_example/.gitignore +++ /dev/null @@ -1,4 +0,0 @@ -# mrbgems -*.d -gem_init.c -gem_test.c -- cgit v1.2.3 From a19c061cb13d9cebcbf96e00d6add8c16b546032 Mon Sep 17 00:00:00 2001 From: Yuichiro MASUI Date: Tue, 8 Jan 2013 00:44:48 +0900 Subject: Added gem :github option --- doc/mrbgems/README.md | 4 ++++ tasks/mruby_build.rake | 4 ++++ 2 files changed, 8 insertions(+) (limited to 'doc') diff --git a/doc/mrbgems/README.md b/doc/mrbgems/README.md index cc28f48f8..9e930d8b2 100644 --- a/doc/mrbgems/README.md +++ b/doc/mrbgems/README.md @@ -27,6 +27,10 @@ A remote GIT repository location for a GEM is also supported: conf.gem :git => 'https://github.com/masuidrive/mrbgems-example.git', :branch => 'master' ``` +``` +conf.gem :github => 'masuidrive/mrbgems-example', :branch => 'master' +``` + ## GEM Structure diff --git a/tasks/mruby_build.rake b/tasks/mruby_build.rake index 65c80ab6a..d5dc075c3 100644 --- a/tasks/mruby_build.rake +++ b/tasks/mruby_build.rake @@ -67,6 +67,10 @@ module MRuby end def load_external_gem(params) + if params[:github] + params[:git] = "git@github.com:#{params[:github]}.git" + end + if params[:git] url = params[:git] gemdir = "build/mrbgems/#{url.match(/([-_\w]+)(\.[-_\w]+|)$/).to_a[1]}" -- cgit v1.2.3