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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 738727b792aebdcd321157a17af5444c1d8153fe
4
- data.tar.gz: c2410be7c12b433d36ed424c2c5bd4866fa88e11
3
+ metadata.gz: db01a3cd46b1141b4b6efd6f1bdb431afa2b0e28
4
+ data.tar.gz: ddd48ac01d07f19faf0f2d28317a86b9f7e8e881
5
5
  SHA512:
6
- metadata.gz: 722c264a48923851d77ab50ec42a3c9a2f1f81983a87aea2f1f13238f3e9b38c8617d19683094f5ce581139ff8febf3fcdb38420d7b6ea3285a064f14f13c4f2
7
- data.tar.gz: c10593257a1619e169324c708cea3c814076b29102617d33188420b1b692d82b423fca609ca687c9f5d5b62a5faddfed762c8f4e7f1de32a7da0e598349dc083
6
+ metadata.gz: a147b9bda6293f66567acb5449b53c68c6237059fd2b93b545625a3fab20822761445baf1adba767d1699b51d757991a053286b34be86330cb276dc7f77f9ba5
7
+ data.tar.gz: 47eaa030add786ce07299a732e787a67a863044cd62b60f7c0e03e88cb1ecca637572eb8ab578a7acc19057525036edb511751f25a3e160fa4e00c64e3f78de5
data/.gitignore CHANGED
@@ -1 +1,2 @@
1
1
  Gemfile.lock
2
+ pkg
@@ -6,3 +6,7 @@ Style/FileName:
6
6
 
7
7
  Documentation:
8
8
  Enabled: false
9
+
10
+ Lint/HandleExceptions:
11
+ Exclude:
12
+ - rakelib/rubocop.rake
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/[my-github-username]/redmine-http_basic_authentication/fork )
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
@@ -3,6 +3,4 @@
3
3
  require "bundler/gem_tasks"
4
4
  require "rubocop/rake_task"
5
5
 
6
- RuboCop::RakeTask.new
7
-
8
6
  task default: [:rubocop]
@@ -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.plugin_http_basic_authorization["email_suffix"]
42
+ Setting.plugin_http_basic_authentication["email_suffix"]
43
43
  end
44
44
  end
45
45
  end
@@ -1,3 +1,3 @@
1
1
  module HttpBasicAuthentication
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  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.1
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-18 00:00:00.000000000 Z
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: