cocoapods 0.33.0 → 0.33.1

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: ff40392dc1f5d3bf6a6bb31da9a0682506d65859
4
- data.tar.gz: 044a9e333d0eeee8ddf5b3334e1879d22dfc1322
3
+ metadata.gz: 18b0e8254dccbab860daf0273b7e554c53ea7584
4
+ data.tar.gz: d49ebc81ee6364f4d30c0122ee37b02450298fc4
5
5
  SHA512:
6
- metadata.gz: dad9e16a494562952e401a0c350aaa0225707cea4314e870aa314cc7b5283d66d7d662c01eb8f07d17a2c9e2e27b7a770c6f9b38e5741dfaaee208e6f9b33b9c
7
- data.tar.gz: 8ebab7ed68083acd1c4d52f988a120ab920e1b70ce878dc11b5104cf66309a6d4335b3a2e3b88cfb99e06ced4e18d59888c7cc8165656e89cfb2a2733401f5ea
6
+ metadata.gz: dcb8c26b9758d4529361612f6a1c6b14b33e5847221ca09349f7bce48b1c21a2a74df917ca9ac4c8dd9afd436348f9f93168eb97cf056cdb98b043c2e81d6419
7
+ data.tar.gz: ea1542d3ad2736d17dc2591aea575be7890e5d7ad4b067900fee3ecf15e17d8632917ef4ef2f25d91489f6ccea4bce22eb86d78e846a70c36204355a7fe462cf
@@ -2,6 +2,22 @@
2
2
 
3
3
  To install or update CocoaPods see this [guide](http://docs.cocoapods.org/guides/installing_cocoapods.html).
4
4
 
5
+ ## 0.33.1
6
+
7
+ ##### Bug Fixes
8
+
9
+ * Fix `pod spec lint` for `json` podspecs.
10
+ [Fabio Pelosin][irrationalfab]
11
+ [#2157](https://github.com/CocoaPods/CocoaPods/issues/2157)
12
+
13
+ * Fixed downloader issues related to `json` podspecs.
14
+ [Fabio Pelosin][irrationalfab]
15
+ [#2158](https://github.com/CocoaPods/CocoaPods/issues/2158)
16
+
17
+ * Fixed `--no-ansi` flag in help banners.
18
+ [Fabio Pelosin][irrationalfab]
19
+ [#34](https://github.com/CocoaPods/CLAide/issues/34)
20
+
5
21
  ## 0.33.0
6
22
 
7
23
  ##### Breaking
@@ -4,8 +4,8 @@ module Pod
4
4
  self.summary = 'Searches for pods'
5
5
 
6
6
  self.description = <<-DESC
7
- Searches for pods, ignoring case, whose name matches `QUERY'. If the
8
- `--full' option is specified, this will also search in the summary and
7
+ Searches for pods, ignoring case, whose name matches `QUERY`. If the
8
+ `--full` option is specified, this will also search in the summary and
9
9
  description of the pods.
10
10
  DESC
11
11
 
@@ -126,17 +126,17 @@ module Pod
126
126
  end
127
127
  files << output_path
128
128
  else if (pathname = Pathname.new(path)).directory?
129
- files += Pathname.glob(pathname + '**/*.podspec')
130
- raise Informative, "No specs found in the current directory." if files.empty?
131
- else
132
- files << (pathname = Pathname.new(path))
133
- raise Informative, "Unable to find a spec named `#{path}'." unless pathname.exist? && path.include?('.podspec')
134
- end
129
+ files += Pathname.glob(pathname + '**/*.podspec{.json,}')
130
+ raise Informative, "No specs found in the current directory." if files.empty?
131
+ else
132
+ files << (pathname = Pathname.new(path))
133
+ raise Informative, "Unable to find a spec named `#{path}'." unless pathname.exist? && path.include?('.podspec')
135
134
  end
136
135
  end
137
- files
138
136
  end
137
+ files
139
138
  end
139
+ end
140
140
 
141
141
  def podspecs_tmp_dir
142
142
  Pathname.new(File.join(Pathname.new('/tmp').realpath, '/CocoaPods/Lint_podspec'))
@@ -67,7 +67,8 @@ module Pod
67
67
  # relative to the file system.
68
68
  #
69
69
  def normalized_podspec_path(declared_path)
70
- if File.extname(declared_path) == '.podspec'
70
+ extension = File.extname(declared_path)
71
+ if extension == '.podspec' || extension == '.json'
71
72
  path_with_ext = declared_path
72
73
  else
73
74
  path_with_ext = "#{declared_path}/#{name}.podspec"
@@ -130,8 +131,8 @@ module Pod
130
131
  #
131
132
  # @return [void]
132
133
  #
133
- def store_podspec(sandbox, spec)
134
- sandbox.store_podspec(name, spec, true)
134
+ def store_podspec(sandbox, spec, json = false)
135
+ sandbox.store_podspec(name, spec, true, json)
135
136
  end
136
137
  end
137
138
  end
@@ -11,8 +11,9 @@ module Pod
11
11
  def fetch(sandbox)
12
12
  title = "Fetching podspec for `#{name}` #{description}"
13
13
  UI.titled_section(title, { :verbose_prefix => "-> " }) do
14
+ is_json = podspec_uri.split('.').last == 'json'
14
15
  require 'open-uri'
15
- open(podspec_uri) { |io| store_podspec(sandbox, io.read) }
16
+ open(podspec_uri) { |io| store_podspec(sandbox, io.read, is_json) }
16
17
  end
17
18
  end
18
19
 
@@ -1,6 +1,6 @@
1
1
  module Pod
2
2
  # The version of the cocoapods command line tool.
3
3
  #
4
- VERSION = '0.33.0' unless defined? Pod::VERSION
4
+ VERSION = '0.33.1' unless defined? Pod::VERSION
5
5
  end
6
6
 
@@ -217,7 +217,16 @@ module Pod
217
217
  #
218
218
  def specification_path(name)
219
219
  path = specifications_dir + "#{name}.podspec"
220
- path.exist? ? path : nil
220
+ if path.exist?
221
+ path
222
+ else
223
+ path = specifications_dir + "#{name}.podspec.json"
224
+ if path.exist?
225
+ path
226
+ else
227
+ nil
228
+ end
229
+ end
221
230
  end
222
231
 
223
232
  # Stores a specification in the `Local Podspecs` folder.
@@ -232,8 +241,9 @@ module Pod
232
241
  # @todo Store all the specifications (including those not originating
233
242
  # from external sources) so users can check them.
234
243
  #
235
- def store_podspec(name, podspec, external_source = false)
236
- output_path = specifications_dir(external_source) + "#{name}.podspec"
244
+ def store_podspec(name, podspec, external_source = false, json = false)
245
+ file_name = json ? "#{name}.podspec.json" : "#{name}.podspec"
246
+ output_path = specifications_dir(external_source) + file_name
237
247
  output_path.dirname.mkpath
238
248
  if podspec.is_a?(String)
239
249
  output_path.open('w') { |f| f.puts(podspec) }
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.33.0
4
+ version: 0.33.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eloy Duran
@@ -17,28 +17,28 @@ dependencies:
17
17
  requirements:
18
18
  - - '='
19
19
  - !ruby/object:Gem::Version
20
- version: 0.33.0
20
+ version: 0.33.1
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.33.0
27
+ version: 0.33.1
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: claide
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
32
  - - "~>"
33
33
  - !ruby/object:Gem::Version
34
- version: 0.6.0
34
+ version: 0.6.1
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
39
  - - "~>"
40
40
  - !ruby/object:Gem::Version
41
- version: 0.6.0
41
+ version: 0.6.1
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: xcodeproj
44
44
  requirement: !ruby/object:Gem::Requirement
@@ -59,14 +59,14 @@ dependencies:
59
59
  requirements:
60
60
  - - "~>"
61
61
  - !ruby/object:Gem::Version
62
- version: 0.6.0
62
+ version: 0.6.1
63
63
  type: :runtime
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
66
66
  requirements:
67
67
  - - "~>"
68
68
  - !ruby/object:Gem::Version
69
- version: 0.6.0
69
+ version: 0.6.1
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: cocoapods-plugins
72
72
  requirement: !ruby/object:Gem::Requirement
@@ -101,14 +101,14 @@ dependencies:
101
101
  requirements:
102
102
  - - "~>"
103
103
  - !ruby/object:Gem::Version
104
- version: 0.1.0
104
+ version: 0.1.1
105
105
  type: :runtime
106
106
  prerelease: false
107
107
  version_requirements: !ruby/object:Gem::Requirement
108
108
  requirements:
109
109
  - - "~>"
110
110
  - !ruby/object:Gem::Version
111
- version: 0.1.0
111
+ version: 0.1.1
112
112
  - !ruby/object:Gem::Dependency
113
113
  name: colored
114
114
  requirement: !ruby/object:Gem::Requirement
@@ -301,49 +301,11 @@ homepage: https://github.com/CocoaPods/CocoaPods
301
301
  licenses:
302
302
  - MIT
303
303
  metadata: {}
304
- post_install_message: "\nCHANGELOG:\n\n## 0.33.0\n\n##### Breaking\n\n* The deprecated
305
- `pre_install` and the `pod_install` hooks of the specification\n class have been
306
- removed. \n [Fabio Pelosin][irrationalfab]\n [#2151](https://github.com/CocoaPods/CocoaPods/issues/2151)\n
307
- \ [#2153](https://github.com/CocoaPods/CocoaPods/pull/2153)\n\n##### Enhancements\n\n*
308
- Added the `cocoapods-trunk` plugin which introduces the `trunk` subcommand. \n
309
- \ [Fabio Pelosin][irrationalfab]\n [#2151](https://github.com/CocoaPods/CocoaPods/issues/2151)\n
310
- \ [#2153](https://github.com/CocoaPods/CocoaPods/pull/2153)\n\n* The `pod push`
311
- sub-command has been moved to the `pod repo push` sub-command.\n Moreover pushing
312
- to the master repo from it has been disabled. \n [Fabio Pelosin][irrationalfab]\n
313
- \ [#2151](https://github.com/CocoaPods/CocoaPods/issues/2151)\n [#2153](https://github.com/CocoaPods/CocoaPods/pull/2153)\n\n*
314
- Overhauled command line interface. Add support for auto-completion script\n (d).
315
- If auto-completion is enabled for your shell you can configure it for\n CocoaPods
316
- with the following command:\n\n rm -f /usr/local/share/zsh/site-functions/_pod\n
317
- \ dpod --completion-script > /usr/local/share/zsh/site-functions/_pod\n exec
318
- zsh\n\n Currently only the Z shell is supported. \n [Fabio Pelosin][irrationalfab]\n
319
- \ [CLAide#25](https://github.com/CocoaPods/CLAide/issues/25)\n [CLAide#20](https://github.com/CocoaPods/CLAide/issues/20)\n
320
- \ [CLAide#19](https://github.com/CocoaPods/CLAide/issues/19)\n [CLAide#17](https://github.com/CocoaPods/CLAide/issues/17)\n
321
- \ [CLAide#12](https://github.com/CocoaPods/CLAide/issues/12)\n\n* The `--version`
322
- flag is now only supported for the root `pod` command. If\n used in conjunction
323
- with the `--verbose` flag the version of the detected\n plugins will be printed
324
- as well. \n [Fabio Pelosin][irrationalfab]\n [CLAide#13](https://github.com/CocoaPods/CLAide/issues/13)\n
325
- \ [CLAide#14](https://github.com/CocoaPods/CLAide/issues/14)\n\n* The extremely
326
- meta `cocoaPods-plugins` is now installed by default providing\n information about
327
- the available and the installed plug-ins. \n [David Grandinetti](https://github.com/dbgrandi)\n
328
- \ [Olivier Halligon](https://github.com/AliSoftware)\n [Fabio Pelosin][irrationalfab]\n
329
- \ [#2092](https://github.com/CocoaPods/CocoaPods/issues/2092)\n\n* Validate the
330
- reachability of `social_media_url`, `documentation_url` and\n `docset_url` in podspecs
331
- we while linting a specification. \n [Kyle Fuller](https://github.com/kylef)\n
332
- \ [#2025](https://github.com/CocoaPods/CocoaPods/issues/2025)\n\n* Print the current
333
- version when the repo/lockfile requires a higher version. \n [Samuel E. Giddins](https://github.com/segiddins)\n
334
- \ [#2049](https://github.com/CocoaPods/CocoaPods/issues/2049)\n\n* Show `help` when
335
- running the `pod` command instead of defaulting to `pod\n install`. \n [Kyle
336
- Fuller](https://github.com/kylef)\n [#1771](https://github.com/CocoaPods/CocoaPods/issues/1771)\n\n#####
337
- Bug Fixes\n\n* Show the actual executable when external commands fail. \n [Boris
338
- Bügling][neonichu]\n [#2102](https://github.com/CocoaPods/CocoaPods/issues/2102)\n\n*
339
- Fixed support for file references in the workspace generated by CocoaPods. \n [Kyle
340
- Fuller][kylef]\n [Fabio Pelosin][irrationalfab]\n [Xcodeproj#105](https://github.com/CocoaPods/Xcodeproj/pull/150)\n\n*
341
- Show a helpful error message when reading version information with merge\n conflict.
342
- \ \n [Samuel E. Giddins][segiddins]\n [#1853](https://github.com/CocoaPods/CocoaPods/issues/1853)\n\n*
343
- Show deprecated specs when invoking `pod outdated`. \n [Samuel E. Giddins](https://github.com/segiddins)\n
344
- \ [#2003](https://github.com/CocoaPods/CocoaPods/issues/2003)\n\n* Fixes an issue
345
- where `pod repo update` may start an un-committed merge. \n [Kyle Fuller][kylef]\n
346
- \ [#2024](https://github.com/CocoaPods/CocoaPods/issues/2024)\n\n"
304
+ post_install_message: "\nCHANGELOG:\n\n## 0.33.1\n\n##### Bug Fixes\n\n* Fix `pod
305
+ spec lint` for `json` podspecs. \n [Fabio Pelosin][irrationalfab]\n [#2157](https://github.com/CocoaPods/CocoaPods/issues/2157)\n\n*
306
+ Fixed downloader issues related to `json` podspecs. \n [Fabio Pelosin][irrationalfab]\n
307
+ \ [#2158](https://github.com/CocoaPods/CocoaPods/issues/2158)\n\n* Fixed `--no-ansi`
308
+ flag in help banners. \n [Fabio Pelosin][irrationalfab]\n [#34](https://github.com/CocoaPods/CLAide/issues/34)\n\n"
347
309
  rdoc_options: []
348
310
  require_paths:
349
311
  - lib