Skip to content

Commit 00070af

Browse files
authored
Merge pull request #14 from rootstrap/feature/resources-accessibility-improves
Public access to resources
2 parents fcfa946 + dba18ed commit 00070af

5 files changed

Lines changed: 11 additions & 11 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
```ruby
1818

19-
pod 'RSSwiftNetworking', '~> 1.1.4'
19+
pod 'RSSwiftNetworking', '~> 1.1.5'
2020

2121
```
2222

@@ -26,7 +26,7 @@ pod 'RSSwiftNetworking', '~> 1.1.4'
2626
Add the following line to your `Cartfile` and follow the [installation instructions](https://github.com/Carthage/Carthage#adding-frameworks-to-an-application).
2727

2828
```
29-
github "rootstrap/RSSwiftNetworking" ~> 1.1.4
29+
github "rootstrap/RSSwiftNetworking" ~> 1.1.5
3030
```
3131

3232
#### 3. Swift Package Manager

RSSwiftNetworking.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'RSSwiftNetworking'
3-
s.version = '1.1.4'
3+
s.version = '1.1.5'
44
s.summary = 'A flexible network layer API written in Swift.'
55

66
s.description = 'A flexible network layer API written in Swift. Compatible with iOS, iPadOS and tvOS.'

Sources/RSSwiftNetworking/Extensions/JSONDecoder+DecodingConfiguration.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import Foundation
22

33
extension JSONDecoder {
44

5-
convenience init(decodingConfig: DecodingConfiguration) {
5+
public convenience init(decodingConfig: DecodingConfiguration) {
66
self.init()
77

88
dateDecodingStrategy = decodingConfig.dateStrategy

Sources/RSSwiftNetworking/Types/API/APIEndpoint.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public struct APIEndpoint: Endpoint {
1414
endpoint.requestURL
1515
}
1616

17-
public var method: Network.HTTPMethod {
17+
public var method: Network.HTTPMethod {
1818
endpoint.method
1919
}
2020

Sources/RSSwiftNetworking/Types/Network/Network.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public enum Network {
1616

1717
/// Meaningful HTTP status codes for the API.
1818
public enum StatusCode {
19-
static let unauthorized = 401
19+
public static let unauthorized = 401
2020
}
2121

2222
/// Represents an APIClient response
@@ -48,11 +48,11 @@ public enum Network {
4848

4949
/// Defines the Content Types to be used in HTTP requests
5050
public enum ContentType {
51-
static let plainText = "text/plain"
52-
static let applicationURLForm = "application/x-www-form-urlencoded"
53-
static let applicationJSON = "application/json"
54-
static let applicationXML = "application/xml"
55-
static let multipartForm = "multipart/form-data"
51+
public static let plainText = "text/plain"
52+
public static let applicationURLForm = "application/x-www-form-urlencoded"
53+
public static let applicationJSON = "application/json"
54+
public static let applicationXML = "application/xml"
55+
public static let multipartForm = "multipart/form-data"
5656
}
5757

5858
}

0 commit comments

Comments
 (0)