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

Commit 1403f02

Browse files
committed
Version 1.0.4
1 parent 123b3d5 commit 1403f02

File tree

2 files changed

+16
-23
lines changed

2 files changed

+16
-23
lines changed

SSToolkit.podspec

Lines changed: 15 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
Pod::Spec.new do |s|
22
s.name = 'SSToolkit'
3-
s.version = '1.0.3'
3+
s.version = '1.0.4'
44
s.platform = :ios
55
s.summary = 'A collection of well-documented iOS classes for making life easier.'
66
s.homepage = 'http://sstoolk.it'
77
s.author = { 'Sam Soffes' => '[email protected]' }
8-
s.source = { :git => 'https://github.com/soffes/sstoolkit.git', :tag => '1.0.3' }
8+
s.source = { :git => 'https://github.com/soffes/sstoolkit.git', :tag => 'v1.0.4' }
99
s.description = 'SSToolkit is a collection of well-documented iOS classes for making life ' \
1010
'easier by solving common problems all iOS developers face. Some really ' \
1111
'handy classes are SSCollectionView, SSGradientView, SSSwitch, and many more.'
@@ -16,29 +16,22 @@ Pod::Spec.new do |s|
1616
s.preserve_paths = 'SSToolkit.xcodeproj', 'Resources'
1717
s.prefix_header_contents = '#ifdef __OBJC__', '#import "SSToolkitDefines.h"', '#endif'
1818

19-
def s.post_install(target)
20-
if Version.new(Pod::VERSION) >= Version.new('0.16.999')
21-
sandbox_root = target.sandbox_dir
22-
else
23-
sandbox_root = config.project_pods_root
24-
end
25-
26-
Dir.chdir File.join(sandbox_root, 'SSToolkit') do
27-
command = "xcodebuild -project SSToolkit.xcodeproj -target SSToolkitResources CONFIGURATION_BUILD_DIR=../Resources"
28-
command << " 2>&1 > /dev/null"
19+
def s.post_install(target_installer)
20+
puts "\nGenerating SSToolkit resources bundle\n".yellow if config.verbose?
21+
Dir.chdir File.join(config.project_pods_root, 'SSToolkit') do
22+
command = "xcodebuild -project SSToolkit.xcodeproj -target SSToolkitResources CONFIGURATION_BUILD_DIR=./"
23+
command << " 2>&1 > /dev/null" unless config.verbose?
2924
unless system(command)
3025
raise ::Pod::Informative, "Failed to generate SSToolkit resources bundle"
3126
end
32-
33-
if Version.new(Pod::VERSION) >= Version.new('0.16.999')
34-
script_path = target.copy_resources_script_path
35-
else
36-
script_path = File.join(config.project_pods_root, target.target_definition.copy_resources_script_name)
37-
end
38-
39-
File.open(script_path, 'a') do |file|
40-
file.puts "install_resource 'Resources/SSToolkitResources.bundle'"
41-
end
27+
end
28+
if Version.new(Pod::VERSION) >= Version.new('0.16.999')
29+
script_path = target_installer.copy_resources_script_path
30+
else
31+
script_path = File.join(config.project_pods_root, target_installer.target_definition.copy_resources_script_name)
32+
end
33+
File.open(script_path, 'a') do |file|
34+
file.puts "install_resource 'SSToolkit/SSToolkitResources.bundle'"
4235
end
4336
end
4437
end

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.0.3
1+
1.0.4

0 commit comments

Comments
 (0)