cocoapods-art 0.9.2 → 0.9.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/dep.bat +1 -1
- data/lib/cocoapods_art.rb +1 -1
- data/lib/cocoapods_plugin.rb +1 -1
- data/lib/pod/command/repo_art/push.rb +21 -8
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 41ee65d8e2c11d3baa1329edf16f0ddaf3f34f22
|
4
|
+
data.tar.gz: f8dbfcd38076066b22a985d88b69a6712587d628
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 944874c960b05a8287390a70434f5be7425d2f29a184c24962fcf8e796600e5b66c3f8bf7aab048c03eb83b5dabfe4e5e52a697ef6aa0ba69babd87ffdad3747
|
7
|
+
data.tar.gz: 6e836de2cb50d84669f2ffd662c899b59503a2acc1fbb3feea70bd180ebe768d95788a8011d2592ee59a65b5ec775581c4505cefd8deab4ad20f3a952f41d700
|
data/dep.bat
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
@echo off
|
2
|
-
curl -uadmin:password -XPUT "http://localhost:8080/artifactory/pah/repo-art/coco-art.gem" -T cocoapods-art-0.9.
|
2
|
+
curl -uadmin:password -XPUT "http://localhost:8080/artifactory/pah/repo-art/coco-art.gem" -T cocoapods-art-0.9.3.gem
|
data/lib/cocoapods_art.rb
CHANGED
data/lib/cocoapods_plugin.rb
CHANGED
@@ -57,7 +57,7 @@ module Pod
|
|
57
57
|
end
|
58
58
|
|
59
59
|
# Note that we disabled flattening here for the ENTIRE client to deal with
|
60
|
-
# flattening messing up tarballs incoming
|
60
|
+
# default flattening for non zip archives messing up tarballs incoming
|
61
61
|
def should_flatten?
|
62
62
|
# TODO uncomment when Artifactory stops sending the :flatten flag
|
63
63
|
# if options.key?(:flatten)
|
@@ -60,7 +60,12 @@ module Pod
|
|
60
60
|
spec = Pod::Specification.from_file(spec_file)
|
61
61
|
output_path = File.join(repo_specs_dir, spec.name, spec.version.to_s)
|
62
62
|
UI.puts " --> #{get_message(output_path, spec)}"
|
63
|
-
|
63
|
+
if @local_only
|
64
|
+
create_json_in_path(output_path, spec)
|
65
|
+
else
|
66
|
+
# TODO push to local disabled until virtual repo support
|
67
|
+
raise Informative, 'Pushing specs to Artifactory is currently disabled'
|
68
|
+
=begin
|
64
69
|
begin
|
65
70
|
podspec_json_tmp_path = create_json_in_path(output_path, spec)
|
66
71
|
rescue => e
|
@@ -75,6 +80,7 @@ module Pod
|
|
75
80
|
raise Informative, "Error pushing to remote '#{@repo}': #{e.message}"
|
76
81
|
end
|
77
82
|
FileUtils.remove(podspec_json_tmp_path, :force => true)
|
83
|
+
=end
|
78
84
|
end
|
79
85
|
end
|
80
86
|
end
|
@@ -108,13 +114,20 @@ module Pod
|
|
108
114
|
url = UTIL.get_art_url(repo_root_dir)
|
109
115
|
FileUtils.mkdir_p(output_path)
|
110
116
|
podspec_json_path = "#{output_path}/#{spec.name}.podspec.json"
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
117
|
+
if @local_only
|
118
|
+
podspec_json = File.new(podspec_json_path, "wb")
|
119
|
+
podspec_json.puts(spec.to_pretty_json)
|
120
|
+
podspec_json.close
|
121
|
+
podspec_json_path
|
122
|
+
else
|
123
|
+
podspec_json_tmp_path = "#{output_path}/#{spec.name}.podspec.json.tmp"
|
124
|
+
FileUtils.remove(podspec_json_path, :force => true)
|
125
|
+
podspec_json_temp = File.new(podspec_json_tmp_path, "wb")
|
126
|
+
podspec_json_temp.puts(spec.to_pretty_json)
|
127
|
+
podspec_json_temp.close
|
128
|
+
curl! '-XPOST', "#{url}/index/modifySpec/#{spec.name}/#{spec.version.to_s}", '-n', '-L', '-H', '"Content-Type:application/json"', '-T', "#{podspec_json_tmp_path}", '-o', podspec_json_path, '--create-dirs'
|
129
|
+
podspec_json_tmp_path
|
130
|
+
end
|
118
131
|
end
|
119
132
|
|
120
133
|
# @param [Specification] spec the spec
|