-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWith.podspec
More file actions
24 lines (22 loc) · 1 KB
/
With.podspec
File metadata and controls
24 lines (22 loc) · 1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Pod::Spec.new do |s|
s.name = 'With'
s.version = ->{
Dir.chdir(__dir__) do
semver_regex = /\d+\.\d+\.\d+(?:-[\w\.]+)?(?:\+[\w\.]+)?/
return `xcodebuild -showBuildSettings 2>/dev/null`.match(/CURRENT_PROJECT_VERSION = (#{semver_regex})/)[1]
end
}.call
s.swift_versions = ['5.0']
s.authors = { 'capnslipp' => 'With@capnslipp.com' }
s.social_media_url = 'https://twitter.com/capnslipp'
s.license = { :type => 'Public Domain', :file => 'LICENSE' }
s.homepage = 'https://github.com/capnslipp/With'
s.source = { :git => 'https://github.com/capnslipp/With.git', :tag => "podspec/#{s.version}" }
s.summary = "A Swift µ-Library Providing a with(…) { … } Statement"
s.description = "With is a Swift micro-library that provides a `with` statement, similar to what's built into Python, JavaScript, Visual Basic, Object Pascal, Delphi, C#, & Kotlin."
# Platform
s.ios.deployment_target = '8.0'
s.osx.deployment_target = '10.9'
# File Patterns
s.source_files = 'Sources/**/*'
end