drillbit 3.0.2 → 3.0.3

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: a8564087f916f393102757d5991c789dd3d68308
4
- data.tar.gz: 9def3b329cefd654fa4a147ac9354e6cfcd6dfb8
3
+ metadata.gz: c5b6ddf5ed6b1c8daac3a554dbfd8ea7d8070a31
4
+ data.tar.gz: 5d2d879cffe896c26a072a9f5c877a1295750bae
5
5
  SHA512:
6
- metadata.gz: ed025c0699b88e0635e0e063364ad83f47a299b4756466fc1e355d500800c51b4759d0b6b585e722ff438721dafcd00be8ce38131b20c87be0a66b4c0a77f039
7
- data.tar.gz: aa250cf425f6e3402d3aea13bf30538bb54b06c8337f09316ab1402b4fe04f93f3187bc13063ee1ccbf968aea4c99247ab4c32961592cfba22143c5e5dda8e73
6
+ metadata.gz: 6259c189daf204f4999b76f0146d3ec8dc53bf273e9282a734f6993f6dd254b857467c1764795bf13d2a68796711770663ba4a81003907dd898c7f9ddfd10f87
7
+ data.tar.gz: 9d7f40573f4ee66dd8f7206a51d40b3c25a3c94218c88eb3ad38021f40bcedbed55ee38c5d602f0b3226e51c56cf9d869fcb5c1cdee26155f4ef09e4550911b8
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -34,6 +34,20 @@ class Resource < Authorizers::Parameters
34
34
  ]
35
35
  end
36
36
 
37
+ def add_authorized_parameter(name, value = nil)
38
+ if value
39
+ authorized_params[7][name] = value
40
+ else
41
+ authorized_params << name
42
+ end
43
+ end
44
+
45
+ def add_authorized_parameters(*names)
46
+ names.each do |name|
47
+ add_authorized_parameter(name)
48
+ end
49
+ end
50
+
37
51
  def add_authorized_attribute(name)
38
52
  param = params
39
53
  .fetch(:data, {})
@@ -49,7 +49,6 @@ class Base
49
49
  authorization_token_from_params
50
50
  end
51
51
  end
52
- # rubocop:enable Style/ClosingParenthesisIndentation
53
52
 
54
53
  def application_name
55
54
  raw_request_application_name || Drillbit.configuration.application_name
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Drillbit
4
- VERSION = '3.0.2'
4
+ VERSION = '3.0.3'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: drillbit
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.2
4
+ version: 3.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - thegranddesign
@@ -31,7 +31,7 @@ cert_chain:
31
31
  Y2GAoHKstmfIVhc4XHOPpmTd2o/C29O9oaRgjrkfQEhF/KvJ/PhoV5hvokzsCyI5
32
32
  iUeXPfvrGD/itYIBCgk+fnzyQQ4QtE5hTQaWQ3o2
33
33
  -----END CERTIFICATE-----
34
- date: 2018-02-12 00:00:00.000000000 Z
34
+ date: 2018-03-02 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: erratum
metadata.gz.sig CHANGED
Binary file