forked from AliSoftware/OHAttributedStringAdditions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathOHAttributedStringAdditions.podspec
51 lines (39 loc) · 1.94 KB
/
OHAttributedStringAdditions.podspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
Pod::Spec.new do |s|
s.name = "OHAttributedStringAdditions"
s.version = "1.3.0"
s.summary = "Categories on NSAttributedString to add a lot of very useful convenience methods."
s.description = <<-DESC.gsub(/^.*\|/,'')
|This pod contains categories on `NSAttributedString` to add a lot of very useful
|convenience methods to manipulate attributed strings.
|
|The includes convenience methods to:
| * set attributes on a given range
| * get attributes at a given index
|
|Convenience methods are available for a lot of common attributes, including:
| * Fonts
| * Text Foreground and Background Colors
| * Text Style (bold, italics, underline)
| * Links (URLs)
| * Baseline offset, subscript, superscript
| * Text alignment, linebreak mode, character spacing
| * Paragraph Style (text indent, linespacing, …)
| * etc.
DESC
s.homepage = "https://github.com/AliSoftware/OHAttributedStringAdditions"
s.license = { :type => "MIT", :file => "LICENSE" }
s.author = { "Olivier Halligon" => "[email protected]" }
s.social_media_url = "http://twitter.com/aligatr"
s.ios.deployment_target = "7.0"
# s.osx.deployment_target = "10.8"
s.source = { :git => "https://github.com/AliSoftware/OHAttributedStringAdditions.git", :tag => s.version.to_s }
s.requires_arc = true
### Subspecs ###
s.subspec 'Base' do |sub|
sub.source_files = "Source/#{s.name}.h", "Source/{NSAttributedString,NSMutableAttributedString,UIFont}+OHAdditions.{h,m}"
end
s.subspec 'UILabel' do |sub|
sub.source_files = "Source/UILabel+OHAdditions.{h,m}"
sub.dependency "#{s.name}/Base"
end
end