adauth 0.0.1pre → 0.1.0

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.
@@ -23,4 +23,4 @@ module Adauth
23
23
  def self.config
24
24
  @config
25
25
  end
26
- end
26
+ end
@@ -1,3 +1,3 @@
1
1
  module Adauth
2
- Version = "0.0.1pre"
2
+ Version = "0.1.0"
3
3
  end
@@ -0,0 +1,5 @@
1
+ Description:
2
+ Creates a config file for Adauth with sample data and details comments
3
+
4
+ Example:
5
+ rails g adauth:config
@@ -0,0 +1,11 @@
1
+ module Adauth
2
+ module Generators
3
+ class ConfigGenerator < Rails::Generators::Base
4
+ source_root File.expand_path('../templates', __FILE__)
5
+
6
+ def generate_config
7
+ template "config.rb.erb", "config/initializers/adauth.rb"
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,35 @@
1
+ Adauth.configure do |c|
2
+ # The Domain name of your Domain
3
+ #
4
+ # This is usually my_company.com or my_company.local
5
+ #
6
+ # If you don't know your domain contact your IT support,
7
+ # it will be the DNS suffix applied to your machines
8
+ c.domain = "example.com"
9
+
10
+ # The IP address or Hostname of a DC (Domain Controller) on your network
11
+ #
12
+ # This could be anything and probably wont be 127.0.0.1
13
+ #
14
+ # Again contact your IT Support if you can't work this out
15
+ c.server = "127.0.0.1"
16
+
17
+ # The LDAP base of your domain/intended users
18
+ #
19
+ # For all users in your domain the base would be:
20
+ # dc=example, dc=com
21
+ # OUs can be prepeneded to restrict access to your app
22
+ c.base = "dc=example, dc=com"
23
+
24
+ # The port isn't always needed as Adauth defaults to 389 the LDAP Port
25
+ #
26
+ # If your DC is on the other side of a firewall you may need to change the port
27
+ #c.port = 389
28
+
29
+ # Windows Security groups to allow
30
+ #
31
+ # Only allow members of set windows security groups to login
32
+ #
33
+ # Takes an array for group names
34
+ #c.allowed_groups = ["Group1", "Group2"]
35
+ end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: adauth
3
3
  version: !ruby/object:Gem::Version
4
- hash: 961915968
5
- prerelease: 5
4
+ hash: 27
5
+ prerelease:
6
6
  segments:
7
7
  - 0
8
- - 0
9
8
  - 1
10
- - pre
11
- version: 0.0.1pre
9
+ - 0
10
+ version: 0.1.0
12
11
  platform: ruby
13
12
  authors:
14
13
  - Adam "Arcath" Laycock
@@ -16,7 +15,7 @@ autorequire:
16
15
  bindir: bin
17
16
  cert_chain: []
18
17
 
19
- date: 2011-06-06 00:00:00 +01:00
18
+ date: 2011-06-23 00:00:00 +01:00
20
19
  default_executable:
21
20
  dependencies:
22
21
  - !ruby/object:Gem::Dependency
@@ -69,6 +68,9 @@ files:
69
68
  - lib/adauth/user.rb
70
69
  - lib/adauth/user_model.rb
71
70
  - lib/adauth/version.rb
71
+ - lib/generators/adauth/config/USAGE
72
+ - lib/generators/adauth/config/config_generator.rb
73
+ - lib/generators/adauth/config/templates/config.rb.erb
72
74
  - lib/generators/adauth/user_model/USAGE
73
75
  - lib/generators/adauth/user_model/templates/migration.rb.erb
74
76
  - lib/generators/adauth/user_model/templates/model.rb.erb
@@ -95,14 +97,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
95
97
  required_rubygems_version: !ruby/object:Gem::Requirement
96
98
  none: false
97
99
  requirements:
98
- - - ">"
100
+ - - ">="
99
101
  - !ruby/object:Gem::Version
100
- hash: 25
102
+ hash: 3
101
103
  segments:
102
- - 1
103
- - 3
104
- - 1
105
- version: 1.3.1
104
+ - 0
105
+ version: "0"
106
106
  requirements: []
107
107
 
108
108
  rubyforge_project: