Sha256: deb93548eba5ac95f23482d68de602c5076b51b2320beb15c355f076aa22f22c
Contents?: true
Size: 388 Bytes
Versions: 2
Compression:
Stored size: 388 Bytes
Contents
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 lockfile = File.read(@file) if File.file?(@file) return unless lockfile 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.1.1 | lib/postit/parser.rb |
postit-0.1.0 | lib/postit/parser.rb |