dapp 0.32.6 → 0.32.7
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/lib/dapp/dapp/dappfile.rb +2 -2
- data/lib/dapp/dimg/docker_registry/base/authorization.rb +16 -1
- data/lib/dapp/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 41651fe695a4d3716696d56e31865cda8c91ce2cb77f7dab31a195bfb9d4141a
|
|
4
|
+
data.tar.gz: 7cc7d9b4a7647693d4a90cb1e9ab49e81da40d840ba12d05e48b21c4cf7a6e73
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8d4668e6f0c6366bc72ee341f5ecef888b7ebf86b98e71dab5c6ca86297591590bdbf56788a1e3cc3506e975a11535a195d3e0dd13840320aad6433439f115ed
|
|
7
|
+
data.tar.gz: baf03af5ea0181290b81dfb2a3b44f235e67875c9645767dea297bf72844a51faac512fea290aa5d6dcad00b86064b260b95b00d6103a7d655a84a85cb3010c9
|
data/lib/dapp/dapp/dappfile.rb
CHANGED
|
@@ -126,12 +126,12 @@ module Dapp
|
|
|
126
126
|
return if File.exists? dappfile_yml_bin_path
|
|
127
127
|
|
|
128
128
|
log_process("Downloading dappfile-yml dapp dependency") do
|
|
129
|
-
location = URI("https://dl.bintray.com/
|
|
129
|
+
location = URI("https://dl.bintray.com/dapp/ruby2go/#{::Dapp::VERSION}/dappfile-yml")
|
|
130
130
|
|
|
131
131
|
tmp_bin_path = File.join(self.class.tmp_base_dir, "dappfile-yml-#{SecureRandom.uuid}")
|
|
132
132
|
::Dapp::Downloader.download(location, tmp_bin_path, show_progress: true, progress_titile: dappfile_yml_bin_path)
|
|
133
133
|
|
|
134
|
-
checksum_location = URI("https://dl.bintray.com/
|
|
134
|
+
checksum_location = URI("https://dl.bintray.com/dapp/ruby2go/#{::Dapp::VERSION}/dappfile-yml.sha")
|
|
135
135
|
tmp_bin_checksum_path = tmp_bin_path + ".checksum"
|
|
136
136
|
::Dapp::Downloader.download(checksum_location, tmp_bin_checksum_path)
|
|
137
137
|
|
|
@@ -29,10 +29,25 @@ module Dapp
|
|
|
29
29
|
[:realm, :service, :scope].map do |option|
|
|
30
30
|
/#{option}="([[^"].]*)/ =~ header
|
|
31
31
|
next unless Regexp.last_match(1)
|
|
32
|
-
|
|
32
|
+
|
|
33
|
+
option_value = begin
|
|
34
|
+
if option == :scope
|
|
35
|
+
handle_scope_option(Regexp.last_match(1))
|
|
36
|
+
else
|
|
37
|
+
Regexp.last_match(1)
|
|
38
|
+
end
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
[option, option_value]
|
|
33
42
|
end.compact.to_h
|
|
34
43
|
end
|
|
35
44
|
|
|
45
|
+
def handle_scope_option(resourcescope)
|
|
46
|
+
resource_type, resource_name, actions = resourcescope.split(":")
|
|
47
|
+
actions = actions.split(",").map { |action| action == "delete" ? "*" : action }.join(",")
|
|
48
|
+
[resource_type, resource_name, actions].join(":")
|
|
49
|
+
end
|
|
50
|
+
|
|
36
51
|
def authorization_auth
|
|
37
52
|
@authorization_auth ||= begin
|
|
38
53
|
if ::Dapp::Dapp.options_with_docker_credentials?
|
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.32.
|
|
4
|
+
version: 0.32.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dmitry Stolyarov
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2019-01-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: mixlib-shellout
|
|
@@ -234,14 +234,14 @@ dependencies:
|
|
|
234
234
|
requirements:
|
|
235
235
|
- - "~>"
|
|
236
236
|
- !ruby/object:Gem::Version
|
|
237
|
-
version: '
|
|
237
|
+
version: '2.0'
|
|
238
238
|
type: :development
|
|
239
239
|
prerelease: false
|
|
240
240
|
version_requirements: !ruby/object:Gem::Requirement
|
|
241
241
|
requirements:
|
|
242
242
|
- - "~>"
|
|
243
243
|
- !ruby/object:Gem::Version
|
|
244
|
-
version: '
|
|
244
|
+
version: '2.0'
|
|
245
245
|
- !ruby/object:Gem::Dependency
|
|
246
246
|
name: rake
|
|
247
247
|
requirement: !ruby/object:Gem::Requirement
|