Method: Baltix::Source::Gem#version
- Defined in:
- lib/baltix/source/gem.rb
#version ⇒ Object
172 173 174 175 176 177 |
# File 'lib/baltix/source/gem.rb', line 172 def version version = spec&.version&.to_s || "0" parts = version.split(".") (parts[0..2] + (parts[3..-1]&.map {|x| x.to_i <= 1024 && x || nil}&.compact || [])).join(".") end |