cocoapods-core 1.12.1 → 1.14.0

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: 688a6c066499de2d32095e350e8f01b461af05eecf45ca2b44d3f6191a887dc4
4
- data.tar.gz: e90afe84aec1d077eb8b024570afc841fc6af40b784328005f4a776045911825
3
+ metadata.gz: 06a2fa287969aad00e95b8112c53febf5e1b9af38805ffc415841d42b7321ec7
4
+ data.tar.gz: 67558cd8fd551ced462b2908a4b9ae270ccd125e8580353e6b791cea78a84af1
5
5
  SHA512:
6
- metadata.gz: c3b574901a029a6f1dfdeb19909250efa7e02b4bc259031ad04c8e2e97a59fe61a47eae38892c3ea70461a782b0bd1f66a338e73b0cfeaf3b91f04fe4b44e1b5
7
- data.tar.gz: 86fa4078155ce63688e8b0209c380a24a081b1b94f0056bab37118e51418472835c99b846463a02a53c927a12150857ed2332fe28474712ba01ef4ae46037adb
6
+ metadata.gz: d546dfeadfced19c64fb381de6044869d16bff2b54348058742f338863cf9030f8cff7b606b69aa5ea3a1a034e2be2f54274db9d7f0adbc541132c2e8ac0b1b7
7
+ data.tar.gz: 38ae54c63250f85763d1d295a35a97248fd1a3a300f64295f40f83723048b1ecf4de6e9e495d0df5422c413d638d1e882a995549a72f069c3cf1e3032c4351f1
@@ -1,5 +1,5 @@
1
1
  module Pod
2
2
  # The version of the cocoapods-core.
3
3
  #
4
- CORE_VERSION = '1.12.1'.freeze unless defined? Pod::CORE_VERSION
4
+ CORE_VERSION = '1.14.0'.freeze unless defined? Pod::CORE_VERSION
5
5
  end
@@ -87,6 +87,14 @@ module Pod
87
87
  new :tvos
88
88
  end
89
89
 
90
+ # Convenience method to initialize a visionOS platform.
91
+ #
92
+ # @return [Platform] a visionOS platform.
93
+ #
94
+ def self.visionos
95
+ new :visionos
96
+ end
97
+
90
98
  # Convenience method to initialize a watchOS platform.
91
99
  #
92
100
  # @return [Platform] a watchOS platform.
@@ -100,7 +108,7 @@ module Pod
100
108
  # @return [Array<Platform>] list of platforms.
101
109
  #
102
110
  def self.all
103
- [ios, osx, watchos, tvos]
111
+ [ios, osx, watchos, visionos, tvos]
104
112
  end
105
113
 
106
114
  # Checks if a platform is equivalent to another one or to a symbol
@@ -239,6 +247,7 @@ module Pod
239
247
  when :osx then 'macOS'
240
248
  when :watchos then 'watchOS'
241
249
  when :tvos then 'tvOS'
250
+ when :visionos then 'visionOS'
242
251
  else symbolic_name.to_s
243
252
  end
244
253
  end
@@ -455,6 +455,10 @@ module Pod
455
455
  # @option options [String] :dependency_file
456
456
  # specifies the dependency file to use for this script phase.
457
457
  #
458
+ # @option options [String] :always_out_of_date
459
+ # specifies whether or not this run script will be forced to
460
+ # run even on incremental builds
461
+ #
458
462
  # @return [void]
459
463
  #
460
464
  def script_phase(options)
@@ -566,15 +570,15 @@ module Pod
566
570
  # Specifies the platform for which a static library should be built.
567
571
  #
568
572
  # CocoaPods provides a default deployment target if one is not specified.
569
- # The current default values are `4.3` for iOS, `10.6` for OS X, `9.0` for tvOS
570
- # and `2.0` for watchOS.
573
+ # The current default values are `4.3` for iOS, `10.6` for OS X, `9.0` for tvOS,
574
+ # `1.0` for visionOS and `2.0` for watchOS.
571
575
  #
572
576
  # If the deployment target requires it (iOS < `4.3`), `armv6`
573
577
  # architecture will be added to `ARCHS`.
574
578
  #
575
579
  # @param [Symbol] name
576
580
  # the name of platform, can be either `:osx` for OS X, `:ios`
577
- # for iOS, `:tvos` for tvOS, or `:watchos` for watchOS.
581
+ # for iOS, `:tvos` for tvOS, `:visionos` for visionOS, or `:watchos` for watchOS.
578
582
  #
579
583
  # @param [String, Version] target
580
584
  # The optional deployment. If not provided a default value
@@ -611,7 +611,7 @@ module Pod
611
611
 
612
612
  #--------------------------------------#
613
613
 
614
- PLATFORM_DEFAULTS = { :ios => '4.3', :osx => '10.6', :tvos => '9.0', :watchos => '2.0' }.freeze
614
+ PLATFORM_DEFAULTS = { :ios => '4.3', :osx => '10.6', :tvos => '9.0', :visionos => '1.0', :watchos => '2.0' }.freeze
615
615
 
616
616
  # @return [Platform] the platform of the target definition.
617
617
  #
@@ -648,9 +648,9 @@ module Pod
648
648
  #
649
649
  def set_platform(name, target = nil)
650
650
  name = :osx if name == :macos
651
- unless [:ios, :osx, :tvos, :watchos].include?(name)
651
+ unless [:ios, :osx, :tvos, :visionos, :watchos].include?(name)
652
652
  raise StandardError, "Unsupported platform `#{name}`. Platform " \
653
- 'must be `:ios`, `:osx`, `:macos`, `:tvos`, or `:watchos`.'
653
+ 'must be `:ios`, `:osx`, `:macos`, `:tvos`, :visionos, or `:watchos`.'
654
654
  end
655
655
 
656
656
  if target
@@ -583,7 +583,7 @@ module Pod
583
583
 
584
584
  # The names of the platforms supported by the specification class.
585
585
  #
586
- PLATFORMS = [:osx, :ios, :tvos, :watchos].freeze
586
+ PLATFORMS = [:osx, :ios, :tvos, :visionos, :watchos].freeze
587
587
 
588
588
  # @todo This currently is not used in the Ruby DSL.
589
589
  #
@@ -1075,7 +1075,7 @@ module Pod
1075
1075
  SCRIPT_PHASE_REQUIRED_KEYS = [:name, :script].freeze
1076
1076
 
1077
1077
  SCRIPT_PHASE_OPTIONAL_KEYS = [:shell_path, :input_files, :output_files, :input_file_lists, :output_file_lists,
1078
- :show_env_vars_in_log, :execution_position, :dependency_file].freeze
1078
+ :show_env_vars_in_log, :execution_position, :dependency_file, :always_out_of_date].freeze
1079
1079
 
1080
1080
  EXECUTION_POSITION_KEYS = [:before_compile, :after_compile, :before_headers, :after_headers, :any].freeze
1081
1081
 
@@ -1880,6 +1880,17 @@ module Pod
1880
1880
  PlatformProxy.new(self, :tvos)
1881
1881
  end
1882
1882
 
1883
+ # Provides support for specifying visionOS attributes.
1884
+ #
1885
+ # @example
1886
+ # spec.visionos.source_files = 'Classes/visionos/**/*.{h,m}'
1887
+ #
1888
+ # @return [PlatformProxy] the proxy that will set the attributes.
1889
+ #
1890
+ def visionos
1891
+ PlatformProxy.new(self, :visionos)
1892
+ end
1893
+
1883
1894
  # Provides support for specifying watchOS attributes.
1884
1895
  #
1885
1896
  # @example
@@ -54,7 +54,7 @@ module Pod
54
54
  # @return [Hash, Array] the Ruby YAML representaton
55
55
  #
56
56
  def load_string(yaml_string, file_path = nil)
57
- YAML.load(yaml_string)
57
+ YAML.safe_load(yaml_string, :permitted_classes => [Date, Time, Symbol])
58
58
  rescue
59
59
  if yaml_has_merge_error?(yaml_string)
60
60
  raise Informative, yaml_merge_conflict_msg(yaml_string, file_path)
@@ -284,6 +284,17 @@ module Pod
284
284
  'true', 'True', 'TRUE', 'false', 'False', 'FALSE', # bool
285
285
  'yes', 'Yes', 'YES', 'no', 'No', 'NO', # yes/no
286
286
  'on', 'On', 'ON', 'off', 'Off', 'OFF', # no/off
287
+ Regexp.new(%{
288
+ [0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9] # (ymd)
289
+ |[0-9][0-9][0-9][0-9] # (year)
290
+ -[0-9][0-9]? # (month)
291
+ -[0-9][0-9]? # (day)
292
+ ([Tt]|[ \t]+)[0-9][0-9]? # (hour)
293
+ :[0-9][0-9] # (minute)
294
+ :[0-9][0-9] # (second)
295
+ (\.[0-9]*)? # (fraction)
296
+ (([ \t]*)(Z|[-+][0-9][0-9]?(:[0-9][0-9])?))? # (time zone)
297
+ }, Regexp::EXTENDED), # https://yaml.org/type/timestamp.html
287
298
  /[-+]?[0-9]+/, # base 10 int
288
299
  /00[0-7]+/, # base 8 int
289
300
  /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.12.1
4
+ version: 1.14.0
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: 2023-04-18 00:00:00.000000000 Z
12
+ date: 2023-10-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
@@ -224,7 +224,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
224
224
  requirements:
225
225
  - - ">="
226
226
  - !ruby/object:Gem::Version
227
- version: '2.6'
227
+ version: '2.7'
228
228
  required_rubygems_version: !ruby/object:Gem::Requirement
229
229
  requirements:
230
230
  - - ">="