rack-auth-ldap 1.2.1 → 1.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 99e93f6061f465b3db6390b402b538a78057f5fc1b9c76ca9a03e7feb356dfb5
4
- data.tar.gz: a289f7ef3f8b4ac2166b13ca00b3863f5c46af522b6b26adb778f9772bba8aa3
3
+ metadata.gz: 7803154c42ed1dbc073721f95e4135979b8fa2698884bdbe568c83f24bf5e3ff
4
+ data.tar.gz: 68e70f501293c859c1c0d82666a999ba5237cffa64781102de6c88207d27a809
5
5
  SHA512:
6
- metadata.gz: fd99962acbd1599ac22bd6338c4a676a6e59d642f8b9038a7377438ff1da611af982a39bfef790380c58c09e08d39767948ba14d06e32a27b3408e71d6e960bc
7
- data.tar.gz: 16dcef778c5f3b15d102d54bdead1f520e32c72d792859fed272f7899e62ab87772130e97eb44efc24ea105fe7a25376a3786309619c857c1b31d67e1d274497
6
+ metadata.gz: 339d2abf6c179b34e43c3de2047200dd83a8904a0d25cf579e7e0f5bde9587b07ded37827b123ba4e825c879e56da9990c6585b0cfaacea4a83f4b7bae391d28
7
+ data.tar.gz: 4338ec27f3ec7e42dce1b36dfc3a1ad0ca00807f0d2e7db97d5661cf582f2437ecd45447bb2e6aed9a8e08ebf35dc59ffb06cbdbdaaf727f4343cb5600b0f960
@@ -0,0 +1,2 @@
1
+ LDAP_VERSION
2
+ challenge
data/.rubocop.yml ADDED
@@ -0,0 +1,131 @@
1
+ AllCops:
2
+ NewCops: enable
3
+ SuggestExtensions: false
4
+
5
+ Gemspec/DevelopmentDependencies:
6
+ Exclude:
7
+ - 'rack-auth-ldap.gemspec'
8
+
9
+ # Offense count: 1
10
+ # This cop supports unsafe autocorrection (--autocorrect-all).
11
+ Security/IoMethods:
12
+ Exclude:
13
+ - 'lib/rack/auth/ldap.rb'
14
+
15
+
16
+ # Offense count: 1
17
+ # Configuration parameters: Severity, Include.
18
+ # Include: **/*.gemspec
19
+ Gemspec/RequiredRubyVersion:
20
+ Exclude:
21
+ - 'rack-auth-ldap.gemspec'
22
+
23
+ # Offense count: 1
24
+ # This cop supports unsafe autocorrection (--autocorrect-all).
25
+ Lint/DuplicateRequire:
26
+ Exclude:
27
+ - 'Rakefile'
28
+
29
+ # Offense count: 3
30
+ # Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
31
+ Metrics/AbcSize:
32
+ Max: 39
33
+
34
+ # Offense count: 1
35
+ # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
36
+ # AllowedMethods: refine
37
+ Metrics/BlockLength:
38
+ Max: 84
39
+
40
+ # Offense count: 1
41
+ # Configuration parameters: AllowedMethods, AllowedPatterns.
42
+ Metrics/CyclomaticComplexity:
43
+ Max: 11
44
+
45
+ # Offense count: 3
46
+ # Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
47
+ Metrics/MethodLength:
48
+ Max: 24
49
+
50
+ # Offense count: 1
51
+ # Configuration parameters: AllowedMethods, AllowedPatterns.
52
+ Metrics/PerceivedComplexity:
53
+ Max: 12
54
+
55
+ # Offense count: 1
56
+ # Configuration parameters: ExpectMatchingDefinition, CheckDefinitionPathHierarchy, CheckDefinitionPathHierarchyRoots, Regex, IgnoreExecutableScripts, AllowedAcronyms.
57
+ # CheckDefinitionPathHierarchyRoots: lib, spec, test, src
58
+ # AllowedAcronyms: CLI, DSL, ACL, API, ASCII, CPU, CSS, DNS, EOF, GUID, HTML, HTTP, HTTPS, ID, IP, JSON, LHS, QPS, RAM, RHS, RPC, SLA, SMTP, SQL, SSH, TCP, TLS, TTL, UDP, UI, UID, UUID, URI, URL, UTF8, VM, XML, XMPP, XSRF, XSS
59
+ Naming/FileName:
60
+ Exclude:
61
+ - 'spec/rack-auth-ldap_spec.rb'
62
+
63
+ # Offense count: 1
64
+ # This cop supports unsafe autocorrection (--autocorrect-all).
65
+ Security/YAMLLoad:
66
+ Exclude:
67
+ - 'lib/rack/auth/ldap.rb'
68
+
69
+ # Offense count: 1
70
+ # This cop supports safe autocorrection (--autocorrect).
71
+ # Configuration parameters: EnforcedStyle.
72
+ # SupportedStyles: format, sprintf, percent
73
+ Style/FormatString:
74
+ Exclude:
75
+ - 'lib/rack/auth/ldap.rb'
76
+
77
+ # Offense count: 9
78
+ # This cop supports unsafe autocorrection (--autocorrect-all).
79
+ # Configuration parameters: EnforcedStyle.
80
+ # SupportedStyles: always, always_true, never
81
+ Style/FrozenStringLiteralComment:
82
+ Exclude:
83
+ - 'Gemfile'
84
+ - 'Rakefile'
85
+ - 'examples/Gemfile'
86
+ - 'examples/config.ru'
87
+ - 'examples/sinatra_example.rb'
88
+ - 'lib/rack/auth/ldap.rb'
89
+ - 'lib/rack/auth/ldap/version.rb'
90
+ - 'rack-auth-ldap.gemspec'
91
+ - 'spec/rack-auth-ldap_spec.rb'
92
+
93
+ # Offense count: 2
94
+ # This cop supports unsafe autocorrection (--autocorrect-all).
95
+ # Configuration parameters: AllowedReceivers.
96
+ # AllowedReceivers: Thread.current
97
+ Style/HashEachMethods:
98
+ Exclude:
99
+ - 'lib/rack/auth/ldap.rb'
100
+
101
+ # Offense count: 1
102
+ # This cop supports unsafe autocorrection (--autocorrect-all).
103
+ # Configuration parameters: ConvertCodeThatCanStartToReturnNil, AllowedMethods, MaxChainLength.
104
+ # AllowedMethods: present?, blank?, presence, try, try!
105
+ Style/SafeNavigation:
106
+ Exclude:
107
+ - 'spec/rack-auth-ldap_spec.rb'
108
+
109
+ # Offense count: 1
110
+ # This cop supports unsafe autocorrection (--autocorrect-all).
111
+ # Configuration parameters: RequireEnglish, EnforcedStyle.
112
+ # SupportedStyles: use_perl_names, use_english_names, use_builtin_english_names
113
+ Style/SpecialGlobalVars:
114
+ Exclude:
115
+ - 'rack-auth-ldap.gemspec'
116
+
117
+ # Offense count: 2
118
+ # This cop supports unsafe autocorrection (--autocorrect-all).
119
+ # Configuration parameters: Mode.
120
+ Style/StringConcatenation:
121
+ Exclude:
122
+ - 'examples/config.ru'
123
+ - 'spec/rack-auth-ldap_spec.rb'
124
+
125
+ # Offense count: 1
126
+ # This cop supports unsafe autocorrection (--autocorrect-all).
127
+ # Configuration parameters: EnforcedStyle.
128
+ # SupportedStyles: forbid_for_all_comparison_operators, forbid_for_equality_operators_only, require_for_all_comparison_operators, require_for_equality_operators_only
129
+ Style/YodaCondition:
130
+ Exclude:
131
+ - 'lib/rack/auth/ldap.rb'
data/Gemfile CHANGED
@@ -1,3 +1,3 @@
1
- source "http://rubygems.org"
1
+ source 'https://rubygems.org'
2
2
 
3
- gemspec
3
+ gemspec
data/README.rdoc CHANGED
@@ -74,10 +74,10 @@ if you want to deactivate root authentication before user binding :
74
74
  <<: *ldap_defaults
75
75
 
76
76
  to use ldaps add:
77
- simple_tls: true
77
+ ldaps: true
78
78
 
79
79
  to use start tls add:
80
- start_tls: true
80
+ starttls: true
81
81
 
82
82
  if you need to set openssl options add a "tls_options" hash e.g.:
83
83
  tls_options:
data/Rakefile CHANGED
@@ -1,65 +1,65 @@
1
- require "bundler/gem_tasks"
2
- require 'rubygems'
3
- require 'rspec'
4
- require 'rake'
5
- require "rake/clean"
6
- require "rubygems/package_task"
7
- require "rdoc/task"
8
- require 'code_statistics'
1
+ require 'bundler/gem_tasks'
9
2
  require 'rspec/core/rake_task'
3
+ require 'version'
4
+ require 'rake/version_task'
5
+ require 'code_statistics'
10
6
  require 'yard'
11
- require 'yard/rake/yardoc_task.rb'
12
- require "rake/tasklib"
13
- require "roodi"
14
- require "roodi_task"
15
-
16
-
17
- RoodiTask.new() do | t |
18
- t.patterns = %w(lib/**/*.rb)
19
- end
7
+ require 'yard/rake/yardoc_task'
8
+ require 'rubocop/rake_task'
20
9
 
10
+ require 'rubocop/rake_task'
21
11
 
22
- CLEAN.include('*.tmp','*.old')
23
- CLOBBER.include('*.tmp', 'build/*','#*#')
12
+ RuboCop::RakeTask.new
24
13
 
14
+ Rake::VersionTask.new
25
15
 
26
- content = File::readlines(File.join(File.dirname(__FILE__), 'rack-auth-ldap.gemspec')).join
27
- spec = eval(content)
16
+ CLEAN.include('*.tmp', '*.old')
17
+ CLOBBER.include('*.tmp', 'build/*', '#*#')
28
18
 
29
- RSpec::Core::RakeTask.new('spec')
19
+ RSpec::Core::RakeTask.new(:spec)
30
20
 
31
21
  YARD::Rake::YardocTask.new do |t|
32
- t.files = [ 'lib/**/*.rb', '-', 'doc/**/*','spec/**/*_spec.rb']
33
- t.options += ['--title', "Gem Documentation"]
34
- t.options += ['-o', "yardoc"]
22
+ t.files = ['lib/**/*.rb', '-', 'doc/**/*', 'spec/**/*_spec.rb']
23
+ t.options += ['-o', 'yardoc']
35
24
  end
36
25
 
37
26
  YARD::Config.load_plugin('yard-rspec')
38
27
 
39
28
  namespace :yardoc do
40
29
  task :clobber do
41
- rm_r "yardoc" rescue nil
42
- rm_r ".yardoc" rescue nil
30
+ begin
31
+ rm_r 'yardoc'
32
+ rescue StandardError
33
+ nil
34
+ end
35
+ begin
36
+ rm_r '.yardoc'
37
+ rescue StandardError
38
+ nil
39
+ end
43
40
  end
44
41
  end
45
- task :clobber => "yardoc:clobber"
42
+ task clobber: 'yardoc:clobber'
46
43
 
44
+ task default: [:spec]
47
45
 
48
- Gem::PackageTask.new(spec) do |pkg|
49
- pkg.need_tar = true
50
- pkg.need_zip = true
46
+ task :stage do
47
+ Rake::Task['clean'].invoke
48
+ Rake::Task['clobber'].invoke
49
+ Rake::Task['install'].invoke
51
50
  end
52
51
 
53
- Rake::RDocTask.new('rdoc') do |d|
54
- d.rdoc_files.include('doc/**/*','bin/*')
55
- d.title = 'Dorsal : Yard'
56
- d.options << '--line-numbers' << '--diagram' << '-SHN'
52
+ desc 'Run CVE security audit over bundle'
53
+ task :audit do
54
+ system('bundle audit')
57
55
  end
58
56
 
59
- task :default => [:gem]
57
+ desc 'Run dead line of code detection'
58
+ task :debride do
59
+ system('debride -w .debride-whitelist .')
60
+ end
60
61
 
61
- task :stage do
62
- Rake::Task["clean"].invoke
63
- Rake::Task["clobber"].invoke
64
- Rake::Task["install"].invoke
62
+ desc 'Run SBOM CycloneDX Xml format file'
63
+ task :sbom do
64
+ system('cyclonedx-ruby -p .')
65
65
  end
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 1.2.2