diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-01-14 12:12:05 +0100 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-01-14 12:48:17 +0100 |
commit | be764a3a20c7cecce2a047ddd46aff954c33b306 (patch) | |
tree | 5486e395de4ce9149666312287967336b3f4c531 /lib/gitlab/ci/build/artifacts/metadata | |
parent | 76e578fdfa1d9f52ae4d49d389089f67046f1a3e (diff) | |
download | gitlab-ce-be764a3a20c7cecce2a047ddd46aff954c33b306.tar.gz |
Minor improvements in build arfifacts browserci/view-build-artifacts
Added also a `Gitlab::Ci::Build::Artifacts::Metadata::ParserError`
exception class.
Diffstat (limited to 'lib/gitlab/ci/build/artifacts/metadata')
-rw-r--r-- | lib/gitlab/ci/build/artifacts/metadata/entry.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gitlab/ci/build/artifacts/metadata/entry.rb b/lib/gitlab/ci/build/artifacts/metadata/entry.rb index 4dae02ce4f7..25b71fc3275 100644 --- a/lib/gitlab/ci/build/artifacts/metadata/entry.rb +++ b/lib/gitlab/ci/build/artifacts/metadata/entry.rb @@ -57,7 +57,7 @@ module Gitlab return @children if @children child_pattern = %r{^#{Regexp.escape(@path)}[^/]+/?$} - @children = select_entries { |entry| entry =~ child_pattern } + @children = select_entries { |path| path =~ child_pattern } end def directories(opts = {}) @@ -110,7 +110,7 @@ module Gitlab private def select_entries - selected = @entries.select { |entry, _metadata| yield entry } + selected = @entries.select { |path, _metadata| yield path } selected.map { |path, _metadata| self.class.new(path, @entries) } end end |