fastlane-plugin-teams_card 1.0.0 → 1.0.2

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: 4003ed21a14b91be8b3aa4baf4d7af316bbf9030a70a0f259dd7706cfa49f11f
4
- data.tar.gz: 2598117c03da52bc03b7110afe3930af99bf89a87457500ace5faabaec8dd24f
3
+ metadata.gz: cff2ba21f6f1a0e5bb809ed21800355127ab5c6eb5c485e7c389942ba5b7046e
4
+ data.tar.gz: a88bc0ac7cee0531d645eca9a5c92358d52bfa5dd99155a3d07b746a7092b401
5
5
  SHA512:
6
- metadata.gz: 5369980097336eeff75f8db7d61bae66ed3b7deb92ce120dd9619fb1f696b5259b48b0da43259e7b35b79e5764a56682b22d134c230e7080a18b7c0737cb3128
7
- data.tar.gz: d848efdaee8cfb7ecdaae15dbaf4147338bf6077caed21b3b8de0a9c881e1cd69a293dceb915121824b85997d071fd5e84facf47409de4d0a454156e6bd8def8
6
+ metadata.gz: b76a49b8885e5903e484cda6fe19f3f0973d5265147d9823c7b16b524c046bb246285627b593e9b49cc9b166b4b26e950b74b08188ba258f91d25fa8888a5138
7
+ data.tar.gz: 0aeaa187a00bbf5939536449ba1bf454271f5927a057fa2014620a9bf6f7b3ef7d3fe193a9f98a66a55d8577af90296b18d785849a289b0c4a4c860d291d8e1f
data/README.md CHANGED
@@ -1,6 +1,7 @@
1
1
  # Microsoft Teams `fastlane` plugin via Workflow
2
2
 
3
3
  [![fastlane Plugin Badge](https://rawcdn.githack.com/fastlane/fastlane/master/fastlane/assets/plugin-badge.svg)](https://rubygems.org/gems/fastlane-plugin-teams_card)
4
+ [![Gem Version](https://badge.fury.io/rb/fastlane-plugin-teams_card.svg)](https://badge.fury.io/rb/fastlane-plugin-teams_card)
4
5
 
5
6
  > ⚠️ Note: This plugin utilizes the latest **Workflows** app (rather than the [now-retired Office connectors](https://devblogs.microsoft.com/microsoft365dev/retirement-of-office-365-connectors-within-microsoft-teams/) used in other plugins)
6
7
 
@@ -112,8 +113,6 @@ fastlane action teams_card
112
113
 
113
114
  Check out the [example `Fastfile`](fastlane/Fastfile) to see how to use this plugin. Try it by cloning the repo, running `fastlane install_plugins` and `bundle exec fastlane test`.
114
115
 
115
- **Note to author:** Please set up a sample project to make it easy for users to explore what your plugin does. Provide everything that is necessary to try out the plugin in this project (including a sample Xcode/Android project if necessary)
116
-
117
116
  ## Run tests for this plugin
118
117
 
119
118
  To run both the tests, and code style validation, run
@@ -134,7 +134,7 @@ module Fastlane
134
134
 
135
135
  # Check if the message was successfully posted
136
136
  def self.is_message_success(response)
137
- if response.code.to_i == 202
137
+ if response.code.to_i.between?(200, 299)
138
138
  UI.message("🔔 The card was posted successfully.")
139
139
  true
140
140
  else
@@ -193,6 +193,48 @@ module Fastlane
193
193
  ]
194
194
  end
195
195
 
196
+ def self.example_code
197
+ [
198
+ 'teams_card(
199
+ workflow_url: "https://your.logic.azure.com:443/workflows/1234567890",
200
+ title: "Notification Title",
201
+ text: "A new release is ready for testing!",
202
+ image: "https://raw.githubusercontent.com/fastlane/boarding/master/app/assets/images/fastlane.png",
203
+ image_title: "Fastlane",
204
+ open_url: "https://beta.itunes.apple.com/v1/app/_YOUR_APP_ID_",
205
+ facts: [
206
+ {
207
+ "title" => "Environment",
208
+ "value" => "Staging"
209
+ },
210
+ {
211
+ "title" => "Release",
212
+ "value" => "1.0.3"
213
+ }
214
+ ]
215
+ )'
216
+ ]
217
+ end
218
+
219
+ def self.description
220
+ "Easily send a message to a Microsoft Teams channel or group chat through the Power Automate Webhook connector"
221
+ end
222
+
223
+ def self.details
224
+ "Send a message to a specific channel, group chat or chat on your Microsoft Teams organization via a Workflow of Power Automate"
225
+ end
226
+
227
+ def self.authors
228
+ ["Kondamon"]
229
+ end
230
+
231
+ def self.return_value
232
+ # If your method provides a return value, you can describe here what it does
233
+ end
234
+
235
+ def self.is_supported?(platform)
236
+ true
237
+ end
196
238
  # Rest of the methods...
197
239
  end
198
240
  end
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module TeamsCard
3
- VERSION = "1.0.0"
3
+ VERSION = "1.0.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-teams_card
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kondamon
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-09-01 00:00:00.000000000 Z
11
+ date: 2024-12-09 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: