cocoapods-core 1.12.0 → 1.13.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: 824c7944892cc517687d058e3c9719a6b8290438b99ca19643588e13fe7595a5
4
- data.tar.gz: 17180f2d30e429c2d78ed8b838e17177f555713d2f5383623d0f40006c1b68e6
3
+ metadata.gz: 014e0c494cb3fbaa3cf22c0c67779de4fea4c913da936390f90a1e885fd241e1
4
+ data.tar.gz: 972cc7a0888373e3136347d2c6d6df05e55b966bb5a0c1bd0440160519c7563e
5
5
  SHA512:
6
- metadata.gz: 9cb1eed9a33ea1c0a5d4ab14840dc4eb01c69a8f3436617f80f66e4f3732c6d6d900ce67910f074fd8eac9c830c0ed06b96287e08275c6751ca631c17becdd20
7
- data.tar.gz: a43df310810994735968f89f129276cc6a914069f7c51c5810ccb93f9b264093926f64fd5a2d2fff92dc46a5cec1cfb68813aae377fa21484f2fa79bdfd4d946
6
+ metadata.gz: c6f64110d2957bea2488051ed8bd859856b3c017543f7c15e55051a68d7b8527fbe886fc4a0484d8b876e1362a90021459ac8e4ee8999f6a0e385dbf20dca23a
7
+ data.tar.gz: 01b05cece5e45ae56ad8da66a3c35e0090be902f581df2ad73b8e0acabc6783702623e61c235b6adf7935ce3de48890af27565f3806efc8845bc5259fff10978
@@ -1,5 +1,5 @@
1
1
  module Pod
2
2
  # The version of the cocoapods-core.
3
3
  #
4
- CORE_VERSION = '1.12.0'.freeze unless defined? Pod::CORE_VERSION
4
+ CORE_VERSION = '1.13.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.0
4
+ version: 1.13.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-02-27 00:00:00.000000000 Z
12
+ date: 2023-09-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport