"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "lib/version.rb" between
discourse-2.5.2.tar.gz and discourse-2.5.3.tar.gz

About: Discourse is a "next-generation" forum platform for community discussions.

version.rb  (discourse-2.5.2):version.rb  (discourse-2.5.3)
skipping to change at line 13 skipping to change at line 13
module Discourse module Discourse
VERSION_REGEXP = /\A\d+\.\d+\.\d+(\.beta\d+)?\z/ unless defined? ::Discourse:: VERSION_REGEXP VERSION_REGEXP = /\A\d+\.\d+\.\d+(\.beta\d+)?\z/ unless defined? ::Discourse:: VERSION_REGEXP
VERSION_COMPATIBILITY_FILENAME = ".discourse-compatibility" VERSION_COMPATIBILITY_FILENAME = ".discourse-compatibility"
# work around reloader # work around reloader
unless defined? ::Discourse::VERSION unless defined? ::Discourse::VERSION
module VERSION #:nodoc: module VERSION #:nodoc:
MAJOR = 2 MAJOR = 2
MINOR = 5 MINOR = 5
TINY = 2 TINY = 3
PRE = nil PRE = nil
STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.') STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
end end
end end
def self.has_needed_version?(current, needed) def self.has_needed_version?(current, needed)
Gem::Version.new(current) >= Gem::Version.new(needed) Gem::Version.new(current) >= Gem::Version.new(needed)
end end
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)