main 2.7.0 → 2.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/main.rb +20 -4
- 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.
|
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
|
-
|
26
|
-
|
25
|
+
begin
|
26
|
+
require 'rubygems'
|
27
|
+
rescue LoadError
|
28
|
+
42
|
29
|
+
end
|
30
|
+
|
27
31
|
require 'attributes'
|
28
|
-
|
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