database_cleaner-ldap 0.1.0.pre.1 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -3
- data/database_cleaner-ldap.gemspec +1 -1
- data/lib/database_cleaner/ldap/deletion.rb +4 -4
- data/lib/database_cleaner/ldap/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 420e27e6726734bba243cd6f8d0ae2a41aab8258b236498e53c96395378a5023
|
4
|
+
data.tar.gz: 4963d66112283f6a442ab4bb79f73841917a712e199efc48a746daa908ec9d82
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6f8f14e14f9d3b1fe67d75b9cae2b9898c1ed6ffb0382ff68724eb85d1a906b823462e73599f503d3f0221f7741200c0957b258a27cd43e4e10704828f4216cb
|
7
|
+
data.tar.gz: 71e30847050303e2a6b8391bd91bc775a0f02223e0282bbf24c6265648db05ce45fa6e6ee4c661092dc16a4322adc3bb3d186348b84ba65082d7d9b520487e45
|
data/Gemfile.lock
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
database_cleaner-ldap (0.1.0)
|
5
|
-
database_cleaner-core (~> 2.0.0
|
4
|
+
database_cleaner-ldap (0.1.0.pre.1)
|
5
|
+
database_cleaner-core (~> 2.0.0)
|
6
6
|
net-ldap (~> 0.16.0)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
11
|
byebug (11.1.3)
|
12
|
-
database_cleaner-core (2.0.
|
12
|
+
database_cleaner-core (2.0.1)
|
13
13
|
diff-lcs (1.4.4)
|
14
14
|
net-ldap (0.16.3)
|
15
15
|
rake (12.3.3)
|
@@ -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", "~> 2.0.0
|
30
|
+
spec.add_dependency "database_cleaner-core", "~> 2.0.0"
|
31
31
|
spec.add_dependency "net-ldap", '~> 0.16.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,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: database_cleaner-ldap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.0
|
4
|
+
version: 0.1.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-09-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: database_cleaner-core
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 2.0.0
|
19
|
+
version: 2.0.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 2.0.0
|
26
|
+
version: 2.0.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: net-ldap
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -80,11 +80,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
80
80
|
version: 2.3.0
|
81
81
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
82
82
|
requirements:
|
83
|
-
- - "
|
83
|
+
- - ">="
|
84
84
|
- !ruby/object:Gem::Version
|
85
|
-
version:
|
85
|
+
version: '0'
|
86
86
|
requirements: []
|
87
|
-
rubygems_version: 3.
|
87
|
+
rubygems_version: 3.5.20
|
88
88
|
signing_key:
|
89
89
|
specification_version: 4
|
90
90
|
summary: Strategy for cleaning LDAP databases. Can be used to ensure a clean state
|