Sha256: 78cbb2c0ace0be3ddd3e1678028be032912045541575c62bf22bcd0fdc2a7974

Contents?: true

Size: 1.03 KB

Versions: 4

Compression:

Stored size: 1.03 KB

Contents

#!/usr/bin/env ruby

##
# Provides a IRB session with a NcsNavigator::Mdes::Specification instance
# for free-form prodding.

# Allow this executable to be run directly from the source as well as
# from an installed gem.
begin
  lib = File.expand_path('../../lib', __FILE__)
  unless $LOAD_PATH.include?(lib)
    $LOAD_PATH << lib
    require 'rubygems'
  end
end

require 'irb'
require 'ncs_navigator/mdes'

$mdes12 = NcsNavigator::Mdes::Specification.new('1.2')
$mdes20 = NcsNavigator::Mdes::Specification.new('2.0')
$mdes21 = NcsNavigator::Mdes::Specification.new('2.1')
$mdes22 = NcsNavigator::Mdes::Specification.new('2.2')
$mdes30 = NcsNavigator::Mdes::Specification.new('3.0')

expected_loc = ENV[NcsNavigator::Mdes::SourceDocuments::BASE_ENV_VAR] ?
  ENV[NcsNavigator::Mdes::SourceDocuments::BASE_ENV_VAR].inspect :
  'the default location'

puts "Documents are expected to be in #{expected_loc}."
puts "$mdesNM is a Specification for N.M."
puts "Available specifications are $mdes12, $mdes20, $mdes21, $mdes22, and $mdes30."

IRB.start(__FILE__)

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ncs_mdes-0.9.0 bin/mdes-console
ncs_mdes-0.8.1 bin/mdes-console
ncs_mdes-0.8.0 bin/mdes-console
ncs_mdes-0.7.0 bin/mdes-console