dapp 0.36.0 → 0.36.1

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,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d135d54181359c7611f52b0ab468ad228d54965e2330ddd01e0ec93f76895960
4
- data.tar.gz: 41f7fabca8433c1fc63a21d0046445c42e277bb1990a0fef61fff91426fd9fae
3
+ metadata.gz: f523713b45496f75db17d5ef5d7e8005ad07f406ec3560cbf7464bf92b6e0a9e
4
+ data.tar.gz: a9104b0afa70a365ff0a4d1ee0190b2cdefedf90f118d34aa6c91aa62de7ebdf
5
5
  SHA512:
6
- metadata.gz: 0cc215bc2eea16d569556c5b63b5f68720bf24e99c7d2aece391a69b6093bf40f175773b19e7c1ad562b97f8c306b12eb7acb3b4c188e64f5f10149eeff2a66d
7
- data.tar.gz: ce224f9c86f8211fd12ccd95022d178b8973a9eefc49c1686e6fab1a55bb8c49f06dc6b5331ed26f1ccad4221ae4c79783319949a27ad27a28be1ed1e888316d
6
+ metadata.gz: b661facf086561e083e9892e6efbfa30987773ee6020240a82f06cff593d904bd64aaeff30ec8052151bbd41a00a1d7534a880f0174a942f60b355ba30d0d2f6
7
+ data.tar.gz: fea54cf7bfbc73d2d9e559b3a48c0b0fe14bfdc2657b4159c78edc83ccdfe4912cfb78c5c573a98e09ca7bf21df8803d27af09bc708d6b0abb79c47afe80db0a
@@ -7,6 +7,11 @@ module Dapp
7
7
  @dependencies ||= [from_image_name, dimg.config._docker._from_cache_version, config_mounts]
8
8
  end
9
9
 
10
+ def save_in_cache!
11
+ super
12
+ from_dimg.last_stage.save_in_cache! unless from_dimg.nil?
13
+ end
14
+
10
15
  protected
11
16
 
12
17
  def prepare_image
@@ -9,10 +9,17 @@ module Dapp
9
9
  # TODO: move project dir logic to golang
10
10
  project_dir = path.to_s
11
11
 
12
+ dimgs = self.build_configs.map do |config|
13
+ {"Name" => config._name, "ImageTag" => "DOCKER_TAG", "Repo" => "REPO"}
14
+ end.uniq do |dimg|
15
+ dimg["Name"]
16
+ end
17
+
12
18
  res = ruby2go_deploy(
13
19
  "command" => command,
14
20
  "projectDir" => project_dir,
15
21
  "rubyCliOptions" => JSON.dump(self.options),
22
+ "dimgs" => JSON.dump(dimgs),
16
23
  )
17
24
 
18
25
  raise ::Dapp::Error::Command, code: :ruby2go_deploy_command_failed, data: { command: command, message: res["error"] } unless res["error"].nil?
@@ -9,10 +9,17 @@ module Dapp
9
9
  # TODO: move project dir logic to golang
10
10
  project_dir = path.to_s
11
11
 
12
+ dimgs = self.build_configs.map do |config|
13
+ {"Name" => config._name, "ImageTag" => "DOCKER_TAG", "Repo" => "REPO"}
14
+ end.uniq do |dimg|
15
+ dimg["Name"]
16
+ end
17
+
12
18
  res = ruby2go_deploy(
13
19
  "command" => command,
14
20
  "projectDir" => project_dir,
15
21
  "rubyCliOptions" => JSON.dump(self.options),
22
+ "dimgs" => JSON.dump(dimgs),
16
23
  )
17
24
 
18
25
  raise ::Dapp::Error::Command, code: :ruby2go_deploy_command_failed, data: { command: command, message: res["error"] } unless res["error"].nil?
@@ -1,4 +1,4 @@
1
1
  module Dapp
2
- VERSION = "0.36.0"
2
+ VERSION = "0.36.1"
3
3
  BUILD_CACHE_VERSION = 33
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dapp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.36.0
4
+ version: 0.36.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitry Stolyarov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-11-23 00:00:00.000000000 Z
11
+ date: 2018-11-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mixlib-shellout