Skip to content

Instantly share code, notes, and snippets.

@fabiopelosin
fabiopelosin / cocoapods-github-labels.rb
Created April 15, 2014 10:13
Script to update the labels of a repo to the CocoaPods style
require 'octokit'
dry_run = false
token = ''
repo_slug = ARGV.first
unless repo_slug
puts "[!] A repo slug is required"
end

Rubocop Preview

Creates a commit for each violation autofixed by rubocop. The result can be used to make a pull request for discussion purposes.

Features

  • Runs rake spec before commiting any violation.
  • Skips empty violations.
@fabiopelosin
fabiopelosin / CocoaPodsBot.rb
Created December 2, 2013 22:14
Experimental CocoaPodsBot
#!/usr/bin/env ruby
# Experimental CocoaPodsBot
#
# Synopsis:
#
# The CocoaPodsBot performs a full lint (including xcodebuild) and prints a
# markdown message with the result of the lint.
#
# Usage:
@fabiopelosin
fabiopelosin / Post.md
Last active December 17, 2015 09:08
CocoaPods communication.

CocoaPods: YAML Specifications

Since version 0.17 CocoaPods support the YAML format for specifications. The YAML format is similar to the Ruby DSL with some minor adaptations.

To convert the Master repo we need your help to ensure that the transition is smooth. Please follow the below presented steps to help us identify any issue.

Testing

// To check if a library is compiled with CocoaPods you
// can use the `COCOAPODS` macro definition which is
// defined in the xcconfigs so it is available in
// headers also when they are imported in the client
// project.
// AFHTTPRequestOperationLogger
#define COCOAPODS_POD_AVAILABLE_AFHTTPRequestOperationLogger TRUE
#
# uncrustify config file for objective-c and objective-c++
#
indent_with_tabs = 0 # 1=indent to level only, 2=indent with tabs
output_tab_size = 4 # new tab size
indent_columns = output_tab_size
indent_label = 2 # pos: absolute col, neg: relative column
indent_align_assign = FALSE
@fabiopelosin
fabiopelosin / Output
Created January 17, 2013 22:26
This scripts prints out the a list of the command line tools used by Xcode. It provides insight to what Xcode does to process resource files.
-> CopyPNGFile
Copies a .png file resource, optionally compressing it.
$ copypng [options] $(IPHONE_OPTIMIZE_OPTIONS) [input] [output]
-> Code Sign
Code-sign a framework, application, or other built target.
$ /usr/bin/codesign
-> Strip Symbols
Remove or modify the symbol table of a Mach-O binary

Podspec attributes

Overview

Root specification attributes

authors
name version
@fabiopelosin
fabiopelosin / New Lockfile.yaml
Created August 14, 2012 09:59
CocoaPods Lockfile
PODS:
- A2DynamicDelegate (2.0.1):
- libffi
- AFNetworking (1.0RC1)
- BlockAlertsAnd-ActionSheets (1.0.0)
- BlocksKit (1.5.1):
- A2DynamicDelegate
- DACircularProgress (2.0.0)
- DTCoreText (1.0.1)
- JMImageCache (0.2.1)
@fabiopelosin
fabiopelosin / CocoaPodsBot.rb
Created July 24, 2012 22:35
Experimental CocoaPodsBot
#!/usr/bin/env ruby
# Experimental CocoaPodsBot
#
# Synopsis:
#
# The CocoaPodsBot performs a full lint (including xcodebuild) and prints a
# markdown message with the result of the lint.
#
# Usage: