luna-binary-uploader 0.1.14 → 0.1.15

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: bddd612b23e7bfb6de168bf2f9abc6556b14137dafee7ff73a3e2cf928e6ee97
4
- data.tar.gz: c589fc08aeef2efe372393fdfe118f88da5b74a436861787e6726c1285f527a7
3
+ metadata.gz: 1d529f4891c5824ed5c894073bbeec5d5668e875b54bff33d2ec84ce40279951
4
+ data.tar.gz: 298fe5853064bf24929dd43289415d4252e12e1448e08c10e665e0edc3e67870
5
5
  SHA512:
6
- metadata.gz: add61c85f81622de9dd2de34e5ed45ebd4e2211a614e33243fc8d636671d55e7815da1048d5f035282142d3fad04cdd8c2a61480fe5419031ad09e3b68df6b8d
7
- data.tar.gz: 0ab602dd51b43f73063d98623b004722fb3b68cb5db67169a8781152e5995444e606f589e9826270f1f637ec4aaec840ca8eab11047bde46f8e046671b9c434a
6
+ metadata.gz: 13a975f4a72a7b0991ae61347d75cada675ed8e9e26276a9499d55d5bbbc31c342115c924f2530c5e28900a688eeb8d107d8a5ddd595b656b52b8079a24a1c85
7
+ data.tar.gz: 23544e5512fbc4ea880afe1010c0f6fc37fae92a14a266f1e702368352cda6fb5a1bfd184ef07b71509ecc3c4958123e9f7bc8159e7eb03f372b9ad9da765038
@@ -94,6 +94,27 @@ module Luna
94
94
  @lockfile ||= Pod::Lockfile.from_file(podFilePath) if podFilePath.exist?
95
95
  end
96
96
 
97
+ def request_result_hash
98
+ command = "curl #{CBin.config.binary_upload_url}"
99
+ p command
100
+ result = %x(#{command})
101
+ request_result_hash = JSON.parse(result)
102
+ p request_result_hash
103
+ return request_result_hash
104
+ end
105
+
106
+ def createNeedFrameworkMapper
107
+ spec_repo_binary = {}
108
+ Pod::UserInterface.puts "二进制repo地址 : #{CBin.config.binary_repo_url}".yellow
109
+ Luna::Binary::Common.instance.use_framework_list.each { |item|
110
+ name = item.split('/').first
111
+ if spec_repo_binary[name] == nil
112
+ spec_repo_binary[name] = lockfile.version(name).version
113
+ end
114
+ }
115
+ return spec_repo_binary
116
+ end
117
+
97
118
  def use_framework_list
98
119
  list = []
99
120
  File.open(Dir.pwd+"/Podfile", 'r:utf-8') do |f|
@@ -41,7 +41,7 @@ module Luna
41
41
  end
42
42
 
43
43
  def deleteBinaryFramework
44
- command = "curl -X 'DELETE' #{CBin.config.binary_upload_url}/#{name}/#{version} -O -J"
44
+ command = "curl -X 'DELETE' #{CBin.config.binary_upload_url}/#{name}/#{version}"
45
45
  p command
46
46
  system command
47
47
  end
@@ -50,25 +50,13 @@ module Luna
50
50
 
51
51
  def request_result_hash
52
52
  if @request_result_hash == nil
53
- command = "curl #{CBin.config.binary_upload_url}"
54
- p command
55
- result = %x(#{command})
56
- @request_result_hash = JSON.parse(result)
57
- p @request_result_hash
53
+ @request_result_hash = Luna::Binary::Common.instance.request_result_hash
58
54
  end
59
55
  return @request_result_hash
60
56
  end
61
57
 
62
58
  def createNeedFrameworkMapper
63
- spec_repo_binary = {}
64
- Pod::UserInterface.puts "二进制repo地址 : #{CBin.config.binary_repo_url}".yellow
65
- Luna::Binary::Common.instance.use_framework_list.each { |item|
66
- if spec_repo_binary[item] == nil && item["/"] == nil
67
- name = item.split('/').first
68
- spec_repo_binary[name] = lockfile.version(name).version
69
- end
70
- }
71
- return spec_repo_binary
59
+ return Luna::Binary::Common.instance.createNeedFrameworkMapper
72
60
  end
73
61
  end
74
62
  end
@@ -104,25 +104,13 @@ module Luna
104
104
 
105
105
  def request_result_hash
106
106
  if @request_result_hash == nil
107
- command = "curl #{CBin.config.binary_upload_url}"
108
- p command
109
- result = %x(#{command})
110
- @request_result_hash = JSON.parse(result)
111
- p @request_result_hash
107
+ @request_result_hash = Luna::Binary::Common.instance.request_result_hash
112
108
  end
113
109
  return @request_result_hash
114
110
  end
115
111
 
116
112
  def createNeedFrameworkMapper
117
- spec_repo_binary = {}
118
- Pod::UserInterface.puts "二进制repo地址 : #{CBin.config.binary_repo_url}".yellow
119
- Luna::Binary::Common.instance.use_framework_list.each { |item|
120
- if spec_repo_binary[item] == nil && item["/"] == nil
121
- name = item.split('/').first
122
- spec_repo_binary[name] = lockfile.version(name).version
123
- end
124
- }
125
- return spec_repo_binary
113
+ return Luna::Binary::Common.instance.createNeedFrameworkMapper
126
114
  end
127
115
  end
128
116
  end
@@ -1,7 +1,7 @@
1
1
  module Luna
2
2
  module Binary
3
3
  module Uploader
4
- VERSION = "0.1.14"
4
+ VERSION = "0.1.15"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: luna-binary-uploader
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.14
4
+ version: 0.1.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - 车德超