From 9113f0b7df79285e00e09506d0d5fc7f9126ea8d Mon Sep 17 00:00:00 2001 From: Vlad Date: Thu, 7 Jan 2021 18:15:43 +0300 Subject: [PATCH 1/9] feat: add prepare-commit-msgto check commit style --- .githooks/prepare-commit-msg | 96 +++++++++++++++++++++ CHANGELOG.md | 4 + LeadKit.podspec | 2 +- README.md | 7 +- TIFoundationUtils/TIFoundationUtils.podspec | 2 +- TISwiftUtils/TISwiftUtils.podspec | 2 +- TITableKitUtils/TITableKitUtils.podspec | 2 +- TITransitions/TITransitions.podspec | 2 +- TIUIElements/TIUIElements.podspec | 2 +- TIUIKitCore/TIUIKitCore.podspec | 2 +- setup.sh | 13 +++ 11 files changed, 126 insertions(+), 8 deletions(-) create mode 100755 .githooks/prepare-commit-msg create mode 100755 setup.sh diff --git a/.githooks/prepare-commit-msg b/.githooks/prepare-commit-msg new file mode 100755 index 00000000..a64fc023 --- /dev/null +++ b/.githooks/prepare-commit-msg @@ -0,0 +1,96 @@ +#!/usr/bin/env python3 + +import sys, re +from subprocess import check_output +from sys import getdefaultencoding + +getdefaultencoding() # utf-8 + +valid_commit_style = '^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style)(\(\S+\))?\!?: .+' +merge_commit_style = '^(m|M)erge .+' + +success_title = 'SUCCESS' +success_color = '92m' + +error_title = 'ERROR' +error_message = 'Incorrect commit message style!\nThe commit pattern:' +error_commit_pattern = ' type(scope): message | type: message \n' +error_color = '91m' + +breaking_changes_message = 'If commit include Breaking changes use ! after type or scope:' +colored_breaking_changes_message = 'If commit include \033[91mBreaking changes\033[00m use \033[91m!\033[00m after type or scope:' +breaking_changes_commit_pattern = ' type(scope)!: message | type!: message \n' + +available_commit_types = ['build: Changes that affect the build system or external dependencies', + 'ci: Changes to our CI configuration files and scripts', + 'docs: Documentation only changes', + 'feat: A new feature. Correlates with MINOR in SemVer', + 'fix: A bug fix. Correlates with PATCH in SemVer', + 'perf: A code change that improves performance', + 'refactor: A code change that neither fixes', + 'revert: A revert to previous commit', + 'style: Changes that do not affect the meaning of the code (white-space, formatting, etc)'] + +is_GUI_client = False + +def print_result_header(result_title, color): + if not is_GUI_client: + print("[\033[96mcommit lint\033[00m] [\033[{}{}\033[00m]\n".format(color, result_title)) + +def print_pattern(pattern): + if is_GUI_client: + print(pattern) + else: + print("\033[96m{}\033[00m".format(pattern)) + +def print_error_message(): + print_result_header(error_title, error_color) + + print(error_message) + print_pattern(error_commit_pattern) + + if is_GUI_client: + print(breaking_changes_message) + else: + print(colored_breaking_changes_message) + + print_pattern(breaking_changes_commit_pattern) + + print_available_commit_types() + +def print_available_commit_types(): + print("Available commit types:") + + for commit_type in available_commit_types: + print(" - %s" %commit_type) + +def write_commit_message(fh, commit_msg): + fh.seek(0, 0) + fh.write(commit_msg) + +def lint_commit_message(fh, commit_msg): + is_merge_commit = re.findall(merge_commit_style, commit_msg) + is_valid_commit = re.findall(valid_commit_style, commit_msg) + + if is_valid_commit or is_merge_commit: + print_result_header(success_title, success_color) + write_commit_message(fh, commit_msg) + sys.exit(0) + else: + print_error_message() + sys.exit(1) + +def run_script(): + commit_msg_filepath = sys.argv[1] + + with open(commit_msg_filepath, 'r+') as fh: + commit_msg = fh.read() + lint_commit_message(fh, commit_msg) + +try: + sys.stdin = open("/dev/tty", "r") + is_GUI_client = False +except: + is_GUI_client = True + +run_script() \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 9950da5b..4d300ed2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +### 0.13.0 +- **Add**: Githook `prepare-commit-msg` to - check commit's style. +- **Add**: Setup script. + ### 0.12.0 - **Add**: StatefulButton & RoundedStatefulButton to TIUIElements. - **Add**: added CACornerMask rounding extension to TIUIElements. diff --git a/LeadKit.podspec b/LeadKit.podspec index 8da751f4..be931b5f 100644 --- a/LeadKit.podspec +++ b/LeadKit.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "LeadKit" - s.version = "0.10.9" + s.version = "0.13.0" s.summary = "iOS framework with a bunch of tools for rapid development" s.homepage = "https://github.com/TouchInstinct/LeadKit" s.license = "Apache License, Version 2.0" diff --git a/README.md b/README.md index 73a91c28..f29471c1 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # LeadKit -LeadKit is the iOS framework with a bunch of tools for rapid app development. +LeadKit is the iOS framework with a bunch of tools for rapid app development. ## Additional This repository contains the following additional frameworks: @@ -10,6 +10,11 @@ This repository contains the following additional frameworks: - [TISwiftUtils](TISwiftUtils) - a bunch of useful helpers for development. - [TITableKitUtils](TITableKitUtils) - Set of helpers for TableKit classes. +## Setup +Run following script in framework's folder: +```ruby +./setup.sh +``` ## Installation diff --git a/TIFoundationUtils/TIFoundationUtils.podspec b/TIFoundationUtils/TIFoundationUtils.podspec index 4ac6b85e..4b8d3e4c 100644 --- a/TIFoundationUtils/TIFoundationUtils.podspec +++ b/TIFoundationUtils/TIFoundationUtils.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'TIFoundationUtils' - s.version = '0.12.0' + s.version = '0.13.0' s.summary = 'Set of helpers for Foundation framework classes.' s.homepage = 'https://github.com/TouchInstinct/LeadKit/tree/' + s.version.to_s + '/' + s.name s.license = { :type => 'MIT', :file => 'LICENSE' } diff --git a/TISwiftUtils/TISwiftUtils.podspec b/TISwiftUtils/TISwiftUtils.podspec index d24ceb09..6f6759c0 100644 --- a/TISwiftUtils/TISwiftUtils.podspec +++ b/TISwiftUtils/TISwiftUtils.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'TISwiftUtils' - s.version = '0.12.0' + s.version = '0.13.0' s.summary = 'Bunch of useful helpers for Swift development.' s.homepage = 'https://github.com/TouchInstinct/LeadKit/tree/' + s.version.to_s + '/' + s.name s.license = { :type => 'MIT', :file => 'LICENSE' } diff --git a/TITableKitUtils/TITableKitUtils.podspec b/TITableKitUtils/TITableKitUtils.podspec index 9ac729c2..130d9120 100644 --- a/TITableKitUtils/TITableKitUtils.podspec +++ b/TITableKitUtils/TITableKitUtils.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'TITableKitUtils' - s.version = '0.12.0' + s.version = '0.13.0' s.summary = 'Set of helpers for TableKit classes.' s.homepage = 'https://github.com/TouchInstinct/LeadKit/tree/' + s.version.to_s + '/' + s.name s.license = { :type => 'MIT', :file => 'LICENSE' } diff --git a/TITransitions/TITransitions.podspec b/TITransitions/TITransitions.podspec index 7dca9cf0..b6d3cfcb 100644 --- a/TITransitions/TITransitions.podspec +++ b/TITransitions/TITransitions.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'TITransitions' - s.version = '0.11.1' + s.version = '0.13.0' s.summary = 'Set of custom transitions to present controller. ' s.homepage = 'https://github.com/TouchInstinct/LeadKit/tree/' + s.version.to_s + '/' + s.name s.license = { :type => 'MIT', :file => 'LICENSE' } diff --git a/TIUIElements/TIUIElements.podspec b/TIUIElements/TIUIElements.podspec index b1883afb..72685e5e 100644 --- a/TIUIElements/TIUIElements.podspec +++ b/TIUIElements/TIUIElements.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'TIUIElements' - s.version = '0.12.0' + s.version = '0.13.0' s.summary = 'Bunch of useful protocols and views.' s.homepage = 'https://github.com/TouchInstinct/LeadKit/tree/' + s.version.to_s + '/' + s.name s.license = { :type => 'MIT', :file => 'LICENSE' } diff --git a/TIUIKitCore/TIUIKitCore.podspec b/TIUIKitCore/TIUIKitCore.podspec index 60139774..88ae600d 100644 --- a/TIUIKitCore/TIUIKitCore.podspec +++ b/TIUIKitCore/TIUIKitCore.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'TIUIKitCore' - s.version = '0.12.0' + s.version = '0.13.0' s.summary = 'Core UI elements: protocols, views and helpers.' s.homepage = 'https://github.com/TouchInstinct/LeadKit/tree/' + s.version.to_s + '/' + s.name s.license = { :type => 'MIT', :file => 'LICENSE' } diff --git a/setup.sh b/setup.sh new file mode 100755 index 00000000..7e942a67 --- /dev/null +++ b/setup.sh @@ -0,0 +1,13 @@ + +# Git version >= 2.9 +git config core.hooksPath .githooks + +# Git version < 2.9 +HOOKS_FOLDER=.git/hooks + +if [ ! -d $HOOKS_FOLDER ]; then + mkdir $HOOKS_FOLDER +fi + +find .git/hooks -type l -exec rm {} \; && find .githooks -type f -exec ln -sf ../../{} .git/hooks/ \; +chmod +x .githooks \ No newline at end of file From 57c010f4f21e06cdc6ba94de128f9e95a773dd94 Mon Sep 17 00:00:00 2001 From: Vlad Date: Thu, 7 Jan 2021 18:46:47 +0300 Subject: [PATCH 2/9] refactor: correct setup script --- .githooks/prepare-commit-msg | 1 - setup.sh | 11 +---------- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/.githooks/prepare-commit-msg b/.githooks/prepare-commit-msg index a64fc023..df9f994b 100755 --- a/.githooks/prepare-commit-msg +++ b/.githooks/prepare-commit-msg @@ -55,7 +55,6 @@ def print_error_message(): print(colored_breaking_changes_message) print_pattern(breaking_changes_commit_pattern) - print_available_commit_types() def print_available_commit_types(): diff --git a/setup.sh b/setup.sh index 7e942a67..36675721 100755 --- a/setup.sh +++ b/setup.sh @@ -1,13 +1,4 @@ -# Git version >= 2.9 +# Enable githooks git config core.hooksPath .githooks - -# Git version < 2.9 -HOOKS_FOLDER=.git/hooks - -if [ ! -d $HOOKS_FOLDER ]; then - mkdir $HOOKS_FOLDER -fi - -find .git/hooks -type l -exec rm {} \; && find .githooks -type f -exec ln -sf ../../{} .git/hooks/ \; chmod +x .githooks \ No newline at end of file From e2c9c937b85f9652e657a4dddf72846298c6efdb Mon Sep 17 00:00:00 2001 From: Vlad Date: Thu, 7 Jan 2021 18:50:51 +0300 Subject: [PATCH 3/9] refactor: correct githook and setup script --- .githooks/prepare-commit-msg | 3 ++- setup.sh | 5 ++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.githooks/prepare-commit-msg b/.githooks/prepare-commit-msg index df9f994b..3b321632 100755 --- a/.githooks/prepare-commit-msg +++ b/.githooks/prepare-commit-msg @@ -21,6 +21,7 @@ breaking_changes_message = 'If commit include Breaking changes use ! after type colored_breaking_changes_message = 'If commit include \033[91mBreaking changes\033[00m use \033[91m!\033[00m after type or scope:' breaking_changes_commit_pattern = ' type(scope)!: message | type!: message \n' +available_types_message = 'Available commit types:' available_commit_types = ['build: Changes that affect the build system or external dependencies', 'ci: Changes to our CI configuration files and scripts', 'docs: Documentation only changes', @@ -58,7 +59,7 @@ def print_error_message(): print_available_commit_types() def print_available_commit_types(): - print("Available commit types:") + print(available_types_message) for commit_type in available_commit_types: print(" - %s" %commit_type) diff --git a/setup.sh b/setup.sh index 36675721..d9376573 100755 --- a/setup.sh +++ b/setup.sh @@ -1,4 +1,3 @@ -# Enable githooks -git config core.hooksPath .githooks -chmod +x .githooks \ No newline at end of file +# Configure githooks folder path +git config core.hooksPath .githooks \ No newline at end of file From ffe40989376ab3ba1c766d33441d65f382fc0a7c Mon Sep 17 00:00:00 2001 From: Vlad Date: Sat, 9 Jan 2021 20:17:12 +0300 Subject: [PATCH 4/9] fix: carthage install --- setup.sh | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/setup.sh b/setup.sh index d9376573..8fd1b630 100755 --- a/setup.sh +++ b/setup.sh @@ -1,3 +1,21 @@ +#!/usr/bin/env bash # Configure githooks folder path -git config core.hooksPath .githooks \ No newline at end of file +git config core.hooksPath .githooks + +# Carthage + +xcconfig=$(mktemp /tmp/static.xcconfig.XXXXXX) +trap 'rm -f "$xcconfig"' INT TERM HUP EXIT + +# For Xcode 12 make sure EXCLUDED_ARCHS is set to arm architectures otherwise +# the build will fail on lipo due to duplicate architectures. + +CURRENT_XCODE_VERSION=$(xcodebuild -version | grep "Build version" | cut -d' ' -f3) +echo "EXCLUDED_ARCHS__EFFECTIVE_PLATFORM_SUFFIX_simulator__NATIVE_ARCH_64_BIT_x86_64__XCODE_1200__BUILD_$CURRENT_XCODE_VERSION = arm64 arm64e armv7 armv7s armv6 armv8" >> $xcconfig + +echo 'EXCLUDED_ARCHS__EFFECTIVE_PLATFORM_SUFFIX_simulator__NATIVE_ARCH_64_BIT_x86_64__XCODE_1200 = $(EXCLUDED_ARCHS__EFFECTIVE_PLATFORM_SUFFIX_simulator__NATIVE_ARCH_64_BIT_x86_64__XCODE_1200__BUILD_$(XCODE_PRODUCT_BUILD_VERSION))' >> $xcconfig +echo 'EXCLUDED_ARCHS = $(inherited) $(EXCLUDED_ARCHS__EFFECTIVE_PLATFORM_SUFFIX_$(EFFECTIVE_PLATFORM_SUFFIX)__NATIVE_ARCH_64_BIT_$(NATIVE_ARCH_64_BIT)__XCODE_$(XCODE_VERSION_MAJOR))' >> $xcconfig + +export XCODE_XCCONFIG_FILE="$xcconfig" +carthage bootstrap --platform iOS --cache-builds \ No newline at end of file From 6700252ef65063f0ba84f2563034441b442590e2 Mon Sep 17 00:00:00 2001 From: Loupehope <31570429+Loupehope@users.noreply.github.com> Date: Mon, 11 Jan 2021 12:50:31 +0300 Subject: [PATCH 5/9] docs: correct typo --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4d300ed2..239cc734 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,7 @@ # Changelog ### 0.13.0 -- **Add**: Githook `prepare-commit-msg` to - check commit's style. +- **Add**: Githook `prepare-commit-msg` to check commit's style. - **Add**: Setup script. ### 0.12.0 From 31c0f2c93ab94155aba8548fe2b0e12a8ff0db56 Mon Sep 17 00:00:00 2001 From: Vlad Date: Sun, 17 Jan 2021 21:37:27 +0300 Subject: [PATCH 6/9] refactor: @petropavel13 comments --- .githooks/prepare-commit-msg | 6 +++--- README.md | 4 ++-- setup | 7 +++++++ setup.sh | 21 --------------------- 4 files changed, 12 insertions(+), 26 deletions(-) create mode 100755 setup delete mode 100755 setup.sh diff --git a/.githooks/prepare-commit-msg b/.githooks/prepare-commit-msg index 3b321632..dcac0b12 100755 --- a/.githooks/prepare-commit-msg +++ b/.githooks/prepare-commit-msg @@ -1,6 +1,6 @@ #!/usr/bin/env python3 -import sys, re +import sys, re, os from subprocess import check_output from sys import getdefaultencoding @@ -75,10 +75,10 @@ def lint_commit_message(fh, commit_msg): if is_valid_commit or is_merge_commit: print_result_header(success_title, success_color) write_commit_message(fh, commit_msg) - sys.exit(0) + sys.exit(os.EX_OK) else: print_error_message() - sys.exit(1) + sys.exit(os.EX_DATAERR) def run_script(): commit_msg_filepath = sys.argv[1] diff --git a/README.md b/README.md index f29471c1..0eb30062 100644 --- a/README.md +++ b/README.md @@ -12,8 +12,8 @@ This repository contains the following additional frameworks: ## Setup Run following script in framework's folder: -```ruby -./setup.sh +```sh +./setup ``` ## Installation diff --git a/setup b/setup new file mode 100755 index 00000000..97d7cd9d --- /dev/null +++ b/setup @@ -0,0 +1,7 @@ +# Find source dir +DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" + +cd "$DIR" + +# Configure githooks folder path +git config core.hooksPath .githooks \ No newline at end of file diff --git a/setup.sh b/setup.sh deleted file mode 100755 index 8fd1b630..00000000 --- a/setup.sh +++ /dev/null @@ -1,21 +0,0 @@ -#!/usr/bin/env bash - -# Configure githooks folder path -git config core.hooksPath .githooks - -# Carthage - -xcconfig=$(mktemp /tmp/static.xcconfig.XXXXXX) -trap 'rm -f "$xcconfig"' INT TERM HUP EXIT - -# For Xcode 12 make sure EXCLUDED_ARCHS is set to arm architectures otherwise -# the build will fail on lipo due to duplicate architectures. - -CURRENT_XCODE_VERSION=$(xcodebuild -version | grep "Build version" | cut -d' ' -f3) -echo "EXCLUDED_ARCHS__EFFECTIVE_PLATFORM_SUFFIX_simulator__NATIVE_ARCH_64_BIT_x86_64__XCODE_1200__BUILD_$CURRENT_XCODE_VERSION = arm64 arm64e armv7 armv7s armv6 armv8" >> $xcconfig - -echo 'EXCLUDED_ARCHS__EFFECTIVE_PLATFORM_SUFFIX_simulator__NATIVE_ARCH_64_BIT_x86_64__XCODE_1200 = $(EXCLUDED_ARCHS__EFFECTIVE_PLATFORM_SUFFIX_simulator__NATIVE_ARCH_64_BIT_x86_64__XCODE_1200__BUILD_$(XCODE_PRODUCT_BUILD_VERSION))' >> $xcconfig -echo 'EXCLUDED_ARCHS = $(inherited) $(EXCLUDED_ARCHS__EFFECTIVE_PLATFORM_SUFFIX_$(EFFECTIVE_PLATFORM_SUFFIX)__NATIVE_ARCH_64_BIT_$(NATIVE_ARCH_64_BIT)__XCODE_$(XCODE_VERSION_MAJOR))' >> $xcconfig - -export XCODE_XCCONFIG_FILE="$xcconfig" -carthage bootstrap --platform iOS --cache-builds \ No newline at end of file From 1ab3993c7e89f41c2d31684b8622d5f2f20d1ea0 Mon Sep 17 00:00:00 2001 From: Vlad Date: Sat, 23 Jan 2021 15:32:25 +0300 Subject: [PATCH 7/9] docs: add page for semantic commit messages --- README.md | 12 ++++++--- docs/semantic-commit-messages.md | 42 ++++++++++++++++++++++++++++++++ 2 files changed, 50 insertions(+), 4 deletions(-) create mode 100644 docs/semantic-commit-messages.md diff --git a/README.md b/README.md index 0eb30062..89b1404e 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ LeadKit is the iOS framework with a bunch of tools for rapid app development. ## Additional + This repository contains the following additional frameworks: - [TIUIKitCore](TIUIKitCore) - core ui elements and protocols from LeadKit. - [TITransitions](TITransitions) - set of custom transitions to present controller. @@ -10,12 +11,15 @@ This repository contains the following additional frameworks: - [TISwiftUtils](TISwiftUtils) - a bunch of useful helpers for development. - [TITableKitUtils](TITableKitUtils) - Set of helpers for TableKit classes. -## Setup -Run following script in framework's folder: -```sh +## Contributing + +- Run following script in framework's folder: +``` ./setup ``` +- Make sure the commit message codestyle is followed. More about [Semantic Commit Messages](docs/semantic-commit-messages.md). + ## Installation ### SPM @@ -34,4 +38,4 @@ source 'https://github.com/TouchInstinct/Podspecs.git' pod 'TISwiftUtils', 'x.y.z' pod 'TIFoundationUtils', 'x.y.z' # ... -``` +``` \ No newline at end of file diff --git a/docs/semantic-commit-messages.md b/docs/semantic-commit-messages.md new file mode 100644 index 00000000..05b41ed7 --- /dev/null +++ b/docs/semantic-commit-messages.md @@ -0,0 +1,42 @@ +# Semantic Commit Messages + +The repository has adopted the following style of commits: + `(): ` | `: ` + +--- + +If a commit contains *Breaking Changes*, use `!` to show it: + `()!: ` | `!: ` + +## Example + +```sh +feat: add Cocoapods support +^--^ ^------------^ +| | +| +-> Summary in present tense. +| ++-------> Commit type. +``` + +## Available commit types + +- `feat`: A new feature. Correlates with MINOR in SemVer +- `fix`: A bug fix. Correlates with PATCH in SemVer +- `build`: Changes that affect the build system or external dependencies +- `ci`: Changes to our CI configuration files and scripts +- `docs`: Documentation only changes +- `perf`: A code change which improves performance +- `refactor`: A code change that neither fixes +- `revert`: A revert to previous commit +- `style`: Changes that do not affect the meaning of the code (white-space, formatting, etc). + +## Changelog + +Each release's Changelog is made up of commits that are either feat, fix or contain Breaking Changes, so you should be naming things carefully. + +## References + +- https://www.conventionalcommits.org/ +- https://seesparkbox.com/foundry/semantic_commit_messages +- http://karma-runner.github.io/1.0/dev/git-commit-msg.html \ No newline at end of file From 9b115370f749790c3032337096187de7505fe991 Mon Sep 17 00:00:00 2001 From: Vlad Date: Mon, 25 Jan 2021 17:40:15 +0300 Subject: [PATCH 8/9] fix: LeadKit.podspec file --- LeadKit.podspec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/LeadKit.podspec b/LeadKit.podspec index be931b5f..f6de6b88 100644 --- a/LeadKit.podspec +++ b/LeadKit.podspec @@ -68,7 +68,8 @@ Pod::Spec.new do |s| "Sources/Structures/DrawingOperations/CALayerDrawingOperation.swift", "Sources/Structures/DrawingOperations/RoundDrawingOperation.swift", "Sources/Structures/DrawingOperations/BorderDrawingOperation.swift", - "Sources/Structures/DataLoading/PaginationDataLoading/*" + "Sources/Structures/DataLoading/PaginationDataLoading/*", + "Sources/Extensions/UIInterfaceOrientation/*" ] ss.tvos.exclude_files = [ "Sources/Classes/Controllers/BaseConfigurableController.swift", @@ -101,7 +102,9 @@ Pod::Spec.new do |s| "Sources/Protocols/Views/SeparatorCell/*", "Sources/Protocols/TableKit/**/*", "Sources/Protocols/Controllers/SearchResultsViewController.swift", - "Sources/Structures/DataLoading/PaginationDataLoading/*" + "Sources/Structures/DataLoading/PaginationDataLoading/*", + "Sources/Extensions/UIInterfaceOrientation/*", + "Sources/Classes/Controllers/BaseOrientationController.swift" ] ss.dependency "RxSwift", '~> 5.1.0' From 50ca1c7d7901a284603e8ce08b0c8d3b94292810 Mon Sep 17 00:00:00 2001 From: Vlad Date: Mon, 25 Jan 2021 17:43:02 +0300 Subject: [PATCH 9/9] chore: bump version --- CHANGELOG.md | 3 +++ LeadKit.podspec | 2 +- TIFoundationUtils/TIFoundationUtils.podspec | 2 +- TISwiftUtils/TISwiftUtils.podspec | 2 +- TITableKitUtils/TITableKitUtils.podspec | 2 +- TITransitions/TITransitions.podspec | 2 +- TIUIElements/TIUIElements.podspec | 2 +- TIUIKitCore/TIUIKitCore.podspec | 2 +- 8 files changed, 10 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 239cc734..9d079575 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +### 0.13.1 +- **Fix**: LeadKit.podspec file. + ### 0.13.0 - **Add**: Githook `prepare-commit-msg` to check commit's style. - **Add**: Setup script. diff --git a/LeadKit.podspec b/LeadKit.podspec index f6de6b88..496f9d59 100644 --- a/LeadKit.podspec +++ b/LeadKit.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "LeadKit" - s.version = "0.13.0" + s.version = "0.13.1" s.summary = "iOS framework with a bunch of tools for rapid development" s.homepage = "https://github.com/TouchInstinct/LeadKit" s.license = "Apache License, Version 2.0" diff --git a/TIFoundationUtils/TIFoundationUtils.podspec b/TIFoundationUtils/TIFoundationUtils.podspec index 4b8d3e4c..caa87d8a 100644 --- a/TIFoundationUtils/TIFoundationUtils.podspec +++ b/TIFoundationUtils/TIFoundationUtils.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'TIFoundationUtils' - s.version = '0.13.0' + s.version = '0.13.1' s.summary = 'Set of helpers for Foundation framework classes.' s.homepage = 'https://github.com/TouchInstinct/LeadKit/tree/' + s.version.to_s + '/' + s.name s.license = { :type => 'MIT', :file => 'LICENSE' } diff --git a/TISwiftUtils/TISwiftUtils.podspec b/TISwiftUtils/TISwiftUtils.podspec index 6f6759c0..76ec1927 100644 --- a/TISwiftUtils/TISwiftUtils.podspec +++ b/TISwiftUtils/TISwiftUtils.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'TISwiftUtils' - s.version = '0.13.0' + s.version = '0.13.1' s.summary = 'Bunch of useful helpers for Swift development.' s.homepage = 'https://github.com/TouchInstinct/LeadKit/tree/' + s.version.to_s + '/' + s.name s.license = { :type => 'MIT', :file => 'LICENSE' } diff --git a/TITableKitUtils/TITableKitUtils.podspec b/TITableKitUtils/TITableKitUtils.podspec index 130d9120..6959d27d 100644 --- a/TITableKitUtils/TITableKitUtils.podspec +++ b/TITableKitUtils/TITableKitUtils.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'TITableKitUtils' - s.version = '0.13.0' + s.version = '0.13.1' s.summary = 'Set of helpers for TableKit classes.' s.homepage = 'https://github.com/TouchInstinct/LeadKit/tree/' + s.version.to_s + '/' + s.name s.license = { :type => 'MIT', :file => 'LICENSE' } diff --git a/TITransitions/TITransitions.podspec b/TITransitions/TITransitions.podspec index b6d3cfcb..7efab04c 100644 --- a/TITransitions/TITransitions.podspec +++ b/TITransitions/TITransitions.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'TITransitions' - s.version = '0.13.0' + s.version = '0.13.1' s.summary = 'Set of custom transitions to present controller. ' s.homepage = 'https://github.com/TouchInstinct/LeadKit/tree/' + s.version.to_s + '/' + s.name s.license = { :type => 'MIT', :file => 'LICENSE' } diff --git a/TIUIElements/TIUIElements.podspec b/TIUIElements/TIUIElements.podspec index 72685e5e..71637550 100644 --- a/TIUIElements/TIUIElements.podspec +++ b/TIUIElements/TIUIElements.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'TIUIElements' - s.version = '0.13.0' + s.version = '0.13.1' s.summary = 'Bunch of useful protocols and views.' s.homepage = 'https://github.com/TouchInstinct/LeadKit/tree/' + s.version.to_s + '/' + s.name s.license = { :type => 'MIT', :file => 'LICENSE' } diff --git a/TIUIKitCore/TIUIKitCore.podspec b/TIUIKitCore/TIUIKitCore.podspec index 88ae600d..7c680e7b 100644 --- a/TIUIKitCore/TIUIKitCore.podspec +++ b/TIUIKitCore/TIUIKitCore.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'TIUIKitCore' - s.version = '0.13.0' + s.version = '0.13.1' s.summary = 'Core UI elements: protocols, views and helpers.' s.homepage = 'https://github.com/TouchInstinct/LeadKit/tree/' + s.version.to_s + '/' + s.name s.license = { :type => 'MIT', :file => 'LICENSE' }