Your message dated Mon, 8 Apr 2019 13:14:46 +0200
with message-id <[email protected]>
and subject line Re: ruby-hangouts-chat: diff for NMU version 0.0.5-1.1
has caused the Debian Bug report #926557,
regarding ruby-hangouts-chat: diff for NMU version 0.0.5-1.1
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
926557: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=926557
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: ruby-hangouts-chat
Version: 0.0.5-1
Severity: normal
Tags: patch pending
Dear maintainer,
I've prepared an NMU for ruby-hangouts-chat (versioned as 0.0.5-1.1) and
uploaded it to DELAYED/5. Please feel free to tell me if I
should delay it longer.
Regards.
diff -Nru ruby-hangouts-chat-0.0.5/debian/changelog ruby-hangouts-chat-0.0.5/debian/changelog
--- ruby-hangouts-chat-0.0.5/debian/changelog 2018-11-04 09:30:15.000000000 +0100
+++ ruby-hangouts-chat-0.0.5/debian/changelog 2019-04-06 23:26:10.000000000 +0200
@@ -1,3 +1,10 @@
+ruby-hangouts-chat (0.0.5-1.1) unstable; urgency=medium
+
+ * Non-maintainer upload.
+ * Disable tests requiring network access. Closing: #926247
+
+ -- Tobias Frost <[email protected]> Sat, 06 Apr 2019 23:26:10 +0200
+
ruby-hangouts-chat (0.0.5-1) unstable; urgency=medium
* Initial release (Closes: #912769)
diff -Nru ruby-hangouts-chat-0.0.5/debian/patches/disable_network_test.patch ruby-hangouts-chat-0.0.5/debian/patches/disable_network_test.patch
--- ruby-hangouts-chat-0.0.5/debian/patches/disable_network_test.patch 1970-01-01 01:00:00.000000000 +0100
+++ ruby-hangouts-chat-0.0.5/debian/patches/disable_network_test.patch 2019-04-06 23:16:52.000000000 +0200
@@ -0,0 +1,105 @@
+--- a/hangouts-chat.gemspec
++++ b/hangouts-chat.gemspec
+@@ -14,12 +14,12 @@
+ s.date = "2018-03-31"
+ s.description = "Send messages to G Suite Hangouts Chat rooms using incoming webhooks and Net::HTTP::Post".freeze
+ s.email = "[email protected]".freeze
+- s.files = ["CHANGELOG.md".freeze, "LICENSE".freeze, "README.md".freeze, "Rakefile".freeze, "lib/hangouts_chat.rb".freeze, "lib/hangouts_chat/exceptions.rb".freeze, "lib/hangouts_chat/http.rb".freeze, "lib/hangouts_chat/version.rb".freeze, "test/hangouts_chat/http_test.rb".freeze, "test/hangouts_chat_test.rb".freeze, "test/test_helper.rb".freeze]
++ s.files = ["CHANGELOG.md".freeze, "LICENSE".freeze, "README.md".freeze, "Rakefile".freeze, "lib/hangouts_chat.rb".freeze, "lib/hangouts_chat/exceptions.rb".freeze, "lib/hangouts_chat/version.rb".freeze, "test/hangouts_chat_test.rb".freeze, "test/test_helper.rb".freeze]
+ s.homepage = "https://github.com/enzinia/hangouts-chat".freeze
+ s.licenses = ["MIT".freeze]
+ s.rubygems_version = "2.7.6".freeze
+ s.summary = "Library for sending messages to Hangouts Chat rooms".freeze
+- s.test_files = ["test/hangouts_chat/http_test.rb".freeze, "test/hangouts_chat_test.rb".freeze, "test/test_helper.rb".freeze]
++ s.test_files = ["test/test_helper.rb".freeze]
+
+ if s.respond_to? :specification_version then
+ s.specification_version = 4
+--- a/test/hangouts_chat_test.rb
++++ /dev/null
+@@ -1,51 +0,0 @@
+-require 'test_helper'
+-
+-class HangoutsChatTest < Minitest::Test
+- def setup
+- @webhook_url = 'https://chat.googleapis.com/v1/spaces/space_id/' \
+- 'messages?key=secret_key&token=secret_token'
+- @sender = HangoutsChat::Sender.new(@webhook_url)
+- end
+-
+- def test_initialized_with_valid_variables
+- url = @sender.instance_variable_get(:@url)
+- http = @sender.instance_variable_get(:@http)
+- assert_equal @webhook_url, url
+- assert_equal HangoutsChat::Sender::HTTP, http.class
+- end
+-
+- def test_simple_message_request
+- stub_request(:any, /chat\.googleapis\.com/).to_return(status: 200)
+- message = 'Test simple message'
+-
+- @sender.simple(message)
+-
+- assert_requested :post, @webhook_url, times: 1, body:
+- { text: message }.to_json
+- end
+-
+- def test_card_message_request
+- stub_request(:any, /chat\.googleapis\.com/).to_return(status: 200)
+- header = { title: 'Pizza Bot Customer Support',
+- subtitle: '[email protected]',
+- imageUrl: 'https://goo.gl/aeDtrS' }
+- sections = [{ keyValue: { topLabel: 'Order No.', content: '12345' } },
+- { keyValue: { topLabel: 'Status', content: 'In Delivery' } }]
+-
+- @sender.card(header, sections)
+-
+- assert_requested :post, @webhook_url, times: 1, body:
+- { cards: [header: header, sections: sections] }.to_json
+- end
+-
+- def test_api_error_exception_message
+- stub_request(:any, /chat\.googleapis\.com/)
+- .to_return(status: [403, 'Forbidden'], body: 'Response body')
+-
+- exception = assert_raises HangoutsChat::Sender::APIError do
+- @sender.simple('Exception test')
+- end
+- assert_match(/^HTTP 403 Forbidden$/, exception.message)
+- assert_match(/^Body:\nResponse body$/, exception.message)
+- end
+-end
+--- a/test/hangouts_chat/http_test.rb
++++ /dev/null
+@@ -1,31 +0,0 @@
+-require 'test_helper'
+-
+-class HTTPTest < Minitest::Test
+- def setup
+- @url = 'https://example.com'
+- @http = HangoutsChat::Sender::HTTP.new(@url)
+- end
+-
+- def test_initialized_with_valid_uri
+- uri = @http.instance_variable_get(:@uri)
+- assert_equal 'https', uri.scheme
+- assert_equal 'example.com', uri.host
+- end
+-
+- def test_initialized_with_valid_post_request
+- req = @http.instance_variable_get(:@req)
+- assert_equal 'POST', req.method
+- assert_equal 'application/json', req['Content-Type']
+- end
+-
+- def test_post_request
+- stub_request(:any, @url)
+- payload = 'Test text'
+-
+- @http.post(payload)
+-
+- assert_requested :post, @url, times: 1, body: payload.to_json, headers:
+- { 'Content-Type' => 'application/json' }
+- assert_not_requested :get, @url
+- end
+-end
diff -Nru ruby-hangouts-chat-0.0.5/debian/patches/series ruby-hangouts-chat-0.0.5/debian/patches/series
--- ruby-hangouts-chat-0.0.5/debian/patches/series 1970-01-01 01:00:00.000000000 +0100
+++ ruby-hangouts-chat-0.0.5/debian/patches/series 2019-04-06 22:39:51.000000000 +0200
@@ -0,0 +1 @@
+disable_network_test.patch
signature.asc
Description: PGP signature
--- End Message ---
--- Begin Message ---
On Sat, 6 Apr 2019 23:29:19 +0200 Tobias Frost <[email protected]> wrote:
> Package: ruby-hangouts-chat
> Version: 0.0.5-1
> Severity: normal
> Tags: patch pending
>
> Dear maintainer,
>
> I've prepared an NMU for ruby-hangouts-chat (versioned as 0.0.5-1.1) and
> uploaded it to DELAYED/5. Please feel free to tell me if I
> should delay it longer.
>
maintainer(s) reacted with a maintainer upload :)
closing,
G.
> Regards.
>
--- End Message ---
_______________________________________________
Pkg-ruby-extras-maintainers mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/pkg-ruby-extras-maintainers