ruby - load a gem's gemspec -
I am trying to load gemspec from a gem inside my Ruby script. I hope to do this:
`man spike rake '# error: no gem was found' rake (& gt; = 0) 'found
I also tried: <21> Could not find 'rake' (& gt; = 0) between the total gems (s):
gem: specificity.find_by_name ( 'Rake') #J: Load Array:
When I make the gem spec rake
from the console, I get the right output.
jamfile:
source 'https://rubygems.org 'Gem' rake 'test .rb: is required' rack 'P. Gems :: Specification.Find_by_name (' rake ') < / Code>
executed:
Install bundle bundle name mile test.rb
Output:
# & lt; Jammu :: Specification: 0x12c1b1c rake-10.3.1 & gt;
Comments
Post a Comment