cocoapods-art 1.0.2 → 1.0.3

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: 870aa39f965c0b9299969cfeb721dd7e2a99fb127f8897b6cd4a4625ba4d97a9
4
- data.tar.gz: d45dc5116f076aa0e6470398c3f337e7511fee88402ea6965acd8a7c8699220b
3
+ metadata.gz: d9d222b46676e4463c5c5aec5a3af35047d54a97d3a9c73ff6ff8a4bd417e699
4
+ data.tar.gz: b38e06a224c90f1fb14f3687bc2f4a7dfb48302ae5869c457dc81a66a1e7874d
5
5
  SHA512:
6
- metadata.gz: f3d8d53970f76ac2044a709356e96a134305b7782967712a4b46681b8d08537b4397355aa0f5850df8bfaee27a86da724de787e9f7297ccd7b3774c298100447
7
- data.tar.gz: 49f413bcae0b4354aff602ab23883126f51741ef5cc01e2f13cdd5b15eb082cad181290801725c2299be9b491fd44debf6b66ba9a23a3042b0f8bf69c8f01acb
6
+ metadata.gz: 7e9f3dba833a12529559fc8128b9212e7445c2fe0117b02c591fcb5d05ade38d2677ba6b4a289152975c867103e9a147a9f11023cd8a1fbc9b60d2a725992ff3
7
+ data.tar.gz: 9ce5144075600a8e696581b44ffbe355c8124fe0d6fa4bdc684f8b7d0a347ebcdc79446704c63c964836b6811ab7d10cc82ff9e8eb9983a50c717180c2fdbcde
@@ -2,5 +2,5 @@
2
2
  # The namespace of the CocoaPods Artifactory plugin.
3
3
  #
4
4
  module CocoaPodsArt
5
- VERSION = '1.0.2'
5
+ VERSION = '1.0.3'
6
6
  end
@@ -103,4 +103,33 @@ module Pod
103
103
  end
104
104
  end
105
105
  end
106
- end
106
+ end
107
+
108
+ module Pod
109
+ class Source
110
+ class Manager
111
+
112
+ alias_method :orig_source_from_path, :source_from_path
113
+
114
+ # @return [Source] The Source at a given path.
115
+ #
116
+ # @param [Pathname] path
117
+ # The local file path to one podspec repo.
118
+ #
119
+ def source_from_path(path)
120
+ @sources_by_path ||= Hash.new do |hash, key|
121
+ art_repo = "#{UTIL.get_repos_art_dir()}/#{key.basename}"
122
+ hash[key] = if key.basename.to_s == Pod::MasterSource::MASTER_REPO_NAME
123
+ MasterSource.new(key)
124
+ elsif File.exist?("#{art_repo}/.artpodrc")
125
+ create_source_from_name(key.basename)
126
+ else
127
+ Source.new(key)
128
+ end
129
+ end
130
+ @sources_by_path[path]
131
+ end
132
+
133
+ end
134
+ end
135
+ end
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.2
4
+ version: 1.0.3
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-11-21 00:00:00.000000000 Z
11
+ date: 2019-03-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler