cocoapods-core 1.10.1 → 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: 5b86dd55831c744114ea73a7688b4ccef940339f5ec3c4bb6543ae153c5f187e
4
- data.tar.gz: b485d389f9dc51bb7c9d830831623396e8cae77fb439d13367092e84831990ec
3
+ metadata.gz: 06fcd643645ff4a84183bfc20579b2e7bd03571c9dd411bf347ce5c2b63fb3d2
4
+ data.tar.gz: 92ab0561ef8b87dc703f1246d3a62d04c2534a69028602c60c753a76d2e5830d
5
5
  SHA512:
6
- metadata.gz: 883adf36724a6c90f52d1403e56cdf34e6267f4cfab307cb2991d7b7792c4bf14d52a6c26c400805472054a7794c24822c2963907b742a64bb7c92fd2755b6bc
7
- data.tar.gz: f88fb8e50266eff110204f1c11634d21ab0e0f1cdbf2611e4192f72854efb53332f145f8a97ba60119779c8a429b691d85f2f2f6da743141c85693f3d42a88be
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.1'.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.
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.1
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: 2021-01-07 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