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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 54cf65031335b6e3efd9ea4b2a1dba8d8a7fa44d41f705444bf401717e3e609a
4
- data.tar.gz: 3f776966e0de6b1782fadad9175e34afbb44c33ea9d321cb0b36d31972f2835d
3
+ metadata.gz: 0f2050fb085b1e1eafdde48661196e3aaaf3f93c78876c81491a966ee793bfd4
4
+ data.tar.gz: 9a969d06122de3eb6fcd57ced3d6de33e842d85a8eb31c198c61969bba1670b4
5
5
  SHA512:
6
- metadata.gz: 28ab1aef7b6ac7104d099bd4ad2f3cda76066f7c696f34df1e316c4de779335d067443bb79e8b52c903b50bafd13d2c1ee5921f51f60e6303253a9551b33c218
7
- data.tar.gz: a9187bf761297067a1aad178e894d9ab66ec9e0319767528b0f54c21af2be4cdc59078ebd9dd29d0b7207b0af6038533bc265da93f4d36e3f480040bdb99b3c8
6
+ metadata.gz: 5a6f6a5204ee6c8011a37126fab802735ea851aaf08b4e7f90e99e7c369ead873505cc9380e4e9fb2573afe1cb51f4ae2c363258b25142ca02974a200d08698c
7
+ data.tar.gz: ada630c0b6a70e5d34c45ce49d326c1784281c7870118635b6d97d96807ae0e98587b963edb0ce007a5575784a6a0f270dd91fff015cbb74a829fa4087b9b9e3
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- yk_command (0.4.3)
4
+ yk_command (0.4.4)
5
5
  bundler
6
6
  colored
7
7
  git
@@ -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
 
@@ -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 = project_path.split[1].to_s
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
- # say "Error : #{ $@.to_s}", :red
282
+ say "Error : #{ $@.to_s}", :red
283
283
  say "Skip folder : #{podfile_dir} ", :red
284
284
  say "\n<-- \n"
285
285
  end #结束
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module YkCommand
4
- VERSION = '0.4.3'.freeze
4
+ VERSION = '0.4.4'.freeze
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yk_command
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3
4
+ version: 0.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Major Tom