Skip to content

Commit df7aa62

Browse files
author
AlexanderNey
committed
- set deployment traget to iOS8.0
- amended readme
1 parent c965eda commit df7aa62

File tree

2 files changed

+29
-20
lines changed

2 files changed

+29
-20
lines changed

README.md

Lines changed: 27 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
#Semantic Versioning
2-
---
32

4-
Semantic Version implementation in Swift!
5-
Use the struct `SemanticVersion` to represents a version according to the [Semantic Versioning Sepcification 2.0.0](http://semver.org/spec/v2.0.0.html).
3+
Semantic Versioning implementation in Swift!
4+
Use the struct `SemanticVersion` to represents a version according to the [Semantic Versioning Specification 2.0.0](http://semver.org/spec/v2.0.0.html).
65

76

87
Fully Unit tested
@@ -11,7 +10,6 @@ Fully Unit tested
1110

1211

1312
##Getting Started
14-
---
1513

1614
### Requirements
1715

@@ -52,11 +50,11 @@ For application targets that do not support embedded frameworks, such as iOS 7,
5250
You can add a git submodule and drag and drop the sources into the project navigator.
5351

5452
##Usage
55-
---
5653

5754
Create version 2.0.0
5855

59-
```Swift let version = SemanticVersion(major: 2)
56+
```Swift
57+
let version = SemanticVersion(major: 2)
6058
```
6159

6260
Create version 1.2.3
@@ -68,7 +66,8 @@ let version = SemanticVersion(major: 1, minor: 2, patch: 3)
6866
Create version 1.0.0-alpha.2
6967

7068
```Swift
71-
let version = SemanticVersion(major: 1, preReleaseIdentifier: ["alpha", "2"]) ```
69+
let version = SemanticVersion(major: 1, preReleaseIdentifier: ["alpha", "2"])
70+
```
7271

7372
Create version from a String
7473

@@ -88,17 +87,31 @@ Check if is prerelease version or not
8887
if version.isPrerelease { ... }
8988
```
9089

91-
Access the prerelease identifier
90+
Access the prerelease identifier via the preReleaseIdentifier Array
9291

93-
``` ... ```
92+
```Swift
93+
for identifier in version.preReleaseIdentifier
94+
{
95+
// ...
96+
}
97+
```
9498

95-
Access the build meta data
99+
Access the build metadata identifier via the buildMetadataIdentifier Array
96100

97-
``` ... ```
101+
```Swift
102+
for identifier in version.buildMetadataIdentifier
103+
{
104+
// ...
105+
}
106+
```
98107

99-
Conforms to Printable so you can simply get a String representation
108+
Conforms to Printable so you can simply get a String representation by accessing the description property
100109

101-
``` println(version) ```
110+
```Swift
111+
println(version)
112+
// OR
113+
let stringRepresentation = version.description
114+
```
102115

103116
mutability / immutability
104117

@@ -116,23 +129,19 @@ They will only comapre the major, minor and patch version but not the prerelease
116129

117130

118131
##Parser
119-
---
120132

121133
The implementation includes a full-fledged component ot parse String representation of a version. Please have a look at the tests and the soruce of `SemanticVersionParser` for now 😉
122134

123135
##Tests
124-
---
125136

126137
The libary includes a suite of tests showing how to use the different initialiser and the Parser
127138

128139

129140
##Author
130-
---
131141

132142
Find me on Twitter as [@Ajax64](https://twitter.com/ajax64).
133143

134144

135145
##License
136-
---
137146

138-
Version is available under the MIT license. See the LICENSE file for more info.
147+
Version is available under the MIT license. See the LICENSE file for more info.

SemanticVersioning.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@
278278
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
279279
GCC_WARN_UNUSED_FUNCTION = YES;
280280
GCC_WARN_UNUSED_VARIABLE = YES;
281-
IPHONEOS_DEPLOYMENT_TARGET = 8.1;
281+
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
282282
MTL_ENABLE_DEBUG_INFO = YES;
283283
ONLY_ACTIVE_ARCH = YES;
284284
SDKROOT = iphoneos;
@@ -318,7 +318,7 @@
318318
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
319319
GCC_WARN_UNUSED_FUNCTION = YES;
320320
GCC_WARN_UNUSED_VARIABLE = YES;
321-
IPHONEOS_DEPLOYMENT_TARGET = 8.1;
321+
IPHONEOS_DEPLOYMENT_TARGET = 8.0;
322322
MTL_ENABLE_DEBUG_INFO = NO;
323323
SDKROOT = iphoneos;
324324
TARGETED_DEVICE_FAMILY = "1,2";

0 commit comments

Comments
 (0)