group_selector 0.0.2
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 +7 -0
- data/lib/group_selector.rb +15 -0
- metadata +47 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 982eeab012806d003d2be387294ed951d6b94f63
|
4
|
+
data.tar.gz: a4bdad6afff5a28dce9f1623d9dbff943e9d5fdb
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: ca7a17cdbcf35354b2a08c29d2d6c0f3e2d46ce043faa1953cc7bf40fbff9664421c8786a7aa7b3643133ca17d62cc7887690cdd1bb44410f5c379d81e369aea
|
7
|
+
data.tar.gz: 8b4a0aa066f7063fd0360d2302ee1acc33d3b4599d3c7f1772d6bd7f51e876507aa226960f34d35ad89c2dfa48aad8fdacfb5de2aaa41a0a4aca8a94acab6fce
|
@@ -0,0 +1,15 @@
|
|
1
|
+
class GroupSelector
|
2
|
+
@groups_to_persist = Array.new
|
3
|
+
|
4
|
+
def self.select_requested_groups(groups)
|
5
|
+
return groups.select { |g| @groups_to_persist.include?(g) }
|
6
|
+
end
|
7
|
+
|
8
|
+
def self.set_groups_to_persist(groups)
|
9
|
+
@groups_to_persist = groups
|
10
|
+
end
|
11
|
+
|
12
|
+
def self.get_groups_to_persist
|
13
|
+
@groups_to_persist
|
14
|
+
end
|
15
|
+
end
|
metadata
ADDED
@@ -0,0 +1,47 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: group_selector
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.2
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Joe Essey
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-05-07 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: |-
|
14
|
+
persists filtered list of ldap group names, prevents values over 8000 chars from being persisted.
|
15
|
+
Allows application to set a list of groups to check for and compare a list of groups against it, allowing
|
16
|
+
the application to persist only the necessary groups.
|
17
|
+
email: joe.essey@libertymutual.com
|
18
|
+
executables: []
|
19
|
+
extensions: []
|
20
|
+
extra_rdoc_files: []
|
21
|
+
files:
|
22
|
+
- lib/group_selector.rb
|
23
|
+
homepage: http://rubygems.org/gems/group_selector
|
24
|
+
licenses:
|
25
|
+
- MIT
|
26
|
+
metadata: {}
|
27
|
+
post_install_message:
|
28
|
+
rdoc_options: []
|
29
|
+
require_paths:
|
30
|
+
- lib
|
31
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
32
|
+
requirements:
|
33
|
+
- - '>='
|
34
|
+
- !ruby/object:Gem::Version
|
35
|
+
version: '0'
|
36
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
requirements: []
|
42
|
+
rubyforge_project:
|
43
|
+
rubygems_version: 2.2.2
|
44
|
+
signing_key:
|
45
|
+
specification_version: 4
|
46
|
+
summary: persists filtered list of ldap group names
|
47
|
+
test_files: []
|