cocoapods-no-dev-schemes 1.0.0

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 5257544fb1bf1502ef0114266f4a6e210fb3af4b
4
+ data.tar.gz: bbe98d985befa0597201f36a918132f1ca7bb43c
5
+ SHA512:
6
+ metadata.gz: 09c7fcd654a6c3459157d03c661356fb485a627747b2bfd742575adf13316f963de5b20dc9baf971a3ad3bfed0937cf49fc327470b3ed5618d0dbdc4c3c87102
7
+ data.tar.gz: 3cef3da465785ddafa0195b6fcd92e794c5eb78c2e2ea3cf850fd39f9c9aa5926e64c7d4f25bb1e9f243838094c3387e75aaff03ee636d353f4ca1948dd357c1
data/.gitignore ADDED
@@ -0,0 +1,3 @@
1
+ .DS_Store
2
+ pkg
3
+ .idea/
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in cocoapods-no-dev-schemes.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2015 Orta Therox <orta.therox@gmail.com>
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,17 @@
1
+ # CocoaPods No-Dev-Schemes
2
+
3
+ Is it annoying that `pod install`ing with development pods changes your target? Well now they won't be created for you anymore. There are good reasons for [doing it](https://github.com/CocoaPods/CocoaPods/pull/3600), but not when working with an app.
4
+
5
+ Use a Gemfile. [Here's a guide](http://guides.cocoapods.org/using/a-gemfile.html)
6
+
7
+ Gemfile:
8
+ ```
9
+ gem "cocoapods"
10
+ gem "cocoapods-no-dev-schemes"
11
+ ```
12
+
13
+ Podfile:
14
+ ```
15
+ plugin "cocoapods-no-dev-schemes"
16
+ [...]
17
+ ```
@@ -0,0 +1,22 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'cocoapods-no-dev-schemes.rb'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = 'cocoapods-no-dev-schemes'
8
+ spec.version = CocoapodsNoDevSchemes::VERSION
9
+ spec.authors = ['Orta Therox']
10
+ spec.email = ['orta.therox@gmail.com']
11
+ spec.description = %q{Removes all the CocoaPods Shared Schemes from Developer Pods.}
12
+ spec.summary = %q{Removes all the CocoaPods Shared Schemes from Developer Pods.}
13
+ spec.homepage = 'https://github.com/orta/cocoapods-no-dev-schemes'
14
+ spec.license = 'MIT'
15
+
16
+ spec.files = `git ls-files`.split($/)
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.require_paths = ['lib']
19
+
20
+ spec.add_development_dependency 'bundler', '~> 1.3'
21
+ spec.add_development_dependency 'rake'
22
+ end
@@ -0,0 +1,3 @@
1
+ module CocoapodsNoDevSchemes
2
+ VERSION = '1.0.0'
3
+ end
@@ -0,0 +1,16 @@
1
+ Pod::HooksManager.register('cocoapods-no-dev-schemes', :post_install) do |context, user_options|
2
+ require 'fileutils'
3
+
4
+ # we want to undo - https://github.com/CocoaPods/CocoaPods/pull/3600
5
+ # So we need to undo this function:
6
+ # https://github.com/CocoaPods/Xcodeproj/blob/27aecbfd66e883d1df616355347246b30fec551d/lib/xcodeproj/scheme.rb#L224-L244
7
+
8
+ shared_scheme_path = "Pods/Pods.xcodeproj/xcshareddata/"
9
+ if Dir.exist?(shared_scheme_path)
10
+
11
+ # But I've not needed to undo it yet.
12
+ # Happy to take PRs on moving it back into the users scheme.
13
+
14
+ FileUtils.rm_r(shared_scheme_path)
15
+ end
16
+ end
metadata ADDED
@@ -0,0 +1,80 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: cocoapods-no-dev-schemes
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Orta Therox
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-09-23 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.3'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.3'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ description: Removes all the CocoaPods Shared Schemes from Developer Pods.
42
+ email:
43
+ - orta.therox@gmail.com
44
+ executables: []
45
+ extensions: []
46
+ extra_rdoc_files: []
47
+ files:
48
+ - ".gitignore"
49
+ - Gemfile
50
+ - LICENSE.txt
51
+ - README.md
52
+ - cocoapods-no-dev-schemes.gemspec
53
+ - lib/cocoapods-no-dev-schemes.rb
54
+ - lib/cocoapods_plugin.rb
55
+ homepage: https://github.com/orta/cocoapods-no-dev-schemes
56
+ licenses:
57
+ - MIT
58
+ metadata: {}
59
+ post_install_message:
60
+ rdoc_options: []
61
+ require_paths:
62
+ - lib
63
+ required_ruby_version: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - ">="
66
+ - !ruby/object:Gem::Version
67
+ version: '0'
68
+ required_rubygems_version: !ruby/object:Gem::Requirement
69
+ requirements:
70
+ - - ">="
71
+ - !ruby/object:Gem::Version
72
+ version: '0'
73
+ requirements: []
74
+ rubyforge_project:
75
+ rubygems_version: 2.2.2
76
+ signing_key:
77
+ specification_version: 4
78
+ summary: Removes all the CocoaPods Shared Schemes from Developer Pods.
79
+ test_files: []
80
+ has_rdoc: