cocoapods-soul-component-plugin 0.0.4 → 0.0.6

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: 0e41b1c9c7d00553e6fa8e71154757bd51e3825f9fd4e66ba8949c3ec714b8fe
4
- data.tar.gz: d99d0437af8d21add060f52be73898a3c9c83da5afe08d0d5d51a131edb187c8
3
+ metadata.gz: ce6b57121b7fc51be564b7532e7ea361c2ee0226e75a0cd0edf35d636ab05a66
4
+ data.tar.gz: f6157e2ab76a60a161ac1f9406676fd719e144f3600d1af3669908bae0da2971
5
5
  SHA512:
6
- metadata.gz: 6122fdab51c62198eb4005aa2cd6d80eaf509124eb2c23f4ec7235e4eff6a1ca5726f4c4e37e3b70eb3d6462659a4315a5c8ff06fe21631a91108a8027deb575
7
- data.tar.gz: 75f3a8880417c98c2d16d2ec4e1b893289756193ae25ae84cbcd3f131f8adb1fe4922f1955a750b097cd86059889d5fb35291bbc468794828a8f8d80888ee010
6
+ metadata.gz: da2e70e89937eacdae81800af75524afe984a3dc52964ff02f95f09589293c7a15faf3133adc7bb320fda126ebc660247ce0f2962144e5e6020e45874c475e27
7
+ data.tar.gz: 81f9e21bf89ec98f801b76f1c50abf3f9dcb0cc91fe45fee2a329453c5b314d8730c5e909dcb3ccfc33ab0727d86c77548cd9b03cbbb6518f2f01f135b939b6b
@@ -3,6 +3,7 @@ require 'fileutils'
3
3
  require 'json'
4
4
  require 'xcodeproj'
5
5
  require 'cocoapods-downloader'
6
+ require_relative '../gem_version'
6
7
 
7
8
  module Pod
8
9
  class Command
@@ -50,11 +51,11 @@ module CocoapodsSoulComponentPlugin
50
51
  end
51
52
 
52
53
  def self.podfile_path
53
- root_path + '/Podfile'
54
+ "#{root_path}/Podfile"
54
55
  end
55
56
 
56
57
  def self.component_file_path
57
- root_path + '/devops/component.json'
58
+ "#{root_path}/devops/component.json"
58
59
  end
59
60
 
60
61
  Pod::HooksManager.register('cocoapods-soul-component-plugin', :pre_install) do |_context|
@@ -74,7 +75,7 @@ module CocoapodsSoulComponentPlugin
74
75
  group = project.main_group
75
76
  group.set_source_tree('SOURCE_ROOT')
76
77
  # 向group中添加 文件引用
77
- file_ref = group.new_reference(Pod::Config.instance.sandbox.root + '../devops/component.json')
78
+ file_ref = group.new_reference("#{Pod::Config.instance.sandbox.root}../devops/component.json")
78
79
  # podfile_local排序
79
80
  podfile_local_group = group.children.last
80
81
  group.children.pop
@@ -83,7 +84,7 @@ module CocoapodsSoulComponentPlugin
83
84
  end
84
85
 
85
86
  def self.pre_run
86
- puts '当前版本:' + CocoapodsSoulComponentPlugin::VERSION
87
+ puts "当前版本:#{CocoapodsSoulComponentPlugin::VERSION}"
87
88
  json = File.read(self.component_file_path)
88
89
  obj = JSON.parse(json)
89
90
  dependencies = obj['dependencies']
@@ -105,7 +106,7 @@ module CocoapodsSoulComponentPlugin
105
106
  local_path += '-'
106
107
  local_path += each.commit.to_s
107
108
  end
108
- target_path = root_path + '/LocalPods/' + local_path
109
+ target_path = "#{root_path}/LocalPods/#{local_path}"
109
110
  each.path = target_path
110
111
 
111
112
  if File.exist?(target_path) == false
@@ -1,3 +1,4 @@
1
+ # frozen_string_literal: true
1
2
  module CocoapodsSoulComponentPlugin
2
- VERSION = "0.0.4"
3
+ VERSION = '0.0.6'
3
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-soul-component-plugin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - fang