fastlane-plugin-stream_actions 0.1.2 → 0.1.4

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: 24de8c23f06a9cbda0b9eef312b28303c1e6ef6b0d1cb5b72cdf5eaaee03b582
4
- data.tar.gz: ba45fc47a3248fb3b780826e3d2200c3dd24ec8b89ebd4978acffc35dd0e56cf
3
+ metadata.gz: d86c11c6bb9a4e8d5f01ffbbf5d8ad1abbe5f5fd936c024337e90e4efd9c95b9
4
+ data.tar.gz: 92f4ccaa57ac8fe1c3b5a313fa2641c03fe6e29fe1c94502f2fe00a0f8e66cfd
5
5
  SHA512:
6
- metadata.gz: af79d87f7796eb3ba55fb9f9451885dfbd6fd0b3dab27bd96fa4542b10a27dcedf69e032e13fdc26a1b6ae4b37d550f6ebc953c6e845e2fcc93825ec2467cfe3
7
- data.tar.gz: f3884039a480f3516b0fd443726d0f5780bfdc4a8d221429d4290f7fde5f617994e2d25cb4d564c9933102f8408c9b90b932d75a2b1d0f0adea6e3ac2ef1270c
6
+ metadata.gz: d5f6de7ee9c8595e380cb2a1381ccb18f6dd5df71458ff99d53ac8ff57c17b6f887db0624b767dd0f8cab18d11abd7a0d2d6d4ee5d529f933fbd7da645c270b0
7
+ data.tar.gz: 44fe021c2bb9535f6ea7de8db84776e27473efd42ff667c5b3afffcd58938986f55db61d30a97fc5bd335fbbc9863001aabc18cb9a8317af6a3d6e7965f66f0a
@@ -13,7 +13,7 @@ module Fastlane
13
13
  return true if changed_files.size == 100 # TODO: https://github.com/cli/cli/issues/5368
14
14
 
15
15
  changed_files.select! do |path|
16
- params[:sources][params[:type].to_sym].any? { |required| path.start_with?(required) }
16
+ params[:sources][params[:type]].any? { |required| path.start_with?(required) }
17
17
  end
18
18
 
19
19
  changed_files.size.positive?
@@ -32,6 +32,7 @@ module Fastlane
32
32
  FastlaneCore::ConfigItem.new(
33
33
  key: :sources,
34
34
  description: 'Array of paths to scan',
35
+ is_string: false,
35
36
  verify_block: proc do |source|
36
37
  UI.user_error!("Sources have to be specified") unless source
37
38
  end
@@ -39,6 +40,7 @@ module Fastlane
39
40
  FastlaneCore::ConfigItem.new(
40
41
  key: :type,
41
42
  description: 'Type of the check that was triggered',
43
+ is_string: false,
42
44
  verify_block: proc do |type|
43
45
  UI.user_error!("Type has to be specified") unless type
44
46
  end
@@ -2,9 +2,9 @@ module Fastlane
2
2
  module Actions
3
3
  class ReadChangelogAction < Action
4
4
  def self.run(params)
5
- UI.user_error!('You need to pass the version of the release you want to obtain the changelog from') unless options[:version]
5
+ UI.user_error!('You need to pass the version of the release you want to obtain the changelog from') unless params[:version]
6
6
 
7
- UI.message("Getting changelog for #{options[:version]}")
7
+ UI.message("Getting changelog for #{params[:version]}")
8
8
  reading_changelog = false
9
9
  changes = ''
10
10
  changelog_lines = File.readlines('../CHANGELOG.md')
@@ -16,11 +16,11 @@ module Fastlane
16
16
  changes << line
17
17
  end
18
18
 
19
- reading_changelog = true if line.start_with?("#{start_token}#{options[:version]}")
19
+ reading_changelog = true if line.start_with?("#{start_token}#{params[:version]}")
20
20
  end
21
21
 
22
- UI.user_error!("No changelog found for #{options[:version]}") unless changes.length > 0
23
- UI.success("Changelog for #{options[:version]}: \n#{changes}")
22
+ UI.user_error!("No changelog found for #{params[:version]}") unless changes.length > 0
23
+ UI.success("Changelog for #{params[:version]}: \n#{changes}")
24
24
  changes
25
25
  end
26
26
 
@@ -34,6 +34,7 @@ module Fastlane
34
34
  FastlaneCore::ConfigItem.new(
35
35
  key: :env_vars,
36
36
  description: 'The environment variables to add to test plan',
37
+ is_string: false,
37
38
  verify_block: proc do |path|
38
39
  UI.user_error!("The environment variables array should not be empty") if env_vars.empty?
39
40
  end
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module StreamActions
3
- VERSION = "0.1.2"
3
+ VERSION = "0.1.4"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-stream_actions
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - GetStream