├── lib ├── cocoapods_plugin.rb ├── cocoapods-superdeintegrate.rb └── cocoapods-superdeintegrate │ ├── command.rb │ ├── gem_version.rb │ └── command │ └── superdeintegrate.rb ├── web └── idea.jpg ├── Gemfile ├── README.md ├── .gitignore ├── LICENSE ├── cocoapods-superdeintegrate.gemspec └── Gemfile.lock /lib/cocoapods_plugin.rb: -------------------------------------------------------------------------------- 1 | require 'cocoapods-superdeintegrate/command' 2 | -------------------------------------------------------------------------------- /lib/cocoapods-superdeintegrate.rb: -------------------------------------------------------------------------------- 1 | require 'cocoapods-superdeintegrate/gem_version' 2 | -------------------------------------------------------------------------------- /web/idea.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ashfurrow/cocoapods-superdeintegrate/HEAD/web/idea.jpg -------------------------------------------------------------------------------- /lib/cocoapods-superdeintegrate/command.rb: -------------------------------------------------------------------------------- 1 | require 'cocoapods-superdeintegrate/command/superdeintegrate' 2 | -------------------------------------------------------------------------------- /lib/cocoapods-superdeintegrate/gem_version.rb: -------------------------------------------------------------------------------- 1 | module CocoapodsSuperdeintegrate 2 | VERSION = "0.0.1" 3 | end 4 | -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- 1 | source 'https://rubygems.org' 2 | 3 | # Specify your gem's dependencies in cocoapods-superdeintegrate.gemspec 4 | gemspec 5 | 6 | gem 'cocoapods' 7 | 8 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # cocoapods-superdeintegrate 2 | 3 | Sometimes you gotta burn it down. 4 | 5 | ![Reset everything](/web/idea.jpg) 6 | 7 | ## Installation 8 | 9 | $ gem install cocoapods-superdeintegrate 10 | 11 | ## Usage 12 | 13 | $ pod superdeintegrate 14 | 15 | ## Acknowledgements 16 | 17 | Inspired by the awesome troubleshooting guide by [Marius Rackwitz](http://twitter.com/mrackwitz). 18 | 19 | Built atop the far more interesting [CocoaPods Deintegrate](https://github.com/kylef/cocoapods-deintegrate) 20 | by [Kyle Fuller](http://twitter.com/kylefuller). 21 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | pkg 3 | .idea/ 4 | *.gem 5 | *.rbc 6 | /.config 7 | /coverage/ 8 | /InstalledFiles 9 | /pkg/ 10 | /spec/reports/ 11 | /test/tmp/ 12 | /test/version_tmp/ 13 | /tmp/ 14 | 15 | ## Specific to RubyMotion: 16 | .dat* 17 | .repl_history 18 | build/ 19 | 20 | ## Documentation cache and generated files: 21 | /.yardoc/ 22 | /_yardoc/ 23 | /doc/ 24 | /rdoc/ 25 | 26 | ## Environment normalisation: 27 | /.bundle/ 28 | /vendor/bundle 29 | /lib/bundler/man/ 30 | 31 | # for a library or gem, you might want to ignore these files since the code is 32 | # intended to run in multiple environments; otherwise, check them in: 33 | # Gemfile.lock 34 | # .ruby-version 35 | # .ruby-gemset 36 | 37 | # unless supporting rvm < 1.11.0 or doing something fancy, ignore this: 38 | .rvmrc 39 | -------------------------------------------------------------------------------- /lib/cocoapods-superdeintegrate/command/superdeintegrate.rb: -------------------------------------------------------------------------------- 1 | module Pod 2 | class Command 3 | class Superdeintegrate < Command 4 | self.summary = 'Superdeintegrate CocoaPods from your project 💣.' 5 | self.description = <<-DESC 6 | Deletes the CocoaPods cache, your derived data folder, and makes sure 7 | that your Pods directory is gone. 8 | DESC 9 | 10 | def run 11 | require 'fileutils' 12 | require 'pod/command/deintegrate' 13 | 14 | UI.section "Superdeintegrating directory." do 15 | FileUtils.rm_rf config.cache_root 16 | FileUtils.rm_rf '~/Library/Developer/Xcode/DerivedData' 17 | begin 18 | Pod::Command::Deintegrate.invoke 19 | rescue 20 | FileUtils.rm_rf config.sandbox_root 21 | end 22 | end 23 | 24 | UI.puts("Finished supdeintegrating directory.".green) 25 | end 26 | end 27 | end 28 | end 29 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2015 Ash Furrow 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | 23 | -------------------------------------------------------------------------------- /cocoapods-superdeintegrate.gemspec: -------------------------------------------------------------------------------- 1 | # coding: utf-8 2 | lib = File.expand_path('../lib', __FILE__) 3 | $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) 4 | require 'cocoapods-superdeintegrate/gem_version.rb' 5 | 6 | Gem::Specification.new do |spec| 7 | spec.name = 'cocoapods-superdeintegrate' 8 | spec.version = CocoapodsSuperdeintegrate::VERSION 9 | spec.authors = ['Ash Furrow'] 10 | spec.email = ['ash@ashfurrow.com'] 11 | spec.description = %q{Superdeintegrate CocoaPods from your project 💣.} 12 | spec.summary = %q{Deletes the CocoaPods cache, your derived data folder, and makes sure that your Pods directory is gone. } 13 | spec.homepage = 'https://github.com/ashfurrow/cocoapods-superdeintegrate' 14 | spec.license = 'MIT' 15 | spec.files = `git ls-files`.split($/) 16 | spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) } 17 | spec.test_files = spec.files.grep(%r{^(test|spec|features)/}) 18 | spec.require_paths = ['lib'] 19 | 20 | spec.add_runtime_dependency "cocoapods-deintegrate" 21 | spec.add_development_dependency 'bundler', '~> 1.3' 22 | spec.add_development_dependency 'rake' 23 | end 24 | -------------------------------------------------------------------------------- /Gemfile.lock: -------------------------------------------------------------------------------- 1 | PATH 2 | remote: . 3 | specs: 4 | cocoapods-superdeintegrate (0.0.1) 5 | cocoapods-deintegrate 6 | 7 | GEM 8 | remote: https://rubygems.org/ 9 | specs: 10 | activesupport (4.2.1) 11 | i18n (~> 0.7) 12 | json (~> 1.7, >= 1.7.7) 13 | minitest (~> 5.1) 14 | thread_safe (~> 0.3, >= 0.3.4) 15 | tzinfo (~> 1.1) 16 | claide (0.8.1) 17 | cocoapods (0.37.2) 18 | activesupport (>= 3.2.15) 19 | claide (~> 0.8.1) 20 | cocoapods-core (= 0.37.2) 21 | cocoapods-downloader (~> 0.9.0) 22 | cocoapods-plugins (~> 0.4.2) 23 | cocoapods-trunk (~> 0.6.1) 24 | cocoapods-try (~> 0.4.5) 25 | colored (~> 1.2) 26 | escape (~> 0.0.4) 27 | molinillo (~> 0.2.3) 28 | nap (~> 0.8) 29 | xcodeproj (~> 0.24.2) 30 | cocoapods-core (0.37.2) 31 | activesupport (>= 3.2.15) 32 | fuzzy_match (~> 2.0.4) 33 | nap (~> 0.8.0) 34 | cocoapods-deintegrate (0.2.1) 35 | cocoapods (~> 0.34) 36 | cocoapods-downloader (0.9.0) 37 | cocoapods-plugins (0.4.2) 38 | nap 39 | cocoapods-trunk (0.6.1) 40 | nap (>= 0.8) 41 | netrc (= 0.7.8) 42 | cocoapods-try (0.4.5) 43 | colored (1.2) 44 | escape (0.0.4) 45 | fuzzy_match (2.0.4) 46 | i18n (0.7.0) 47 | json (1.8.3) 48 | minitest (5.7.0) 49 | molinillo (0.2.3) 50 | nap (0.8.0) 51 | netrc (0.7.8) 52 | rake (10.4.2) 53 | thread_safe (0.3.5) 54 | tzinfo (1.2.2) 55 | thread_safe (~> 0.1) 56 | xcodeproj (0.24.2) 57 | activesupport (>= 3) 58 | colored (~> 1.2) 59 | 60 | PLATFORMS 61 | ruby 62 | 63 | DEPENDENCIES 64 | bundler (~> 1.3) 65 | cocoapods 66 | cocoapods-superdeintegrate! 67 | rake 68 | 69 | BUNDLED WITH 70 | 1.10.3 71 | --------------------------------------------------------------------------------