redmine-http_basic_authentication 0.0.1 → 0.0.2
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 +4 -4
- data/.gitignore +1 -0
- data/.rubocop.yml +4 -0
- data/README.md +15 -1
- data/Rakefile +0 -2
- data/lib/http_basic_authentication/patches/application_controller_patch.rb +2 -2
- data/lib/http_basic_authentication/version.rb +1 -1
- data/rakelib/rubocop.rake +18 -0
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: db01a3cd46b1141b4b6efd6f1bdb431afa2b0e28
|
|
4
|
+
data.tar.gz: ddd48ac01d07f19faf0f2d28317a86b9f7e8e881
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a147b9bda6293f66567acb5449b53c68c6237059fd2b93b545625a3fab20822761445baf1adba767d1699b51d757991a053286b34be86330cb276dc7f77f9ba5
|
|
7
|
+
data.tar.gz: 47eaa030add786ce07299a732e787a67a863044cd62b60f7c0e03e88cb1ecca637572eb8ab578a7acc19057525036edb511751f25a3e160fa4e00c64e3f78de5
|
data/.gitignore
CHANGED
data/.rubocop.yml
CHANGED
data/README.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
|
+
[github]: https://github.com/neopoly/redmine-http_basic_authentication
|
|
2
|
+
[doc]: http://rubydoc.info/github/neopoly/redmine-http_basic_authentication/master/file/README.md
|
|
3
|
+
[gem]: https://rubygems.org/gems/redmine-http_basic_authentication
|
|
4
|
+
[gem-badge]: https://img.shields.io/gem/v/redmine-http_basic_authentication.svg
|
|
5
|
+
[inchpages]: https://inch-ci.org/github/neopoly/redmine-http_basic_authentication
|
|
6
|
+
[inchpages-badge]: https://inch-ci.org/github/neopoly/redmine-http_basic_authentication.svg?branch=master&style=flat
|
|
7
|
+
|
|
1
8
|
# redmine-http_basic_authentication
|
|
2
9
|
|
|
10
|
+
[![Gem Version][gem-badge]][gem]
|
|
11
|
+
[![Inline docs][inchpages-badge]][inchpages]
|
|
12
|
+
|
|
13
|
+
[Gem][gem] |
|
|
14
|
+
[Source][github] |
|
|
15
|
+
[Documentation][doc]
|
|
16
|
+
|
|
3
17
|
Use HTTP Basic Authentication for login and IMPLICIT registration for your Redmine application
|
|
4
18
|
|
|
5
19
|
## Installation
|
|
@@ -32,7 +46,7 @@ No automatic tests, sir! But this Redmine plugin is used in production.
|
|
|
32
46
|
|
|
33
47
|
## Contributing
|
|
34
48
|
|
|
35
|
-
1. Fork it ( https://github.com/
|
|
49
|
+
1. Fork it ( https://github.com/neopoly/redmine-http_basic_authentication/fork )
|
|
36
50
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
|
37
51
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
|
38
52
|
4. Push to the branch (`git push origin my-new-feature`)
|
data/Rakefile
CHANGED
|
@@ -35,11 +35,11 @@ module HttpBasicAuthentication
|
|
|
35
35
|
email = "#{username}#{email_suffix}"
|
|
36
36
|
user = User.new(mail: email, firstname: username, lastname: username)
|
|
37
37
|
user.login = username
|
|
38
|
-
user.save!
|
|
38
|
+
user.tap(&:save!)
|
|
39
39
|
end
|
|
40
40
|
|
|
41
41
|
def email_suffix
|
|
42
|
-
Setting.
|
|
42
|
+
Setting.plugin_http_basic_authentication["email_suffix"]
|
|
43
43
|
end
|
|
44
44
|
end
|
|
45
45
|
end
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
begin
|
|
2
|
+
require "rubocop/rake_task"
|
|
3
|
+
|
|
4
|
+
Rake::Task[:default].enhance [:rubocop]
|
|
5
|
+
|
|
6
|
+
RuboCop::RakeTask.new do |task|
|
|
7
|
+
task.options << "--display-cop-names"
|
|
8
|
+
end
|
|
9
|
+
|
|
10
|
+
namespace :rubocop do
|
|
11
|
+
desc "Generate a configuration file acting as a TODO list."
|
|
12
|
+
task :auto_gen_config do
|
|
13
|
+
exec "bundle exec rubocop --auto-gen-config"
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
rescue LoadError
|
|
18
|
+
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: redmine-http_basic_authentication
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jonas Thiel
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-03-
|
|
11
|
+
date: 2015-03-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|
|
@@ -90,6 +90,7 @@ files:
|
|
|
90
90
|
- lib/http_basic_authentication/redmine_plugin.rb
|
|
91
91
|
- lib/http_basic_authentication/version.rb
|
|
92
92
|
- lib/redmine-http_basic_authentication.rb
|
|
93
|
+
- rakelib/rubocop.rake
|
|
93
94
|
- redmine-http_basic_authentication.gemspec
|
|
94
95
|
homepage: https://github.com/neopoly/redmine-http_basic_authentication
|
|
95
96
|
licenses:
|