Class: Sparrowhawk::Index
- Inherits:
-
Bundler::Index
- Object
- Bundler::Index
- Sparrowhawk::Index
- Defined in:
- lib/sparrowhawk/index.rb
Overview
Needed a bundler index can search for gems on the java platform, regardless of what platform you are cuurrently on.
Instance Method Summary collapse
Instance Method Details
#<<(spec) ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/sparrowhawk/index.rb', line 7 def << spec super arr = @specs[spec.name] if arr.any? { |s| s.platform == java_platform } arr.delete_if { |s| s.platform != java_platform } end end |