cocoapods-jsource 0.0.4 → 0.0.5

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: d4a421ae0aa6de23eaf5615c12d545bff310a2f466259e258b4cda889d13ccfe
4
- data.tar.gz: 4462e96cf8864517a427f9773ce1cddbf65f63fed69053eb970effd83df7acf3
3
+ metadata.gz: 8cf67858eeff4f5e88ac1cef95df1f64695b8505061f2e1dbfeb0774c58b82bc
4
+ data.tar.gz: 3b0bf833fdc0027c4d15d5a31f955cf55ae922bcfead4384cabce9060ecd1787
5
5
  SHA512:
6
- metadata.gz: 211d4f24feca9a6721428f6283b0c464c1e34be1370ea5ab0a21223986805b5ae3e810b8718f15eebea79e905e98329950a15377f70c9b1c3bf7482b7dfbccbd
7
- data.tar.gz: c0dbd19f1a8bf30c648ef5045c0274599ee78ac0f72f1e4983a213c6241f21e24aad09bb10a8630409cee61129069aec6d1d52e4f5b41b5c49c5c935d3d41ffd
6
+ metadata.gz: e4e1db75164b5329d869ae0f298ea5fa9cbe5015f5ff8d43a675438373ada0945486c3baab2f98160059cfd347728999d69287ef232206e4b1d95c3a201bd516
7
+ data.tar.gz: 392f0575a1b633ba16a252a4475876961613c9e8948f9f206b29b349fc2fc1e9e46f2b5b9841e1b468c5390caf242b4a6153bab394a4fe9dd7d3965ca67b7a16
@@ -158,14 +158,17 @@ module Pod
158
158
  exit 1
159
159
  end
160
160
  if File.directory? origin_file_path
161
- FileUtils.mkdir_p [dest_file_path], :mode => 0700 unless File.exist? dest_file_path
161
+ # FileUtils.mkdir_p [dest_file_path], :mode => 0700 unless File.exist? dest_file_path
162
+ create_working_directory dest_file_path
162
163
  else
164
+ create_working_directory dest_file_path
163
165
  parent_dir = File.dirname dest_file_path
164
166
  FileUtils.mkdir_p [parent_dir], :mode => 0700 unless File.exist? parent_dir
165
167
  FileUtils.copy origin_file_path, dest_file_path unless File.exist? dest_file_path
166
168
  h_origin_file_path = origin_file_path.gsub(/(mm|m|c)$/, "h")
167
169
  h_dest_file_path = dest_file_path.gsub(/(mm|m|c)$/, "h")
168
170
  parent_dir = File.dirname h_dest_file_path
171
+ create_working_directory parent_dir
169
172
  FileUtils.mkdir_p [parent_dir], :mode => 0700 unless File.exist? parent_dir
170
173
  FileUtils.copy h_origin_file_path, h_dest_file_path unless File.exist? h_dest_file_path
171
174
  end
@@ -1,3 +1,3 @@
1
1
  module CocoapodsJsource
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
data/test.rb CHANGED
@@ -1,7 +1,8 @@
1
1
  require 'xcodeproj'
2
2
  require 'cocoapods'
3
3
 
4
- `cd /Users/handa/Documents/lianjia/C/lianjia_ios_platc;pod jsource add LJRefresh`
4
+ `cd /Users/handa/Documents/lianjia/B/lianjia_im;pod jsource add flutter_boost`
5
+
5
6
  #`cd /Users/handa/Downloads/Example;pod jsource clean LJRefresh --cache`
6
7
  #`cd /Users/handa/Documents/lianjia/C/lianjia_ios_platc;pod jsource add LJBaseToolKit`
7
8
  #`cd /Users/handa/Downloads/Example;pod jsource add LJRefresh http://gerrit.lianjia.com/mobile_ios/LJRefresh`
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-jsource
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - handa
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-02-10 00:00:00.000000000 Z
11
+ date: 2020-02-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cocoapods