bricky 0.0.15 → 0.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- OWU1ZGM2OWU3MzA4NTllMzBlZDc4M2VhNTFmNDdmNDE1MDU0OWE1Ng==
4
+ ZWYyZDUxMmU0YjgwOWEzOTFiNmVhNjQxMDczZDZjN2I3M2M5ZmMzNQ==
5
5
  data.tar.gz: !binary |-
6
- MWM0MjZjODJiNTJiMDYyOTg4MzYyYTJkYmM0ZmNlMzkzMDAyNTFiMg==
6
+ NTYzZGNkMzM2YTJhZTRlOTdiNzNiYjQzYmI3NzI2NjE3MmNmYjM1MQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ODdiMGRlNzU5MDg3M2U3MDIyZmNiZDE0NGQ5YWFlODVkN2JlYjE3NmJjMTdh
10
- MzNiNDQ0MmVkMjc1MGRjMWFmMGJkYWNkNTg5YzRiOTY0NDEyMWUyZTA2OGNh
11
- OWU3YmNhZDdmMjFmZDcwYzQ3YWIyMzZiNjg2ZWQ5ZDQ0NTI4ZjM=
9
+ MmFhNDE2ZmFhMGEyNmI0ZDE3ZjVmMDc5ZTE1ZTc0ODkwYmJiM2EwYTM0ZDEx
10
+ YzBmZmEzZjNhZmUwZmRjYzI1Nzk5OTU0N2I1YmZiMTQ4MWMyZDM1YThlODQy
11
+ MTU1ZjE1NjU2NTM5ZTgyMjg5YTQ4NzkzNjNhODA2NDk2YjU0ZTQ=
12
12
  data.tar.gz: !binary |-
13
- NWIyYmQzMDA5ZTY5ODYwYTA0M2M4ZDE5NTQzNDEzOGNlOTQwM2MyNjRhMTQ2
14
- ZTYyNGZkNzc2ODFjYjg5MWI2ZDQ5MDFhODg4Y2NhZDZlN2E5MzlhOWE2MmM0
15
- NDVkMjNkYmJkNWQ2OGExYzllNmUyODk5ZTk5NmFkMjczZmVhMmI=
13
+ Y2M0ZmZmOWVmM2VlNmQ2YjkzODRlZTQwYWI4MWQxZGViY2E4MDE0YWNmODBj
14
+ ODdhMTU1NjE3M2JjNzUyNDE5MzY0M2FhNjBkZjgyMDBjNGY5ZWI3MDQ3Zjcx
15
+ MDBjODkyMjU1MzA1ZGFiZDExNTU1NmRmM2EzN2M4YmJiMjhlZjg=
@@ -18,7 +18,7 @@ module Bricky
18
18
 
19
19
  private
20
20
  def bricks_path
21
- Bricky.config.bricks_path
21
+ Bricky.config.shim_path
22
22
  end
23
23
  end
24
24
  end
@@ -1,3 +1,4 @@
1
+ require "fileutils"
1
2
  require "bricky/bricks"
2
3
 
3
4
  module Bricky
@@ -10,6 +11,7 @@ module Bricky
10
11
 
11
12
  private
12
13
  def build(images)
14
+ attach_shims
13
15
  code = command(images)
14
16
  logger.debug format(code)
15
17
 
@@ -49,6 +51,12 @@ module Bricky
49
51
  def entrypoints
50
52
  bricks.collect(&:entrypoint).compact.uniq.join(' && ')
51
53
  end
54
+
55
+ def attach_shims
56
+ if not File.exist? Bricky.config.shim_path
57
+ FileUtils.symlink(Bricky.config.bricks_path, Bricky.config.shim_path)
58
+ end
59
+ end
52
60
  end
53
61
  end
54
62
  end
data/lib/bricky/config.rb CHANGED
@@ -30,6 +30,10 @@ module Bricky
30
30
  "#{ENV['HOME']}/.bricky/#{name}"
31
31
  end
32
32
 
33
+ def shim_path
34
+ "#{tmp_path}/shim"
35
+ end
36
+
33
37
  private
34
38
  def base_path
35
39
  "../../.."
@@ -1,3 +1,3 @@
1
1
  module Bricky
2
- VERSION = "0.0.15"
2
+ VERSION = "0.0.16"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bricky
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.15
4
+ version: 0.0.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - andrerocker
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-01 00:00:00.000000000 Z
11
+ date: 2015-06-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -141,7 +141,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
141
141
  version: '0'
142
142
  requirements: []
143
143
  rubyforge_project:
144
- rubygems_version: 2.4.4
144
+ rubygems_version: 2.4.3
145
145
  signing_key:
146
146
  specification_version: 4
147
147
  summary: a smart way to build software packages