summaryrefslogtreecommitdiffhomepage
path: root/tasks/mruby_build_gem.rake
AgeCommit message (Collapse)Author
2017-04-04Move class/module definitions to normal .rb filesUchio KONDO
2017-02-28Compile C files by C compiler when C++ files mixed.Yukihiro "Matz" Matsumoto
ref #3267 #3470 By this commit, mruby do not use C++ ABI mode unless you specify explicitly. It compiles C files by C compilers, with C++ exception enabled when it sees C++ files in your configured mrbgems. I haven't tried visualcpp, so please submit an issue if you see any problem with C++ gems on Windows.
2015-11-16This patch changes git gem behavior to never pull gems unless specified.Zachary Scott
Since mgem's function almost the same as git gems, but you can see they already avoid pulling from source after the gem has already been cloned. You can see from the `load_special_path_gem` method found in the file `mruby_build_gem.rake`, or extracted here: ```ruby if File.exist? mgem_list_dir git.run_pull mgem_list_dir, mgem_list_url if $pull_gems else FileUtils.mkdir_p mgem_list_dir git.run_clone mgem_list_dir, mgem_list_url, "--depth 1" end ``` Also, later in this same method; mgem will set the `git` params. Doing this will trigger the following block: ```ruby if File.exist?(gemdir) if $pull_gems git.run_pull gemdir, url else gemdir end else # ... clone end ``` You can see here, this checks if `$pull_gems` is enabled before pulling. Lastly, the final condition for this method is here: ```ruby if params[:checksum_hash] # Jump to the specified commit git.run_checkout gemdir, params[:checksum_hash] else # Jump to the top of the branch git.run_checkout gemdir, branch if $pull_gems end ``` What we changed was the `else` condition of this block to follow the same behavior as the aforementioned code. In doing so, we can avoid two things: * Excess `clone` calls can slow down builds (times number of gems used) * We _don't_ want our code to _update_ during build To explain, if during build time there are some changes in the gem we are depending upon: updating during compile time could actually break our application. This is what we're trying to avoid.
2015-08-02be able to source with :path for mrbgemsTerence Lee
2015-07-27Shallow clone mgem sourceZachary Scott
2015-06-29Merge pull request #2862 from scalone/recursive_cloneYukihiro "Matz" Matsumoto
Add —-recursive option to automatically update submodules from git mgems
2015-06-26Fix quotes use during load special path gem of gem.Thiago Scalone
2015-06-26Add —-recursive option to automatically update submodules from git mgems.Thiago Scalone
2015-06-22Add :mgem gem loader to load mrbgem from mgem-list ( ↵take_cheeze
https://github.com/mruby/mgem-list ).
2015-01-18Don't use Build.current if possibleJulian Aron Prenner
2014-06-09Find c++ files in tools/.Masaki Muranaka
Some tools may be written in C++.
2014-05-20Support extension '.cc' in globbing.take_cheeze
2014-04-20Implement :checksum_hash mrbgem option.Daniel Bovensiepen
This allows to use a mgem with a specific checksum hash. The following modification were necessary to implement this function: - add run_checkout build command to use 'git checkout' - skip shallow copy in case checksum_hash is used - make 'master' the default branch if branch isn't defined
2014-04-07Fix C++ files detection for automatic C++ ABI enabling.take_cheeze
2014-03-02Add ssh protocol support for bitbucket.Masaki Muranaka
2014-03-01support c++ exceptiontake_cheeze
2014-01-02fix some warnings emitted by 'ruby -w'cremno
- File.exists? is deprecated since 2.1.0 - tasks/mruby_build_commands.rake:268: ambiguous argument
2013-10-01Fix for caller_dir relative gemsWilliam Light
2013-10-01Implement gembox-relative gemdir pathsWilliam Light
In the case where a relative path is specified to a gembox from build_config.rb, it was previously tricky to specify relative gem paths from inside that gembox. For example, consider a project in which mruby is checked out as a submodule in the project root: +- project_root | +- mruby/ | | | +- build_config.rb | | | +- ... | +- my_gembox/ | +- my_gembox.gembox | +- my_gem/ | +- mrbgem.rake | +- ... If build_config.rb refers to my_gembox with a relative path, it's difficult for my_gembox to then refer to my_gem. With this proposed change, my_gembox.gembox can look like this: MRuby::GemBox.new do |conf| conf.gem "my_gem" end
2013-08-04Added support for custom gem clone directories when using gitRyan Scott
2013-07-15Allow programmers to specify build path manuallyXuejie "Rafael" Xiao
2013-07-04Add --pull_gems option to minirakekyab
2013-05-09fix regexp warning: character class has duplicated rangeNihad Abbasov
2013-05-02Implement :core parameter for conf.gemDaniel Bovensiepen
2013-04-27fix gembox rake tasks to support Ruby 1.8Yukihiro "Matz" Matsumoto
2013-04-27IMPROVE: Move GemBox to more logical source locationDaniel Bovensiepen
2013-04-27Add gembox featureDaniel Bovensiepen
2013-03-23Add bitbucket git support.Masaki Muranaka
2013-03-10Change default gem path.Yuichiro MASUI
2013-03-07fix handling of :branch option of gem.confmasahino
2013-02-07Ignore empty gemmattn
2013-01-21Added "Unknown toolchain/gem" error messageYuichiro MASUI
2013-01-20Improved build scripts and config filesYuichiro MASUI