fastlane-plugin-google_chat 0.1.1 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 27de1b88c797fd36e199556457d5ed063dfc5bbe72a93eaec0ac96880dcf33f1
4
- data.tar.gz: 2c7199e7a82c65d6428d295d617af2021e2f118f9290e77e5a601d9c831caa87
3
+ metadata.gz: 54c0b30fdb4a04d9e3867e9ff0e910b1670789c7257a740feb0ae48ffee2a977
4
+ data.tar.gz: b9cf66558458ee3a7d59a331288ffc9cc1f77e6c27928b4d9422c8c107a926ac
5
5
  SHA512:
6
- metadata.gz: b6b59c007fcc8226af72c54c23f4dd9d36e9006c65f1c711b9f123370a4804ceb167a32b9c3cdf8d1450a040bc8138172b92dbeb187b7c2a390b6ff3962d2494
7
- data.tar.gz: ae9ced669991b6fb4225dfa34129250774eb8216669dc23bea10ddffb811aff6c46b9b69111d7056143c2dd3f38b322d14aa6f85b1c834b074bae225e23df2d7
6
+ metadata.gz: ec096822a1761d5b0807fb0f19b2454a6361a485bd92e76d5eef9e7f6b34c0e99153252f355e8c92e90b72d412a6238151f55970cd94c67500230da6812e6ca6
7
+ data.tar.gz: df7a85a71858817a3b7976db033e248d48ded1f1f8b250f6bf12d1e2fa0efd6c29a52f88f43a8de44a055c187c9fa9b9652655f2cb9adc0ce05b0a0756829aa0
@@ -14,12 +14,16 @@
14
14
  {
15
15
  header: {
16
16
  title: params[:title],
17
- subtitle: params[:description],
18
17
  imageUrl: params[:imageUrl]
19
18
  },
20
19
  sections: [
21
20
  {
22
21
  widgets: [
22
+ {
23
+ textParagraph: {
24
+ text: params[:description]
25
+ }
26
+ },
23
27
  {
24
28
  keyValue: {
25
29
  topLabel: params[:section1Title],
@@ -52,13 +56,14 @@
52
56
  # Create the HTTP objects
53
57
  http = Net::HTTP.new(uri.host, uri.port)
54
58
  http.use_ssl = true
55
- http.verify_mode = OpenSSL::SSL::VERIFY_PEER
59
+ # http.verify_mode = OpenSSL::SSL::VERIFY_NONE
56
60
  request = Net::HTTP::Post.new(uri.request_uri)
61
+ request["Content-Type"] = "application/json"
57
62
  request.body = cards.to_json
58
63
 
59
64
  # Send the request
60
65
  response = http.request(request)
61
-
66
+ # + response.read_body
62
67
  UI.message("Message sent!")
63
68
  end
64
69
 
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module GoogleChat
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-google_chat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Narlei Américo Moreira
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-05-17 00:00:00.000000000 Z
11
+ date: 2020-12-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry
@@ -136,7 +136,7 @@ dependencies:
136
136
  - - ">="
137
137
  - !ruby/object:Gem::Version
138
138
  version: 2.122.0
139
- description:
139
+ description:
140
140
  email: narlei.guitar@gmail.com
141
141
  executables: []
142
142
  extensions: []
@@ -152,7 +152,7 @@ homepage: https://github.com/narlei/fastlane-plugin-google-chat
152
152
  licenses:
153
153
  - MIT
154
154
  metadata: {}
155
- post_install_message:
155
+ post_install_message:
156
156
  rdoc_options: []
157
157
  require_paths:
158
158
  - lib
@@ -167,8 +167,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
167
167
  - !ruby/object:Gem::Version
168
168
  version: '0'
169
169
  requirements: []
170
- rubygems_version: 3.0.1
171
- signing_key:
170
+ rubygems_version: 3.1.4
171
+ signing_key:
172
172
  specification_version: 4
173
173
  summary: Send messages to Google Chat
174
174
  test_files: []