Sha256: 947f4452ad965132b3878e8773a79be9d2570984aa7a9155caf48e7e5d2271d7

Contents?: true

Size: 703 Bytes

Versions: 1

Compression:

Stored size: 703 Bytes

Contents

#!/usr/bin/env ruby

# This was added by Merb's bundler

require "rubygems"
require File.join(File.dirname(__FILE__), "common")

gems_dir = File.join(File.dirname(__FILE__), '..', 'gems')

if File.directory?(gems_dir)
  $BUNDLE = true
  Gem.clear_paths
  Gem.path.replace([File.expand_path(gems_dir)])
  ENV["PATH"] = "#{File.dirname(__FILE__)}:#{ENV["PATH"]}"
  
  gem_file = File.join(gems_dir, "specifications", "json-*.gemspec")
  
  if local_gem = Dir[gem_file].last
    version = File.basename(local_gem)[/-([\.\d]+)\.gemspec$/, 1]
  end
end

version ||= ">= 0"

if ARGV.first =~ /^_(.*)_$/ and Gem::Version.correct? $1 then
  version = $1
  ARGV.shift
end

gem 'json', version
load 'edit_json.rb'

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
scottmotte-merb_auth_slice_multisite-0.2.6 bin/edit_json.rb