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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4a8f8b1dd7f64d31564801f4b38aa8771069da71f16ff824b0028181ee2a3a5f
4
- data.tar.gz: cee980c0a5d82326a777d316ee1272c63f7c2da29b2e37a10d01a8f04f7a5e4f
3
+ metadata.gz: 41651fe695a4d3716696d56e31865cda8c91ce2cb77f7dab31a195bfb9d4141a
4
+ data.tar.gz: 7cc7d9b4a7647693d4a90cb1e9ab49e81da40d840ba12d05e48b21c4cf7a6e73
5
5
  SHA512:
6
- metadata.gz: 6920f802ddacb1f56e7c0bef7a1777cc3ac4398b9536f24e573efa8c4e59a6b1b62cb0e6b01fb88a0fa58be43c172f7f448f4b16197fa2612805f7d5a27199b3
7
- data.tar.gz: 8d9495b6702781b2ab87c1482286566c23207a1f586813edb2aec309c35d7a04b312415b57ede3f8d1f7cd7cdbed6153c184ddb0fb7ce7ae4e7e867418c45349
6
+ metadata.gz: 8d4668e6f0c6366bc72ee341f5ecef888b7ebf86b98e71dab5c6ca86297591590bdbf56788a1e3cc3506e975a11535a195d3e0dd13840320aad6433439f115ed
7
+ data.tar.gz: baf03af5ea0181290b81dfb2a3b44f235e67875c9645767dea297bf72844a51faac512fea290aa5d6dcad00b86064b260b95b00d6103a7d655a84a85cb3010c9
@@ -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.32.6"
2
+ VERSION = "0.32.7"
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.32.6
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: 2018-10-16 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