Formerly canonical rules for ruby, that are about 2-3 years behind current Bazel. If they work for you great, but if not — please try the new rules ruby by Alex Radionov: https://github.com/bazel-contrib/rules_ruby
I have inadvertently broke the bashmatic dependency which is why CI is broken right now. Let me fix that first, and once this PR goes green I'll merge it.
When use Git source in Gemfile:
Occur error
Reason is gem's path is wrong to create BUILD file for git source gem:
So, build
gem_path
andspec_path
usingStubSpecification
object ofspec
variable.