lib/licensed/version.rb in licensed-1.5.2 vs lib/licensed/version.rb in licensed-2.0.0
- old
+ new
@@ -1,4 +1,9 @@
# frozen_string_literal: true
module Licensed
- VERSION = "1.5.2".freeze
+ VERSION = "2.0.0".freeze
+
+ def self.previous_major_versions
+ major_version = Gem::Version.new(Licensed::VERSION).segments.first
+ (1...major_version).to_a
+ end
end