<NME> gembag.rb
<BEF> ADDFILE
<MSG> - Bundler has ruined my days for the last time; write 'gembag' which
  will do what I want and never let me down..

<DFF> @@ -0,0 +1,20 @@
+#!/usr/bin/env ruby
+
+require "rubygems/package"
+
+gemspec = ARGV.shift
+
+spec = Gem::Specification.load(gemspec)
+deps = [spec.development_dependencies, spec.runtime_dependencies].flatten
+
+deps.each do |dep|
+  cmd = "gem install --install-dir ./vendor/gems #{dep.name} -v '#{dep.requirement}'"
+  puts cmd
+  system(cmd)
+end
+
+#specs_and_sources, errors = Gem::SpecFetcher.fetcher.fetch_with_errors(deps.first, true, true, false)
+#require "pry"; binding.pry
+
+
+

- Bundler has ruined my days for the last time; write 'gembag' which   will do what I want and never let me down..