This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Pod::Spec.new do |s| | |
s.name = 'UrbanAirship-iOS-SDK' | |
s.version = '1.3.7.fixed' | |
s.license = 'BSD' | |
s.platform = :ios | |
s.summary = 'A simple way to integrate Urban Airship services into your iOS applications.' | |
s.homepage = 'https://github.com/urbanairship/ios-library' | |
s.author = { 'Urban Airship' => 'support@urbanairship.com' } | |
s.source = { :git => 'https://github.com/urbanairship/ios-library.git', :tag => 'v1.3.7' } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PreCommit: | |
NoXcodeTemplateComments: | |
description: 'Checking for Xcode template comments' | |
enabled: true | |
quiet: true | |
exclude: | |
- 'Pods/**/*.*' | |
include: | |
- '**/*.h' | |
- '**/*.m' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
before_script: | |
- sudo systemsetup -settimezone America/Los_Angeles |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -l | |
brew install ios-sim | |
brew link ios-sim | |
DEVICE_TYPE_ID="com.apple.CoreSimulator.SimDeviceType.iPhone-6s, 9.3" | |
available=$(ios-sim showdevicetypes | grep "$DEVICE_TYPE_ID" -c) | |
if (( available >= 1 )) | |
then | |
dir=`mktemp -d` && pushd $dir |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
post_install do |installer| | |
ignore_overriding_contains_swift(installer, 'MyFramework') | |
end | |
def ignore_overriding_contains_swift(installer, framework_target) | |
target = installer.aggregate_targets.find{|t| t.name == "Pods-#{framework_target}"} | |
raise "failed to find #{framework_target} among: #{installer.aggregate_targets}" unless target | |
target.xcconfigs.each_value do |config| | |
config.attributes.delete('EMBEDDED_CONTENT_CONTAINS_SWIFT') | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func startScrolling() { | |
scrollLimit = Int(contentImageView.bounds.size.width - scrollView.bounds.size.width) | |
scrollByFraction(.Start) | |
UIView.animateWithDuration(15, | |
delay: 0, | |
options: [.Autoreverse,.Repeat,.BeginFromCurrentState], | |
animations: {self.scrollByFraction(.End)}, | |
completion: {_ in self.centerContent()}) | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PreCommit: | |
NoFocusedExamples: | |
include: ['*Tests/*.swift', '*Tests/*.m'] | |
enabled: true | |
description: 'Checking for temporary focused examples' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
🍔 is OK in gist but not OK in gist comments | |
When I try to add a comment with 🍔, I get error: | |
You can't comment at this time — your comment contains unicode characters above 0xffff. | |
{"meal":"🍔"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Quick | |
import Nimble | |
private let uniqueName = "unique name of notification" | |
private let testNotificationName = NSNotification.Name(uniqueName) | |
private var blockInvocationCounter = 0 | |
private class Counter { | |
var received: Int = 0 | |
var instances: Int = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FILES="$(git diff --cached --name-only --diff-filter=AMC *.rb *.rake)" | |
rubocop -a ${FILES} |
OlderNewer