omniauth-mastodon/lib/omniauth/mastodon/version.rb

32 lines
359 B
Ruby
Raw Normal View History

2016-10-22 01:45:58 +02:00
module OmniAuth
module Mastodon
module Version
module_function
def major
0
end
def minor
2016-10-22 14:54:20 +02:00
9
2016-10-22 01:45:58 +02:00
end
def patch
2016-10-24 13:56:20 +02:00
2
2016-10-22 01:45:58 +02:00
end
def pre
nil
end
def to_a
[major, minor, patch, pre].compact
end
def to_s
to_a.join('.')
end
end
end
end