Skip to content

Commit

Permalink
3.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
andersio committed Dec 30, 2017
1 parent eeaaefa commit e46eef2
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ReactiveObjC.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |s|

s.name = "ReactiveObjC"
s.version = "3.0.0"
s.version = "3.1.0"
s.summary = "The 2.x ReactiveCocoa Objective-C API: Streams of values over time"

s.description = <<-DESC.strip_heredoc
Expand Down
2 changes: 1 addition & 1 deletion ReactiveObjC/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>3.0.0</string>
<string>3.1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
Expand Down
2 changes: 1 addition & 1 deletion ReactiveObjCTests/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleShortVersionString</key>
<string>3.0.0</string>
<string>3.1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
Expand Down
24 changes: 24 additions & 0 deletions script/update-version
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/bash

if [[ -z "$1" ]]; then
echo "Please specify a version tag."
exit
fi

PRERELEASE_STRIPPED=$(echo "$1" | perl -0777 -ne '/([0-9]+)\.([0-9]+)\.([0-9]+)(-.*)?/ and print "$1.$2.$3"')

if [[ -z "$PRERELEASE_STRIPPED" ]]; then
echo "The version tag is not semver compliant."
exit
fi

CURRENT_TAG=$(perl -0777 -ne '/s.version([\s]+)=([\s]+)"(.+)"/ and print $3' *.podspec)
echo "Current tag: $CURRENT_TAG"

perl -0777 -i -pe 's/s.version([\s]+)=([\s]+)"'${CURRENT_TAG}'"/s.version$1=$2"'${1}'"/' *.podspec
perl -0777 -i -pe 's/g>'${CURRENT_TAG}'<\/str/g>'${PRERELEASE_STRIPPED}'<\/str/' */Info.plist
perl -0777 -i -pe 's/g>'${CURRENT_TAG}'<\/str/g>'${PRERELEASE_STRIPPED}'<\/str/' */*/Info.plist
sed -i '' '3i\
\
# '${1} CHANGELOG.md

2 comments on commit e46eef2

@andersio
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ReactiveCocoa/reactiveobjc Please push to trunk.

@3a4oT
Copy link

@3a4oT 3a4oT commented on e46eef2 Mar 15, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the release! Can someone attached precompiled framework for release tag so Carthage can download it and save some time for people?

Please sign in to comment.