Hello community, here is the log from the commit of package rubygem-oauth2 for openSUSE:Factory checked in at 2020-05-11 13:41:45 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rubygem-oauth2 (Old) and /work/SRC/openSUSE:Factory/.rubygem-oauth2.new.2738 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-oauth2" Mon May 11 13:41:45 2020 rev:4 rq:802352 version:1.4.4 Changes: -------- --- /work/SRC/openSUSE:Factory/rubygem-oauth2/rubygem-oauth2.changes 2020-03-07 21:39:17.976315136 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-oauth2.new.2738/rubygem-oauth2.changes 2020-05-11 13:41:47.297174799 +0200 @@ -1,0 +2,10 @@ +Thu May 7 21:08:58 UTC 2020 - Stephan Kulow <[email protected]> + +- updated to version 1.4.4 + see installed CHANGELOG.md + + ## [1.4.4] - 2020-02-12 + + - [#408](https://github.com/oauth-xx/oauth2/pull/408) - Fixed expires_at for formatted time (@Lomey) + +------------------------------------------------------------------- Old: ---- oauth2-1.4.3.gem New: ---- oauth2-1.4.4.gem ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rubygem-oauth2.spec ++++++ --- /var/tmp/diff_new_pack.w3q6Oy/_old 2020-05-11 13:41:48.069176438 +0200 +++ /var/tmp/diff_new_pack.w3q6Oy/_new 2020-05-11 13:41:48.073176446 +0200 @@ -24,7 +24,7 @@ # Name: rubygem-oauth2 -Version: 1.4.3 +Version: 1.4.4 Release: 0 %define mod_name oauth2 %define mod_full_name %{mod_name}-%{version} ++++++ oauth2-1.4.3.gem -> oauth2-1.4.4.gem ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/CHANGELOG.md new/CHANGELOG.md --- old/CHANGELOG.md 2020-01-29 10:01:48.000000000 +0100 +++ new/CHANGELOG.md 2020-02-13 01:04:56.000000000 +0100 @@ -5,11 +5,16 @@ - no changes yet +## [1.4.4] - 2020-02-12 + +- [#408](https://github.com/oauth-xx/oauth2/pull/408) - Fixed expires_at for formatted time (@Lomey) + ## [1.4.3] - 2020-01-29 - [#483](https://github.com/oauth-xx/oauth2/pull/483) - add project metadata to gemspec (@orien) - [#495](https://github.com/oauth-xx/oauth2/pull/495) - support additional types of access token requests (@SteveyblamFreeagent, @thomcorley, @dgholz) - Adds support for private_key_jwt and tls_client_auth +- [#433](https://github.com/oauth-xx/oauth2/pull/433) - allow field names with square brackets and numbers in params (@asm256) ## [1.4.2] - 2019-10-01 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/README.md new/README.md --- old/README.md 2020-01-29 10:01:48.000000000 +0100 +++ new/README.md 2020-02-13 01:04:56.000000000 +0100 @@ -4,6 +4,7 @@ | Version | Release Date | Readme | |----------|--------------|----------------------------------------------------------| +| 1.4.4 | Feb 12, 2020 | https://github.com/oauth-xx/oauth2/blob/v1.4.4/README.md | | 1.4.3 | Jan 29, 2020 | https://github.com/oauth-xx/oauth2/blob/v1.4.3/README.md | | 1.4.2 | Oct 1, 2019 | https://github.com/oauth-xx/oauth2/blob/v1.4.2/README.md | | 1.4.1 | Oct 13, 2018 | https://github.com/oauth-xx/oauth2/blob/v1.4.1/README.md | Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/oauth2/access_token.rb new/lib/oauth2/access_token.rb --- old/lib/oauth2/access_token.rb 2020-01-29 10:01:48.000000000 +0100 +++ new/lib/oauth2/access_token.rb 2020-02-13 01:04:56.000000000 +0100 @@ -46,7 +46,7 @@ end @expires_in ||= opts.delete('expires') @expires_in &&= @expires_in.to_i - @expires_at &&= @expires_at.to_i + @expires_at &&= convert_expires_at(@expires_at) @expires_at ||= Time.now.to_i + @expires_in if @expires_in @options = {:mode => opts.delete(:mode) || :header, :header_format => opts.delete(:header_format) || 'Bearer %s', @@ -169,5 +169,12 @@ raise("invalid :mode option of #{options[:mode]}") end end + + def convert_expires_at(expires_at) + expires_at_i = expires_at.to_i + return expires_at_i if expires_at_i > Time.now.utc.to_i + return Time.parse(expires_at).to_i if expires_at.is_a?(String) + expires_at_i + end end end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/oauth2/version.rb new/lib/oauth2/version.rb --- old/lib/oauth2/version.rb 2020-01-29 10:01:48.000000000 +0100 +++ new/lib/oauth2/version.rb 2020-02-13 01:04:56.000000000 +0100 @@ -20,7 +20,7 @@ # # @return [Integer] def patch - 3 + 4 end # The pre-release version, if any diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata --- old/metadata 2020-01-29 10:01:48.000000000 +0100 +++ new/metadata 2020-02-13 01:04:56.000000000 +0100 @@ -1,7 +1,7 @@ --- !ruby/object:Gem::Specification name: oauth2 version: !ruby/object:Gem::Version - version: 1.4.3 + version: 1.4.4 platform: ruby authors: - Peter Boling @@ -10,7 +10,7 @@ autorequire: bindir: exe cert_chain: [] -date: 2020-01-29 00:00:00.000000000 Z +date: 2020-02-13 00:00:00.000000000 Z dependencies: - !ruby/object:Gem::Dependency name: faraday @@ -334,9 +334,9 @@ - MIT metadata: bug_tracker_uri: https://github.com/oauth-xx/oauth2/issues - changelog_uri: https://github.com/oauth-xx/oauth2/blob/v1.4.3/CHANGELOG.md - documentation_uri: https://www.rubydoc.info/gems/oauth2/1.4.3 - source_code_uri: https://github.com/oauth-xx/oauth2/tree/v1.4.3 + changelog_uri: https://github.com/oauth-xx/oauth2/blob/v1.4.4/CHANGELOG.md + documentation_uri: https://www.rubydoc.info/gems/oauth2/1.4.4 + source_code_uri: https://github.com/oauth-xx/oauth2/tree/v1.4.4 wiki_uri: https://github.com/oauth-xx/oauth2/wiki post_install_message: rdoc_options: []
