cocoapods-art 0.9.2 → 0.9.3

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
  SHA1:
3
- metadata.gz: 99fb37607505c1847ee231e02b7bd031e4964f73
4
- data.tar.gz: 1ebc2e9f98c340bb6f9f78ff7f01c761f6c78e3c
3
+ metadata.gz: 41ee65d8e2c11d3baa1329edf16f0ddaf3f34f22
4
+ data.tar.gz: f8dbfcd38076066b22a985d88b69a6712587d628
5
5
  SHA512:
6
- metadata.gz: 7496ab46a4a92b482cff767753afcb06a0ce05039bf853c72b3164a1639af7f2f453eb17bed7861ad7870039c8b2fbb0ddff9113de9545dd0049b605c2bc465d
7
- data.tar.gz: 042b02eeca5a61b2739da907c52a6e140d054c76e501a2d2773af1213f0a9792f2c2de3822b88e87ae561997ac1dc1931b6bb49c9fc0f51ee8ae54a806c91cc2
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.1.gem
2
+ curl -uadmin:password -XPUT "http://localhost:8080/artifactory/pah/repo-art/coco-art.gem" -T cocoapods-art-0.9.3.gem
@@ -2,5 +2,5 @@
2
2
  # The namespace of the CocoaPods Artifactory plugin.
3
3
  #
4
4
  module CocoaPodsArt
5
- VERSION = '0.9.2'
5
+ VERSION = '0.9.3'
6
6
  end
@@ -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
- unless @local_only
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
- podspec_json_tmp_path = "#{output_path}/#{spec.name}.podspec.json.tmp"
112
- FileUtils.remove(podspec_json_path, :force => true)
113
- podspec_json_temp = File.new(podspec_json_tmp_path, "wb")
114
- podspec_json_temp.puts(spec.to_pretty_json)
115
- podspec_json_temp.close
116
- 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'
117
- podspec_json_tmp_path
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-art
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.2
4
+ version: 0.9.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan Feldman