treequel 1.1.1 → 1.2.0pre320

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.
Files changed (44) hide show
  1. data.tar.gz.sig +0 -0
  2. data/ChangeLog +49 -1
  3. data/README.md +65 -0
  4. data/Rakefile +24 -19
  5. data/bin/treequel +20 -3
  6. data/lib/treequel.rb +3 -3
  7. data/lib/treequel/branch.rb +21 -7
  8. data/lib/treequel/branchset.rb +10 -0
  9. data/lib/treequel/model.rb +12 -2
  10. data/lib/treequel/schema.rb +1 -1
  11. data/rake/documentation.rb +9 -2
  12. data/rake/hg.rb +16 -3
  13. data/rake/manual.rb +1 -1
  14. data/rake/packaging.rb +1 -1
  15. data/rake/publishing.rb +158 -95
  16. data/rake/testing.rb +52 -88
  17. data/spec/lib/constants.rb +1 -0
  18. data/spec/lib/control_behavior.rb +7 -5
  19. data/spec/lib/helpers.rb +40 -17
  20. data/spec/lib/matchers.rb +2 -0
  21. data/spec/treequel/branch_spec.rb +44 -21
  22. data/spec/treequel/branchcollection_spec.rb +4 -3
  23. data/spec/treequel/branchset_spec.rb +42 -31
  24. data/spec/treequel/control_spec.rb +2 -1
  25. data/spec/treequel/controls/contentsync_spec.rb +2 -1
  26. data/spec/treequel/controls/pagedresults_spec.rb +4 -7
  27. data/spec/treequel/controls/sortedresults_spec.rb +4 -7
  28. data/spec/treequel/directory_spec.rb +11 -12
  29. data/spec/treequel/filter_spec.rb +7 -14
  30. data/spec/treequel/mixins_spec.rb +4 -9
  31. data/spec/treequel/model/objectclass_spec.rb +2 -1
  32. data/spec/treequel/model_spec.rb +16 -35
  33. data/spec/treequel/monkeypatches_spec.rb +12 -1
  34. data/spec/treequel/schema/attributetype_spec.rb +2 -1
  35. data/spec/treequel/schema/ldapsyntax_spec.rb +2 -1
  36. data/spec/treequel/schema/matchingrule_spec.rb +2 -1
  37. data/spec/treequel/schema/matchingruleuse_spec.rb +2 -1
  38. data/spec/treequel/schema/objectclass_spec.rb +2 -1
  39. data/spec/treequel/schema/table_spec.rb +2 -1
  40. data/spec/treequel/schema_spec.rb +2 -1
  41. data/spec/treequel_spec.rb +10 -2
  42. metadata +16 -17
  43. metadata.gz.sig +0 -0
  44. data/README +0 -66
@@ -10,7 +10,8 @@ BEGIN {
10
10
  $LOAD_PATH.unshift( libdir ) unless $LOAD_PATH.include?( libdir )
11
11
  }
12
12
 
13
- require 'spec'
13
+ require 'rspec'
14
+
14
15
  require 'spec/lib/constants'
15
16
  require 'spec/lib/helpers'
16
17
 
@@ -10,7 +10,8 @@ BEGIN {
10
10
  $LOAD_PATH.unshift( libdir ) unless $LOAD_PATH.include?( libdir )
11
11
  }
12
12
 
13
- require 'spec'
13
+ require 'rspec'
14
+
14
15
  require 'spec/lib/constants'
15
16
  require 'spec/lib/helpers'
16
17
 
@@ -10,7 +10,8 @@ BEGIN {
10
10
  $LOAD_PATH.unshift( libdir ) unless $LOAD_PATH.include?( libdir )
11
11
  }
12
12
 
13
- require 'spec'
13
+ require 'rspec'
14
+
14
15
  require 'spec/lib/constants'
15
16
  require 'spec/lib/helpers'
16
17
 
@@ -10,7 +10,8 @@ BEGIN {
10
10
  $LOAD_PATH.unshift( libdir ) unless $LOAD_PATH.include?( libdir )
11
11
  }
12
12
 
13
- require 'spec'
13
+ require 'rspec'
14
+
14
15
  require 'spec/lib/constants'
15
16
  require 'spec/lib/helpers'
16
17
 
@@ -10,7 +10,8 @@ BEGIN {
10
10
  $LOAD_PATH.unshift( libdir ) unless $LOAD_PATH.include?( libdir )
11
11
  }
12
12
 
13
- require 'spec'
13
+ require 'rspec'
14
+
14
15
  require 'spec/lib/constants'
15
16
  require 'spec/lib/helpers'
16
17
 
@@ -10,7 +10,8 @@ BEGIN {
10
10
  $LOAD_PATH.unshift( libdir ) unless $LOAD_PATH.include?( libdir )
11
11
  }
12
12
 
13
- require 'spec'
13
+ require 'rspec'
14
+
14
15
  require 'spec/lib/constants'
15
16
  require 'spec/lib/helpers'
16
17
 
@@ -10,7 +10,8 @@ BEGIN {
10
10
  $LOAD_PATH.unshift( libdir ) unless $LOAD_PATH.include?( libdir )
11
11
  }
12
12
 
13
- require 'spec'
13
+ require 'rspec'
14
+
14
15
  require 'spec/lib/constants'
15
16
  require 'spec/lib/helpers'
16
17
 
@@ -152,6 +153,10 @@ describe Treequel do
152
153
 
153
154
  describe "system LDAP config methods" do
154
155
 
156
+ before( :all ) do
157
+ setup_logging( :fatal )
158
+ end
159
+
155
160
  before( :each ) do
156
161
  ENV['LDAPCONF'] = nil
157
162
  ENV['LDAPRC'] = nil
@@ -162,6 +167,9 @@ describe Treequel do
162
167
  ENV['LDAPPORT'] = nil
163
168
  end
164
169
 
170
+ after( :all ) do
171
+ reset_logging()
172
+ end
165
173
 
166
174
  it "uses the LDAPCONF environment variable if it is set" do
167
175
  configpath = mock( "configfile Pathname object" )
@@ -444,7 +452,7 @@ describe Treequel do
444
452
 
445
453
 
446
454
  it "uses the new defaults when the logging subsystem is reset" do
447
- logger = mock( "dummy logger", :null_object => true )
455
+ logger = double( "dummy logger" ).as_null_object
448
456
  formatter = mock( "dummy logger" )
449
457
 
450
458
  Treequel.default_logger = logger
metadata CHANGED
@@ -1,16 +1,16 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: treequel
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
5
4
  prerelease: false
6
5
  segments:
7
6
  - 1
8
- - 1
9
- - 1
10
- version: 1.1.1
7
+ - 2
8
+ - 0
9
+ version: 1.2.0pre320
11
10
  platform: ruby
12
11
  authors:
13
- - Michael Granger, Mahlon E. Smith
12
+ - Michael Granger
13
+ - Mahlon E. Smith
14
14
  autorequire:
15
15
  bindir: bin
16
16
  cert_chain:
@@ -35,7 +35,7 @@ cert_chain:
35
35
  cmlhXe46pZNJgWKbxZah85jIjx95hR8vOI+NAM5iH9kOqK13DrxacTKPhqj5PjwF
36
36
  -----END CERTIFICATE-----
37
37
 
38
- date: 2010-09-21 00:00:00 -07:00
38
+ date: 2010-11-28 00:00:00 -08:00
39
39
  default_executable:
40
40
  dependencies:
41
41
  - !ruby/object:Gem::Dependency
@@ -44,9 +44,8 @@ dependencies:
44
44
  requirement: &id001 !ruby/object:Gem::Requirement
45
45
  none: false
46
46
  requirements:
47
- - - ">="
47
+ - - ~>
48
48
  - !ruby/object:Gem::Version
49
- hash: 41
50
49
  segments:
51
50
  - 0
52
51
  - 9
@@ -68,12 +67,12 @@ extensions: []
68
67
 
69
68
  extra_rdoc_files:
70
69
  - ChangeLog
71
- - README
70
+ - README.md
72
71
  - LICENSE
73
72
  files:
74
73
  - Rakefile
75
74
  - ChangeLog
76
- - README
75
+ - README.md
77
76
  - LICENSE
78
77
  - spec/treequel/branch_spec.rb
79
78
  - spec/treequel/branchcollection_spec.rb
@@ -145,8 +144,8 @@ files:
145
144
  - Rakefile.local
146
145
  has_rdoc: true
147
146
  homepage: http://deveiate.org/projects/Treequel
148
- licenses: []
149
-
147
+ licenses:
148
+ - BSD
150
149
  post_install_message: |-
151
150
  If you want to use the included 'treequel' LDAP shell, you'll need to install
152
151
  the following libraries as well:
@@ -159,7 +158,7 @@ rdoc_options:
159
158
  - --show-hash
160
159
  - --include
161
160
  - .
162
- - --main=README
161
+ - --main=README.md
163
162
  - --title=treequel
164
163
  require_paths:
165
164
  - lib
@@ -168,16 +167,16 @@ required_ruby_version: !ruby/object:Gem::Requirement
168
167
  requirements:
169
168
  - - ">="
170
169
  - !ruby/object:Gem::Version
171
- hash: 3
172
170
  segments:
173
- - 0
174
- version: "0"
171
+ - 1
172
+ - 8
173
+ - 7
174
+ version: 1.8.7
175
175
  required_rubygems_version: !ruby/object:Gem::Requirement
176
176
  none: false
177
177
  requirements:
178
178
  - - ">="
179
179
  - !ruby/object:Gem::Version
180
- hash: 3
181
180
  segments:
182
181
  - 0
183
182
  version: "0"
metadata.gz.sig CHANGED
Binary file
data/README DELETED
@@ -1,66 +0,0 @@
1
- = Treequel - an honest LDAP library
2
-
3
- Treequel is an LDAP toolkit for Ruby. It is intended to allow quick, easy
4
- access to LDAP directories in a manner consistent with LDAP's hierarchical,
5
- free-form nature.
6
-
7
- It's inspired by and modeled after Sequel (http://sequel.rubyforge.org/), a
8
- kick-ass database library.
9
-
10
-
11
- == Examples
12
-
13
- Here are a few short examples to whet your appetite:
14
-
15
- # Connect to the directory at the specified URL
16
- dir = Treequel.directory( 'ldap://ldap.company.com/dc=company,dc=com' )
17
-
18
- # Get a list of email addresses of every person in the directory (as
19
- # long as people are under ou=people)
20
- dir.ou( :people ).filter( :mail ).map( :mail ).flatten
21
-
22
- # Get a list of all IP addresses for all hosts in any ou=hosts group
23
- # in the whole directory:
24
- dir.filter( :ou => :hosts ).collection.filter( :ipHostNumber ).
25
- map( :ipHostNumber ).flatten
26
-
27
- # Get all people in the directory in the form of a hash of names
28
- # keyed by email addresses
29
- dir.ou( :people ).filter( :mail ).to_hash( :mail, :cn )
30
-
31
- More elaborate examples of real-world usage can be found in the examples/
32
- directory in the distribution. You can also browse them in a web browser
33
- via the project page:
34
-
35
- http://deveiate.org/projects/Treequel/browser/examples
36
-
37
-
38
- == Contributing
39
-
40
- You can check out the current development source with Mercurial from the
41
- following URL:
42
-
43
- http://repo.deveiate.org/Treequel
44
-
45
- You can submit bug reports, suggestions, and read more about future plans at
46
- the project page:
47
-
48
- http://deveiate.org/projects/Treequel
49
-
50
-
51
- == License
52
-
53
- See the included LICENSE file for licensing details.
54
-
55
-
56
- == Authors
57
-
58
- * Michael Granger
59
- * Mahlon E. Smith
60
-
61
-
62
- == Contributors
63
-
64
- A special thanks to Ben Bleything, who was part of the initial brainstorm that
65
- led to the creation of this library.
66
-