cocoapods-xzdevelop 1.0.1 → 1.1.0

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: 90994fda77914902c42cb44e9dc665257f23a9443fe49ca2a9a1c218eec3ba34
4
- data.tar.gz: 7cc02aa59869ec0e72dcd31a8628e3efcfdb4b61dd271e109e84e064a20035d7
3
+ metadata.gz: a0c27aadf2513005c495ba9ef8a81f2fff5cffbf80d03a8e94cd6a3f9fe2f800
4
+ data.tar.gz: 39f343a49a9a8e689956cc7581aa0e31ffa85264afc074f9678fab2f92e7208c
5
5
  SHA512:
6
- metadata.gz: 502553380d6d3fad58c1918bc45b0a70d24a5833ed7743044adf06bbcee850398c0e6afaae49ee2a83f2e69fac3f45c80a258b154dc363be84905c92f2ac8022
7
- data.tar.gz: 5de4af864ba65f2335df055b667d8b8ca4c24ac0e44b45baf3eea0604b51f0bfcdf0308f7ad27e8e4f8c335101ac9782f07215e6bfec5ca1e9bfffe39ab15947
6
+ metadata.gz: cd24e7620c314445fcfb505eef4ff60ef89744e3bb8e7adc5a6a772b4f86ce52e90c7d560b00831cbcecac8e5848495dc672e65b9083ed7aa7db82c451f5bc2d
7
+ data.tar.gz: 137ead6d63cbffff5033c75f9f314ed4591fb21fee324dc2a06c0bdc6926fdfaddb3598cb3def5cf9e8ab8822f1e4585839c5687f926721752b4d5079052a1e0
@@ -1,3 +1,3 @@
1
1
  module CocoapodsXzdevelop
2
- VERSION = "1.0.1"
2
+ VERSION = "1.1.0"
3
3
  end
@@ -1,3 +1,4 @@
1
+ require 'fileutils'
1
2
  module Pod
2
3
  module ExternalSources
3
4
 
@@ -62,7 +63,8 @@ module Pod
62
63
  end
63
64
  end
64
65
  else
65
- params = clone_binary(params,podfile_path,podname)
66
+ # params = clone_binary(params,podfile_path,podname)
67
+ params = params
66
68
  end
67
69
  params
68
70
  end
@@ -74,8 +76,7 @@ module Pod
74
76
  end
75
77
  devpod_path = File.dirname(podfile_path)
76
78
  unless Dir.exist?("#{devpod_path}/DevPods")
77
- Dir.chdir(devpod_path)
78
- `mkdir DevPods`
79
+ FileUtils.mkdir "#{devpod_path}/DevPods"
79
80
  end
80
81
  if params[:binary] == true
81
82
  hasframework = false
@@ -132,21 +133,21 @@ module Pod
132
133
  gitsource = params[:git]
133
134
  itselfpath = findposepec("#{devpod_path}/DevPods",podname)
134
135
  if itselfpath.empty?
135
- Dir.chdir("#{devpod_path}/DevPods")
136
- `git clone #{gitsource}`
136
+ devpods_path = "#{devpod_path}/DevPods"
137
+ `git -C #{devpods_path} clone #{gitsource}`
137
138
  if $?.exitstatus == 0
138
139
  itselfpath = findposepec("#{devpod_path}/DevPods",podname)
139
140
  if params.key?(:tag) || params.key?(:commit)
140
- Dir.chdir(itselfpath)
141
+ # Dir.chdir(itselfpath)
141
142
  gittag = params[:tag]
142
143
  gitcomm = params[:commit]
143
144
  gitbranch = params[:branch]
144
145
  if gittag
145
- `git checkout #{gittag}`
146
+ `git -C #{itselfpath} checkout #{gittag}`
146
147
  elsif gitcomm
147
- `git checkout #{gitcomm}`
148
+ `git -C #{itselfpath} checkout #{gitcomm}`
148
149
  elsif gitbranch
149
- `git checkout #{gitbranch}`
150
+ `git -C #{itselfpath} checkout #{gitbranch}`
150
151
  end
151
152
 
152
153
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-xzdevelop
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - liushuhua
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-09-20 00:00:00.000000000 Z
11
+ date: 2019-09-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler