dapp 0.12.5 → 0.12.6
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 +4 -4
- data/config/en/common.yml +2 -2
- data/lib/dapp/dimg/build/stage/artifact_default.rb +9 -2
- data/lib/dapp/dimg/git_repo/remote.rb +2 -2
- data/lib/dapp/version.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6d1e9d464c7b24a1359245aed3b9b49d4eb606fd
|
|
4
|
+
data.tar.gz: 203871c1836df77f375baf8322edfff1306cb5f7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4b29e0ed69188e7172a0c540166aa29e2303f25150e7bb6a86df4dbe2deeeaaa86dc01e45699dee163fbcb4f7b0b3f0228526dc0954d7c70e112d177045e1742
|
|
7
|
+
data.tar.gz: 44ae5e00c9c1f6c5256010723e383546235a6778ece650177d0e3c6d8649bb15ebb7764ef92075fce71fa9c6c552cfd17358be2fe9fec4a85c62ba65bbf22aa8
|
data/config/en/common.yml
CHANGED
|
@@ -13,8 +13,8 @@ en:
|
|
|
13
13
|
process:
|
|
14
14
|
artifact_copy: "copying artifact `%{name}`"
|
|
15
15
|
artifact_building: "building artifact `%{name}`"
|
|
16
|
-
git_artifact_clone: "cloning remote git_artifact `%{
|
|
17
|
-
git_artifact_fetch: "fetching remote git_artifact `%{
|
|
16
|
+
git_artifact_clone: "cloning remote git_artifact `%{url}`"
|
|
17
|
+
git_artifact_fetch: "fetching remote git_artifact `%{url}`"
|
|
18
18
|
vendoring_builder_cookbooks: 'vendoring builder cookbooks'
|
|
19
19
|
waiting_resouce_lock: "waiting for locked resource `%{name}`"
|
|
20
20
|
gitartifact_container_creating: 'creating dappdeps/gitartifact container'
|
|
@@ -46,12 +46,19 @@ module Dapp
|
|
|
46
46
|
end
|
|
47
47
|
|
|
48
48
|
include_paths.each do |p|
|
|
49
|
+
target_path = File.join(from, p)
|
|
50
|
+
|
|
51
|
+
# Генерируем разрешающее правило для каждого элемента пути
|
|
52
|
+
Pathname.new(target_path).descend do |path_part|
|
|
53
|
+
cmd << " --filter='+/ #{path_part}'"
|
|
54
|
+
end
|
|
55
|
+
|
|
49
56
|
# * На данный момент не знаем директорию или файл имел в виду пользователь,
|
|
50
57
|
# поэтому подставляем фильтры для обоих возможных случаев.
|
|
51
58
|
# * Автоматом подставляем паттерн ** для включения файлов, содержащихся в
|
|
52
59
|
# директории, которую пользователь указал в include_paths.
|
|
53
|
-
cmd << " --filter='+/ #{
|
|
54
|
-
cmd << " --filter='+/ #{File.join(
|
|
60
|
+
cmd << " --filter='+/ #{target_path}'"
|
|
61
|
+
cmd << " --filter='+/ #{File.join(target_path, '**')}'"
|
|
55
62
|
end
|
|
56
63
|
|
|
57
64
|
# Все что не подошло по include — исключается
|
|
@@ -7,7 +7,7 @@ module Dapp
|
|
|
7
7
|
|
|
8
8
|
@url = url
|
|
9
9
|
|
|
10
|
-
dimg.dapp.log_secondary_process(dimg.dapp.t(code: 'process.git_artifact_clone', data: {
|
|
10
|
+
dimg.dapp.log_secondary_process(dimg.dapp.t(code: 'process.git_artifact_clone', data: { url: url }), short: true) do
|
|
11
11
|
begin
|
|
12
12
|
Rugged::Repository.clone_at(url, path, bare: true, credentials: _rugged_credentials)
|
|
13
13
|
rescue Rugged::NetworkError, Rugged::SslError => e
|
|
@@ -39,7 +39,7 @@ module Dapp
|
|
|
39
39
|
|
|
40
40
|
def fetch!(branch = nil)
|
|
41
41
|
branch ||= self.branch
|
|
42
|
-
dimg.dapp.log_secondary_process(dimg.dapp.t(code: 'process.git_artifact_fetch', data: {
|
|
42
|
+
dimg.dapp.log_secondary_process(dimg.dapp.t(code: 'process.git_artifact_fetch', data: { url: url }), short: true) do
|
|
43
43
|
git.fetch('origin', [branch], credentials: _rugged_credentials)
|
|
44
44
|
raise Error::Rugged, code: :branch_not_exist_in_remote_git_repository, data: { branch: branch, url: url } unless branch_exist?(branch)
|
|
45
45
|
end unless dimg.ignore_git_fetch || dimg.dapp.dry_run?
|
data/lib/dapp/version.rb
CHANGED
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.12.
|
|
4
|
+
version: 0.12.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dmitry Stolyarov
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-05-
|
|
11
|
+
date: 2017-05-26 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: mixlib-shellout
|