Hello community,

here is the log from the commit of package rubygem-devise_ldap_authenticatable 
for openSUSE:Factory checked in at 2020-10-05 19:31:01
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-devise_ldap_authenticatable (Old)
 and      
/work/SRC/openSUSE:Factory/.rubygem-devise_ldap_authenticatable.new.4249 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rubygem-devise_ldap_authenticatable"

Mon Oct  5 19:31:01 2020 rev:3 rq:838030 version:0.8.7

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/rubygem-devise_ldap_authenticatable/rubygem-devise_ldap_authenticatable.changes
  2018-03-08 10:56:57.654500505 +0100
+++ 
/work/SRC/openSUSE:Factory/.rubygem-devise_ldap_authenticatable.new.4249/rubygem-devise_ldap_authenticatable.changes
        2020-10-05 19:31:05.496687078 +0200
@@ -1,0 +2,7 @@
+Fri Sep 25 13:51:06 UTC 2020 - Stephan Kulow <[email protected]>
+
+updated to version 0.8.7
+ see installed CHANGELOG.md
+
+
+-------------------------------------------------------------------

Old:
----
  devise_ldap_authenticatable-0.8.6.gem

New:
----
  devise_ldap_authenticatable-0.8.7.gem

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ rubygem-devise_ldap_authenticatable.spec ++++++
--- /var/tmp/diff_new_pack.mIA1RN/_old  2020-10-05 19:31:06.488691262 +0200
+++ /var/tmp/diff_new_pack.mIA1RN/_new  2020-10-05 19:31:06.496691296 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package rubygem-devise_ldap_authenticatable
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -12,7 +12,7 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
@@ -24,7 +24,7 @@
 #
 
 Name:           rubygem-devise_ldap_authenticatable
-Version:        0.8.6
+Version:        0.8.7
 Release:        0
 %define mod_name devise_ldap_authenticatable
 %define mod_full_name %{mod_name}-%{version}
@@ -32,7 +32,7 @@
 BuildRequires:  %{rubygem gem2rpm}
 BuildRequires:  %{ruby}
 BuildRequires:  ruby-macros >= 5
-Url:            https://github.com/cschiewek/devise_ldap_authenticatable
+URL:            https://github.com/cschiewek/devise_ldap_authenticatable
 Source:         https://rubygems.org/gems/%{mod_full_name}.gem
 Source1:        gem2rpm.yml
 Summary:        Devise extension to allow authentication via LDAP

++++++ devise_ldap_authenticatable-0.8.6.gem -> 
devise_ldap_authenticatable-0.8.7.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/README.md new/README.md
--- old/README.md       2018-02-13 19:06:27.000000000 +0100
+++ new/README.md       2020-07-23 21:56:29.000000000 +0200
@@ -1,8 +1,8 @@
 Devise LDAP Authenticatable
 ===========================
-[![Gem 
Version](https://badge.fury.io/rb/devise_ldap_authenticatable.png)](http://badge.fury.io/rb/devise_ldap_authenticatable)
-[![Code 
Climate](https://codeclimate.com/github/cschiewek/devise_ldap_authenticatable.png)](https://codeclimate.com/github/cschiewek/devise_ldap_authenticatable)
-[![Dependency 
Status](https://gemnasium.com/cschiewek/devise_ldap_authenticatable.png)](https://gemnasium.com/cschiewek/devise_ldap_authenticatable)
+
+[![Gem 
Version](https://badge.fury.io/rb/devise_ldap_authenticatable.svg)](http://badge.fury.io/rb/devise_ldap_authenticatable)
+[![Code 
Climate](https://codeclimate.com/github/cschiewek/devise_ldap_authenticatable.svg)](https://codeclimate.com/github/cschiewek/devise_ldap_authenticatable)
 
 Devise LDAP Authenticatable is a LDAP based authentication strategy for the 
[Devise](http://github.com/plataformatec/devise) authentication framework.
 
@@ -25,12 +25,14 @@
 -----
 In the Gemfile for your application:
 
-    gem "devise_ldap_authenticatable"
-
+```ruby
+gem "devise_ldap_authenticatable"
+```
 To get the latest version, pull directly from github instead of the gem:
 
-    gem "devise_ldap_authenticatable", :git => 
"git://github.com/cschiewek/devise_ldap_authenticatable.git"
-
+```ruby
+gem "devise_ldap_authenticatable", :git => 
"git://github.com/cschiewek/devise_ldap_authenticatable.git"
+```
 
 Setup
 -----
@@ -61,9 +63,11 @@
 
 in your user model you have to simply define `ldap_before_save` method:
 
-    def ldap_before_save
-      self.email = 
Devise::LDAP::Adapter.get_ldap_param(self.username,"mail").first
-    end
+```ruby
+def ldap_before_save
+  self.email = Devise::LDAP::Adapter.get_ldap_param(self.username,"mail").first
+end
+```
 
 Configuration
 -------------
@@ -99,7 +103,7 @@
 
 Troubleshooting
 --------------
-**Using a "username" instead of an "email":** The field that is used for 
logins is the first key that's configured in the 
`config/initializers/devise.rb` file under `config.authentication_keys`, which 
by default is email. For help changing this, please see the 
[Railscast](http://railscasts.com/episodes/210-customizing-devise) that goes 
through how to customize Devise. Also, this 
[documentation](https://github.com/plataformatec/devise/wiki/How-To%3a-Allow-users-to-sign-in-using-their-username-or-email-address)
 from Devise can very helpful.
+**Using a "username" instead of an "email":** The field that is used for 
logins is the first key that's configured in the 
`config/initializers/devise.rb` file under `config.authentication_keys`, which 
by default is email. For help changing this, please see the 
[Railscast](http://railscasts.com/episodes/210-customizing-devise) that goes 
through how to customize Devise. Also, this 
[documentation](https://github.com/plataformatec/devise/wiki/How-To%3a-Allow-users-to-sign-in-using-their-username-or-email-address)
 from Devise can be very helpful.
 
 **SSL certificate invalid:** If you're using a test LDAP server running a 
self-signed SSL certificate, make sure the appropriate root certificate is 
installed on your system. Alternately, you may temporarily disable certificate 
checking for SSL by modifying your system LDAP configuration (e.g., 
`/etc/openldap/ldap.conf` or `/etc/ldap/ldap.conf`) to read `TLS_REQCERT never`.
 
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/devise_ldap_authenticatable/ldap/connection.rb 
new/lib/devise_ldap_authenticatable/ldap/connection.rb
--- old/lib/devise_ldap_authenticatable/ldap/connection.rb      2018-02-13 
19:06:27.000000000 +0100
+++ new/lib/devise_ldap_authenticatable/ldap/connection.rb      2020-07-23 
21:56:29.000000000 +0200
@@ -10,8 +10,11 @@
           ldap_config = YAML.load(ERB.new(File.read(::Devise.ldap_config || 
"#{Rails.root}/config/ldap.yml")).result)[Rails.env]
         end
         ldap_options = params
+
+        # Allow `ssl: true` shorthand in YAML, but enable more control with 
`encryption`
         ldap_config["ssl"] = :simple_tls if ldap_config["ssl"] === true
         ldap_options[:encryption] = ldap_config["ssl"].to_sym if 
ldap_config["ssl"]
+        ldap_options[:encryption] = ldap_config["encryption"] if 
ldap_config["encryption"]
 
         @ldap = Net::LDAP.new(ldap_options)
         @ldap.host = ldap_config["host"]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/devise_ldap_authenticatable/version.rb 
new/lib/devise_ldap_authenticatable/version.rb
--- old/lib/devise_ldap_authenticatable/version.rb      2018-02-13 
19:06:27.000000000 +0100
+++ new/lib/devise_ldap_authenticatable/version.rb      2020-07-23 
21:56:29.000000000 +0200
@@ -1,3 +1,3 @@
 module DeviseLdapAuthenticatable
-  VERSION = "0.8.6".freeze
+  VERSION = "0.8.7".freeze
 end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata        2018-02-13 19:06:27.000000000 +0100
+++ new/metadata        2020-07-23 21:56:29.000000000 +0200
@@ -1,7 +1,7 @@
 --- !ruby/object:Gem::Specification
 name: devise_ldap_authenticatable
 version: !ruby/object:Gem::Version
-  version: 0.8.6
+  version: 0.8.7
 platform: ruby
 authors:
 - Curtis Schiewek
@@ -10,7 +10,7 @@
 autorequire: 
 bindir: bin
 cert_chain: []
-date: 2018-02-13 00:00:00.000000000 Z
+date: 2020-07-23 00:00:00.000000000 Z
 dependencies:
 - !ruby/object:Gem::Dependency
   name: devise
@@ -293,80 +293,8 @@
     - !ruby/object:Gem::Version
       version: '0'
 requirements: []
-rubyforge_project: 
-rubygems_version: 2.6.11
+rubygems_version: 3.1.2
 signing_key: 
 specification_version: 4
 summary: Devise extension to allow authentication via LDAP
-test_files:
-- spec/ldap/.gitignore
-- spec/ldap/base.ldif
-- spec/ldap/clear.ldif
-- spec/ldap/local.schema
-- spec/ldap/openldap-data/.gitignore
-- spec/ldap/openldap-data/run/.gitignore
-- spec/ldap/openldap-data/run/.gitkeep
-- spec/ldap/run-server
-- spec/ldap/server.pem
-- spec/ldap/slapd-test.conf.erb
-- spec/rails_app/Rakefile
-- spec/rails_app/app/controllers/application_controller.rb
-- spec/rails_app/app/controllers/posts_controller.rb
-- spec/rails_app/app/helpers/application_helper.rb
-- spec/rails_app/app/helpers/posts_helper.rb
-- spec/rails_app/app/models/post.rb
-- spec/rails_app/app/models/user.rb
-- spec/rails_app/app/views/layouts/application.html.erb
-- spec/rails_app/app/views/posts/index.html.erb
-- spec/rails_app/config.ru
-- spec/rails_app/config/application.rb
-- spec/rails_app/config/boot.rb
-- spec/rails_app/config/cucumber.yml
-- spec/rails_app/config/database.yml
-- spec/rails_app/config/environment.rb
-- spec/rails_app/config/environments/development.rb
-- spec/rails_app/config/environments/production.rb
-- spec/rails_app/config/environments/test.rb
-- spec/rails_app/config/initializers/backtrace_silencers.rb
-- spec/rails_app/config/initializers/devise.rb
-- spec/rails_app/config/initializers/inflections.rb
-- spec/rails_app/config/initializers/mime_types.rb
-- spec/rails_app/config/initializers/secret_token.rb
-- spec/rails_app/config/initializers/session_store.rb
-- spec/rails_app/config/ldap.yml
-- spec/rails_app/config/ldap_with_boolean_ssl.yml
-- spec/rails_app/config/ldap_with_erb.yml
-- spec/rails_app/config/ldap_with_uid.yml
-- spec/rails_app/config/locales/devise.en.yml
-- spec/rails_app/config/locales/en.yml
-- spec/rails_app/config/routes.rb
-- spec/rails_app/config/ssl_ldap.yml
-- spec/rails_app/config/ssl_ldap_with_erb.yml
-- spec/rails_app/config/ssl_ldap_with_uid.yml
-- spec/rails_app/db/migrate/20100708120448_devise_create_users.rb
-- spec/rails_app/db/schema.rb
-- spec/rails_app/features/manage_logins.feature
-- spec/rails_app/features/step_definitions/login_steps.rb
-- spec/rails_app/features/step_definitions/web_steps.rb
-- spec/rails_app/features/support/env.rb
-- spec/rails_app/features/support/paths.rb
-- spec/rails_app/lib/tasks/.gitkeep
-- spec/rails_app/lib/tasks/cucumber.rake
-- spec/rails_app/public/404.html
-- spec/rails_app/public/422.html
-- spec/rails_app/public/500.html
-- spec/rails_app/public/images/rails.png
-- spec/rails_app/public/javascripts/application.js
-- spec/rails_app/public/javascripts/controls.js
-- spec/rails_app/public/javascripts/dragdrop.js
-- spec/rails_app/public/javascripts/effects.js
-- spec/rails_app/public/javascripts/prototype.js
-- spec/rails_app/public/javascripts/rails.js
-- spec/rails_app/public/stylesheets/.gitkeep
-- spec/rails_app/script/cucumber
-- spec/rails_app/script/rails
-- spec/spec_helper.rb
-- spec/support/factories.rb
-- spec/unit/adapter_spec.rb
-- spec/unit/connection_spec.rb
-- spec/unit/user_spec.rb
+test_files: []
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/spec/rails_app/db/migrate/20100708120448_devise_create_users.rb 
new/spec/rails_app/db/migrate/20100708120448_devise_create_users.rb
--- old/spec/rails_app/db/migrate/20100708120448_devise_create_users.rb 
2018-02-13 19:06:27.000000000 +0100
+++ new/spec/rails_app/db/migrate/20100708120448_devise_create_users.rb 
2020-07-23 21:56:29.000000000 +0200
@@ -1,4 +1,4 @@
-class DeviseCreateUsers < ActiveRecord::Migration
+class DeviseCreateUsers < ActiveRecord::Migration[5.1]
   def self.up
     create_table(:users) do |t|
       ## Database authenticatable
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/spec/rails_app/db/schema.rb 
new/spec/rails_app/db/schema.rb
--- old/spec/rails_app/db/schema.rb     2018-02-13 19:06:27.000000000 +0100
+++ new/spec/rails_app/db/schema.rb     2020-07-23 21:56:29.000000000 +0200
@@ -1,4 +1,3 @@
-# encoding: UTF-8
 # This file is auto-generated from the current state of the database. Instead
 # of editing this file, please use the migrations feature of Active Record to
 # incrementally modify your database, and then regenerate this schema 
definition.
@@ -13,23 +12,22 @@
 
 ActiveRecord::Schema.define(version: 20100708120448) do
 
-  create_table "users", force: true do |t|
-    t.string   "email",                  default: "", null: false
-    t.string   "encrypted_password",     default: "", null: false
-    t.string   "reset_password_token"
+  create_table "users", force: :cascade do |t|
+    t.string "email", default: "", null: false
+    t.string "encrypted_password", default: "", null: false
+    t.string "reset_password_token"
     t.datetime "reset_password_sent_at"
     t.datetime "remember_created_at"
-    t.integer  "sign_in_count",          default: 0
+    t.integer "sign_in_count", default: 0
     t.datetime "current_sign_in_at"
     t.datetime "last_sign_in_at"
-    t.string   "current_sign_in_ip"
-    t.string   "last_sign_in_ip"
-    t.string   "uid"
-    t.datetime "created_at"
-    t.datetime "updated_at"
+    t.string "current_sign_in_ip"
+    t.string "last_sign_in_ip"
+    t.string "uid"
+    t.datetime "created_at", null: false
+    t.datetime "updated_at", null: false
+    t.index ["email"], name: "index_users_on_email", unique: true
+    t.index ["reset_password_token"], name: 
"index_users_on_reset_password_token", unique: true
   end
 
-  add_index "users", ["email"], name: "index_users_on_email", unique: true
-  add_index "users", ["reset_password_token"], name: 
"index_users_on_reset_password_token", unique: true
-
 end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/spec/unit/connection_spec.rb 
new/spec/unit/connection_spec.rb
--- old/spec/unit/connection_spec.rb    2018-02-13 19:06:27.000000000 +0100
+++ new/spec/unit/connection_spec.rb    2020-07-23 21:56:29.000000000 +0200
@@ -12,6 +12,24 @@
     expect(connection.ldap.base).to eq('ou=testbase,dc=test,dc=com')
   end
 
+  it 'allows encryption options to be set in ldap_config' do
+    ::Devise.ldap_config = Proc.new() {{
+      'host' => 'localhost',
+      'port' => 3389,
+      'base' => 'ou=testbase,dc=test,dc=com',
+      'attribute' => 'cn',
+      'encryption' => {
+        :method => :simple_tls,
+        :tls_options => OpenSSL::SSL::SSLContext::DEFAULT_PARAMS
+      }
+    }}
+    connection = Devise::LDAP::Connection.new()
+    expect(connection.ldap.instance_variable_get(:@encryption)).to eq({
+      :method => :simple_tls,
+      :tls_options => OpenSSL::SSL::SSLContext::DEFAULT_PARAMS
+    })
+  end
+
   class TestOpResult
     attr_accessor :error_message
   end


Reply via email to