dapp 0.31.24 → 0.31.25

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f08df7a48bb18b2e9e7ded768223977716980e3707fd2f4af629a8dae697e29a
4
- data.tar.gz: 15f1e8782d38395f41586eb0133fadab302a6a9a4bd702267eb3300a7c8c103e
3
+ metadata.gz: 188ede0b2d40031f6757b6ae8c1895ab2650cea761cdd9a82ce30490f2fa5432
4
+ data.tar.gz: 833cc49603a4c403c346e66d51b4b08960a0db34b77761aa7b6c4b1b464beb18
5
5
  SHA512:
6
- metadata.gz: f1da128b18817908c2469180d040abd7164c61ad88c8d47aba517acd990b77bf4bb89ed7e7d553a9a8ed958efcd6a4987cf82a91290af33829581dce9a568e34
7
- data.tar.gz: 8805240ea6b21f03cf1a1b8258f2b6afcf7e4e39ee9667d18e0e601db61576640ae3cb06afee1c4eca13f45e1b5315c49299d5563794b9a4bf5e2c940535a9a9
6
+ metadata.gz: 61eec808098804233f970295e8e407a855e14917a259e514e92645996ea312739780e988f5ecbfb66ef8db4ac3fa51bf34784a8b3da3175b4dbf5c373ac3097e
7
+ data.tar.gz: fc867c80aa9020f587992dbac1e4ac664070e6995d7368f4eb5b871fc1e67c09f418211866767cd3dc04b5f79041633ab99c1d4b32b0bdf6ec828f01fdc86894
@@ -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/flant/dapp/#{::Dapp::VERSION}/dappfile-yml")
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/flant/dapp/#{::Dapp::VERSION}/dappfile-yml.sha")
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
- [option, Regexp.last_match(1)]
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?
@@ -1,4 +1,4 @@
1
1
  module Dapp
2
- VERSION = "0.31.24"
2
+ VERSION = "0.31.25"
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.31.24
4
+ version: 0.31.25
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-13 00:00:00.000000000 Z
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: '1.7'
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: '1.7'
244
+ version: '2.0'
245
245
  - !ruby/object:Gem::Dependency
246
246
  name: rake
247
247
  requirement: !ruby/object:Gem::Requirement