Skip to content

Commit e2290bb

Browse files
author
Rory O'Connell
committed
Merge pull request #57 from docwhat/one-version
Moved VERSION into a single file
2 parents 12613fb + 6dd88b2 commit e2290bb

File tree

6 files changed

+18
-4
lines changed

6 files changed

+18
-4
lines changed

Manifest.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ lib/net/ldap/entry.rb
2525
lib/net/ldap/filter.rb
2626
lib/net/ldap/password.rb
2727
lib/net/ldap/pdu.rb
28+
lib/net/ldap/version.rb
2829
lib/net/snmp.rb
2930
net-ldap.gemspec
3031
spec/integration/ssl_ber_spec.rb

lib/net/ber.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# -*- ruby encoding: utf-8 -*-
2+
require 'net/ldap/version'
3+
24
module Net # :nodoc:
35
##
46
# == Basic Encoding Rules (BER) Support Module
@@ -106,7 +108,7 @@ module Net # :nodoc:
106108
# <tr><th>BMPString</th><th>C</th><td>30: 62 (0x3e, 0b00111110)</td></tr>
107109
# </table>
108110
module BER
109-
VERSION = '0.4.0'
111+
VERSION = Net::LDAP::VERSION
110112

111113
##
112114
# Used for BER-encoding the length and content bytes of a Fixnum integer

lib/net/ldap.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ class LDAP
2323
require 'net/ldap/dataset'
2424
require 'net/ldap/password'
2525
require 'net/ldap/entry'
26+
require 'net/ldap/version'
2627

2728
# == Quick-start for the Impatient
2829
# === Quick Example of a user-authentication against an LDAP directory:
@@ -241,7 +242,6 @@ class LDAP
241242
# and then keeps it open while it executes a user-supplied block.
242243
# Net::LDAP#open closes the connection on completion of the block.
243244
class Net::LDAP
244-
VERSION = "0.4.0"
245245

246246
class LdapError < StandardError; end
247247

lib/net/ldap/version.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module Net
2+
class LDAP
3+
VERSION = "0.4.0"
4+
end
5+
end

lib/net/snmp.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
# -*- ruby encoding: utf-8 -*-
2+
require 'net/ldap/version'
3+
24
# :stopdoc:
35
module Net
46
class SNMP
5-
VERSION = '0.4.0'
7+
VERSION = Net::LDAP::VERSION
68

79
AsnSyntax = Net::BER.compile_syntax({
810
:application => {

net-ldap.gemspec

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
# -*- encoding: utf-8 -*-
2+
lib = File.expand_path('../lib', __FILE__)
3+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4+
require 'net/ldap/version'
5+
26
Gem::Specification.new do |s|
37
s.name = %q{net-ldap}
4-
s.version = "0.4.0"
8+
s.version = Net::LDAP::VERSION
59

610
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
711
s.authors = ["Francis Cianfrocca", "Emiel van de Laar", "Rory O'Connell", "Kaspar Schiess", "Austin Ziegler"]

0 commit comments

Comments
 (0)