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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0e3bf95bf018753b3ce51d8c1212f62cc17165aa9b437e831ff7979505d7360d
4
- data.tar.gz: 339de7b3c63b4d8734a3f4a2919d54f81f70885fad5be1ab1de2db02e8be41e3
3
+ metadata.gz: 420e27e6726734bba243cd6f8d0ae2a41aab8258b236498e53c96395378a5023
4
+ data.tar.gz: 4963d66112283f6a442ab4bb79f73841917a712e199efc48a746daa908ec9d82
5
5
  SHA512:
6
- metadata.gz: 9d7f75f7fb0731571d7f0d60045cd0907f2a7042fe7efe7e7d40e2d5e409e6936df1148f83a08c6a08e782b763109d3541b376ba3bdb34b4e451ad7381349f5b
7
- data.tar.gz: fd16babf5cfa69f5f68a45a73091e4379b1e8fe8a4006ff6c9f7935bd71831514601603fa4c668817be72a20abd8ef8526648b9d6ab7e613fbaf7bd59cbbbd09
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.beta)
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.0.beta2)
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.beta"
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(filter: nil)
8
+ def initialize(opts={})
9
9
  raise ArgumentError,
10
- "Option :filter must be a Net::LDAP::Filter" unless filter.nil? || filter.is_a?(Net::LDAP::Filter)
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
@@ -1,5 +1,5 @@
1
1
  module DatabaseCleaner
2
2
  module Ldap
3
- VERSION = "0.1.0.pre.1"
3
+ VERSION = "0.1.0"
4
4
  end
5
5
  end
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.pre.1
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: 2021-01-05 00:00:00.000000000 Z
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.beta
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.beta
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: 1.3.1
85
+ version: '0'
86
86
  requirements: []
87
- rubygems_version: 3.1.2
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