cocoapods-core 0.36.0.beta.1 → 0.36.0.beta.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cocoapods-core/gem_version.rb +1 -1
- data/lib/cocoapods-core/source.rb +1 -1
- data/lib/cocoapods-core/specification/consumer.rb +1 -1
- data/lib/cocoapods-core/specification/dsl.rb +1 -1
- data/lib/cocoapods-core/specification/linter.rb +15 -2
- data/lib/cocoapods-core/specification/linter/analyzer.rb +0 -1
- data/lib/cocoapods-core/specification/root_attribute_accessors.rb +2 -1
- data/lib/cocoapods-core/yaml_helper.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: 39b20311877e6a8f1059d7178ed1f40829995d49
|
4
|
+
data.tar.gz: dd35dbdc688039420676c4e447df3d8b31e48496
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d6e2c6c3264cedf3b6ea2030cb7abbd301757317b154bdf8f6c1552886fcbd875304efc80b3d381d3bed86512d1e910d777aa62e863977976f7717434306516f
|
7
|
+
data.tar.gz: 0fc6afdc18a2b0750b50504bafb5d22ea5dab61e787490aca7118be44ecb4d277073fe2dd65ec58d7e028632c73c4f4846a05cce6c82f874cd700151ec5b04ad
|
@@ -108,7 +108,7 @@ module Pod
|
|
108
108
|
basename = v.basename.to_s
|
109
109
|
begin
|
110
110
|
Version.new(basename) if v.directory? && basename[0, 1] != '.'
|
111
|
-
rescue ArgumentError
|
111
|
+
rescue ArgumentError
|
112
112
|
raise Informative, 'An unexpected version directory ' \
|
113
113
|
"`#{basename}` was encountered for the " \
|
114
114
|
"`#{pod_dir}` Pod in the `#{name}` repository."
|
@@ -91,10 +91,10 @@ module Pod
|
|
91
91
|
next unless attr.required?
|
92
92
|
unless value && (!value.respond_to?(:empty?) || !value.empty?)
|
93
93
|
if attr.name == :license
|
94
|
-
results.add_warning('attributes', 'Missing required attribute' \
|
94
|
+
results.add_warning('attributes', 'Missing required attribute ' \
|
95
95
|
"`#{attr.name}`.")
|
96
96
|
else
|
97
|
-
results.add_error('attributes', 'Missing required attribute' \
|
97
|
+
results.add_error('attributes', 'Missing required attribute ' \
|
98
98
|
"`#{attr.name}`.")
|
99
99
|
end
|
100
100
|
end
|
@@ -192,6 +192,19 @@ module Pod
|
|
192
192
|
end
|
193
193
|
end
|
194
194
|
|
195
|
+
def _validate_authors(a)
|
196
|
+
if a.is_a? Hash
|
197
|
+
if a == { 'YOUR NAME HERE' => 'YOUR EMAIL HERE' }
|
198
|
+
results.add_error('authors', 'The authors have not been updated ' \
|
199
|
+
'from default')
|
200
|
+
end
|
201
|
+
end
|
202
|
+
|
203
|
+
if a.empty?
|
204
|
+
results.add_error('authors', 'The authors are unspecified.')
|
205
|
+
end
|
206
|
+
end
|
207
|
+
|
195
208
|
def _validate_version(v)
|
196
209
|
if v.to_s.empty?
|
197
210
|
results.add_error('version', 'A version is required.')
|
@@ -110,7 +110,8 @@ module Pod
|
|
110
110
|
# @return [String] A short description of the Pod.
|
111
111
|
#
|
112
112
|
def summary
|
113
|
-
attributes_hash['summary']
|
113
|
+
summary = attributes_hash['summary']
|
114
|
+
summary.strip_heredoc.chomp if summary
|
114
115
|
end
|
115
116
|
|
116
117
|
# @return [String] A longer description of the Pod.
|
@@ -178,7 +178,7 @@ module Pod
|
|
178
178
|
err = 'ERROR: Parsing unable to continue due '
|
179
179
|
err += "to merge conflicts present in:\n"
|
180
180
|
err += "the file located at #{path}\n" if path
|
181
|
-
err
|
181
|
+
err + "#{yaml}"
|
182
182
|
end
|
183
183
|
|
184
184
|
# Error message describing a general error took happened
|
@@ -196,7 +196,7 @@ module Pod
|
|
196
196
|
err = 'ERROR: Parsing unable to continue due '
|
197
197
|
err += "to parsing error:\n"
|
198
198
|
err += "contained in the file located at #{path}\n" if path
|
199
|
-
err
|
199
|
+
err + "#{yaml}"
|
200
200
|
end
|
201
201
|
|
202
202
|
#-----------------------------------------------------------------------#
|
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: 0.36.0.beta.
|
4
|
+
version: 0.36.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:
|
12
|
+
date: 2015-01-27 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|