cocoapods-tuya-oss-publish 0.0.1 → 0.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: ae36df8151efbc4333a13e1d0a296db32676b3f0224ef352f89cc2038baa46a9
4
- data.tar.gz: 77871fbc8fd7cb797b9f932a7cd96034061174ab1f47c48519b3ab853f660017
3
+ metadata.gz: acd5500c4292f5d8b4384e3001289516a2329a63bde6921f2e264e2bc0b782e6
4
+ data.tar.gz: e20c9e85de5f903c14f0f4d86593d5ca1e77aa9b290a4de44a25092deea33bf2
5
5
  SHA512:
6
- metadata.gz: 050d1832a187f3d0fc9140b7c53b214df2a7e2495905c5594138cb960c9a95e20eeee960c78d16b99c001009cf0cf1824e668b6f107e1d0bea128e5d6761ecc4
7
- data.tar.gz: 3eb977e49da0516b194343fcacc80da45fb77b9c95a19a541511e6ce82bf3a69378d06e2553f270cdd1db675827f56bcce5da960a3ed425e4cd9790a400cd231
6
+ metadata.gz: 33158388e87be5c19eb995c24a5e72a841710893dad7aaa2fd0c64ca71547a71974fa5274d8ad67e2c1f5fcd055d6e80ef5c4bbc810d15570258de027e46f509
7
+ data.tar.gz: 6cfe689a620e719cd06d565b5abc08b06507ed3ad77a5e3356bbcff93818c2d180a9021f6fcc5f2189244aa9a92010be619ee6917309a1255654672994a7176e
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cocoapods-tuya-oss-publish (0.0.1)
4
+ cocoapods-tuya-oss-publish (0.1.0)
5
5
  aliyun-sdk
6
6
  ty-cocoapods-packager (>= 1.5.5)
7
7
 
@@ -20,10 +20,10 @@ GEM
20
20
  atomos (0.1.3)
21
21
  bacon (1.2.0)
22
22
  claide (1.0.2)
23
- cocoapods (1.7.3)
23
+ cocoapods (1.7.4)
24
24
  activesupport (>= 4.0.2, < 5)
25
25
  claide (>= 1.0.2, < 2.0)
26
- cocoapods-core (= 1.7.3)
26
+ cocoapods-core (= 1.7.4)
27
27
  cocoapods-deintegrate (>= 1.0.3, < 2.0)
28
28
  cocoapods-downloader (>= 1.2.2, < 2.0)
29
29
  cocoapods-plugins (>= 1.0.0, < 2.0)
@@ -39,7 +39,7 @@ GEM
39
39
  nap (~> 1.0)
40
40
  ruby-macho (~> 1.4)
41
41
  xcodeproj (>= 1.10.0, < 2.0)
42
- cocoapods-core (1.7.3)
42
+ cocoapods-core (1.7.4)
43
43
  activesupport (>= 4.0.2, < 6)
44
44
  fuzzy_match (~> 2.0.4)
45
45
  nap (~> 1.0)
@@ -55,7 +55,7 @@ GEM
55
55
  cocoapods-try (1.1.0)
56
56
  colored2 (3.1.2)
57
57
  concurrent-ruby (1.1.5)
58
- domain_name (0.5.20180417)
58
+ domain_name (0.5.20190701)
59
59
  unf (>= 0.0.5, < 1.0.0)
60
60
  escape (0.0.4)
61
61
  fourflusher (2.3.1)
@@ -97,7 +97,7 @@ GEM
97
97
  unf (0.1.4)
98
98
  unf_ext
99
99
  unf_ext (0.0.7.6)
100
- xcodeproj (1.10.0)
100
+ xcodeproj (1.11.0)
101
101
  CFPropertyList (>= 2.3.3, < 4.0)
102
102
  atomos (~> 0.1.3)
103
103
  claide (>= 1.0.2, < 2.0)
@@ -201,30 +201,32 @@ module Pod
201
201
  def repo_push_without_build(spec)
202
202
 
203
203
  local_repo_path = "#{ENV["HOME"]}/.cocoapods/repos/#{@repo}"
204
- repo_spec_path = "#{local_repo_path}/Specs/#{spec.name}/#{spec.version}"
204
+ repo_spec_dir = "#{local_repo_path}/Specs/#{spec.name}/#{spec.version}"
205
+ repo_spec_path = "#{repo_spec_dir}/#{spec.name}.podspec.json"
205
206
 
206
207
  # repo update
207
- exit_code = system("""cd #{repo_spec_path} \
208
+ exit_code = system("""cd #{repo_spec_dir} \
208
209
  && git fetch \
209
210
  && REPO_COMMIT_HASH=`git rev-parse origin/master` \
210
211
  && git reset --hard $REPO_COMMIT_HASH
211
212
  """)
212
213
  if exit_code != 0
213
- exit(-1)
214
+ help! 'pod repo update failed.'
214
215
  end
215
216
 
216
217
  # write
218
+ File.delete(repo_spec_path) if File.exist?(repo_spec_path)
217
219
  FileUtils.mkdir_p(repo_spec_path)
218
- File.write("#{repo_spec_path}/#{spec}.podspec.json", spec.to_pretty_json)
220
+ File.write(repo_spec_path, spec.to_pretty_json)
219
221
 
220
222
  # commit
221
- exit_code = system("""cd #{repo_spec_path} \
223
+ exit_code = system("""cd #{repo_spec_dir} \
222
224
  && git add . \
223
225
  && git commit -m \"⚠️ [Add] #{spec.name} (#{spec.version})\" \
224
226
  && git push
225
227
  """)
226
228
  if exit_code != 0
227
- exit(-1)
229
+ help! 'pod repo push failed.'
228
230
  end
229
231
 
230
232
  end
@@ -1,3 +1,3 @@
1
1
  module CocoapodsTuyaOssPublish
2
- VERSION = "0.0.1"
2
+ VERSION = "0.1.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-tuya-oss-publish
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - 高森