fastlane-craft 1.2.1 → 1.2.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: f65c161b4cd62617e5a62762ea0e61457fe08f742640eac8124ca35ee19d61e2
4
- data.tar.gz: 6486cbdf302a845f6afbfa04657cb4e057f7fd0294a5f163b797da734ed22242
3
+ metadata.gz: 6ff4987c6d39e9334bcd80e0bca3b2107b5690d0a27443c6fe17ad01c1d8f131
4
+ data.tar.gz: 53da116018b4220d50ff4aacd8fb9f004be401b04a155e1704196f98a1ed5946
5
5
  SHA512:
6
- metadata.gz: 644b576214955a2df2df1fe1474266df89305802566a7d69da7d8fabe5615c27a7e8567d92985e4bb2ce6f90c74942bd13481f31c26719f15e18b51112fd9220
7
- data.tar.gz: 531efb0e074ace8f2dc2779cc10d94dd43aa4b0c9268f56c9ae6525c6f33786b170b34c821fe7902207a2c43f2d19ff7308ca19a2884c4aa887fd3090727f38b
6
+ metadata.gz: f42f2a0f9c38a4a4b8a5a6312e58a72384705f5a0f3ad6bb441936b79c6a1cfcd7efde229b07ef2e521de96437e2efa8b8b65fe74b24ed57d39d889730a800ee
7
+ data.tar.gz: 1a55fa9ba475cf14d6c120b31cdfbf190cc7c0659739a4cbe47690cd8d7fde59c701899fb7a055b08229efdf21e7e10ea72ee403100d19c798fcaee2cf0a6ed9
@@ -3,4 +3,4 @@ require_relative 'fastlane_craft/telegram_notifier'
3
3
  require_relative 'fastlane_craft/version'
4
4
 
5
5
  module FastlaneCraft
6
- end
6
+ end
@@ -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(key: :bot_api_token,
32
- env_name: 'FL_TELEGRAM_BOT_API_TOKEN',
33
- description: 'API Token for telegram bot',
34
- verify_block: proc do |value|
35
- UI.user_error!("No bot API token for TelegramAction given, pass using `bot_api_token: 'token'`") unless value && !value.empty?
36
- end),
37
- FastlaneCore::ConfigItem.new(key: :message,
38
- env_name: 'FL_TELEGRAM_MESSAGE',
39
- description: 'The message that should be displayed on Telegram',
40
- optional: true),
41
- FastlaneCore::ConfigItem.new(key: :chat_id,
42
- env_name: 'FL_TELEGRAM_CHAT_ID',
43
- description: 'telegram chat id',
44
- verify_block: proc do |value|
45
- UI.user_error!("No chat id for TelegramAction given, pass using `chat_id: 'chat id'`") unless value && !value.empty?
46
- end),
47
- FastlaneCore::ConfigItem.new(key: :parse_mode,
48
- env_name: 'FL_TELEGRAM_MESSAGE_PARSE_MODE',
49
- description: 'telegram message parse mode',
50
- optional: true)
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
- bot_api_token: "bot api token here",
59
- chat_id: "telegram chat id here",
60
- message: "message here"
61
- parse_mode: "message parse mode here"
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
- true
76
+ def self.is_supported?(platform)
77
+ platform == :ios
72
78
  end
73
79
 
74
80
  def self.category
@@ -1,3 +1,3 @@
1
1
  module FastlaneCraft
2
- VERSION = '1.2.1'.freeze
2
+ VERSION = '1.2.3'.freeze
3
3
  end
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.1
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-10 00:00:00.000000000 Z
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