mumukit-auth 7.5.0 → 7.5.1

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: 7fae029a744568e63e312645f27fdb78ef3b6b24fc14863b117dc1175b6c9d1a
4
- data.tar.gz: 3d49186ebd74a9a309fd1a00894ec8a9226e1d5c629111ca73a14dafc5821771
3
+ metadata.gz: b6e7669dbae64688edb9e4fb1fa943d84d6918c623c57e461bc24e1ea8487d7e
4
+ data.tar.gz: 89299a776db1bb429ab04bd7374464065665554b4ffd24f7ee34b8ef54f501f9
5
5
  SHA512:
6
- metadata.gz: b9779fcf2875efac6c2b3447486d091645044585f66e5e5b6ff40927e995353c52a7390fa810224cd3f56d0e61624354f075783741e17e909462257fdd941877
7
- data.tar.gz: 792bf9a691717574406dbc9ba8636b74d69181f7ad6517b8733dbc9f448f7ce0ec42e76512a197e7a8ece3657de08bf0b91f9ad20aa67a880e89ee061b636d96
6
+ metadata.gz: a6ab2cfd8d72c54b679639a29f6463a80ef2aaa6df765d0e1e369fc17696ecdaf0adf86bd96ad33bc228e080d4b6996d630bf0172ffa5b882e11881666bb0937
7
+ data.tar.gz: 2f28c3c9fa41fc3dc9527c80735d32e8a91adac6b44d5ad4b99271e493a1b32cc24c9f92642e5a415cf30618e86bb0fe702ff147f31bc53d11ce3e9b0a1f9205
data/lib/mumukit/auth.rb CHANGED
@@ -19,10 +19,7 @@ require 'ostruct'
19
19
 
20
20
  module Mumukit
21
21
  module Auth
22
- def self.configure
23
- @config ||= defaults
24
- yield @config
25
- end
22
+ extend Mumukit::Core::Configurable
26
23
 
27
24
  def self.defaults
28
25
  struct.tap do |config|
@@ -32,9 +29,5 @@ module Mumukit
32
29
  }
33
30
  end
34
31
  end
35
-
36
- def self.config
37
- @config
38
- end
39
32
  end
40
33
  end
@@ -59,7 +59,7 @@ module Mumukit::Auth
59
59
 
60
60
  class FirstPartGrant < Grant
61
61
  def initialize(first)
62
- @first = first
62
+ @first = first.downcase
63
63
  end
64
64
 
65
65
  def allows?(resource_slug)
@@ -15,8 +15,8 @@ module Mumukit::Auth
15
15
  alias_method :content, :second
16
16
 
17
17
  def initialize(first, second)
18
- @first = first
19
- @second = second
18
+ @first = first.downcase
19
+ @second = second.downcase
20
20
  end
21
21
 
22
22
  def match_first(first)
@@ -1,5 +1,5 @@
1
1
  module Mumukit
2
2
  module Auth
3
- VERSION = '7.5.0'
3
+ VERSION = '7.5.1'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mumukit-auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.5.0
4
+ version: 7.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Franco Leonardo Bulgarelli
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-11-02 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: bundler
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '1.0'
75
+ version: '1.8'
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '1.0'
82
+ version: '1.8'
83
83
  description:
84
84
  email:
85
85
  - franco@mumuki.org
@@ -119,8 +119,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
119
119
  - !ruby/object:Gem::Version
120
120
  version: '0'
121
121
  requirements: []
122
- rubyforge_project:
123
- rubygems_version: 2.7.8
122
+ rubygems_version: 3.0.2
124
123
  signing_key:
125
124
  specification_version: 4
126
125
  summary: Library for authorizing mumuki requests