Skip to content

Instantly share code, notes, and snippets.

@simi
Created November 24, 2014 18:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save simi/228b87af25f7dd3d7b0e to your computer and use it in GitHub Desktop.
Save simi/228b87af25f7dd3d7b0e to your computer and use it in GitHub Desktop.
module Refinery
class Version
@major = 3
@minor = 0
@tiny = 0
@build = nil
class << self
attr_reader :major, :minor, :tiny, :build
def to_s
[@major, @minor, @tiny, @build].compact.join('.')
end
def rails_version
'~> 4.1.5'
end
def ruby_version
'>= 2.0.0'
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment