Sha256: 2b7f00fb1eff9288d4972b895cc8728416cdf9d684b0737419a9f1161f601016

Contents?: true

Size: 323 Bytes

Versions: 4

Compression:

Stored size: 323 Bytes

Contents

require 'set'

module Railblazer
  class MinimalGemfile
    attr_reader :gems

    def initialize gemfile
      @gems = Set.new
      instance_eval gemfile.read
    end

    def gem name, *args
      @gems << name
    end

    def group *args, &block
      yield
    end

    def method_missing name, *args ; end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
railblazer-0.0.4 lib/railblazer/minimal_gemfile.rb
railblazer-0.0.3 lib/railblazer/minimal_gemfile.rb
railblazer-0.0.2 lib/railblazer/minimal_gemfile.rb
railblazer-0.0.1 lib/railblazer/minimal_gemfile.rb