cocoapods-jsource 0.0.4 → 0.0.5
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 +4 -4
- data/lib/cocoapods-jsource/command/jsource/add.rb +4 -1
- data/lib/cocoapods-jsource/gem_version.rb +1 -1
- data/test.rb +2 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8cf67858eeff4f5e88ac1cef95df1f64695b8505061f2e1dbfeb0774c58b82bc
|
|
4
|
+
data.tar.gz: 3b0bf833fdc0027c4d15d5a31f955cf55ae922bcfead4384cabce9060ecd1787
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
data/test.rb
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
require 'xcodeproj'
|
|
2
2
|
require 'cocoapods'
|
|
3
3
|
|
|
4
|
-
`cd /Users/handa/Documents/lianjia/
|
|
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
|
+
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-
|
|
11
|
+
date: 2020-02-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: cocoapods
|