cocoapods-art 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 21dfb8588934b56b601b98d2844b9972059e2afd0352c060bb2a36b8637725c6
4
- data.tar.gz: 9182fea89ab38495819b9e2fc673ec4407ce000b362067a1aee1082ec682e339
3
+ metadata.gz: 870aa39f965c0b9299969cfeb721dd7e2a99fb127f8897b6cd4a4625ba4d97a9
4
+ data.tar.gz: d45dc5116f076aa0e6470398c3f337e7511fee88402ea6965acd8a7c8699220b
5
5
  SHA512:
6
- metadata.gz: 46949174ab4c2a9d418f21a326164928d5137c0ccb1cc93de6c7c2a6a6a5f8d6ac939fad93da5a24eeb446e818ea26df710a481d3b57f11b7810fd1c0bebc822
7
- data.tar.gz: 773d23056bf73ef279d43824a8338f8ca592a30c96c8db7570d4f5d5e4978383f51937c2a3246a5e36e910ab07e7df39a0a8ee5612be40d1272286092a401ef4
6
+ metadata.gz: f3d8d53970f76ac2044a709356e96a134305b7782967712a4b46681b8d08537b4397355aa0f5850df8bfaee27a86da724de787e9f7297ccd7b3774c298100447
7
+ data.tar.gz: 49f413bcae0b4354aff602ab23883126f51741ef5cc01e2f13cdd5b15eb082cad181290801725c2299be9b491fd44debf6b66ba9a23a3042b0f8bf69c8f01acb
data/README.md CHANGED
@@ -15,8 +15,8 @@ pod repo-art add artifactory-local http://art-prod.company.com:8081/artifactory/
15
15
  To use 'myRepo' to resolve pods when installing you must add the following to your Podfile:
16
16
  ```ruby
17
17
  plugin 'cocoapods-art', :sources => [
18
- '<local_specs_repo_name>'
19
- ]
18
+ '<local_specs_repo_name>'
19
+ ]
20
20
  ```
21
21
  More than one source can be included, separated by commas.
22
22
 
@@ -28,6 +28,11 @@ password password
28
28
  ```
29
29
  You can also use an encrypted Artifactory password or your API key
30
30
 
31
+ If your .netrc file is not located in your home directory, you can specify its location in the environmental variable:
32
+ ```
33
+ export COCOAPODS_ART_NETRC_PATH=$HOME/myproject/.netrc
34
+ ```
35
+
31
36
  ## Artifactory Configuration
32
37
  See the [Artifactory User Guide](https://www.jfrog.com/confluence/display/RTF/CocoaPods+Repositories)
33
38
 
@@ -2,5 +2,5 @@
2
2
  # The namespace of the CocoaPods Artifactory plugin.
3
3
  #
4
4
  module CocoaPodsArt
5
- VERSION = '1.0.1'
5
+ VERSION = '1.0.2'
6
6
  end
@@ -51,7 +51,12 @@ module Pod
51
51
  alias_method :orig_should_flatten?, :should_flatten?
52
52
 
53
53
  def download_file(full_filename)
54
- curl! '-f', '-L', '-o', full_filename, url, '--create-dirs', '--netrc-optional'
54
+ curl_options = ["-f", "-L", "-o", full_filename, url, "--create-dirs", "--netrc-optional"]
55
+
56
+ netrc_path = ENV["COCOAPODS_ART_NETRC_PATH"]
57
+ curl_options.concat(["--netrc-file", Pathname.new(netrc_path).expand_path]) if netrc_path
58
+
59
+ curl! curl_options
55
60
  end
56
61
 
57
62
  # Note that we disabled flattening here for the ENTIRE client to deal with
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-art
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan Feldman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-17 00:00:00.000000000 Z
11
+ date: 2018-11-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler