[Git][noosfero/noosfero][master] 3 commits: updating oauth plugin version

Leandro Nunes gitlab at mg.gitlab.com
Wed Jan 31 14:52:54 BRST 2018


Leandro Nunes pushed to branch master at Noosfero / noosfero


Commits:
439c285e by Leandro Nunes dos Santos at 2018-01-31T10:50:59-03:00
updating oauth plugin version

- - - - -
0d84926e by Leandro Nunes dos Santos at 2018-01-31T13:16:54-03:00
removing webpush unit test not valid for version 0.2.5 of webpush

- - - - -
9460599e by Leandro Nunes at 2018-01-31T16:52:40+00:00
Merge branch 'fix-oauth-plugin' into 'master'

updating oauth plugin version

See merge request noosfero/noosfero!1390
- - - - -


3 changed files:

- Gemfile
- plugins/oauth_client/Gemfile
- test/unit/web_push_test.rb


Changes:

=====================================
Gemfile
=====================================
--- a/Gemfile
+++ b/Gemfile
@@ -55,7 +55,7 @@ gem 'sass', '>= 3.4.6'
 gem 'sprockets-rails', '~> 2.1'
 
 gem 'serviceworker-rails', '~> 0.5.5'
-gem 'webpush',             '~> 0.3.3'
+gem 'webpush',             '~> 0.2.5'
 
 # gems to enable rails3 behaviour
 gem 'protected_attributes'


=====================================
plugins/oauth_client/Gemfile
=====================================
--- a/plugins/oauth_client/Gemfile
+++ b/plugins/oauth_client/Gemfile
@@ -1,8 +1,8 @@
 source "https://rubygems.org"
 
-gem 'omniauth', '~> 1.2.2'
-gem 'omniauth-facebook', '~> 2.0.0'
-gem 'omniauth-twitter', '~> 1.0.1'
-gem "omniauth-google-oauth2", '~> 0.2.6'
-gem "omniauth-oauth2", '~> 1.3.1'
+gem 'omniauth', '~> 1.3.1'
+gem 'omniauth-facebook', '~> 4.0.0'
+gem 'omniauth-twitter', '~> 1.2.1'
+gem "omniauth-google-oauth2", '~> 0.4.1'
+gem "omniauth-oauth2", '~> 1.4.0'
 gem "omniauth-github", '~> 1.1.2'


=====================================
test/unit/web_push_test.rb
=====================================
--- a/test/unit/web_push_test.rb
+++ b/test/unit/web_push_test.rb
@@ -18,19 +18,4 @@ class WebPushTest < ActiveSupport::TestCase
     WebPush.notify(subscription, {})
   end
 
-  should 'destroy the subscription when it raises InvalidSubscription' do
-    subscription = mock
-    subscription.stubs(:endpoint)
-    subscription.stubs(:keys).returns({})
-    subscription.stubs(:subject)
-    subscription.expects(:destroy).once
-
-    response = mock
-    response.stubs(:body)
-    Webpush.expects(:payload_send)
-           .raises(Webpush::InvalidSubscription.new(response, 'host'))
-
-    WebPush.notify(subscription, {})
-  end
-
 end



View it on GitLab: https://gitlab.com/noosfero/noosfero/compare/a34d35a992049cfb6c768a7b6782341c932c4cae...9460599e3de6ad8ecb8a4cbf235c5e66e17efafc

---
View it on GitLab: https://gitlab.com/noosfero/noosfero/compare/a34d35a992049cfb6c768a7b6782341c932c4cae...9460599e3de6ad8ecb8a4cbf235c5e66e17efafc
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20180131/5daeab83/attachment-0001.html>


More information about the Noosfero-dev mailing list