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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d1aef836bf83585db97dc487c15d8a5aa7290886
4
- data.tar.gz: a08f076add586a3a79f71365ae02d9b63d314ca7
3
+ metadata.gz: 39b20311877e6a8f1059d7178ed1f40829995d49
4
+ data.tar.gz: dd35dbdc688039420676c4e447df3d8b31e48496
5
5
  SHA512:
6
- metadata.gz: b8b4639f30e85fd314a5fd93c2782dc2a7d125916760b4af0db485cead247b5f09426fdf8013966cd33875549503c39dbe4d20f85b077f713636aaa5f261843e
7
- data.tar.gz: 4fbb5d4225d96a0be864450c6b3c2112fc544b4381e0c5d3e3fcf6c1ad08d0a2296ce93462023c2ffe4f4d8549f60ff566b64de74b28cc5049049561ea25d7c2
6
+ metadata.gz: d6e2c6c3264cedf3b6ea2030cb7abbd301757317b154bdf8f6c1552886fcbd875304efc80b3d381d3bed86512d1e910d777aa62e863977976f7717434306516f
7
+ data.tar.gz: 0fc6afdc18a2b0750b50504bafb5d22ea5dab61e787490aca7118be44ecb4d277073fe2dd65ec58d7e028632c73c4f4846a05cce6c82f874cd700151ec5b04ad
@@ -1,5 +1,5 @@
1
1
  module Pod
2
2
  # The version of the cocoapods-core.
3
3
  #
4
- CORE_VERSION = '0.36.0.beta.1' unless defined? Pod::CORE_VERSION
4
+ CORE_VERSION = '0.36.0.beta.2' unless defined? Pod::CORE_VERSION
5
5
  end
@@ -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 => e
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."
@@ -291,7 +291,7 @@ module Pod
291
291
 
292
292
  hook_name = prepare_hook_name(attr)
293
293
  if self.respond_to?(hook_name, true)
294
- value = send(hook_name, value)
294
+ send(hook_name, value)
295
295
  else
296
296
  value
297
297
  end
@@ -676,7 +676,7 @@ module Pod
676
676
 
677
677
  # @!method libraries=(*libraries)
678
678
  #
679
- # A list of libraries that the user’s target (application) needs to
679
+ # A list of system libraries that the user’s target (application) needs to
680
680
  # link against.
681
681
  #
682
682
  # @example
@@ -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.')
@@ -122,7 +122,6 @@ module Pod
122
122
  validate_attribute_array_keys(attribute, value)
123
123
  elsif attribute.keys.is_a?(Hash)
124
124
  validate_attribute_hash_keys(attribute, value)
125
- else
126
125
  end
127
126
  end
128
127
 
@@ -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 += "#{yaml}"
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 += "#{yaml}"
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.1
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: 2014-12-25 00:00:00.000000000 Z
12
+ date: 2015-01-27 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport