main 2.7.0 → 2.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/main.rb +20 -4
  2. metadata +2 -2
data/lib/main.rb CHANGED
@@ -2,7 +2,7 @@ module Main
2
2
  #
3
3
  # top level constants
4
4
  #
5
- Main::VERSION = '2.7.0' unless
5
+ Main::VERSION = '2.8.0' unless
6
6
  defined? Main::VERSION
7
7
  def self.version() Main::VERSION end
8
8
 
@@ -22,11 +22,27 @@ module Main
22
22
  #
23
23
  # use gems to pick up dependancies
24
24
  #
25
- require 'rubygems'
26
- gem 'attributes', '~> 5.0.0'
25
+ begin
26
+ require 'rubygems'
27
+ rescue LoadError
28
+ 42
29
+ end
30
+
27
31
  require 'attributes'
28
- gem 'arrayfields', '~> 4.5.0'
32
+ begin
33
+ version = Attributes.version
34
+ raise unless version[%r/^5\./]
35
+ rescue
36
+ abort "main requires attributes >= 5.0.0 - gem install attributes"
37
+ end
38
+
29
39
  require 'arrayfields'
40
+ begin
41
+ version = Arrayfields.version
42
+ raise unless version[%r/^4\./]
43
+ rescue
44
+ abort "main requires arrayfields >= 4.5.0 - gem install arrayfields"
45
+ end
30
46
  #
31
47
  # main's own libs
32
48
  #
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.4
3
3
  specification_version: 1
4
4
  name: main
5
5
  version: !ruby/object:Gem::Version
6
- version: 2.7.0
7
- date: 2007-12-18 00:00:00 -07:00
6
+ version: 2.8.0
7
+ date: 2007-12-23 00:00:00 -07:00
8
8
  summary: main
9
9
  require_paths:
10
10
  - lib