lib/adiwg/mdtranslator/readers/mdJson/mdJson_reader.rb in adiwg-mdtranslator-2.19.0.pre.beta.7 vs lib/adiwg/mdtranslator/readers/mdJson/mdJson_reader.rb in adiwg-mdtranslator-2.19.0.pre.beta.8

- old
+ new

@@ -93,11 +93,11 @@ hResponseObj[:readerVersionRequested] = requestedVersion hResponseObj[:readerVersionUsed] = currentVersion aCurVersion = currentVersion.split('.') aReqVersion = requestedVersion.split('.') approved = false - if aReqVersion[0] == aCurVersion[0] - if aReqVersion[1] <= aCurVersion[1] + if aReqVersion[0].to_i == aCurVersion[0].to_i + if aReqVersion[1].to_i <= aCurVersion[1].to_i approved = true end end unless approved approvedVersion = aCurVersion[0] + '.0.0'