cocoapods-core 1.3.0.beta.1 → 1.3.0.beta.2
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 +4 -4
- data/lib/cocoapods-core/gem_version.rb +1 -1
- data/lib/cocoapods-core/lockfile.rb +3 -1
- data/lib/cocoapods-core/podfile/target_definition.rb +18 -9
- data/lib/cocoapods-core/source.rb +3 -1
- data/lib/cocoapods-core/specification/dsl.rb +4 -5
- data/lib/cocoapods-core/version.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8934bd1c2629b88612a8800d8ec0c3e62f1ec94d
|
4
|
+
data.tar.gz: bad7229c6636e68f66cbc6e5b8b91958a1f42d29
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5a748f7939b103be105f3b195ff83c9a5e0473bce1d9e12d4dfb220f690c7221152b490e0980dad421aa33e92c4f7c7272f964a7a7ba12a4df16a2d19ba8cc67
|
7
|
+
data.tar.gz: d1bd082afc14892e2d1d8dfb6aabd4ece4da6bfdcebcb2f2c061b9ba003d8079e6e8fbbbfc08ac1cb4d23d40dea128245c8e7159f86c912dda4e2f5735270ce2
|
@@ -350,7 +350,9 @@ module Pod
|
|
350
350
|
# @note The YAML string is prettified.
|
351
351
|
#
|
352
352
|
def to_yaml
|
353
|
-
YAMLHelper.convert_hash(to_hash, HASH_KEY_ORDER, "\n\n")
|
353
|
+
yaml_string = YAMLHelper.convert_hash(to_hash, HASH_KEY_ORDER, "\n\n")
|
354
|
+
yaml_string = yaml_string.tr("'", '')
|
355
|
+
yaml_string.tr('"', '')
|
354
356
|
end
|
355
357
|
|
356
358
|
#-------------------------------------------------------------------------#
|
@@ -23,6 +23,7 @@ module Pod
|
|
23
23
|
@internal_hash = internal_hash || {}
|
24
24
|
@parent = parent
|
25
25
|
@children = []
|
26
|
+
@label = nil
|
26
27
|
self.name ||= name
|
27
28
|
if parent.is_a?(TargetDefinition)
|
28
29
|
parent.children << self
|
@@ -106,13 +107,13 @@ module Pod
|
|
106
107
|
# name.
|
107
108
|
#
|
108
109
|
def label
|
109
|
-
if root? && name == 'Pods'
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
110
|
+
@label ||= if root? && name == 'Pods'
|
111
|
+
'Pods'
|
112
|
+
elsif exclusive? || parent.nil?
|
113
|
+
"Pods-#{name}"
|
114
|
+
else
|
115
|
+
"#{parent.label}-#{name}"
|
116
|
+
end
|
116
117
|
end
|
117
118
|
|
118
119
|
alias_method :to_s, :label
|
@@ -145,6 +146,7 @@ module Pod
|
|
145
146
|
# @return [void]
|
146
147
|
#
|
147
148
|
def name=(name)
|
149
|
+
@label = nil
|
148
150
|
set_hash_value('name', name)
|
149
151
|
end
|
150
152
|
|
@@ -852,8 +854,8 @@ module Pod
|
|
852
854
|
requirements.pop if options.empty?
|
853
855
|
end
|
854
856
|
|
855
|
-
# Removes :subspecs from the requirements list, and stores the pods
|
856
|
-
# with the given subspecs as dependencies.
|
857
|
+
# Removes :subspecs and :testspecs from the requirements list, and stores the pods
|
858
|
+
# with the given subspecs or test specs as dependencies.
|
857
859
|
#
|
858
860
|
# @param [String] name
|
859
861
|
#
|
@@ -868,9 +870,16 @@ module Pod
|
|
868
870
|
return false unless options.is_a?(Hash)
|
869
871
|
|
870
872
|
subspecs = options.delete(:subspecs)
|
873
|
+
test_specs = options.delete(:testspecs)
|
874
|
+
|
871
875
|
subspecs.each do |ss|
|
872
876
|
store_pod("#{name}/#{ss}", *requirements.dup)
|
873
877
|
end if subspecs
|
878
|
+
|
879
|
+
test_specs.each do |ss|
|
880
|
+
store_pod("#{name}/#{ss}", *requirements.dup)
|
881
|
+
end if test_specs
|
882
|
+
|
874
883
|
requirements.pop if options.empty?
|
875
884
|
!subspecs.nil?
|
876
885
|
end
|
@@ -24,6 +24,7 @@ module Pod
|
|
24
24
|
#
|
25
25
|
def initialize(repo)
|
26
26
|
@repo = Pathname(repo).expand_path
|
27
|
+
@versions_by_name = {}
|
27
28
|
refresh_metadata
|
28
29
|
end
|
29
30
|
|
@@ -160,7 +161,7 @@ module Pod
|
|
160
161
|
raise ArgumentError, 'No name' unless name
|
161
162
|
pod_dir = pod_path(name)
|
162
163
|
return unless pod_dir.exist?
|
163
|
-
pod_dir.children.map do |v|
|
164
|
+
@versions_by_name[name] ||= pod_dir.children.map do |v|
|
164
165
|
basename = v.basename.to_s
|
165
166
|
begin
|
166
167
|
Version.new(basename) if v.directory? && basename[0, 1] != '.'
|
@@ -333,6 +334,7 @@ module Pod
|
|
333
334
|
return [] if unchanged_github_repo?
|
334
335
|
prev_commit_hash = git_commit_hash
|
335
336
|
update_git_repo(show_output)
|
337
|
+
@versions_by_name.clear
|
336
338
|
refresh_metadata
|
337
339
|
if version = metadata.last_compatible_version(Version.new(CORE_VERSION))
|
338
340
|
tag = "v#{version}"
|
@@ -273,7 +273,6 @@ module Pod
|
|
273
273
|
:svn => [:folder, :tag, :revision].freeze,
|
274
274
|
:hg => [:revision].freeze,
|
275
275
|
:http => [:flatten, :type, :sha256, :sha1].freeze,
|
276
|
-
:path => nil,
|
277
276
|
}.freeze
|
278
277
|
|
279
278
|
# @!method source=(source)
|
@@ -334,10 +333,6 @@ module Pod
|
|
334
333
|
# @option http [String] :type file type. Supports zip, tgz, bz2, txz and tar
|
335
334
|
# @option http [String] :sha1 SHA hash. Supports SHA1 and SHA256
|
336
335
|
#
|
337
|
-
# @overload source=(path)
|
338
|
-
# @param [Hash] path
|
339
|
-
# @option path [String] :path local source path
|
340
|
-
#
|
341
336
|
root_attribute :source,
|
342
337
|
:container => Hash,
|
343
338
|
:keys => SOURCE_KEYS,
|
@@ -704,6 +699,10 @@ module Pod
|
|
704
699
|
#
|
705
700
|
# spec.weak_framework = 'Twitter'
|
706
701
|
#
|
702
|
+
# @example
|
703
|
+
#
|
704
|
+
# spec.weak_frameworks = 'Twitter', 'SafariServices'
|
705
|
+
#
|
707
706
|
# @param [String, Array<String>] weak_frameworks
|
708
707
|
# A list of frameworks names.
|
709
708
|
#
|
@@ -198,11 +198,11 @@ module Pod
|
|
198
198
|
end
|
199
199
|
|
200
200
|
def numeric_segments
|
201
|
-
segments.take_while { |s| s.is_a?(Numeric) }.reverse_each.drop_while { |s| s == 0 }.reverse
|
201
|
+
@numeric_segments ||= segments.take_while { |s| s.is_a?(Numeric) }.reverse_each.drop_while { |s| s == 0 }.reverse
|
202
202
|
end
|
203
203
|
|
204
204
|
def prerelease_segments
|
205
|
-
segments.drop_while { |s| s.is_a?(Numeric) }
|
205
|
+
@prerelease_segments ||= segments.drop_while { |s| s.is_a?(Numeric) }
|
206
206
|
end
|
207
207
|
|
208
208
|
def compare_segments(other)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cocoapods-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.0.beta.
|
4
|
+
version: 1.3.0.beta.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eloy Duran
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-06-
|
12
|
+
date: 2017-06-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|