Sha256: 75bff7a11ecd121cabb53049a29765ca43251cf0f1f17a79eed5cd3f264cb643
Contents?: true
Size: 466 Bytes
Versions: 2
Compression:
Stored size: 466 Bytes
Contents
# frozen_string_literal: true module RailsBestPractices module Prepares # Remember all gems in Gemfile class GemfilePrepare < Core::Check interesting_files GEMFILE_LOCK def initialize @gems = Prepares.gems end def check(filename, content) content.split("\n").each do |line| if line =~ /([^ ]+) \((\d.*)\)/ @gems << Core::Gem.new($1, $2) end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rails_best_practices-1.19.3 | lib/rails_best_practices/prepares/gemfile_prepare.rb |
rails_best_practices-1.19.2 | lib/rails_best_practices/prepares/gemfile_prepare.rb |