Hello community,

here is the log from the commit of package rubygem-omniauth-gitlab for 
openSUSE:Factory checked in at 2018-02-16 21:43:33
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rubygem-omniauth-gitlab (Old)
 and      /work/SRC/openSUSE:Factory/.rubygem-omniauth-gitlab.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rubygem-omniauth-gitlab"

Fri Feb 16 21:43:33 2018 rev:2 rq:576990 version:1.0.3

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/rubygem-omniauth-gitlab/rubygem-omniauth-gitlab.changes
  2018-02-15 13:24:49.165472988 +0100
+++ 
/work/SRC/openSUSE:Factory/.rubygem-omniauth-gitlab.new/rubygem-omniauth-gitlab.changes
     2018-02-16 21:43:38.005335733 +0100
@@ -1,0 +2,6 @@
+Thu Feb  8 06:16:37 UTC 2018 - [email protected]
+
+- updated to version 1.0.3
+  no changelog found
+
+-------------------------------------------------------------------

Old:
----
  omniauth-gitlab-1.0.2.gem

New:
----
  omniauth-gitlab-1.0.3.gem

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

Other differences:
------------------
++++++ rubygem-omniauth-gitlab.spec ++++++
--- /var/tmp/diff_new_pack.pckhvn/_old  2018-02-16 21:43:38.573315250 +0100
+++ /var/tmp/diff_new_pack.pckhvn/_new  2018-02-16 21:43:38.577315105 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package rubygem-omniauth-gitlab
 #
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -24,16 +24,16 @@
 #
 
 Name:           rubygem-omniauth-gitlab
-Version:        1.0.2
+Version:        1.0.3
 Release:        0
 %define mod_name omniauth-gitlab
 %define mod_full_name %{mod_name}-%{version}
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
-BuildRequires:  ruby-macros >= 5
-BuildRequires:  %{ruby}
 BuildRequires:  %{rubygem gem2rpm}
+BuildRequires:  %{ruby}
+BuildRequires:  ruby-macros >= 5
 Url:            https://github.com/linchus/omniauth-gitlab
-Source:         http://rubygems.org/gems/%{mod_full_name}.gem
+Source:         https://rubygems.org/gems/%{mod_full_name}.gem
 Source1:        gem2rpm.yml
 Summary:        This is the strategy for authenticating to your GitLab service
 License:        MIT

++++++ omniauth-gitlab-1.0.2.gem -> omniauth-gitlab-1.0.3.gem ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/README.md new/README.md
--- old/README.md       2016-02-13 15:24:45.000000000 +0100
+++ new/README.md       2018-01-10 22:35:01.000000000 +0100
@@ -31,12 +31,35 @@
 ## Standalone Usage
 
     use OmniAuth::Builder do
-      provider :gitlab, ENV['GITLAB_KEY'], ENV['GITLAB_SECRET'], 
-                                client_options: {
-                                     site: 'https://gitlab.YOURDOMAIN.com',
-                                     authorize_url: '/oauth/authorize',
-                                     token_url: '/oauth/token'
-                                 }      
+      provider :gitlab, ENV['GITLAB_KEY'], ENV['GITLAB_SECRET'],
+        {
+           client_options: {
+             site: 'https://gitlab.YOURDOMAIN.com/api/v4'
+           }
+        }
+    end
+
+## Custom scopes
+
+    use OmniAuth::Builder do
+      provider :gitlab, ENV['GITLAB_KEY'], ENV['GITLAB_SECRET'], scope: 
'read_user openid'
+    end
+
+## Old API version
+
+API V3 will be unsupported from GitLab 9.5 and will be removed in GitLab 9.5 
or later.
+
+[https://gitlab.com/help/api/v3_to_v4.md](https://gitlab.com/help/api/v3_to_v4.md)
+
+If you use GitLab 9.0 and below you could configure V3 API:
+
+    use OmniAuth::Builder do
+      provider :gitlab, ENV['GITLAB_KEY'], ENV['GITLAB_SECRET'],
+        {
+           client_options: {
+             site: 'https://gitlab.YOURDOMAIN.com/api/v3'
+           }
+        }
     end
 
 ## Contributing
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Rakefile new/Rakefile
--- old/Rakefile        2016-02-13 15:24:45.000000000 +0100
+++ new/Rakefile        2018-01-10 22:35:01.000000000 +0100
@@ -1,7 +1,7 @@
-require "bundler/gem_tasks"
+require 'bundler/gem_tasks'
 require 'rspec/core/rake_task'
 
 RSpec::Core::RakeTask.new
 
 desc 'Run specs'
-task :default => :spec
\ No newline at end of file
+task default: :spec
Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/omniauth/strategies/gitlab.rb 
new/lib/omniauth/strategies/gitlab.rb
--- old/lib/omniauth/strategies/gitlab.rb       2016-02-13 15:24:45.000000000 
+0100
+++ new/lib/omniauth/strategies/gitlab.rb       2018-01-10 22:35:01.000000000 
+0100
@@ -4,12 +4,7 @@
 module OmniAuth
   module Strategies
     class GitLab < OmniAuth::Strategies::OAuth2
-
-      option :client_options, {
-          site: 'https://gitlab.com',
-          authorize_url: '/oauth/authorize',
-          token_url: '/oauth/token'
-      }
+      option :client_options, site: 'https://gitlab.com/api/v4'
 
       option :redirect_url
 
@@ -17,10 +12,10 @@
 
       info do
         {
-            name:     raw_info['name'],
-            username: raw_info['username'],
-            email:    raw_info['email'],
-            image:    raw_info['avatar_url']
+          name: raw_info['name'],
+          username: raw_info['username'],
+          email: raw_info['email'],
+          image: raw_info['avatar_url']
         }
       end
 
@@ -29,7 +24,7 @@
       end
 
       def raw_info
-        @raw_info ||= access_token.get('/api/v3/user').parsed
+        @raw_info ||= access_token.get('user').parsed
       end
 
       private
@@ -41,5 +36,4 @@
   end
 end
 
-
 OmniAuth.config.add_camelization 'gitlab', 'GitLab'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/omniauth-gitlab/version.rb 
new/lib/omniauth-gitlab/version.rb
--- old/lib/omniauth-gitlab/version.rb  2016-02-13 15:24:45.000000000 +0100
+++ new/lib/omniauth-gitlab/version.rb  2018-01-10 22:35:01.000000000 +0100
@@ -1,5 +1,5 @@
 module Omniauth
   module Gitlab
-    VERSION = '1.0.2'
+    VERSION = '1.0.3'
   end
 end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/lib/omniauth-gitlab.rb new/lib/omniauth-gitlab.rb
--- old/lib/omniauth-gitlab.rb  2016-02-13 15:24:45.000000000 +0100
+++ new/lib/omniauth-gitlab.rb  2018-01-10 22:35:01.000000000 +0100
@@ -1,2 +1,2 @@
-require "omniauth-gitlab/version"
+require 'omniauth-gitlab/version'
 require 'omniauth/strategies/gitlab'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/metadata new/metadata
--- old/metadata        2016-02-13 15:24:45.000000000 +0100
+++ new/metadata        2018-01-10 22:35:01.000000000 +0100
@@ -1,14 +1,14 @@
 --- !ruby/object:Gem::Specification
 name: omniauth-gitlab
 version: !ruby/object:Gem::Version
-  version: 1.0.2
+  version: 1.0.3
 platform: ruby
 authors:
-- ssein
+- Sergey Sein
 autorequire: 
 bindir: bin
 cert_chain: []
-date: 2016-02-13 00:00:00.000000000 Z
+date: 2018-01-10 00:00:00.000000000 Z
 dependencies:
 - !ruby/object:Gem::Dependency
   name: omniauth
@@ -67,20 +67,6 @@
       - !ruby/object:Gem::Version
         version: '1.0'
 - !ruby/object:Gem::Dependency
-  name: rack-test
-  requirement: !ruby/object:Gem::Requirement
-    requirements:
-    - - ">="
-      - !ruby/object:Gem::Version
-        version: '0'
-  type: :development
-  prerelease: false
-  version_requirements: !ruby/object:Gem::Requirement
-    requirements:
-    - - ">="
-      - !ruby/object:Gem::Version
-        version: '0'
-- !ruby/object:Gem::Dependency
   name: simplecov
   requirement: !ruby/object:Gem::Requirement
     requirements:
@@ -94,20 +80,6 @@
     - - ">="
       - !ruby/object:Gem::Version
         version: '0'
-- !ruby/object:Gem::Dependency
-  name: webmock
-  requirement: !ruby/object:Gem::Requirement
-    requirements:
-    - - ">="
-      - !ruby/object:Gem::Version
-        version: '0'
-  type: :development
-  prerelease: false
-  version_requirements: !ruby/object:Gem::Requirement
-    requirements:
-    - - ">="
-      - !ruby/object:Gem::Version
-        version: '0'
 description: This is the strategy for authenticating to your GitLab service
 email:
 - [email protected]
@@ -147,11 +119,10 @@
       version: '0'
 requirements: []
 rubyforge_project: 
-rubygems_version: 2.2.2
+rubygems_version: 2.5.2
 signing_key: 
 specification_version: 4
 summary: This is the strategy for authenticating to your GitLab service
 test_files:
 - spec/omniauth/strategies/gitlab_spec.rb
 - spec/spec_helper.rb
-has_rdoc: 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/omniauth-gitlab.gemspec new/omniauth-gitlab.gemspec
--- old/omniauth-gitlab.gemspec 2016-02-13 15:24:45.000000000 +0100
+++ new/omniauth-gitlab.gemspec 2018-01-10 22:35:01.000000000 +0100
@@ -6,14 +6,14 @@
 Gem::Specification.new do |gem|
   gem.name          = 'omniauth-gitlab'
   gem.version       = Omniauth::Gitlab::VERSION
-  gem.authors       = ['ssein']
+  gem.authors       = ['Sergey Sein']
   gem.email         = ['[email protected]']
-  gem.description   = %q{This is the strategy for authenticating to your 
GitLab service}
-  gem.summary       = %q{This is the strategy for authenticating to your 
GitLab service}
+  gem.description   = 'This is the strategy for authenticating to your GitLab 
service'
+  gem.summary       = 'This is the strategy for authenticating to your GitLab 
service'
   gem.homepage      = 'https://github.com/linchus/omniauth-gitlab'
 
   gem.files         = `git ls-files`.split($/)
-  gem.executables   = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
+  gem.executables   = gem.files.grep(%r{^bin/}).map { |f| File.basename(f) }
   gem.test_files    = gem.files.grep(%r{^(test|spec|features)/})
   gem.require_paths = ['lib']
 
@@ -21,7 +21,5 @@
   gem.add_dependency 'omniauth-oauth2', '~> 1.0'
   gem.add_development_dependency 'rspec', '~> 3.1'
   gem.add_development_dependency 'rspec-its', '~> 1.0'
-  gem.add_development_dependency 'rack-test'
   gem.add_development_dependency 'simplecov'
-  gem.add_development_dependency 'webmock'
 end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/spec/omniauth/strategies/gitlab_spec.rb 
new/spec/omniauth/strategies/gitlab_spec.rb
--- old/spec/omniauth/strategies/gitlab_spec.rb 2016-02-13 15:24:45.000000000 
+0100
+++ new/spec/omniauth/strategies/gitlab_spec.rb 2018-01-10 22:35:01.000000000 
+0100
@@ -1,24 +1,19 @@
 require 'spec_helper'
 
 describe OmniAuth::Strategies::GitLab do
-
   let(:access_token) { double('AccessToken') }
   let(:parsed_response) { double('ParsedResponse') }
   let(:response) { double('Response', parsed: parsed_response) }
 
-  let(:enterprise_site)           { 'https://some.other.site.com/api/v3' }
-  let(:enterprise_authorize_url)  { '/oauth/authorize' }
-  let(:enterprise_token_url)      { '/oauth/access_token' }
+  let(:enterprise_site) { 'https://some.other.site.com/api/v3' }
 
   let(:gitlab_service) { OmniAuth::Strategies::GitLab.new({}) }
   let(:enterprise) do
-    OmniAuth::Strategies::GitLab.new('GITLAB_KEY', 'GITLAB_SECRET',
-                                         client_options: {
-                                             site: enterprise_site,
-                                             authorize_url: 
enterprise_authorize_url,
-                                             token_url: enterprise_token_url
-                                         },
-                                         redirect_url: 
'http://localhost:9292/callback_url'
+    OmniAuth::Strategies::GitLab.new(
+      'GITLAB_KEY',
+      'GITLAB_SECRET',
+      client_options: { site: enterprise_site },
+      redirect_url: 'http://localhost:9292/callback_url'
     )
   end
 
@@ -32,17 +27,13 @@
     context 'with defaults' do
       subject { gitlab_service.options.client_options }
 
-      its(:site) { is_expected.to eq 'https://gitlab.com' }
-      its(:authorize_url) { is_expected.to eq '/oauth/authorize' }
-      its(:token_url) { is_expected.to eq '/oauth/token' }
+      its(:site) { is_expected.to eq 'https://gitlab.com/api/v4' }
     end
 
     context 'with override' do
       subject { enterprise.options.client_options }
 
       its(:site) { is_expected.to eq enterprise_site }
-      its(:authorize_url) { is_expected.to eq enterprise_authorize_url }
-      its(:token_url) { is_expected.to eq enterprise_token_url }
     end
   end
 
@@ -60,7 +51,7 @@
 
   describe '#raw_info' do
     it 'sent request to current user endpoint' do
-      expect(access_token).to 
receive(:get).with('/api/v3/user').and_return(response)
+      expect(access_token).to receive(:get).with('user').and_return(response)
       expect(subject.raw_info).to eq(parsed_response)
     end
   end
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/spec/spec_helper.rb new/spec/spec_helper.rb
--- old/spec/spec_helper.rb     2016-02-13 15:24:45.000000000 +0100
+++ new/spec/spec_helper.rb     2018-01-10 22:35:01.000000000 +0100
@@ -1,18 +1,8 @@
-$:.unshift File.expand_path('..', __FILE__)
-$:.unshift File.expand_path('../../lib', __FILE__)
+$LOAD_PATH.unshift File.expand_path('..', __FILE__)
+$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
 require 'simplecov'
 SimpleCov.start
 require 'rspec'
 require 'rspec/its'
-require 'rack/test'
-require 'webmock/rspec'
 require 'omniauth'
 require 'omniauth-gitlab'
-
-RSpec.configure do |config|
-  config.include WebMock::API
-  config.include Rack::Test::Methods
-  config.extend  OmniAuth::Test::StrategyMacros, :type => :strategy
-end
-
-


Reply via email to