fastlane-plugin-stream_actions 0.3.74 → 0.3.75
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fd731389e04ce8531c246f7f7beb22f076e237420f697e9f671b62d76a2a3026
|
4
|
+
data.tar.gz: 759b2ba40dc613a9f7e0355f2c1db9fe9d358c181efab0f7d77b466a7b5ee4cc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 948a2d4cb05f7831380db12c388bac36667ade5f59b8c5c814830bca2ce3141f9c7e048d92ed085d8c89c1a600f64a3db7a1d0093ac55192f4ba95ce71e0023e
|
7
|
+
data.tar.gz: 2c156ae731e21113389a349d2890913f239e778b86ae73663df6a6e998970e0dcb593cc09e25195e1df889196702bfe57bcc8a40033972e63d388c3dfd802e25
|
@@ -0,0 +1,35 @@
|
|
1
|
+
module Fastlane
|
2
|
+
module Actions
|
3
|
+
class AddSnapshotToCurrentVersionAction < Action
|
4
|
+
def self.run(params)
|
5
|
+
content = File.read(params[:file_path])
|
6
|
+
current_version = content.match(/String\s+=\s+"([\d.]+).*"/)[1]
|
7
|
+
updated_version = "#{current_version}-SNAPSHOT"
|
8
|
+
new_content = content.gsub!(/"[^"]+"/, "\"#{updated_version}\"")
|
9
|
+
File.open(params[:file_path], 'w') { |f| f.puts(new_content) }
|
10
|
+
UI.important("Replaced #{current_version} with #{updated_version} 📝")
|
11
|
+
end
|
12
|
+
|
13
|
+
#####################################################
|
14
|
+
# @!group Documentation
|
15
|
+
#####################################################
|
16
|
+
|
17
|
+
def self.description
|
18
|
+
'Add snapshot postfix to the current release version'
|
19
|
+
end
|
20
|
+
|
21
|
+
def self.available_options
|
22
|
+
[
|
23
|
+
FastlaneCore::ConfigItem.new(
|
24
|
+
key: :file_path,
|
25
|
+
description: 'File with a version that needs to be a snapshot'
|
26
|
+
)
|
27
|
+
]
|
28
|
+
end
|
29
|
+
|
30
|
+
def self.is_supported?(platform)
|
31
|
+
true
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-plugin-stream_actions
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.75
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GetStream
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-11-
|
11
|
+
date: 2024-11-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: xctest_list
|
@@ -228,6 +228,7 @@ extra_rdoc_files: []
|
|
228
228
|
files:
|
229
229
|
- README.md
|
230
230
|
- lib/fastlane/plugin/stream_actions.rb
|
231
|
+
- lib/fastlane/plugin/stream_actions/actions/add_snapshot_to_current_version.rb
|
231
232
|
- lib/fastlane/plugin/stream_actions/actions/allure_api.rb
|
232
233
|
- lib/fastlane/plugin/stream_actions/actions/allure_create_launch.rb
|
233
234
|
- lib/fastlane/plugin/stream_actions/actions/allure_create_testcase.rb
|