ucb_groups 0.0.2 → 0.0.3

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8a70a98622c14e05dc6d97321b88fa49814fe37c
4
- data.tar.gz: f7a84e130fabac3db97c20f6927151eca557b66b
3
+ metadata.gz: a1bdf549f13edf65d636beb2404cd2a5b6157ddb
4
+ data.tar.gz: aa0116d5ffea6cdc906625032a27e6159d4b273c
5
5
  SHA512:
6
- metadata.gz: dbb318e65608a45bb2f15782012ab6e556592cc1102cc774198cff91402542ba9ecbc2cd87660b008b9007ae37021bc78d338050aa0679ac64d5f87f32888d4b
7
- data.tar.gz: aa28f08ef4abddf05884c02a979acbf67e4312f57b19a0e65a6a42549edceba8c9ebc1d45808606f26f95c5f36fbef4dee11cb149170b5516698c23997a936f9
6
+ metadata.gz: 589a70bcc804a10e3f7c9e8ef2ffd0c233b0155f73f306ef6dcba4cd1af5b4d0d12a64b3a7ddca312d4794e0462902f90101cd2f3cbe063fc0f352f7d672982d
7
+ data.tar.gz: fc314a5db50aac3ad35b183acc134d7e785eb9d93e9658765175126b27f14a33d9eb427c8286982a7a269daf5e86638b4873dca26e5f9ef0a91e32dab9f10fa8
@@ -8,21 +8,22 @@ module UcbGroups
8
8
  raise(LdapBindFailedException)
9
9
  end
10
10
 
11
- def self.authenticate(username, password)
11
+ def self.authenticate(username, password, host='nds.berkeley.edu')
12
12
  @username = username
13
13
  @password = password
14
+ @host = host
14
15
  end
15
16
 
16
17
  def self.authenticate_from_config(config_file)
17
18
  conf = YAML.load_file(config_file)
18
- @username, @password = conf['username'], conf['password']
19
+ self.authenticate(conf['username'], conf['password'], conf['host'])
19
20
  end
20
21
 
21
22
  private
22
23
 
23
24
  def self.auth_info
24
25
  @auth_info ||= {
25
- host: "ldap.berkeley.edu",
26
+ host: @host,
26
27
  auth: {
27
28
  method: :simple,
28
29
  username: @username,
@@ -1,3 +1,3 @@
1
1
  module UcbGroups
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ucb_groups
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - sahglie