elasticsearch-ruby
https://github.com/elastic/elasticsearch-ruby
Ruby
Ruby integrations for Elasticsearch
Opal::Builder.register_processor
Register a builder processor and the supported extensions. A processor will respond to: ## `#requires` An array of string containing the logic paths of required assets ## `#required_trees` An array of string containing the logic paths of required directories ## `#to_s` The processed source ## `#source_map` An instance of `::SourceMap::Map` representing the processd asset's source map. ## `.new(source, filename, compiler_options)` The processor will be instantiated passing: - the unprocessed source - the asset's filename - Opal's compiler options ## `.match?(path)` The processor is able to recognize paths suitable for its type of processing.
Edit
git clone [email protected]:elastic/elasticsearch-ruby.git
cd elasticsearch-ruby
open
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Opal--Builder-register_processor-for-pr
# Commit to gitgit add git commit -m "better docs for Opal::Builder.register_processor"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Opal--Builder-register_processor-for-pr
hub pull-request
# Celebrate!