cocoapods 0.17.0.rc4 → 0.17.0.rc5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 968e618e17077f1e02347a81b681117a6b4410b3
4
- data.tar.gz: cf0e4cd10cc63cbae184f22762edd7b3878e5622
3
+ metadata.gz: 9f14fbda04711919eafcc049bfea4e5b80fa8c5b
4
+ data.tar.gz: 7a6d233fffe9ba5b93275cd1b70809ad0dee4ff1
5
5
  SHA512:
6
- metadata.gz: 8849e6833fcbce9561184db443eb3e1dab6d9cbc6ac453f6c2e8f7fba53c9ecc73415308052814fb1bae3f660159c35cc88f495e8eed5ff53c6512301bacd9ab
7
- data.tar.gz: 41c7fb584d7f9bc34b23c61141f4d633f543001ae21a78bc6cfd0e915db13a14b84e6219a4d9b5815d117f3c38adc9324001c552b4b9c18850d7ee163beb11d5
6
+ metadata.gz: c87cfa4d804a1bd92a07b0b4988d2677aaecf2c11b58b3225d0c19ec051598e90d29909c4f102a90561db1e2059eca35b96d70624026567ce9bbdadf134e7bcc
7
+ data.tar.gz: 43fad267dcd2b7596c77180406ecf8b022a6b20548f1c5000166cda45e74bc7bf800bb2d7f9e9ac24620995701059e0c028e8cec2d9888482c9c7eccec2007aa
@@ -1,5 +1,5 @@
1
1
  ## 0.17.0.rc4
2
- [CocoaPods](https://github.com/CocoaPods/CocoaPods/compare/0.17.0.rc3...0.17.0.rc4
2
+ [CocoaPods](https://github.com/CocoaPods/CocoaPods/compare/0.17.0.rc3...0.17.0.rc4)
3
3
 
4
4
  ###### Bug fixes
5
5
 
@@ -2,6 +2,6 @@ module Pod
2
2
 
3
3
  # The version of the cocoapods command line tool.
4
4
  #
5
- VERSION = '0.17.0.rc4' unless defined? Pod::VERSION
5
+ VERSION = '0.17.0.rc5' unless defined? Pod::VERSION
6
6
  end
7
7
 
@@ -243,7 +243,6 @@ module Pod
243
243
 
244
244
  @pod_installers ||= []
245
245
  pod_installer = PodSourceInstaller.new(sandbox, specs_by_platform)
246
- pod_installer.clean = config.clean?
247
246
  pod_installer.aggressive_cache = config.aggressive_cache?
248
247
  pod_installer.generate_docs = config.generate_docs?
249
248
  pod_installer.install_docs = config.install_docs?
@@ -252,7 +251,12 @@ module Pod
252
251
  @installed_specs.concat(specs_by_platform.values.flatten)
253
252
  end
254
253
 
254
+ # Cleans the sources of the Pods if the config instructs to do so.
255
+ #
256
+ # @todo Why the @pod_installers might be empty?
257
+ #
255
258
  def clean_pod_sources
259
+ return unless config.clean?
256
260
  return unless @pod_installers
257
261
  @pod_installers.each do |pod_installer|
258
262
  pod_installer.clean!
@@ -24,7 +24,6 @@ module Pod
24
24
  @sandbox = sandbox
25
25
  @specs_by_platform = specs_by_platform
26
26
 
27
- @clean = true
28
27
  @generate_docs = false
29
28
  @install_docs = false
30
29
  @aggressive_cache = false
@@ -42,12 +41,6 @@ module Pod
42
41
 
43
42
  # @!group Configuration
44
43
 
45
- # @return [Bool] whether the file not used by CocoaPods should be
46
- # removed.
47
- #
48
- attr_accessor :clean
49
- alias_method :clean?, :clean
50
-
51
44
  # @return [Bool] whether the documentation should be generated for the
52
45
  # Pod.
53
46
  #
@@ -92,7 +85,7 @@ module Pod
92
85
  # @return [void]
93
86
  #
94
87
  def clean!
95
- clean_installation if clean? && !local?
88
+ clean_installation if !local?
96
89
  end
97
90
 
98
91
  # @return [Hash]
@@ -133,10 +126,6 @@ module Pod
133
126
  # @return [void]
134
127
  #
135
128
  def generate_docs
136
- if @cleaned
137
- raise Informative, "Attempt to generate the documentation from a cleaned Pod."
138
- end
139
-
140
129
  if documentation_generator.already_installed?
141
130
  UI.section " > Using existing documentation"
142
131
  else
@@ -153,7 +142,6 @@ module Pod
153
142
  #
154
143
  def clean_installation
155
144
  clean_paths.each { |path| FileUtils.rm_rf(path) }
156
- @cleaned = true
157
145
  end
158
146
 
159
147
  #-----------------------------------------------------------------------#
@@ -95,7 +95,10 @@ module Pod
95
95
 
96
96
  list = Array(patterns).map do |pattern|
97
97
  if pattern.is_a?(String)
98
- pattern += '/' + dir_pattern if directory?(pattern) && dir_pattern
98
+ if directory?(pattern) && dir_pattern
99
+ pattern += '/' unless pattern.end_with?('/')
100
+ pattern += dir_pattern
101
+ end
99
102
  expanded_patterns = dir_glob_equivalent_patterns(pattern)
100
103
  full_list.select do |path|
101
104
  expanded_patterns.any? do |p|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.17.0.rc4
4
+ version: 0.17.0.rc5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eloy Duran
@@ -17,14 +17,14 @@ dependencies:
17
17
  requirements:
18
18
  - - '='
19
19
  - !ruby/object:Gem::Version
20
- version: 0.17.0.rc4
20
+ version: 0.17.0.rc5
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - '='
26
26
  - !ruby/object:Gem::Version
27
- version: 0.17.0.rc4
27
+ version: 0.17.0.rc5
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: claide
30
30
  requirement: !ruby/object:Gem::Requirement