yk_command 0.4.3 → 0.4.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/yk_command/analyze.rb +2 -2
- data/lib/yk_command/commands.rb +2 -2
- data/lib/yk_command/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0f2050fb085b1e1eafdde48661196e3aaaf3f93c78876c81491a966ee793bfd4
|
4
|
+
data.tar.gz: 9a969d06122de3eb6fcd57ced3d6de33e842d85a8eb31c198c61969bba1670b4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5a6f6a5204ee6c8011a37126fab802735ea851aaf08b4e7f90e99e7c369ead873505cc9380e4e9fb2573afe1cb51f4ae2c363258b25142ca02974a200d08698c
|
7
|
+
data.tar.gz: ada630c0b6a70e5d34c45ce49d326c1784281c7870118635b6d97d96807ae0e98587b963edb0ce007a5575784a6a0f270dd91fff015cbb74a829fa4087b9b9e3
|
data/Gemfile.lock
CHANGED
data/lib/yk_command/analyze.rb
CHANGED
@@ -17,13 +17,13 @@ module YkCommand
|
|
17
17
|
|
18
18
|
|
19
19
|
@path = Pathname.new(podfile_dir_path)
|
20
|
+
raise 'absolute path is needed' unless @path.absolute?
|
21
|
+
Pod::Config.instance.installation_root = @path
|
20
22
|
@podFile = Pod::Podfile.from_file(@path + 'Podfile')
|
21
23
|
@podLock = Pod::Lockfile.from_file(@path + 'Podfile.lock')
|
22
24
|
|
23
|
-
raise 'absolute path is needed' unless @path.absolute?
|
24
25
|
|
25
26
|
Dir.chdir(podfile_dir_path) do
|
26
|
-
Pod::Config.instance.installation_root = @path;
|
27
27
|
analyze_with_podfile
|
28
28
|
end
|
29
29
|
|
data/lib/yk_command/commands.rb
CHANGED
@@ -237,7 +237,7 @@ module YkCommand
|
|
237
237
|
begin
|
238
238
|
g = Git.open(path,)
|
239
239
|
project_path = Pathname.new(g.lib.git_work_dir)
|
240
|
-
project_name =
|
240
|
+
project_name = g.config['remote.origin.url'].split('/').last.split('.')[0]
|
241
241
|
rescue
|
242
242
|
say "No .git folder find in #{path} ,skip folder ... ", :yellow
|
243
243
|
say "\n<--\n", :yellow
|
@@ -279,7 +279,7 @@ module YkCommand
|
|
279
279
|
|
280
280
|
rescue
|
281
281
|
say "Error : #{$!.to_s}", :red
|
282
|
-
|
282
|
+
say "Error : #{ $@.to_s}", :red
|
283
283
|
say "Skip folder : #{podfile_dir} ", :red
|
284
284
|
say "\n<-- \n"
|
285
285
|
end #结束
|
data/lib/yk_command/version.rb
CHANGED