cocoapods-core 1.10.0.beta.2 → 1.10.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: dfc07cd09890ebf88d2e8f82a1a45d4cdcad3c45233af54f9a56cccbe32fda91
4
- data.tar.gz: 463d226ffb64c2ce41d983a40f242ff7187c01900bb328680e52fbc8db9ac50d
3
+ metadata.gz: 06fcd643645ff4a84183bfc20579b2e7bd03571c9dd411bf347ce5c2b63fb3d2
4
+ data.tar.gz: 92ab0561ef8b87dc703f1246d3a62d04c2534a69028602c60c753a76d2e5830d
5
5
  SHA512:
6
- metadata.gz: 2f266d7b68bd65b4f7b440ba688bbf11193e14b9b60ba7a7de18905ceb3762ebfba1447151d86e76ae0083c5eb7fffa4037d97dc75e7731a8ab4af2ab0a0d777
7
- data.tar.gz: 155be2855c24439081da0258e7521b904a4f88bee5efb2f2fe397a40cb3f8a023c5c14d434f1cb4d6420808e6eeef6d5d3e0c1e2e226dc6ee5bd1f06e34d499c
6
+ metadata.gz: 408e8ca1e678852e862af47f120626c8fea4d6d7e28f271cd2841a579eb45957024bd0e6c9ef6e48a67c5ea8080b7c2d65989d271708539ca99802fe1dbec113
7
+ data.tar.gz: c3eeb7d11671f57e559af1d00cbbec7baf3a9a3bc6e523b0ecd803affb4dbd32a3ac080164347dfe05dc9c0969122ae4741bfc911a7f1b36192af69fa517d823
@@ -371,7 +371,7 @@ module Pod
371
371
 
372
372
  download_task = download_typhoeus_impl_async(file_remote_url, etag).then do |response|
373
373
  case response.response_code
374
- when 301
374
+ when 301, 302
375
375
  redirect_location = response.headers['location']
376
376
  debug "CDN: #{name} Redirecting from #{file_remote_url} to #{redirect_location}"
377
377
  download_and_save_with_retries_async(partial_url, redirect_location, etag)
@@ -1,5 +1,5 @@
1
1
  module Pod
2
2
  # The version of the cocoapods-core.
3
3
  #
4
- CORE_VERSION = '1.10.0.beta.2'.freeze unless defined? Pod::CORE_VERSION
4
+ CORE_VERSION = '1.10.2'.freeze unless defined? Pod::CORE_VERSION
5
5
  end
@@ -299,6 +299,36 @@ module Pod
299
299
 
300
300
  #------------------#
301
301
 
302
+ # @!method readme=(readme)
303
+ #
304
+ # The URL for the README markdown file for this pod version.
305
+ #
306
+ # @example
307
+ #
308
+ # spec.readme = 'https://www.example.com/Pod-1.5-README.md'
309
+ #
310
+ # @param [String] readme
311
+ # the readme markdown URL.
312
+ #
313
+ root_attribute :readme
314
+
315
+ #------------------#
316
+
317
+ # @!method changelog=(changelog)
318
+ #
319
+ # The URL for the CHANGELOG markdown file for this pod version.
320
+ #
321
+ # @example
322
+ #
323
+ # spec.changelog = 'https://www.example.com/Pod-1.5-CHANGELOG.md'
324
+ #
325
+ # @param [String] changelog
326
+ # the changelog markdown URL.
327
+ #
328
+ root_attribute :changelog
329
+
330
+ #------------------#
331
+
302
332
  # The keys accepted by the hash of the source attribute.
303
333
  #
304
334
  SOURCE_KEYS = {
@@ -520,6 +520,24 @@ module Pod
520
520
  end
521
521
  end
522
522
 
523
+ # Performs validations related to the `readme` attribute.
524
+ #
525
+ def _validate_readme(s)
526
+ if s =~ %r{https://www.example.com/README}
527
+ results.add_warning('readme', 'The readme has ' \
528
+ 'not been updated from the default.')
529
+ end
530
+ end
531
+
532
+ # Performs validations related to the `changelog` attribute.
533
+ #
534
+ def _validate_changelog(s)
535
+ if s =~ %r{https://www.example.com/CHANGELOG}
536
+ results.add_warning('changelog', 'The changelog has ' \
537
+ 'not been updated from the default.')
538
+ end
539
+ end
540
+
523
541
  # @param [Hash,Object] value
524
542
  #
525
543
  def _validate_info_plist(value)
@@ -99,6 +99,18 @@ module Pod
99
99
  attributes_hash['social_media_url']
100
100
  end
101
101
 
102
+ # @return [String] The readme.
103
+ #
104
+ def readme
105
+ attributes_hash['readme']
106
+ end
107
+
108
+ # @return [String] The changelog.
109
+ #
110
+ def changelog
111
+ attributes_hash['changelog']
112
+ end
113
+
102
114
  # @return [Hash] A hash containing the license information of the Pod.
103
115
  #
104
116
  # @note The indentation is stripped from the license text.
@@ -284,6 +284,8 @@ module Pod
284
284
  RESOLVED_TAGS = Regexp.union(
285
285
  'null', 'Null', 'NULL', '~', '', # resolve to null
286
286
  'true', 'True', 'TRUE', 'false', 'False', 'FALSE', # bool
287
+ 'yes', 'Yes', 'YES', 'no', 'No', 'NO', # yes/no
288
+ 'on', 'On', 'ON', 'off', 'Off', 'OFF', # no/off
287
289
  /[-+]?[0-9]+/, # base 10 int
288
290
  /00[0-7]+/, # base 8 int
289
291
  /0x[0-9a-fA-F]+/, # base 16 int
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.10.0.beta.2
4
+ version: 1.10.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: 2020-08-12 00:00:00.000000000 Z
12
+ date: 2021-07-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport