Sha256: d6d2ea682fd128aa9a94d8056d33d7d38717defdf1f8252c9ead7a12069a25df

Contents?: true

Size: 308 Bytes

Versions: 24

Compression:

Stored size: 308 Bytes

Contents

require "language_pack"
require "language_pack/base"

class LanguagePack::NoLockfile < LanguagePack::Base
  def self.use?
    File.exist?("Gemfile") && !File.exists?("Gemfile.lock")
  end

  def name
    "Ruby/NoLockfile"
  end

  def compile
    error "Gemfile.lock required. Please check it in."
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
heroku_hatchet-1.3.7 test/fixtures/buildpacks/heroku-buildpack-ruby/lib/language_pack/no_lockfile.rb
heroku_hatchet-1.3.6 test/fixtures/buildpacks/heroku-buildpack-ruby/lib/language_pack/no_lockfile.rb
heroku_hatchet-1.3.5 test/fixtures/buildpacks/heroku-buildpack-ruby/lib/language_pack/no_lockfile.rb
heroku_hatchet-1.3.4 test/fixtures/buildpacks/heroku-buildpack-ruby/lib/language_pack/no_lockfile.rb
heroku_hatchet-1.3.3 test/fixtures/buildpacks/heroku-buildpack-ruby/lib/language_pack/no_lockfile.rb
heroku_hatchet-1.3.2 test/fixtures/buildpacks/heroku-buildpack-ruby/lib/language_pack/no_lockfile.rb
heroku_hatchet-1.3.1 test/fixtures/buildpacks/heroku-buildpack-ruby/lib/language_pack/no_lockfile.rb
heroku_hatchet-1.3.0 test/fixtures/buildpacks/heroku-buildpack-ruby/lib/language_pack/no_lockfile.rb
heroku_hatchet-1.2.1 test/fixtures/buildpacks/heroku-buildpack-ruby/lib/language_pack/no_lockfile.rb
heroku_hatchet-1.2.0 test/fixtures/buildpacks/heroku-buildpack-ruby/lib/language_pack/no_lockfile.rb
heroku_hatchet-1.1.9 test/fixtures/buildpacks/heroku-buildpack-ruby/lib/language_pack/no_lockfile.rb
heroku_hatchet-1.1.8 test/fixtures/buildpacks/heroku-buildpack-ruby/lib/language_pack/no_lockfile.rb
heroku_hatchet-1.1.7 test/fixtures/buildpacks/heroku-buildpack-ruby/lib/language_pack/no_lockfile.rb
heroku_hatchet-1.1.6 test/fixtures/buildpacks/heroku-buildpack-ruby/lib/language_pack/no_lockfile.rb
heroku_hatchet-1.1.5 test/fixtures/buildpacks/heroku-buildpack-ruby/lib/language_pack/no_lockfile.rb
heroku_hatchet-1.1.4 test/fixtures/buildpacks/heroku-buildpack-ruby/lib/language_pack/no_lockfile.rb
heroku_hatchet-1.1.3 test/fixtures/buildpacks/heroku-buildpack-ruby/lib/language_pack/no_lockfile.rb
heroku_hatchet-1.1.2 test/fixtures/buildpacks/heroku-buildpack-ruby/lib/language_pack/no_lockfile.rb
heroku_hatchet-1.1.1 test/fixtures/buildpacks/heroku-buildpack-ruby/lib/language_pack/no_lockfile.rb
heroku_hatchet-1.1.0 test/fixtures/buildpacks/heroku-buildpack-ruby/lib/language_pack/no_lockfile.rb