module Gemnasium::Parser

Public Class Methods

gemfile(content) click to toggle source
# File lib/gemnasium/parser.rb, line 9
def self.gemfile(content)
  # Remove CR chars "\r" from content since it breaks Patterns matching
  # TODO: Find something cleaner than this workaround
  Gemnasium::Parser::Gemfile.new(content.gsub("\r",''))
end
gemspec(content) click to toggle source
# File lib/gemnasium/parser.rb, line 15
def self.gemspec(content)
  # Remove CR chars "\r" from content since it breaks Patterns matching
  # TODO: Find something cleaner than this workaround
  Gemnasium::Parser::Gemspec.new(content.gsub("\r",''))
end