From 52c5e88c23658ec24a639c12bda19dce7f54c690 Mon Sep 17 00:00:00 2001 From: Yichi Zhang Date: Fri, 4 Jul 2014 12:16:10 +1000 Subject: [PATCH 1/4] Fixed podspec The previous pod spec was erroneous, should have automatically generate the pod spec by typing $ pod spec create [NAME | https://github.com/USER/REPO] --- HTMLAttributedString.podspec | 147 ++++++++++++++++++++++++++++++++--- 1 file changed, 135 insertions(+), 12 deletions(-) diff --git a/HTMLAttributedString.podspec b/HTMLAttributedString.podspec index d885ef3..9f495f5 100644 --- a/HTMLAttributedString.podspec +++ b/HTMLAttributedString.podspec @@ -1,13 +1,136 @@ +# +# Be sure to run `pod spec lint [HTMLAttributedString.podspec' to ensure this is a +# valid spec and to remove all comments including this before submitting the spec. +# +# To learn more about Podspec attributes see http://docs.cocoapods.org/specification.html +# To see working Podspecs in the CocoaPods repo see https://github.com/CocoaPods/Specs/ +# + Pod::Spec.new do |s| - s.name = 'HTMLAttributedString' - s.version = '1.0.0' - s.summary = 'HTMLAttributedString uses the power of iOS 7.0's initWithData:options:documentAttributes:error: to bring you the power of HTML and CSS into your everyday iOS development needs.' - s.author = { - 'Mohammed Islam' => 'https://github.com/mmislam101' - } - s.source = { - :git => 'https://github.com/mmislam101/HTMLAttributedString.git', - :tag => '1.0.0' - } - s.source_files = 'Source/*.{h,m}' -end \ No newline at end of file + + # ――― Spec Metadata ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # + # + # These will help people to find your library, and whilst it + # can feel like a chore to fill in it's definitely to your advantage. The + # summary should be tweet-length, and the description more in depth. + # + + s.name = "[HTMLAttributedString" + s.version = "0.0.1" + s.summary = "A short description of [HTMLAttributedString." + + s.description = <<-DESC + A longer description of [HTMLAttributedString in Markdown format. + + * Think: Why did you write this? What is the focus? What does it do? + * CocoaPods will be using this to generate tags, and improve search results. + * Try to keep it short, snappy and to the point. + * Finally, don't worry about the indent, CocoaPods strips it! + DESC + + s.homepage = "http://EXAMPLE/[HTMLAttributedString" + # s.screenshots = "www.example.com/screenshots_1.gif", "www.example.com/screenshots_2.gif" + + + # ――― Spec License ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # + # + # Licensing your code is important. See http://choosealicense.com for more info. + # CocoaPods will detect a license file if there is a named LICENSE* + # Popular ones are 'MIT', 'BSD' and 'Apache License, Version 2.0'. + # + + s.license = "MIT (example)" + # s.license = { :type => "MIT", :file => "FILE_LICENSE" } + + + # ――― Author Metadata ――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # + # + # Specify the authors of the library, with email addresses. Email addresses + # of the authors are extracted from the SCM log. E.g. $ git log. CocoaPods also + # accepts just a name if you'd rather not provide an email address. + # + # Specify a social_media_url where others can refer to, for example a twitter + # profile URL. + # + + s.author = { "Yichi Zhang" => "zhang-yi-chi@hotmail.com" } + # Or just: s.author = "Yichi Zhang" + # s.authors = { "Yichi Zhang" => "zhang-yi-chi@hotmail.com" } + # s.social_media_url = "http://twitter.com/Yichi Zhang" + + # ――― Platform Specifics ――――――――――――――――――――――――――――――――――――――――――――――――――――――― # + # + # If this Pod runs only on iOS or OS X, then specify the platform and + # the deployment target. You can optionally include the target after the platform. + # + + # s.platform = :ios + # s.platform = :ios, "5.0" + + # When using multiple platforms + # s.ios.deployment_target = "5.0" + # s.osx.deployment_target = "10.7" + + + # ――― Source Location ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # + # + # Specify the location from where the source should be retrieved. + # Supports git, hg, bzr, svn and HTTP. + # + + s.source = { :git => "http://EXAMPLE/[HTMLAttributedString.git", :tag => "0.0.1" } + + + # ――― Source Code ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # + # + # CocoaPods is smart about how it includes source code. For source files + # giving a folder will include any h, m, mm, c & cpp files. For header + # files it will include any header in the folder. + # Not including the public_header_files will make all headers public. + # + + s.source_files = "Classes", "Classes/**/*.{h,m}" + s.exclude_files = "Classes/Exclude" + + # s.public_header_files = "Classes/**/*.h" + + + # ――― Resources ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # + # + # A list of resources included with the Pod. These are copied into the + # target bundle with a build phase script. Anything else will be cleaned. + # You can preserve files from being cleaned, please don't preserve + # non-essential files like tests, examples and documentation. + # + + # s.resource = "icon.png" + # s.resources = "Resources/*.png" + + # s.preserve_paths = "FilesToSave", "MoreFilesToSave" + + + # ――― Project Linking ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # + # + # Link your library with frameworks, or libraries. Libraries do not include + # the lib prefix of their name. + # + + # s.framework = "SomeFramework" + # s.frameworks = "SomeFramework", "AnotherFramework" + + # s.library = "iconv" + # s.libraries = "iconv", "xml2" + + + # ――― Project Settings ――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # + # + # If your library depends on compiler flags you can set them in the xcconfig hash + # where they will only apply to your library. If you depend on other Podspecs + # you can include multiple dependencies to ensure it works. + + # s.requires_arc = true + + # s.xcconfig = { "HEADER_SEARCH_PATHS" => "$(SDKROOT)/usr/include/libxml2" } + # s.dependency "JSONKit", "~> 1.4" + +end From 0fc512ccb0d2f68819aa3b03ceac37ed3261c0f1 Mon Sep 17 00:00:00 2001 From: Yichi Zhang Date: Sat, 11 Oct 2014 00:20:52 +1100 Subject: [PATCH 2/4] A podspec for HTMLAttributedString Fixed pod spec for HTMLAttributedString, matching 1.0.0 A release of 1.0.0 needs to be done. Could you do it? --- HTMLAttributedString.podspec | 148 +++-------------------------------- 1 file changed, 13 insertions(+), 135 deletions(-) diff --git a/HTMLAttributedString.podspec b/HTMLAttributedString.podspec index 9f495f5..c590dd8 100644 --- a/HTMLAttributedString.podspec +++ b/HTMLAttributedString.podspec @@ -1,136 +1,14 @@ -# -# Be sure to run `pod spec lint [HTMLAttributedString.podspec' to ensure this is a -# valid spec and to remove all comments including this before submitting the spec. -# -# To learn more about Podspec attributes see http://docs.cocoapods.org/specification.html -# To see working Podspecs in the CocoaPods repo see https://github.com/CocoaPods/Specs/ -# - Pod::Spec.new do |s| - - # ――― Spec Metadata ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # - # - # These will help people to find your library, and whilst it - # can feel like a chore to fill in it's definitely to your advantage. The - # summary should be tweet-length, and the description more in depth. - # - - s.name = "[HTMLAttributedString" - s.version = "0.0.1" - s.summary = "A short description of [HTMLAttributedString." - - s.description = <<-DESC - A longer description of [HTMLAttributedString in Markdown format. - - * Think: Why did you write this? What is the focus? What does it do? - * CocoaPods will be using this to generate tags, and improve search results. - * Try to keep it short, snappy and to the point. - * Finally, don't worry about the indent, CocoaPods strips it! - DESC - - s.homepage = "http://EXAMPLE/[HTMLAttributedString" - # s.screenshots = "www.example.com/screenshots_1.gif", "www.example.com/screenshots_2.gif" - - - # ――― Spec License ――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # - # - # Licensing your code is important. See http://choosealicense.com for more info. - # CocoaPods will detect a license file if there is a named LICENSE* - # Popular ones are 'MIT', 'BSD' and 'Apache License, Version 2.0'. - # - - s.license = "MIT (example)" - # s.license = { :type => "MIT", :file => "FILE_LICENSE" } - - - # ――― Author Metadata ――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # - # - # Specify the authors of the library, with email addresses. Email addresses - # of the authors are extracted from the SCM log. E.g. $ git log. CocoaPods also - # accepts just a name if you'd rather not provide an email address. - # - # Specify a social_media_url where others can refer to, for example a twitter - # profile URL. - # - - s.author = { "Yichi Zhang" => "zhang-yi-chi@hotmail.com" } - # Or just: s.author = "Yichi Zhang" - # s.authors = { "Yichi Zhang" => "zhang-yi-chi@hotmail.com" } - # s.social_media_url = "http://twitter.com/Yichi Zhang" - - # ――― Platform Specifics ――――――――――――――――――――――――――――――――――――――――――――――――――――――― # - # - # If this Pod runs only on iOS or OS X, then specify the platform and - # the deployment target. You can optionally include the target after the platform. - # - - # s.platform = :ios - # s.platform = :ios, "5.0" - - # When using multiple platforms - # s.ios.deployment_target = "5.0" - # s.osx.deployment_target = "10.7" - - - # ――― Source Location ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # - # - # Specify the location from where the source should be retrieved. - # Supports git, hg, bzr, svn and HTTP. - # - - s.source = { :git => "http://EXAMPLE/[HTMLAttributedString.git", :tag => "0.0.1" } - - - # ――― Source Code ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # - # - # CocoaPods is smart about how it includes source code. For source files - # giving a folder will include any h, m, mm, c & cpp files. For header - # files it will include any header in the folder. - # Not including the public_header_files will make all headers public. - # - - s.source_files = "Classes", "Classes/**/*.{h,m}" - s.exclude_files = "Classes/Exclude" - - # s.public_header_files = "Classes/**/*.h" - - - # ――― Resources ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # - # - # A list of resources included with the Pod. These are copied into the - # target bundle with a build phase script. Anything else will be cleaned. - # You can preserve files from being cleaned, please don't preserve - # non-essential files like tests, examples and documentation. - # - - # s.resource = "icon.png" - # s.resources = "Resources/*.png" - - # s.preserve_paths = "FilesToSave", "MoreFilesToSave" - - - # ――― Project Linking ―――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # - # - # Link your library with frameworks, or libraries. Libraries do not include - # the lib prefix of their name. - # - - # s.framework = "SomeFramework" - # s.frameworks = "SomeFramework", "AnotherFramework" - - # s.library = "iconv" - # s.libraries = "iconv", "xml2" - - - # ――― Project Settings ――――――――――――――――――――――――――――――――――――――――――――――――――――――――― # - # - # If your library depends on compiler flags you can set them in the xcconfig hash - # where they will only apply to your library. If you depend on other Podspecs - # you can include multiple dependencies to ensure it works. - - # s.requires_arc = true - - # s.xcconfig = { "HEADER_SEARCH_PATHS" => "$(SDKROOT)/usr/include/libxml2" } - # s.dependency "JSONKit", "~> 1.4" - -end + s.name = "HTMLAttributedString" + s.version = "1.0.0" + s.summary = "Do not mess with NSRanges anymore; Mark up your strings for quick attributes." + s.homepage = "https://github.com/mmislam101/HTMLAttributedString" + s.author = { "Mohammed Islam" => "https://github.com/mmislam101" } + s.license = "unlicense" + + s.source = { :git => "https://github.com/mmislam101/HTMLAttributedString.git", :tag => "1.0.0" } + + s.platform = :ios, '6.0' + s.source_files = 'HTMLAttributedString/HTMLAttributedString.{h,m}' + s.requires_arc = true +end \ No newline at end of file From 678842c8d2f3e199c0b8c49aa28894b2140aa86a Mon Sep 17 00:00:00 2001 From: Yichi Zhang Date: Sat, 11 Oct 2014 00:23:33 +1100 Subject: [PATCH 3/4] Changed version of pod file to 0.0.1 Changed version of pod file from 1.0.0 to 0.0.1, to match the actual release number --- HTMLAttributedString.podspec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/HTMLAttributedString.podspec b/HTMLAttributedString.podspec index c590dd8..8581379 100644 --- a/HTMLAttributedString.podspec +++ b/HTMLAttributedString.podspec @@ -1,12 +1,12 @@ Pod::Spec.new do |s| s.name = "HTMLAttributedString" - s.version = "1.0.0" + s.version = "0.0.1" s.summary = "Do not mess with NSRanges anymore; Mark up your strings for quick attributes." s.homepage = "https://github.com/mmislam101/HTMLAttributedString" s.author = { "Mohammed Islam" => "https://github.com/mmislam101" } s.license = "unlicense" - s.source = { :git => "https://github.com/mmislam101/HTMLAttributedString.git", :tag => "1.0.0" } + s.source = { :git => "https://github.com/mmislam101/HTMLAttributedString.git", :tag => "0.0.1" } s.platform = :ios, '6.0' s.source_files = 'HTMLAttributedString/HTMLAttributedString.{h,m}' From f90b6761d869d901f84c7420e407302af82f4070 Mon Sep 17 00:00:00 2001 From: Yichi Zhang Date: Sat, 11 Oct 2014 01:09:58 +1100 Subject: [PATCH 4/4] Podspec Podspec --- HTMLAttributedString.podspec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/HTMLAttributedString.podspec b/HTMLAttributedString.podspec index 8581379..17bf99e 100644 --- a/HTMLAttributedString.podspec +++ b/HTMLAttributedString.podspec @@ -2,11 +2,11 @@ Pod::Spec.new do |s| s.name = "HTMLAttributedString" s.version = "0.0.1" s.summary = "Do not mess with NSRanges anymore; Mark up your strings for quick attributes." - s.homepage = "https://github.com/mmislam101/HTMLAttributedString" + s.homepage = "https://github.com/yichizhang/HTMLAttributedString" s.author = { "Mohammed Islam" => "https://github.com/mmislam101" } s.license = "unlicense" - s.source = { :git => "https://github.com/mmislam101/HTMLAttributedString.git", :tag => "0.0.1" } + s.source = { :git => "https://github.com/yichizhang/HTMLAttributedString.git", :tag => "0.0.1" } s.platform = :ios, '6.0' s.source_files = 'HTMLAttributedString/HTMLAttributedString.{h,m}'