dapp 0.26.13 → 0.26.14

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
  SHA1:
3
- metadata.gz: 5d412d73ba9ef9e52304ba44ec6dff7e3d4061da
4
- data.tar.gz: 8389156770f560f2795986f5d761fe258b006c1f
3
+ metadata.gz: e0c8e71b2112018034b155f90f7fe43bb40efd2d
4
+ data.tar.gz: 69f57e4c27bb9b4463f460a704c3b9cf161b1718
5
5
  SHA512:
6
- metadata.gz: eefabcec93c03e9510070449c1a426a32381b572b38df7a366b68d714a68c390e006d4d0b4f5eb5cbe1fa2299be1936d533225333d328032711eef11152b5794
7
- data.tar.gz: 4719564edff45d34bc4e4ec1273679d817464b7dc492f76a83c19c1d41aec032220fb8dce36dc1fd6f8673dd464a5b26ec13f92598c4780da0812a6f4fb8fd7d
6
+ metadata.gz: 61488411fb2ba6e430bb252f35dac9246e8fc4de17fba41c53c7532cea1c381da6bb87da4c7893a76f8724f9071f8f0640d4b21e580f081d5f77af65018b0728
7
+ data.tar.gz: d92e4046236d70e43a0c3d9a143fa98ae2ad0cbc871c51c7d4f891ee9ad668caed676741bc86646ed5e46fe71f1a321024f9c65740d2de705f6ebf7a31b366b7
@@ -124,12 +124,12 @@ module Dapp
124
124
  return if File.exists? dappfile_yml_bin_path
125
125
 
126
126
  log_process("Downloading dappfile-yml dapp dependency") do
127
- location = URI("https://dl.bintray.com/flant/dapp/#{::Dapp::VERSION}/dappfile-yml")
127
+ location = URI("https://dl.bintray.com/dapp/ruby2go/#{::Dapp::VERSION}/dappfile-yml")
128
128
 
129
129
  tmp_bin_path = File.join(self.class.tmp_base_dir, "dappfile-yml-#{SecureRandom.uuid}")
130
130
  ::Dapp::Downloader.download(location, tmp_bin_path, show_progress: true, progress_titile: dappfile_yml_bin_path)
131
131
 
132
- checksum_location = URI("https://dl.bintray.com/flant/dapp/#{::Dapp::VERSION}/dappfile-yml.sha")
132
+ checksum_location = URI("https://dl.bintray.com/dapp/ruby2go/#{::Dapp::VERSION}/dappfile-yml.sha")
133
133
  tmp_bin_checksum_path = tmp_bin_path + ".checksum"
134
134
  ::Dapp::Downloader.download(checksum_location, tmp_bin_checksum_path)
135
135
 
@@ -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.26.13"
2
+ VERSION = "0.26.14"
3
3
  BUILD_CACHE_VERSION = 27.1
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.26.13
4
+ version: 0.26.14
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-03-16 00:00:00.000000000 Z
11
+ date: 2019-01-17 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