fastlane-plugin-git_status 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 26770631150e679a588069362373bcbe8a04551c
4
- data.tar.gz: 65b25c32ee73a32365cc6d38ac9dab20db743136
3
+ metadata.gz: 04c89a680834d8780baa3b678c8219d8231c1aa3
4
+ data.tar.gz: bd4b9adee9241c11574d9ecef2f66942bdd280c2
5
5
  SHA512:
6
- metadata.gz: 965f910e79b7691ebd7a8d275c9ab6c7af5584919dd53c0354d326686e315697e07702468dfadb3c7ce1d58d07f9b708f6ebaeea73bd7a504a9d7ab2d76c7f4b
7
- data.tar.gz: 2f3e4ae794c11d0592a9a88df3dbcf731c3055d7bb7faac93750709ba503545d57a750a67262c7eb5b6fbb34a804c7691b4c4ac98a56f917bf44e6009971d2e7
6
+ metadata.gz: d95061725d08530b16e9112f4d77eba89c4ea1d954d8ba219ff67cb3964c56195de5aab966aa7617ab8560080290c3b210a19da6564ac92e609d3a3d8e010677
7
+ data.tar.gz: 6136753529e7913ee7b14b0b04ee363c07c40081baca69be9f63efe850cc42f3dd6bdccd468c2130ce93a1e67bad76343cae761f378754ce9b03736824617565
@@ -10,7 +10,7 @@ module Fastlane
10
10
  end
11
11
 
12
12
  result = Actions.sh("git status --porcelain #{paths}")
13
- UI.success("git status --porcelain \"#{params[:path]}\" \n \"#{result}\"")
13
+ UI.success("git status --porcelain #{paths} \n #{result}")
14
14
  return result
15
15
 
16
16
  end
@@ -36,12 +36,11 @@ module Fastlane
36
36
  FastlaneCore::ConfigItem.new(key: :path,
37
37
  description: "The file or directory you want to see the status",
38
38
  optional: true,
39
- default_value: ".",
40
- type: [String, Array],
39
+ default_value: '.',
40
+ is_string: false,
41
41
  verify_block: proc do |value|
42
-
43
42
  if value.kind_of?(String)
44
- paths = params[:path].shellescape
43
+ paths = value.shellescape
45
44
  UI.user_error!("Couldn't find file at path '#{value}'") unless File.exist?(paths)
46
45
  elsif value.kind_of?(Array)
47
46
  value.each do |x|
@@ -50,8 +49,7 @@ module Fastlane
50
49
  else
51
50
  UI.user_error!("Wrong param type path '#{value}'")
52
51
  end
53
-
54
- end)
52
+ end),
55
53
  ]
56
54
  end
57
55
 
@@ -1,5 +1,5 @@
1
1
  module Fastlane
2
2
  module GitStatus
3
- VERSION = "0.1.2"
3
+ VERSION = "0.1.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-git_status
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bruno Coelho