Commit e457b4d6 authored by Jose Narvaez's avatar Jose Narvaez

Merge branch 'master' into fix-clang-analizer-warnings

* master:
  update add_confict document; ref #2391
  Update document by regenerating it.
  Add :doc task to run document generator.
  Add document for `add_conflict` and `add_conflicts`.
parents 6b642637 40b92e35
...@@ -123,3 +123,8 @@ task :deep_clean => ["clean"] do ...@@ -123,3 +123,8 @@ task :deep_clean => ["clean"] do
end end
puts "Cleaned up mrbgems build folder" puts "Cleaned up mrbgems build folder"
end end
desc 'generate document'
task :doc do
load "#{MRUBY_ROOT}/doc/language/generator.rb"
end
...@@ -1328,6 +1328,12 @@ ISO Code | Source File | C Function ...@@ -1328,6 +1328,12 @@ ISO Code | Source File | C Function
--- | --- | --- --- | --- | ---
15.3.1.2.5 | src/kernel.c | mrb_f_block_given_p_m 15.3.1.2.5 | src/kernel.c | mrb_f_block_given_p_m
#### local_variables
ISO Code | Source File | C Function
--- | --- | ---
15.3.1.2.7 | src/kernel.c | mrb_local_variables
#### raise #### raise
ISO Code | Source File | C Function ISO Code | Source File | C Function
...@@ -1498,6 +1504,12 @@ ISO Code | Source File | C Function ...@@ -1498,6 +1504,12 @@ ISO Code | Source File | C Function
--- | --- | --- --- | --- | ---
15.3.1.3.26 | src/kernel.c | mrb_obj_is_kind_of_m 15.3.1.3.26 | src/kernel.c | mrb_obj_is_kind_of_m
#### local_variables
ISO Code | Source File | C Function
--- | --- | ---
15.3.1.3.28 | src/kernel.c | mrb_local_variables
#### methods #### methods
ISO Code | Source File | C Function ISO Code | Source File | C Function
......
...@@ -161,6 +161,22 @@ Its format is same as argument of method `MRuby::Build#gem`, expect that it can' ...@@ -161,6 +161,22 @@ Its format is same as argument of method `MRuby::Build#gem`, expect that it can'
When a special version of depedency is required, When a special version of depedency is required,
use `MRuby::Build#gem` in *build_config.rb* to override default gem. use `MRuby::Build#gem` in *build_config.rb* to override default gem.
If you have conflicting GEMs use either or both of the following methods
* `spec.add_conflict(gem, *requirements)`
* The `requirements` argument is same as in `add_dependency` method.
like following code:
MRuby::Gem::Specification.new 'some-regexp-binding' do |spec|
spec.license = 'BSD'
spec.author = 'John Doe'
spec.add_conflict 'mruby-onig-regexp', '> 0.0.0'
spec.add_conflict 'mruby-hs-regexp'
spec.add_conflict 'mruby-pcre-regexp'
spec.add_conflict 'mruby-regexp-pcre'
end
In case your GEM has more complex build requirements you can use In case your GEM has more complex build requirements you can use
the following options additionally inside of your GEM specification: the following options additionally inside of your GEM specification:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment