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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d9461c2dcc51d7cf3e14d321b90f37626137c7ce
|
4
|
+
data.tar.gz: 56febba3e6c797a5fa608eaa0fab296eb13989e2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
|
@@ -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
|
-
|
374
|
-
"
|
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.
|
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-
|
12
|
+
date: 2017-07-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activesupport
|