dapp 0.35.24 → 0.35.26

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
- SHA256:
3
- metadata.gz: be6da76fd071625161bf829c7004669e9d32e1049bc76fbc47e5f4e5405c1121
4
- data.tar.gz: 6e82c044625221031d1c10094935e48134fe088149ee976a92bc7a6309def346
2
+ SHA1:
3
+ metadata.gz: be91f5ed8804390c36e42190d1187d8734fc1c00
4
+ data.tar.gz: fa9afd09e2928cfb0d1e1db4a48d6ba1e325aba5
5
5
  SHA512:
6
- metadata.gz: c748e01641e9c531840ccc9dd8238dbb04b2acef4340b4698785ff6db7290040979a1153f67fe8d587bce1e65b48ee639864982b27b203215ac322f7e9916dc4
7
- data.tar.gz: 38bd43546751b84d7962bfb19a8a6e817bc911f168cc335a07db9f62904f3453a37a32a4bd81144882643c83da750bfb45682ebd520a7ca7a79552ba100938ab
6
+ metadata.gz: 345886195ffe42765837dc13b75f09f43be525336463c0cedbe9db5f85ee155512ed4c258a5697e21ffb768cae0ff6a18ab42193a84c198ce16d7f80f76fd0c7
7
+ data.tar.gz: eecaec48962bf79fc4aa59f00ecbff8baa561c310ed7765a8d58f87ab674a3366c7dc0f7b6d2d2ee85aea409827b7445f0cd414347bd135a664b03195ade1390
@@ -143,15 +143,6 @@ module Dapp
143
143
  make_path(build_dir, *path)
144
144
  end
145
145
 
146
- def local_git_artifact_exclude_paths(&blk)
147
- super do |exclude_paths|
148
- build_path_relpath = Pathname.new(build_path).subpath_of(File.dirname(git_own_repo.path))
149
- exclude_paths << build_path_relpath.to_s if build_path_relpath
150
-
151
- yield exclude_paths if block_given?
152
- end
153
- end
154
-
155
146
  def stage_cache
156
147
  "dimgstage-#{name}"
157
148
  end
@@ -1,12 +1,6 @@
1
1
  module Dapp
2
2
  class Dapp
3
3
  module GitArtifact
4
- def local_git_artifact_exclude_paths(&blk)
5
- @local_git_artifact_exclude_paths ||= [].tap do |exclude_paths|
6
- yield exclude_paths if block_given?
7
- end
8
- end
9
-
10
4
  def dimgstage_g_a_commit_label(paramshash)
11
5
  "dapp-git-#{paramshash}-commit"
12
6
  end
@@ -32,28 +32,10 @@ module Dapp
32
32
  @owner = owner
33
33
  @group = group
34
34
  @as = as
35
-
36
35
  @stages_dependencies = stages_dependencies
37
-
38
-
39
- @all_include_paths = base_paths(@include_paths, true)
40
- @all_exclude_paths = repo.exclude_paths + base_paths(@exclude_paths, true)
41
36
  end
42
37
  # rubocop:enable Metrics/ParameterLists
43
38
 
44
- def base_paths(paths, with_cwd = false)
45
- [paths].flatten.compact.map do |path|
46
- if with_cwd && !cwd.empty?
47
- File.join(cwd, path)
48
- else
49
- path
50
- end
51
- .chomp('/')
52
- .reverse.chomp('/')
53
- .reverse
54
- end
55
- end
56
-
57
39
  def apply_archive_command(stage)
58
40
  res = repo.dapp.ruby2go_git_artifact(
59
41
  "GitArtifact" => JSON.dump(get_ruby2go_state_hash),
@@ -144,8 +126,8 @@ module Dapp
144
126
  "RepoPath" => File.join("/", @cwd.to_s),
145
127
  "Owner" => @owner.to_s,
146
128
  "Group" => @group.to_s,
147
- "IncludePaths" => @all_include_paths,
148
- "ExcludePaths" => @all_exclude_paths,
129
+ "IncludePaths" => @include_paths,
130
+ "ExcludePaths" => @exclude_paths,
149
131
  "StagesDependencies" => @stages_dependencies.map {|k, v| [_stages_map[k], Array(v).map(&:to_s)]}.to_h,
150
132
  "PatchesDir" => dimg.tmp_path('patches'),
151
133
  "ContainerPatchesDir" => dimg.container_tmp_path('patches'),
@@ -5,10 +5,6 @@ module Dapp
5
5
  def initialize(dapp)
6
6
  super(dapp, 'own', dapp.path.to_s)
7
7
  end
8
-
9
- def exclude_paths
10
- dapp.local_git_artifact_exclude_paths
11
- end
12
8
  end
13
9
  end
14
10
  end
@@ -1,4 +1,4 @@
1
1
  module Dapp
2
- VERSION = "0.35.24"
2
+ VERSION = "0.35.26"
3
3
  BUILD_CACHE_VERSION = 31
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.35.24
4
+ version: 0.35.26
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-10-22 00:00:00.000000000 Z
11
+ date: 2018-10-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mixlib-shellout
@@ -742,7 +742,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
742
742
  version: 2.5.0
743
743
  requirements: []
744
744
  rubyforge_project:
745
- rubygems_version: 2.7.7
745
+ rubygems_version: 2.5.1
746
746
  signing_key:
747
747
  specification_version: 4
748
748
  summary: Build docker packaged apps using chef or shell