cutlass 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7b02f735057094217808d5674b6c44f31a0358057da1bff217ac226c4c63d1de
4
- data.tar.gz: 5bca67c5550336647c28b37be0a74d5d7d94e107ea6a9dfdfe3d4f967b7673fe
3
+ metadata.gz: 8371305d6b89a7735b79aa534904d9311cc7a3055725da0bac33e1599ba51146
4
+ data.tar.gz: ac500887733ab27c050144c7fa07b04bf9ec57be26902722ffd3561f862df170
5
5
  SHA512:
6
- metadata.gz: c83241228b2cfa32b34d3ad0aac685db770a8ff7a07a620698542ece3891fd0e46babc8bffcf5090747c4c10087b136c0544886e437e1ca933f1300f626238d6
7
- data.tar.gz: 5a8ff79249a017ac209544096c6692e31902667c8a9730390697d4727959b4bf75d2d02dad966e0ed9e50c9c7176fabae35ae0bae6936e02b56f3824430a8c1a
6
+ metadata.gz: b85b16cb0653d331ee13152cfd9716c7f5608e9e9ee6e32788dc6bf872a1dafa889eff9d13f3ed1b4b93026209982becf1eeb26c71cc857a5df82a504af6f8aa
7
+ data.tar.gz: f98d64069925c279cc13d5409fa3ead6da0920cd28404ebadb0f4d000c14b008efa959cb73c0c8ca329a6bb28cad66c75023888df50888083eb080c70bc28694
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## 0.1.4
4
+
5
+ - Cutlass.default_buildpack_paths= now accepts a LocalBuildpack https://github.com/heroku/cutlass/pull/6
6
+
3
7
  ## 0.1.3
4
8
 
5
9
  - Do not connect to docker if it's not needed https://github.com/heroku/cutlass/pull/5
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cutlass (0.1.3)
4
+ cutlass (0.1.4)
5
5
  docker-api (>= 2.0)
6
6
 
7
7
  GEM
data/lib/cutlass.rb CHANGED
@@ -24,7 +24,7 @@ module Cutlass
24
24
  end
25
25
 
26
26
  def self.default_buildpack_paths=(paths)
27
- paths = Array(paths).map { |path| Pathname(path) }
27
+ paths = Array(paths).map { |path| path.respond_to?(:exist?) ? path : Pathname(path) }
28
28
 
29
29
  paths.each do |path|
30
30
  raise "Path must exist on disk #{path}" unless path.exist?
@@ -31,6 +31,10 @@ module Cutlass
31
31
  @image_name = "cutlass_local_buildpack_#{SecureRandom.hex(10)}"
32
32
  end
33
33
 
34
+ def exist?
35
+ @directory.exist?
36
+ end
37
+
34
38
  def teardown
35
39
  return unless built?
36
40
 
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Cutlass
4
4
  # Version
5
- VERSION = "0.1.3"
5
+ VERSION = "0.1.4"
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cutlass
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - schneems
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-04-19 00:00:00.000000000 Z
11
+ date: 2021-04-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: docker-api