Using a real artsy example from today.
Creating a follow button on a view controller for different types of objects Artist, Profile, Gene
Needs: networking Needs: layout Needs: interface changes based on networking
// | |
// ARAllViewControllers.m | |
// Artsy | |
// | |
// Created by Orta on 16/02/2014. | |
// Copyright (c) 2014 Art.sy. All rights reserved. | |
// | |
#import <XCTest/XCTest.h> | |
#import "ARClassGetSubclasses.h" |
# Path to your oh-my-fish. | |
set fish_path $HOME/.oh-my-fish | |
set fish_plugins rvm bundler brew rake rails localhost objc autojump | |
set fish_theme idan | |
# Load oh-my-fish cofiguration. | |
. $fish_path/oh-my-fish.fish | |
### Keybase proof | |
I hereby claim: | |
* I am orta on github. | |
* I am orta (https://keybase.io/orta) on keybase. | |
* I have a public key whose fingerprint is E91F 36B1 5554 2702 F46E E083 9F5E 5653 EE2A C266 | |
To claim this, I am signing this object: |
language: objective-c | |
before_install: gem install xcpretty -N | |
script: | |
- set -o pipefail | |
- make ci |
9329 MIT | |
887 Apache License, Version 2.0 | |
854 BSD | |
620 Commercial | |
255 zlib | |
247 Copyright | |
170 2-clause BSD | |
151 Apache | |
104 MIT License | |
102 Apache 2.0 |
NSUserDefaults<Mocta> *defaults = [Mocta objectWithClass:[NSUserDefaults class]];
id< UITableViewDelegate, MoctaStub> delegate = [Mocta objectWithProtocol:@protocol(UITableViewDelegate)];
Expectations are ran on dealloc, or at the end of the test case, so I don't have to do it manually.
Run this, switching MyLib
to whatever.
pod lib create MyLib https://github.com/orta/pod-template
And it will pull in the next version of pod lib create. It's iOS only and very opinionated, it's more or less feature complete now, you should be able to go from pod lib create XXX
to uploaded and on travis CI super super quick!
platform :ios, '7.0' | |
# Allows per-dev overrides | |
local_podfile = "Podfile.local" | |
eval(File.open(local_podfile).read) if File.exist? local_podfile | |
# Core | |
pod 'Mantle', '1.5' | |
pod 'AFNetworking', '1.3.4' | |
... |
// | |
// UIViewController+PresentWithFrame.m | |
// Artsy | |
// | |
// Created by Orta on 8/8/14. | |
// Copyright (c) 2014 Artsy. All rights reserved. | |
// | |
#import "UIViewController+PresentWithFrame.h" |