Skip to content

Commit

Permalink
Merge pull request #44 from steamclock/jc/fix-duration-unit
Browse files Browse the repository at this point in the history
Fix duration unit
  • Loading branch information
Jeremy Chiang authored Mar 12, 2020
2 parents 478afdf + 289dd87 commit dfca9bf
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [0.8.3] - 2020-03-10
### Changed
- Fixed the unit for network duration

## [0.8.2] - 2020-03-02
### Added
- Added missing error codes
Expand Down
4 changes: 2 additions & 2 deletions Netable.podspec
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
Pod::Spec.new do |s|
s.name = 'Netable'
s.version = '0.8.2'
s.version = '0.8.3'
s.summary = 'A simple and swifty networking library.'
s.description = 'Netable is a simple Swift framework for working with both simple and non-REST-compliant HTTP endpoints.'
s.homepage = 'https://github.com/steamclock/netable/'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = { 'Brendan Lensink' => '[email protected]' }
s.source = { :git => 'https://github.com/steamclock/netable.git', :tag => 'v0.8.2' }
s.source = { :git => 'https://github.com/steamclock/netable.git', :tag => 'v0.8.3' }
s.ios.deployment_target = '11.0'
s.osx.deployment_target = '10.14'
s.source_files = 'Netable/Netable/*.{swift,h,m}'
Expand Down
4 changes: 2 additions & 2 deletions Netable/Netable.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
MARKETING_VERSION = 0.8.2;
MARKETING_VERSION = 0.8.3;
PRODUCT_BUNDLE_IDENTIFIER = com.steamclock.Netable;
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
SKIP_INSTALL = YES;
Expand Down Expand Up @@ -616,7 +616,7 @@
"@executable_path/Frameworks",
"@loader_path/Frameworks",
);
MARKETING_VERSION = 0.8.2;
MARKETING_VERSION = 0.8.3;
PRODUCT_BUNDLE_IDENTIFIER = com.steamclock.Netable;
PRODUCT_NAME = "$(TARGET_NAME:c99extidentifier)";
SKIP_INSTALL = YES;
Expand Down
4 changes: 2 additions & 2 deletions Netable/Netable/Netable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,11 @@ open class Netable {
}

// Send the request
let startTimestamp = CACurrentMediaTime() * 1000
let startTimestamp = CACurrentMediaTime()

let task = urlSession.dataTask(with: urlRequest) { data, response, error in
defer {
let endTimestamp = CACurrentMediaTime() * 1000
let endTimestamp = CACurrentMediaTime()

let userInfo = NetableNotification.userInfo(
forRequest: urlRequest,
Expand Down

0 comments on commit dfca9bf

Please sign in to comment.