Skip to content

Commit

Permalink
add gitignore and podspec
Browse files Browse the repository at this point in the history
  • Loading branch information
fleitz committed Dec 13, 2012
1 parent 31d0b0f commit 818971b
Show file tree
Hide file tree
Showing 4 changed files with 544 additions and 122 deletions.
15 changes: 15 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,16 @@
build/*
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
*.xcworkspace
!default.xcworkspace
xcuserdata
profile
DerivedData/*
*.moved-aside
.DS_Store
127 changes: 5 additions & 122 deletions ColorArt.podspec
Original file line number Diff line number Diff line change
@@ -1,130 +1,13 @@
#
# Be sure to run `pod spec lint ColorArt.podspec' to ensure this is a
# valid spec.
#
# Remove all comments before submitting the spec. Optional attributes are commented.
#
# For details see: https://github.com/CocoaPods/CocoaPods/wiki/The-podspec-format
#
Pod::Spec.new do |s|
s.name = "ColorArt"
s.version = "0.0.1"
s.summary = "iTunes 11-style color matching code"
# s.description = <<-DESC
# An optional longer description of ColorArt
#
# * Markdonw format.
# * Don't worry about the indent, we strip it!
# DESC
s.homepage = "https://github.com/fleitz/ColorArt"

# Specify the license type. CocoaPods detects automatically the license file if it is named
# `LICENSE*.*', however if the name is different, specify it.
s.license = 'MIT (example)'
# s.license = { :type => 'MIT (example)', :file => 'FILE_LICENSE' }
#
# Only if no dedicated file is available include the full text of the license.
#
# s.license = {
# :type => 'MIT (example)',
# :text => <<-LICENSE
# Copyright (C) <year> <copyright holders>

# All rights reserved.

# Redistribution and use in source and binary forms, with or without
# ...
# LICENSE
# }

# Specify the authors of the library, with email addresses. You can often find
# the email addresses of the authors by using the SCM log. E.g. $ git log
#
#s.author = { "Fred Leitz" => "fred.leitz@gmail.com" }
s.authors = { "Fred Leitz" => "fred.leitz@gmail.com", "Aaron Brethorst" => "" }
#
# If absolutely no email addresses are available, then you can use this form instead.
#
# s.author = 'Fred Leitz', 'other author'

# Specify the location from where the source should be retreived.
#
s.source = { :git => "http://EXAMPLE/ColorArt.git", :tag => "0.0.1" }
# s.source = { :svn => 'http://EXAMPLE/ColorArt/tags/1.0.0' }
# s.source = { :hg => 'http://EXAMPLE/ColorArt', :revision => '1.0.0' }

# If this Pod runs only on iOS or OS X, then specify the platform and
# the deployment target.
#
s.authors = { "Fred Leitz" => "fred.leitz@gmail.com", "Aaron Brethorst" => "", "Wade Cosgrove" => "" }
s.source = { :git => "https://github.com/fleitz/ColorArt.git", :tag => "0.0.1" }
s.platform = :ios, '5.0'
# s.platform = :ios

# ――― MULTI-PLATFORM VALUES ――――――――――――――――――――――――――――――――――――――――――――――――― #

# If this Pod runs on both platforms, then specify the deployment
# targets.
#
# s.ios.deployment_target = '5.0'
# s.osx.deployment_target = '10.7'

# A list of file patterns which select the source files that should be
# added to the Pods project. If the pattern is a directory then the
# path will automatically have '*.{h,m,mm,c,cpp}' appended.
#
# Alternatively, you can use the FileList class for even more control
# over the selected files.
# (See http://rake.rubyforge.org/classes/Rake/FileList.html.)
#
s.source_files = 'ColorArt', 'Classes/**/*.{h,m}'

# A list of file patterns which select the header files that should be
# made available to the application. If the pattern is a directory then the
# path will automatically have '*.h' appended.
#
# Also allows the use of the FileList class like `source_files does.
#
# If you do not explicitely set the list of public header files,
# all headers of source_files will be made public.
#
# s.public_header_files = 'Classes/**/*.h'

# A list of resources included with the Pod. These are copied into the
# target bundle with a build phase script.
#
# Also allows the use of the FileList class like `source_files does.
#
# s.resource = "icon.png"
# s.resources = "Resources/*.png"

# A list of paths to preserve after installing the Pod.
# CocoaPods cleans by default any file that is not used.
# Please don't include documentation, example, and test files.
# Also allows the use of the FileList class like `source_files does.
#
# s.preserve_paths = "FilesToSave", "MoreFilesToSave"

# Specify a list of frameworks that the application needs to link
# against for this Pod to work.
#
# s.framework = 'SomeFramework'
# s.frameworks = 'SomeFramework', 'AnotherFramework'

# Specify a list of libraries that the application needs to link
# against for this Pod to work.
#
# s.library = 'iconv'
# s.libraries = 'iconv', 'xml2'

# If this Pod uses ARC, specify it like so.
#
# s.requires_arc = true

# If you need to specify any other build settings, add them to the
# xcconfig hash.
#
# s.xcconfig = { 'HEADER_SEARCH_PATHS' => '$(SDKROOT)/usr/include/libxml2' }

# Finally, specify any Pods that this Pod depends on.
#
# s.dependency 'JSONKit', '~> 1.4'
s.source_files = 'ColorArt/Classes', 'ColorArt/Classes/**/*.{h,m}'
s.frameworks = 'UIKit', 'Foundation', 'CoreGraphics', 'QuartzCore'
s.requires_arc = true
end
28 changes: 28 additions & 0 deletions ColorArt/Classes/SLColorArt.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
//
// SLColorArt.h
// ColorArt
//
// Created by Aaron Brethorst on 12/11/12.
//
// Copyright (C) 2012 Panic Inc. Code by Wade Cosgrove. All rights reserved.
//
// Redistribution and use, with or without modification, are permitted provided that the following conditions are met:
//
// - Redistributions must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
//
// - Neither the name of Panic Inc nor the names of its contributors may be used to endorse or promote works derived from this software without specific prior written permission from Panic Inc.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL PANIC INC BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.


#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@interface SLColorArt : NSObject
@property(strong, nonatomic, readonly) UIColor *backgroundColor;
@property(strong, nonatomic, readonly) UIColor *primaryColor;
@property(strong, nonatomic, readonly) UIColor *secondaryColor;
@property(strong, nonatomic, readonly) UIColor *detailColor;
@property(nonatomic, copy) UIImage *scaledImage;

- (id)initWithImage:(UIImage*)image scaledSize:(CGSize)size;
@end
Loading

0 comments on commit 818971b

Please sign in to comment.