Sha256: 992fabbf9a1c897b716e01ec1e08e90493412f11a2d49acc8ecbf1926f1f07e1
Contents?: true
Size: 393 Bytes
Versions: 2
Compression:
Stored size: 393 Bytes
Contents
require 'rubygems' module PostIt class Parser def initialize(file) @file = file end BUNDLED_WITH = /\n\nBUNDLED WITH\n\s{2,}(#{Gem::Version::VERSION_PATTERN})\n/ def parse return unless lockfile = File.file?(@file) && File.read(@file) if lockfile =~ BUNDLED_WITH Regexp.last_match(1) else '< 1.10' end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
postit-0.2.0 | lib/postit/parser.rb |
postit-0.1.2 | lib/postit/parser.rb |