Skip to content

Commit

Permalink
Release 0.5.0 (via new script) (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
jjochen committed Dec 15, 2017
1 parent 9080730 commit 725ada0
Show file tree
Hide file tree
Showing 5 changed files with 105 additions and 4 deletions.
19 changes: 19 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
# Change Log

## [0.5.0](https://github.com/jjochen/JJFloatingActionButton/tree/0.5.0) (2017-12-15)
[Full Changelog](https://github.com/jjochen/JJFloatingActionButton/compare/0.4.0...0.5.0)

**Implemented enhancements:**

- Improve Documentation [\#4](https://github.com/jjochen/JJFloatingActionButton/issues/4)

**Closed issues:**

- Check if imageView and openImageView can be merged into one [\#45](https://github.com/jjochen/JJFloatingActionButton/issues/45)
- Make single action configurable [\#39](https://github.com/jjochen/JJFloatingActionButton/issues/39)

**Merged pull requests:**

- Add documentation [\#47](https://github.com/jjochen/JJFloatingActionButton/pull/47) ([jjochen](https://github.com/jjochen))
- Add image transition when button opens/closes [\#46](https://github.com/jjochen/JJFloatingActionButton/pull/46) ([jjochen](https://github.com/jjochen))
- Make single action handling configurable [\#44](https://github.com/jjochen/JJFloatingActionButton/pull/44) ([jjochen](https://github.com/jjochen))
- Add swiftlint to CircleCi workflow [\#43](https://github.com/jjochen/JJFloatingActionButton/pull/43) ([jjochen](https://github.com/jjochen))

## [0.4.0](https://github.com/jjochen/JJFloatingActionButton/tree/0.4.0) (2017-12-08)
[Full Changelog](https://github.com/jjochen/JJFloatingActionButton/compare/0.3.1...0.4.0)

Expand Down
2 changes: 1 addition & 1 deletion Example/JJFloatingActionButton/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>0.4.0</string>
<string>0.5.0</string>
<key>CFBundleVersion</key>
<string>1</string>
<key>LSRequiresIPhoneOS</key>
Expand Down
4 changes: 2 additions & 2 deletions Example/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ PODS:
- FBSnapshotTestCase/Core (2.1.4)
- FBSnapshotTestCase/SwiftSupport (2.1.4):
- FBSnapshotTestCase/Core
- JJFloatingActionButton (0.4.0)
- JJFloatingActionButton (0.5.0)
- Nimble (7.0.3)
- Nimble-Snapshots (6.3.0):
- Nimble-Snapshots/Core (= 6.3.0)
Expand All @@ -25,7 +25,7 @@ EXTERNAL SOURCES:

SPEC CHECKSUMS:
FBSnapshotTestCase: 094f9f314decbabe373b87cc339bea235a63e07a
JJFloatingActionButton: 46398b4e511260377c25aa3bcd70870ade0199b0
JJFloatingActionButton: 837bf9220c6faf71a20c2400c3e50f85764991bd
Nimble: 7f5a9c447a33002645a071bddafbfb24ea70e0ac
Nimble-Snapshots: f5459b5b091678dc942d03ec4741cacb58ba4a52
Quick: 58d203b1c5e27fff7229c4c1ae445ad7069a7a08
Expand Down
2 changes: 1 addition & 1 deletion JJFloatingActionButton.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |spec|
spec.name = 'JJFloatingActionButton'
spec.version = '0.4.0'
spec.version = '0.5.0'
spec.author = { 'Jochen Pfeiffer' => '[email protected]' }
spec.license = { :type => 'MIT', :file => 'LICENSE' }
spec.homepage = 'https://github.com/jjochen/JJFloatingActionButton'
Expand Down
82 changes: 82 additions & 0 deletions scripts/release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
#!/usr/bin/env bash

set -e


function fancy_echo
{
echo ""
echo $1
}

function usage
{
cat << EOF
usage: $0 options
OPTIONS:
-h Show this message
-v Version
EOF
}

function check_arguments
{
while getopts "hv:" OPTION
do
case ${OPTION} in
h)
usage
exit
;;
v)
version=${OPTARG}
echo "Version number: ${version}"
;;
?)
usage
exit
;;
esac
done

if [[ -z ${version} ]]
then
fancy_echo "ERROR: Version number (-v) has to be specified"
usage
exit 1
fi
}

function update_change_log
{
fancy_echo "Update Change Log"
github_changelog_generator --future-release ${version}
}

function update_podspec
{
fancy_echo "Update Pod Spec"
sed -i "" -e "s/\(spec\.version.*\)'.*'/\1'${version}'/" JJFloatingActionButton.podspec
# sed -i -E "s/\(spec\.version\s*=\s*\)'.*'/\1'${version}'/" JJFloatingActionButton.podspec
}

function install_example_pods
{
fancy_echo "Install cocoapods in Example"
bundle exec pod install --project-directory=Example
}

function update_example_version
{
fancy_echo "Update Version in Example"
/usr/libexec/PlistBuddy -c "Set :CFBundleShortVersionString ${version}" Example/JJFloatingActionButton/Info.plist
}


check_arguments $*
update_podspec
update_change_log
install_example_pods
update_example_version

0 comments on commit 725ada0

Please sign in to comment.