jumpstart 0.2.0 → 0.2.1
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/Rakefile +4 -0
- data/config/jumpstart_version.yml +1 -1
- data/lib/jumpstart.rb +13 -4
- metadata +2 -2
data/Rakefile
CHANGED
data/lib/jumpstart.rb
CHANGED
@@ -73,6 +73,11 @@ module JumpStart
|
|
73
73
|
end
|
74
74
|
end
|
75
75
|
|
76
|
+
# Looks up the current version of JumpStart
|
77
|
+
def version
|
78
|
+
"#{version_major}.#{version_minor}.#{version_patch}"
|
79
|
+
end
|
80
|
+
|
76
81
|
# Method for bumping version number types.
|
77
82
|
# Resets @version_minor and @version_patch to 0 if bumping @version_major.
|
78
83
|
# Resets @version_pacth to 0 if bumping @version_minor
|
@@ -97,11 +102,15 @@ module JumpStart
|
|
97
102
|
end
|
98
103
|
end
|
99
104
|
|
100
|
-
#
|
101
|
-
def
|
102
|
-
|
105
|
+
# Handles calls to missing constants in the JumpStart module. Calls JumpStart.version if JumpStart::VERSION is recognised.
|
106
|
+
def const_missing(name)
|
107
|
+
if name.to_s.match(/VERSION/)
|
108
|
+
version
|
109
|
+
else
|
110
|
+
super
|
111
|
+
end
|
103
112
|
end
|
104
|
-
|
113
|
+
|
105
114
|
end
|
106
115
|
|
107
116
|
end
|