Skip to content

Commit e46eef2

Browse files
committed
3.1.0
1 parent eeaaefa commit e46eef2

File tree

4 files changed

+27
-3
lines changed

4 files changed

+27
-3
lines changed

ReactiveObjC.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Pod::Spec.new do |s|
22

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

77
s.description = <<-DESC.strip_heredoc

ReactiveObjC/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<key>CFBundlePackageType</key>
1616
<string>FMWK</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>3.0.0</string>
18+
<string>3.1.0</string>
1919
<key>CFBundleSignature</key>
2020
<string>????</string>
2121
<key>CFBundleVersion</key>

ReactiveObjCTests/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<key>CFBundlePackageType</key>
1616
<string>BNDL</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>3.0.0</string>
18+
<string>3.1.0</string>
1919
<key>CFBundleSignature</key>
2020
<string>????</string>
2121
<key>CFBundleVersion</key>

script/update-version

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
#!/bin/bash
2+
3+
if [[ -z "$1" ]]; then
4+
echo "Please specify a version tag."
5+
exit
6+
fi
7+
8+
PRERELEASE_STRIPPED=$(echo "$1" | perl -0777 -ne '/([0-9]+)\.([0-9]+)\.([0-9]+)(-.*)?/ and print "$1.$2.$3"')
9+
10+
if [[ -z "$PRERELEASE_STRIPPED" ]]; then
11+
echo "The version tag is not semver compliant."
12+
exit
13+
fi
14+
15+
CURRENT_TAG=$(perl -0777 -ne '/s.version([\s]+)=([\s]+)"(.+)"/ and print $3' *.podspec)
16+
echo "Current tag: $CURRENT_TAG"
17+
18+
perl -0777 -i -pe 's/s.version([\s]+)=([\s]+)"'${CURRENT_TAG}'"/s.version$1=$2"'${1}'"/' *.podspec
19+
perl -0777 -i -pe 's/g>'${CURRENT_TAG}'<\/str/g>'${PRERELEASE_STRIPPED}'<\/str/' */Info.plist
20+
perl -0777 -i -pe 's/g>'${CURRENT_TAG}'<\/str/g>'${PRERELEASE_STRIPPED}'<\/str/' */*/Info.plist
21+
sed -i '' '3i\
22+
\
23+
# '${1} CHANGELOG.md
24+

0 commit comments

Comments
 (0)