fastlane-craft 1.2.1 → 1.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/fastlane_craft.rb +1 -1
- data/lib/fastlane_craft/tag_release.rb +49 -0
- data/lib/fastlane_craft/telegram.rb +37 -31
- data/lib/fastlane_craft/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6ff4987c6d39e9334bcd80e0bca3b2107b5690d0a27443c6fe17ad01c1d8f131
|
4
|
+
data.tar.gz: 53da116018b4220d50ff4aacd8fb9f004be401b04a155e1704196f98a1ed5946
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f42f2a0f9c38a4a4b8a5a6312e58a72384705f5a0f3ad6bb441936b79c6a1cfcd7efde229b07ef2e521de96437e2efa8b8b65fe74b24ed57d39d889730a800ee
|
7
|
+
data.tar.gz: 1a55fa9ba475cf14d6c120b31cdfbf190cc7c0659739a4cbe47690cd8d7fde59c701899fb7a055b08229efdf21e7e10ea72ee403100d19c798fcaee2cf0a6ed9
|
data/lib/fastlane_craft.rb
CHANGED
@@ -0,0 +1,49 @@
|
|
1
|
+
require_relative 'telegram_notifier'
|
2
|
+
|
3
|
+
module Fastlane
|
4
|
+
module Actions
|
5
|
+
class TelegramAction < Action
|
6
|
+
include FastlaneCraft
|
7
|
+
|
8
|
+
def self.run(params)
|
9
|
+
puts params
|
10
|
+
end
|
11
|
+
|
12
|
+
def self.description
|
13
|
+
'Release app according to the latest tag'
|
14
|
+
end
|
15
|
+
|
16
|
+
def self.details
|
17
|
+
'Release app according to the latest tag'
|
18
|
+
end
|
19
|
+
|
20
|
+
def self.available_options
|
21
|
+
[
|
22
|
+
FastlaneCore::ConfigItem.new(
|
23
|
+
key: :target_suffix,
|
24
|
+
description: 'Specific target suffix',
|
25
|
+
optional: true
|
26
|
+
)
|
27
|
+
]
|
28
|
+
end
|
29
|
+
|
30
|
+
def self.example_code
|
31
|
+
[
|
32
|
+
'tag_release(info_plist_path: "/path/to/info/plist")'
|
33
|
+
]
|
34
|
+
end
|
35
|
+
|
36
|
+
def self.authors
|
37
|
+
%w[sroik]
|
38
|
+
end
|
39
|
+
|
40
|
+
def self.is_supported?(platform)
|
41
|
+
platform == :ios
|
42
|
+
end
|
43
|
+
|
44
|
+
def self.category
|
45
|
+
:notifications
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
@@ -14,10 +14,6 @@ module Fastlane
|
|
14
14
|
)
|
15
15
|
end
|
16
16
|
|
17
|
-
#####################################################
|
18
|
-
# @!group Documentation
|
19
|
-
#####################################################
|
20
|
-
|
21
17
|
def self.description
|
22
18
|
'Send a success/error message to your Telegram group'
|
23
19
|
end
|
@@ -28,26 +24,36 @@ module Fastlane
|
|
28
24
|
|
29
25
|
def self.available_options
|
30
26
|
[
|
31
|
-
FastlaneCore::ConfigItem.new(
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
27
|
+
FastlaneCore::ConfigItem.new(
|
28
|
+
key: :bot_api_token,
|
29
|
+
env_name: 'FL_TELEGRAM_BOT_API_TOKEN',
|
30
|
+
description: 'API Token for telegram bot',
|
31
|
+
verify_block: proc do |value|
|
32
|
+
msg = "No bot API token for TelegramAction given, pass using `bot_api_token: 'token'`"
|
33
|
+
UI.user_error!(msg) unless value && !value.empty?
|
34
|
+
end
|
35
|
+
),
|
36
|
+
FastlaneCore::ConfigItem.new(
|
37
|
+
key: :message,
|
38
|
+
env_name: 'FL_TELEGRAM_MESSAGE',
|
39
|
+
description: 'The message that should be displayed on Telegram',
|
40
|
+
optional: true
|
41
|
+
),
|
42
|
+
FastlaneCore::ConfigItem.new(
|
43
|
+
key: :chat_id,
|
44
|
+
env_name: 'FL_TELEGRAM_CHAT_ID',
|
45
|
+
description: 'telegram chat id',
|
46
|
+
verify_block: proc do |value|
|
47
|
+
msg = "No chat id for TelegramAction given, pass using `chat_id: 'chat id'`"
|
48
|
+
UI.user_error!(msg) unless value && !value.empty?
|
49
|
+
end
|
50
|
+
),
|
51
|
+
FastlaneCore::ConfigItem.new(
|
52
|
+
key: :parse_mode,
|
53
|
+
env_name: 'FL_TELEGRAM_MESSAGE_PARSE_MODE',
|
54
|
+
description: 'telegram message parse mode',
|
55
|
+
optional: true
|
56
|
+
)
|
51
57
|
]
|
52
58
|
end
|
53
59
|
|
@@ -55,11 +61,11 @@ module Fastlane
|
|
55
61
|
[
|
56
62
|
'telegram(message: "App successfully released!")',
|
57
63
|
'telegram(
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
64
|
+
bot_api_token: "bot api token here",
|
65
|
+
chat_id: "telegram chat id here",
|
66
|
+
message: "message here"
|
67
|
+
parse_mode: "message parse mode here"
|
68
|
+
)'
|
63
69
|
]
|
64
70
|
end
|
65
71
|
|
@@ -67,8 +73,8 @@ module Fastlane
|
|
67
73
|
%w[sroik elfenlaid]
|
68
74
|
end
|
69
75
|
|
70
|
-
def self.is_supported?(
|
71
|
-
|
76
|
+
def self.is_supported?(platform)
|
77
|
+
platform == :ios
|
72
78
|
end
|
73
79
|
|
74
80
|
def self.category
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastlane-craft
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- sroik
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2018-01-
|
12
|
+
date: 2018-01-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -102,6 +102,7 @@ extensions: []
|
|
102
102
|
extra_rdoc_files: []
|
103
103
|
files:
|
104
104
|
- lib/fastlane_craft.rb
|
105
|
+
- lib/fastlane_craft/tag_release.rb
|
105
106
|
- lib/fastlane_craft/telegram.rb
|
106
107
|
- lib/fastlane_craft/telegram_notifier.rb
|
107
108
|
- lib/fastlane_craft/version.rb
|