dapp 0.28.12 → 0.28.13

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
  SHA1:
3
- metadata.gz: ce2ecd99ff403bd8bfef56dd58f6eb5108d9b785
4
- data.tar.gz: 02a10c52829563ed3c6c50df6f84a3eecb2b0d71
3
+ metadata.gz: 1b6014c2f1cb43c4ea464da1d5c5721f460bc018
4
+ data.tar.gz: 7867d71a55823b3ca5219869447dd8b960922135
5
5
  SHA512:
6
- metadata.gz: f4dbf483095769a11aba2d98f69bccde96eef0b51604ce12f276497ae00f222024e33903a7ef8f91efad6038ea08322d536011b396bb6890c6349783d295bdc2
7
- data.tar.gz: 8c0fcee53c0bd45b6eaa2e009eafff3a5ec715e05b8931fd36f3e67093096638ee3145b5a296b992e2f76b99b7cb10bce31b244dcbfd788a74498ef80942e1d2
6
+ metadata.gz: 7f0736ef350f51429ad42c891ba6e7b76a8188a83f8968c99dc8fdfc1e2e739d6806f8c30e68146d8002dc8bc21a6e844dcfedf09b1d9432f9d595f97823bc5a
7
+ data.tar.gz: c5d495806719956c2e7e3977945dc8ea75207371b247be448a0e9c3c13758ee8a53bcb145419f3a9c901a90a445b398345d2877817bab3cb43108e1eb8dcce6d
@@ -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.28.12"
2
+ VERSION = "0.28.13"
3
3
  BUILD_CACHE_VERSION = 30
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.28.12
4
+ version: 0.28.13
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-06-14 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
@@ -773,7 +773,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
773
773
  version: 2.5.0
774
774
  requirements: []
775
775
  rubyforge_project:
776
- rubygems_version: 2.6.11
776
+ rubygems_version: 2.5.1
777
777
  signing_key:
778
778
  specification_version: 4
779
779
  summary: Build docker packaged apps using chef or shell