cocoapods-core 1.3.0.beta.2 → 1.3.0.beta.3

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: 8934bd1c2629b88612a8800d8ec0c3e62f1ec94d
4
- data.tar.gz: bad7229c6636e68f66cbc6e5b8b91958a1f42d29
3
+ metadata.gz: d9461c2dcc51d7cf3e14d321b90f37626137c7ce
4
+ data.tar.gz: 56febba3e6c797a5fa608eaa0fab296eb13989e2
5
5
  SHA512:
6
- metadata.gz: 5a748f7939b103be105f3b195ff83c9a5e0473bce1d9e12d4dfb220f690c7221152b490e0980dad421aa33e92c4f7c7272f964a7a7ba12a4df16a2d19ba8cc67
7
- data.tar.gz: d1bd082afc14892e2d1d8dfb6aabd4ece4da6bfdcebcb2f2c061b9ba003d8079e6e8fbbbfc08ac1cb4d23d40dea128245c8e7159f86c912dda4e2f5735270ce2
6
+ metadata.gz: 6b198f266a2818a3995171c2be164d3f2eb00a1c78ae7376da81cbf777c795680d40807ba19ad7951e70dbb5eaa0d0b52941d12d6d3a628d86a29bb21e21df10
7
+ data.tar.gz: 3e3b8b612a74a7d5042017eeafa63de7150e30bb6d93e48cc5d6fd5b25eeb866cd8c618133a42320e0fd13d8dbe3e2635a2b63f303032c3096f4e0ce49ce76fb
data/README.md CHANGED
@@ -25,10 +25,7 @@ files.
25
25
  $ [sudo] gem install cocoapods-core
26
26
  ```
27
27
 
28
- The `cocoapods-core` gem requires either:
29
-
30
- - Ruby 1.8.7 (shipped with OS X 10.8).
31
- - Ruby 1.9.3 (recommended).
28
+ The `cocoapods-core` gem requires Ruby 2.0.0 or later.
32
29
 
33
30
  ## Collaborate
34
31
 
@@ -1,5 +1,5 @@
1
1
  module Pod
2
2
  # The version of the cocoapods-core.
3
3
  #
4
- CORE_VERSION = '1.3.0.beta.2'.freeze unless defined? Pod::CORE_VERSION
4
+ CORE_VERSION = '1.3.0.beta.3'.freeze unless defined? Pod::CORE_VERSION
5
5
  end
@@ -441,7 +441,6 @@ module Pod
441
441
  end
442
442
 
443
443
  def unchanged_github_repo?
444
- url = repo_git(%w(config --get remote.origin.url))
445
444
  return unless url =~ /github.com/
446
445
  !GitHub.modified_since_commit(url, git_commit_hash)
447
446
  end
@@ -48,6 +48,7 @@ module Pod
48
48
  if spec
49
49
  validate_root_name
50
50
  check_required_attributes
51
+ check_requires_arc_attribute
51
52
  run_root_validation_hooks
52
53
  perform_all_specs_analysis
53
54
  else
@@ -99,6 +100,20 @@ module Pod
99
100
  end
100
101
  end
101
102
 
103
+ # Generates a warning if the requires_arc attribute has true or false string values.
104
+ #
105
+ # @return [void]
106
+ #
107
+ def check_requires_arc_attribute
108
+ attribute = DSL.attributes.values.find { |attr| attr.name == :requires_arc }
109
+ if attribute
110
+ value = spec.send(attribute.name)
111
+ if value == 'true' || value == 'false'
112
+ results.add_warning('requires_arc', value + ' is considered to be the name of a file.')
113
+ end
114
+ end
115
+ end
116
+
102
117
  # Checks that every required attribute has a value.
103
118
  #
104
119
  # @return [void]
@@ -370,8 +385,10 @@ module Pod
370
385
  return
371
386
  end
372
387
  supported_test_types = Specification::DSL::SUPPORTED_TEST_TYPES
373
- results.add_error('test_type', "The test type `#{t}` is not supported. " \
374
- "Supported test type values are #{supported_test_types}.") unless supported_test_types.include?(t)
388
+ unless supported_test_types.include?(t)
389
+ results.add_error('test_type', "The test type `#{t}` is not supported. " \
390
+ "Supported test type values are #{supported_test_types}.")
391
+ end
375
392
  end
376
393
 
377
394
  # Performs validations related to github sources.
@@ -19,6 +19,12 @@ module Pod
19
19
  parent ? "#{parent.name}/#{base_name}" : base_name
20
20
  end
21
21
 
22
+ # @return [Bool, String, Array<String>] The requires_arc value.
23
+ #
24
+ def requires_arc
25
+ attributes_hash['requires_arc']
26
+ end
27
+
22
28
  # @return [Version] The version of the Pod.
23
29
  #
24
30
  # @todo The version is memoized because the Resolvers sets the head
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.3.0.beta.2
4
+ version: 1.3.0.beta.3
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: 2017-06-22 00:00:00.000000000 Z
12
+ date: 2017-07-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport