Skip to content
This repository has been archived by the owner on Feb 16, 2019. It is now read-only.

Commit

Permalink
Version 1.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
soffes committed Apr 21, 2013
1 parent 123b3d5 commit 1403f02
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 23 deletions.
37 changes: 15 additions & 22 deletions SSToolkit.podspec
@@ -1,11 +1,11 @@
Pod::Spec.new do |s|
s.name = 'SSToolkit'
s.version = '1.0.3'
s.version = '1.0.4'
s.platform = :ios
s.summary = 'A collection of well-documented iOS classes for making life easier.'
s.homepage = 'http://sstoolk.it'
s.author = { 'Sam Soffes' => 'sam@soff.es' }
s.source = { :git => 'https://github.com/soffes/sstoolkit.git', :tag => '1.0.3' }
s.source = { :git => 'https://github.com/soffes/sstoolkit.git', :tag => 'v1.0.4' }
s.description = 'SSToolkit is a collection of well-documented iOS classes for making life ' \
'easier by solving common problems all iOS developers face. Some really ' \
'handy classes are SSCollectionView, SSGradientView, SSSwitch, and many more.'
Expand All @@ -16,29 +16,22 @@ Pod::Spec.new do |s|
s.preserve_paths = 'SSToolkit.xcodeproj', 'Resources'
s.prefix_header_contents = '#ifdef __OBJC__', '#import "SSToolkitDefines.h"', '#endif'

def s.post_install(target)
if Version.new(Pod::VERSION) >= Version.new('0.16.999')
sandbox_root = target.sandbox_dir
else
sandbox_root = config.project_pods_root
end

Dir.chdir File.join(sandbox_root, 'SSToolkit') do
command = "xcodebuild -project SSToolkit.xcodeproj -target SSToolkitResources CONFIGURATION_BUILD_DIR=../Resources"
command << " 2>&1 > /dev/null"
def s.post_install(target_installer)
puts "\nGenerating SSToolkit resources bundle\n".yellow if config.verbose?
Dir.chdir File.join(config.project_pods_root, 'SSToolkit') do
command = "xcodebuild -project SSToolkit.xcodeproj -target SSToolkitResources CONFIGURATION_BUILD_DIR=./"
command << " 2>&1 > /dev/null" unless config.verbose?
unless system(command)
raise ::Pod::Informative, "Failed to generate SSToolkit resources bundle"
end

if Version.new(Pod::VERSION) >= Version.new('0.16.999')
script_path = target.copy_resources_script_path
else
script_path = File.join(config.project_pods_root, target.target_definition.copy_resources_script_name)
end

File.open(script_path, 'a') do |file|
file.puts "install_resource 'Resources/SSToolkitResources.bundle'"
end
end
if Version.new(Pod::VERSION) >= Version.new('0.16.999')
script_path = target_installer.copy_resources_script_path
else
script_path = File.join(config.project_pods_root, target_installer.target_definition.copy_resources_script_name)
end
File.open(script_path, 'a') do |file|
file.puts "install_resource 'SSToolkit/SSToolkitResources.bundle'"
end
end
end
2 changes: 1 addition & 1 deletion VERSION
@@ -1 +1 @@
1.0.3
1.0.4

0 comments on commit 1403f02

Please sign in to comment.