Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 2 Jan 2018 15:34:24 +0000 (UTC)
From:      Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r457888 - in head/net/rubygem-omniauth-azure-oauth2: . files
Message-ID:  <201801021534.w02FYONG018974@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sunpoet
Date: Tue Jan  2 15:34:24 2018
New Revision: 457888
URL: https://svnweb.freebsd.org/changeset/ports/457888

Log:
  Allow build with rubygem-jwt 2.0+
  
  - Fix gemspec for rubygem-jwt 2.1.0 update
  - Bump PORTREVISION for package change

Added:
  head/net/rubygem-omniauth-azure-oauth2/files/
  head/net/rubygem-omniauth-azure-oauth2/files/patch-gemspec   (contents, props changed)
  head/net/rubygem-omniauth-azure-oauth2/files/patch-lib-omniauth-strategies-azure_oauth2.rb   (contents, props changed)
Modified:
  head/net/rubygem-omniauth-azure-oauth2/Makefile

Modified: head/net/rubygem-omniauth-azure-oauth2/Makefile
==============================================================================
--- head/net/rubygem-omniauth-azure-oauth2/Makefile	Tue Jan  2 15:34:19 2018	(r457887)
+++ head/net/rubygem-omniauth-azure-oauth2/Makefile	Tue Jan  2 15:34:24 2018	(r457888)
@@ -3,6 +3,7 @@
 
 PORTNAME=	omniauth-azure-oauth2
 PORTVERSION=	0.0.9
+PORTREVISION=	1
 CATEGORIES=	net rubygems
 MASTER_SITES=	RG
 

Added: head/net/rubygem-omniauth-azure-oauth2/files/patch-gemspec
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/rubygem-omniauth-azure-oauth2/files/patch-gemspec	Tue Jan  2 15:34:24 2018	(r457888)
@@ -0,0 +1,11 @@
+--- omniauth-azure-oauth2.gemspec.orig	2017-12-06 18:00:39 UTC
++++ omniauth-azure-oauth2.gemspec
+@@ -22,7 +22,7 @@ Gem::Specification.new do |s|
+ 
+     if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
+       s.add_runtime_dependency(%q<omniauth>.freeze, ["~> 1.0"])
+-      s.add_runtime_dependency(%q<jwt>.freeze, ["~> 1.0"])
++      s.add_runtime_dependency(%q<jwt>.freeze, [">= 1.0", "< 3.0"])
+       s.add_runtime_dependency(%q<omniauth-oauth2>.freeze, ["~> 1.4"])
+       s.add_development_dependency(%q<rspec>.freeze, [">= 2.14.0"])
+       s.add_development_dependency(%q<rake>.freeze, [">= 0"])

Added: head/net/rubygem-omniauth-azure-oauth2/files/patch-lib-omniauth-strategies-azure_oauth2.rb
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/rubygem-omniauth-azure-oauth2/files/patch-lib-omniauth-strategies-azure_oauth2.rb	Tue Jan  2 15:34:24 2018	(r457888)
@@ -0,0 +1,11 @@
+--- lib/omniauth/strategies/azure_oauth2.rb.orig	2017-12-06 18:00:39 UTC
++++ lib/omniauth/strategies/azure_oauth2.rb
+@@ -61,7 +61,7 @@ module OmniAuth
+ 
+       def raw_info
+         # it's all here in JWT http://msdn.microsoft.com/en-us/library/azure/dn195587.aspx
+-        @raw_info ||= ::JWT.decode(access_token.token, nil, false).first
++        @raw_info ||= ::JWT.decode(access_token.token, nil, false, algorithm: 'RS256').first
+       end
+ 
+     end



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201801021534.w02FYONG018974>