database_cleaner-ldap 0.1.0.pre.1 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/README.md +1 -1
- data/database_cleaner-ldap.gemspec +2 -2
- data/lib/database_cleaner/ldap/deletion.rb +4 -4
- data/lib/database_cleaner/ldap/version.rb +1 -1
- metadata +23 -12
- data/Gemfile.lock +0 -40
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7c0ebd4f6d03ac6b89991388f15acbbc03d07bede867abcb4d3f6f206969c736
|
4
|
+
data.tar.gz: da08fbb5c0c96dce46c799854bf067bdd05c171edd27e1baa6f2a3321cf54ccb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7c54c79f2ce21dac6a86c17da5d7891bb931287416abadc45d1423365822ea686e5796b0e0b7f1fd81ba264e08a56a7bc9a02b329fefcacbe1bc9fbfe4b385fe
|
7
|
+
data.tar.gz: a82c938d170c81fd78410e3e85af56b6f0474b0d79753f7aa361f9c604cb959ad13514b37d96b6e87b55ad3153b4f13e8ce8e62ff6a37b470210e31be6d55d69
|
data/.gitignore
CHANGED
data/README.md
CHANGED
@@ -27,6 +27,6 @@ Gem::Specification.new do |spec|
|
|
27
27
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
28
28
|
spec.require_paths = ["lib"]
|
29
29
|
|
30
|
-
spec.add_dependency "database_cleaner-core", "
|
31
|
-
spec.add_dependency "net-ldap",
|
30
|
+
spec.add_dependency "database_cleaner-core", ">= 2.0.0", "< 3.0"
|
31
|
+
spec.add_dependency "net-ldap", ">= 0.16.0", "< 1.0"
|
32
32
|
end
|
@@ -2,14 +2,14 @@ require "database_cleaner/strategy"
|
|
2
2
|
|
3
3
|
module DatabaseCleaner
|
4
4
|
module Ldap
|
5
|
-
class Deletion < Strategy
|
5
|
+
class Deletion < DatabaseCleaner::Strategy
|
6
6
|
attr_reader :filter
|
7
7
|
|
8
|
-
def initialize(
|
8
|
+
def initialize(opts={})
|
9
9
|
raise ArgumentError,
|
10
|
-
"Option :filter must be a Net::LDAP::Filter" unless
|
10
|
+
"Option :filter must be a Net::LDAP::Filter" unless opts.empty? || opts[:filter].is_a?(Net::LDAP::Filter)
|
11
11
|
|
12
|
-
@filter = filter
|
12
|
+
@filter = opts[:filter]
|
13
13
|
end
|
14
14
|
|
15
15
|
def clean
|
metadata
CHANGED
@@ -1,43 +1,55 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: database_cleaner-ldap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thomas Scholz
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-10-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: database_cleaner-core
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 2.0.0
|
19
|
+
version: 2.0.0
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '3.0'
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 2.0.0
|
30
|
+
- - "<"
|
25
31
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
32
|
+
version: '3.0'
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: net-ldap
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
30
36
|
requirements:
|
31
|
-
- - "
|
37
|
+
- - ">="
|
32
38
|
- !ruby/object:Gem::Version
|
33
39
|
version: 0.16.0
|
40
|
+
- - "<"
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: '1.0'
|
34
43
|
type: :runtime
|
35
44
|
prerelease: false
|
36
45
|
version_requirements: !ruby/object:Gem::Requirement
|
37
46
|
requirements:
|
38
|
-
- - "
|
47
|
+
- - ">="
|
39
48
|
- !ruby/object:Gem::Version
|
40
49
|
version: 0.16.0
|
50
|
+
- - "<"
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: '1.0'
|
41
53
|
description: Strategy for cleaning LDAP databases. Can be used to ensure a clean state
|
42
54
|
for testing.
|
43
55
|
email:
|
@@ -51,7 +63,6 @@ files:
|
|
51
63
|
- ".travis.yml"
|
52
64
|
- CODE_OF_CONDUCT.md
|
53
65
|
- Gemfile
|
54
|
-
- Gemfile.lock
|
55
66
|
- README.md
|
56
67
|
- Rakefile
|
57
68
|
- bin/console
|
@@ -80,11 +91,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
80
91
|
version: 2.3.0
|
81
92
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
82
93
|
requirements:
|
83
|
-
- - "
|
94
|
+
- - ">="
|
84
95
|
- !ruby/object:Gem::Version
|
85
|
-
version:
|
96
|
+
version: '0'
|
86
97
|
requirements: []
|
87
|
-
rubygems_version: 3.
|
98
|
+
rubygems_version: 3.5.20
|
88
99
|
signing_key:
|
89
100
|
specification_version: 4
|
90
101
|
summary: Strategy for cleaning LDAP databases. Can be used to ensure a clean state
|
data/Gemfile.lock
DELETED
@@ -1,40 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
database_cleaner-ldap (0.1.0)
|
5
|
-
database_cleaner-core (~> 2.0.0.beta)
|
6
|
-
net-ldap (~> 0.16.0)
|
7
|
-
|
8
|
-
GEM
|
9
|
-
remote: https://rubygems.org/
|
10
|
-
specs:
|
11
|
-
byebug (11.1.3)
|
12
|
-
database_cleaner-core (2.0.0.beta2)
|
13
|
-
diff-lcs (1.4.4)
|
14
|
-
net-ldap (0.16.3)
|
15
|
-
rake (12.3.3)
|
16
|
-
rspec (3.10.0)
|
17
|
-
rspec-core (~> 3.10.0)
|
18
|
-
rspec-expectations (~> 3.10.0)
|
19
|
-
rspec-mocks (~> 3.10.0)
|
20
|
-
rspec-core (3.10.0)
|
21
|
-
rspec-support (~> 3.10.0)
|
22
|
-
rspec-expectations (3.10.0)
|
23
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
24
|
-
rspec-support (~> 3.10.0)
|
25
|
-
rspec-mocks (3.10.0)
|
26
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
27
|
-
rspec-support (~> 3.10.0)
|
28
|
-
rspec-support (3.10.0)
|
29
|
-
|
30
|
-
PLATFORMS
|
31
|
-
ruby
|
32
|
-
|
33
|
-
DEPENDENCIES
|
34
|
-
byebug
|
35
|
-
database_cleaner-ldap!
|
36
|
-
rake (~> 12.0)
|
37
|
-
rspec (~> 3.0)
|
38
|
-
|
39
|
-
BUNDLED WITH
|
40
|
-
2.1.4
|