hector-identity-ee 1.0.0 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/hector/ee_identity_adapter.rb +5 -1
  2. metadata +6 -22
@@ -58,7 +58,11 @@ module Hector
58
58
  def identity(username)
59
59
  query = { :hector_username => username }
60
60
  query[:group_id] = config["groups"] if config["groups"]
61
- (db[:exp_members].select(:password).first(query) || {})[:password]
61
+ (table(:members).select(:password).first(query) || {})[:password]
62
+ end
63
+
64
+ def table(name)
65
+ db["#{(config["prefix"] || "exp")}_#{name}"]
62
66
  end
63
67
 
64
68
  def hash(password)
metadata CHANGED
@@ -1,12 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hector-identity-ee
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 1
7
- - 0
8
- - 0
9
- version: 1.0.0
4
+ prerelease:
5
+ version: 2.0.0
10
6
  platform: ruby
11
7
  authors:
12
8
  - Ross Paffett
@@ -14,7 +10,7 @@ autorequire:
14
10
  bindir: bin
15
11
  cert_chain: []
16
12
 
17
- date: 2011-03-08 00:00:00 -05:00
13
+ date: 2011-08-07 00:00:00 -04:00
18
14
  default_executable:
19
15
  dependencies:
20
16
  - !ruby/object:Gem::Dependency
@@ -25,11 +21,7 @@ dependencies:
25
21
  requirements:
26
22
  - - ">="
27
23
  - !ruby/object:Gem::Version
28
- segments:
29
- - 3
30
- - 21
31
- - 0
32
- version: 3.21.0
24
+ version: 3.26.0
33
25
  type: :runtime
34
26
  version_requirements: *id001
35
27
  - !ruby/object:Gem::Dependency
@@ -40,11 +32,7 @@ dependencies:
40
32
  requirements:
41
33
  - - ">="
42
34
  - !ruby/object:Gem::Version
43
- segments:
44
- - 0
45
- - 2
46
- - 6
47
- version: 0.2.6
35
+ version: 0.3.6
48
36
  type: :runtime
49
37
  version_requirements: *id002
50
38
  description: An identity adapter which allows users to log into a Hector IRC server using their ExpressionEngine credentials.
@@ -72,21 +60,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
72
60
  requirements:
73
61
  - - ">="
74
62
  - !ruby/object:Gem::Version
75
- segments:
76
- - 0
77
63
  version: "0"
78
64
  required_rubygems_version: !ruby/object:Gem::Requirement
79
65
  none: false
80
66
  requirements:
81
67
  - - ">="
82
68
  - !ruby/object:Gem::Version
83
- segments:
84
- - 0
85
69
  version: "0"
86
70
  requirements: []
87
71
 
88
72
  rubyforge_project:
89
- rubygems_version: 1.3.7
73
+ rubygems_version: 1.6.2
90
74
  signing_key:
91
75
  specification_version: 3
92
76
  summary: ExpressionEngine identity adapter for Hector