masks 0.3.0 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
data/lib/masks/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Masks
4
- VERSION = Gem::Version.new("0.3.0")
4
+ VERSION = Gem::Version.new("0.3.2")
5
5
  end
@@ -37,8 +37,9 @@ namespace :masks do
37
37
  exit 1
38
38
  end
39
39
 
40
+ scopes = args[:scopes].split(';')
40
41
  access = cli_access("actor.scopes", as: args[:actor])
41
- access&.assign_scopes(args[:scopes].split(";"))
42
+ access&.assign_scopes(scopes)
42
43
 
43
44
  if !access
44
45
  puts "could not find actor..."
@@ -46,7 +47,7 @@ namespace :masks do
46
47
  puts "failed to assign scopes to '#{access.actor.nickname}'"
47
48
  puts "error: #{access.actor.errors.full_messages.join(", ")}"
48
49
  else
49
- puts "assigned scopes to '#{access.actor.nickname}'"
50
+ puts "assigned scopes '#{scopes.join(', ')}' to '#{access.actor.nickname}'"
50
51
  end
51
52
  end
52
53
 
data/masks.json CHANGED
@@ -148,7 +148,7 @@
148
148
  "request": {
149
149
  "path": ["/actors", "/actors/*"]
150
150
  },
151
- "fail": false
151
+ "fail": "/session"
152
152
  },
153
153
  {
154
154
  "type": "session",
@@ -167,6 +167,9 @@
167
167
  },
168
168
  {
169
169
  "access": "actor.password"
170
+ },
171
+ {
172
+ "access": "actor.scopes"
170
173
  }
171
174
  ],
172
175
  "types": {
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: masks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - geiger-to
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-03-29 00:00:00.000000000 Z
11
+ date: 2024-03-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: alba
@@ -255,7 +255,7 @@ dependencies:
255
255
  - !ruby/object:Gem::Version
256
256
  version: '0'
257
257
  description: masks is a ruby library and rails engine that adds simple, extensible
258
- auth to most applications.
258
+ auth to most applications. DO NOT USE
259
259
  email:
260
260
  - git@geiger.to
261
261
  executables: []
@@ -409,7 +409,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
409
409
  - !ruby/object:Gem::Version
410
410
  version: '0'
411
411
  requirements: []
412
- rubygems_version: 3.3.26
412
+ rubygems_version: 3.5.3
413
413
  signing_key:
414
414
  specification_version: 4
415
415
  summary: mask ruby applications with auth