Sha256: 7e5f9daecc12d04808d29ee94d7eba4e7a09d2292bdb867ac8e60cfb8532c24e

Contents?: true

Size: 661 Bytes

Versions: 5

Compression:

Stored size: 661 Bytes

Contents

#!/usr/bin/env ruby
# coding: utf-8
# vim:set ft=ruby:
require 'rubygems'

def check_dependency
  missing = [
    ['rails', '2.1.2'],
    ['rspec', '1.2.6'],
    ['rspec-rails', '1.2.6'],
    ['openskip-repim', '>=0.1.5'],
    ['moro-open_id_authentication', '>=1.0.0'],
  ].inject([]) do |miss, (name, version)|
    begin
      gem name, version
    rescue LoadError => why
      miss << why
    end
    miss
  end
  missing.empty? ? true : puts(missing)
end

def execute(path = "script/#{File.basename(__FILE__)}.sh")
  script = File.expand_path("../" + path, File.dirname(__FILE__))
  system("sh", "-x", script, ARGV.shift)
end

check_dependency && execute

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
openskip-skip_embedded-0.9.14 bin/skip-gen
openskip-skip_embedded-0.9.15 bin/skip-gen
openskip-skip_embedded-0.9.16 bin/skip-gen
openskip-skip_embedded-0.9.17 bin/skip-gen
openskip-skip_embedded-0.9.18 bin/skip-gen