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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0e3bf95bf018753b3ce51d8c1212f62cc17165aa9b437e831ff7979505d7360d
4
- data.tar.gz: 339de7b3c63b4d8734a3f4a2919d54f81f70885fad5be1ab1de2db02e8be41e3
3
+ metadata.gz: 7c0ebd4f6d03ac6b89991388f15acbbc03d07bede867abcb4d3f6f206969c736
4
+ data.tar.gz: da08fbb5c0c96dce46c799854bf067bdd05c171edd27e1baa6f2a3321cf54ccb
5
5
  SHA512:
6
- metadata.gz: 9d7f75f7fb0731571d7f0d60045cd0907f2a7042fe7efe7e7d40e2d5e409e6936df1148f83a08c6a08e782b763109d3541b376ba3bdb34b4e451ad7381349f5b
7
- data.tar.gz: fd16babf5cfa69f5f68a45a73091e4379b1e8fe8a4006ff6c9f7935bd71831514601603fa4c668817be72a20abd8ef8526648b9d6ab7e613fbaf7bd59cbbbd09
6
+ metadata.gz: 7c54c79f2ce21dac6a86c17da5d7891bb931287416abadc45d1423365822ea686e5796b0e0b7f1fd81ba264e08a56a7bc9a02b329fefcacbe1bc9fbfe4b385fe
7
+ data.tar.gz: a82c938d170c81fd78410e3e85af56b6f0474b0d79753f7aa361f9c604cb959ad13514b37d96b6e87b55ad3153b4f13e8ce8e62ff6a37b470210e31be6d55d69
data/.gitignore CHANGED
@@ -10,3 +10,4 @@
10
10
 
11
11
  # rspec failure tracking
12
12
  .rspec_status
13
+ Gemfile.lock
data/README.md CHANGED
@@ -9,7 +9,7 @@ Add this line to your application's Gemfile:
9
9
  ```ruby
10
10
  # Gemfile
11
11
  group :test do
12
- gem 'database_cleaner-ldap', '~> 0.1.0'
12
+ gem 'database_cleaner-ldap', '~> 0.2.0'
13
13
  end
14
14
  ```
15
15
 
@@ -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"
31
- spec.add_dependency "net-ldap", '~> 0.16.0'
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(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.2.0"
4
4
  end
5
5
  end
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.1.0.pre.1
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: 2021-01-05 00:00:00.000000000 Z
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.beta
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: 2.0.0.beta
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: 1.3.1
96
+ version: '0'
86
97
  requirements: []
87
- rubygems_version: 3.1.2
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