Skip to content

Commit 8d7c0da

Browse files
committed
version 0.1.1
1 parent 2390ffd commit 8d7c0da

File tree

7 files changed

+35
-6
lines changed

7 files changed

+35
-6
lines changed

Example/Tests/Tests.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class Tests: XCTestCase {
1717
let exp = expectation(description: "getLinkData")
1818

1919
previewService.getLinkData(url: url) { linkData in
20-
XCTAssert(linkData != nil)
20+
XCTAssert(linkData != nil, "\(url)")
2121
print("\(String(describing: linkData))")
2222
exp.fulfill()
2323
}

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SMLinkPreview
1+
# URL Link Preview
22

33
[![Version](https://img.shields.io/cocoapods/v/SMLinkPreview.svg?style=flat)](http://cocoapods.org/pods/SMLinkPreview)
44
[![License](https://img.shields.io/cocoapods/l/SMLinkPreview.svg?style=flat)](http://cocoapods.org/pods/SMLinkPreview)

SMLinkPreview.podspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
Pod::Spec.new do |s|
1010
s.name = 'SMLinkPreview'
11-
s.version = '0.1.0'
11+
s.version = '0.1.1'
1212
s.summary = 'Fetching link preview data and presentation view for iOS'
1313

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

SMLinkPreview/Classes/Sources/AdaSupportPreview.swift

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ public class AdaSupportPreview: LinkSource {
3030
}
3131

3232
let request = URLRequest(url: routeURL)
33+
// print("routeURL: \(routeURL)")
3334
let dataTask = URLSession.shared.dataTask(with: request) { data, response, error in
3435
guard let data = data, error == nil else {
3536
completion(nil)

Tools/release.sh

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#!/bin/bash
2+
3+
# Usage: release.sh <ReleaseTag>
4+
# <ReleaseTag> is the tag to apply to git.
5+
# Run this from the root of the repo. i.e., ./Tools/release.sh
6+
# Example:
7+
# ./Tools/release.sh 6.0.0
8+
9+
# This script adapted from https://medium.com/travis-on-docker/how-to-version-your-docker-images-1d5c577ebf54
10+
11+
RELEASE_TAG=$1
12+
13+
if [ "empty${RELEASE_TAG}" == "empty" ]; then
14+
echo "**** Please give a release tag."
15+
exit
16+
fi
17+
18+
# ensure we're up to date
19+
git pull
20+
21+
echo "version: $RELEASE_TAG"
22+
23+
git add -A
24+
git commit -m "version $RELEASE_TAG"
25+
git tag -a "$RELEASE_TAG" -m "version $RELEASE_TAG"
26+
git push
27+
git push --tags

VERSIONS.txt

+3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
SMLinkPreview
22

3+
Version 0.1.1 (6/15/19)
4+
* Update docs for Cocoapods
5+
36
Version 0.1.0 (5/13/19)
47
* Initial release.

pod.addversion.txt

+1-3
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,7 @@ pod lib lint
1414

1515
# 3) then push updated revision of pod to its repo
1616

17-
git add -A && git commit -m "Version 0.1.0 -- see VERSIONS.txt"
18-
git tag 0.1.0
19-
git push --tags
17+
./Tools/release.sh 0.1.1
2018

2119
# 4) validate the pod, with downloading
2220
pod spec lint

0 commit comments

Comments
 (0)