Skip to content

Commit

Permalink
bump
Browse files Browse the repository at this point in the history
  • Loading branch information
arnauddorgans committed Feb 17, 2019
1 parent 46d2084 commit 40cef93
Show file tree
Hide file tree
Showing 9 changed files with 37 additions and 8 deletions.
30 changes: 30 additions & 0 deletions .scripts/bump.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import Foundation

guard CommandLine.arguments.count > 1 else {
exit(1)
}
let version = CommandLine.arguments[1]

let basePath = "../"
let files = (try? FileManager.default.contentsOfDirectory(atPath: basePath)) ?? []
let specs = files.filter { $0.range(of: ".podspec") != nil }
for path in specs {
print(path)
let path = basePath + path
guard var content = try? String(contentsOfFile: path) as NSString,
let regex = try? NSRegularExpression(pattern: "s\\.version\\ +=\\ +'(.+)'", options: []) else {
exit(1)
}
let result = regex.firstMatch(in: String(content), options: [], range: NSRange(location: 0, length: content.length))
if let range = result.flatMap({
$0.range(at: 1)
}) {
content = content.replacingCharacters(in: range, with: version) as NSString
do {
try String(content).write(toFile: path, atomically: false, encoding: .utf8)
} catch {
exit(1)
}
}
}

1 change: 0 additions & 1 deletion .scripts/pod_lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,3 @@ for pod in $(find . -name "*.podspec" -type f -exec basename {} ';' );do
exit $result
fi
done
pod_lint 'RxFirebase.podspec' $push
2 changes: 1 addition & 1 deletion RxFirebase.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |s|
s.name = 'RxFirebase'
s.version = '0.3.2'
s.version = '0.3.3'
s.summary = 'RxSwift extensions for Firebase.'

# This description is used to generate tags and improve search results.
Expand Down
2 changes: 1 addition & 1 deletion RxFirebaseAuthentication.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'RxFirebaseAuthentication'
s.version = '0.3.2'
s.version = '0.3.3'
s.summary = 'RxSwift extensions for FirebaseAuth.'

# This description is used to generate tags and improve search results.
Expand Down
2 changes: 1 addition & 1 deletion RxFirebaseDatabase.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'RxFirebaseDatabase'
s.version = '0.3.2'
s.version = '0.3.3'
s.summary = 'RxSwift extensions for FirebaseDatabase.'

# This description is used to generate tags and improve search results.
Expand Down
2 changes: 1 addition & 1 deletion RxFirebaseFirestore.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'RxFirebaseFirestore'
s.version = '0.3.2'
s.version = '0.3.3'
s.summary = 'RxSwift extensions for FirebaseFirestore.'

# This description is used to generate tags and improve search results.
Expand Down
2 changes: 1 addition & 1 deletion RxFirebaseFunctions.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'RxFirebaseFunctions'
s.version = '0.3.2'
s.version = '0.3.3'
s.summary = 'RxSwift extensions for FirebaseFunctions.'

# This description is used to generate tags and improve search results.
Expand Down
2 changes: 1 addition & 1 deletion RxFirebaseRemoteConfig.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'RxFirebaseRemoteConfig'
s.version = '0.3.2'
s.version = '0.3.3'
s.summary = 'RxSwift extensions for FirebaseFirestore.'

# This description is used to generate tags and improve search results.
Expand Down
2 changes: 1 addition & 1 deletion RxFirebaseStorage.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'RxFirebaseStorage'
s.version = '0.3.2'
s.version = '0.3.3'
s.summary = 'RxSwift extensions for FirebaseStorage.'

# This description is used to generate tags and improve search results.
Expand Down

0 comments on commit 40cef93

Please sign in to comment.