Skip to content

Commit 408930e

Browse files
committed
Merge branch 'release-1.3.0'
2 parents 5ba2e08 + 751d5f4 commit 408930e

30 files changed

Lines changed: 867 additions & 37 deletions

.jazzy.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ sourcekitten_sourcefile: docs.json
33
clean: true
44
author: Timofey Solomko
55
module: BitByteData
6-
module_version: 1.2.0
6+
module_version: 1.3.0
77
copyright: '© 2018 Timofey Solomko'
88
readme: README.md
99
github_url: https://github.com/tsolomko/BitByteData
10-
github_file_prefix: https://github.com/tsolomko/BitByteData/tree/1.2.0
10+
github_file_prefix: https://github.com/tsolomko/BitByteData/tree/1.3.0
1111
theme: fullwidth
1212

1313
custom_categories:

.swift-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4.1
1+
4.2

.travis.yml

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
jobs:
22
include:
33
- stage: test
4-
language: objective-c
4+
language: swift
55
os: osx
6-
osx_image: xcode9.3
6+
osx_image: xcode10
77
script:
88
- swift build
9-
- swift test
9+
- swift test --filter BitByteDataTests
1010
- swift build -c release # Check Release build just in case.
1111
- language: generic
1212
os: linux
@@ -15,13 +15,31 @@ jobs:
1515
- eval "$(curl -sL https://gist.githubusercontent.com/kylef/5c0475ff02b7c7671d2a/raw/9f442512a46d7a2af7b850d65a7e9bd31edfb09b/swiftenv-install.sh)"
1616
script:
1717
- swift build
18-
- swift test
18+
- swift test --filter BitByteDataTests
1919
- swift build -c release # Check Release build just in case.
20+
- stage: benchmark
21+
if: NOT (tag IS present)
22+
language: swift
23+
os: osx
24+
osx_image: xcode10
25+
script:
26+
# On macOS swift test (i.e. XCTest) outputs to stderr so we need to redirect pipes.
27+
- swift test -c release -Xswiftc -enable-testing --filter BitByteDataBenchmarks 2>&1 | ./ppbenchmarks.py
28+
- stage: benchmark
29+
if: NOT (tag IS present)
30+
language: generic
31+
os: linux
32+
dist: trusty
33+
install:
34+
- eval "$(curl -sL https://gist.githubusercontent.com/kylef/5c0475ff02b7c7671d2a/raw/9f442512a46d7a2af7b850d65a7e9bd31edfb09b/swiftenv-install.sh)"
35+
script:
36+
# On Linux swift test outputs to stdout so we don't need to do anything.
37+
- swift test -c release -Xswiftc -enable-testing --filter BitByteDataBenchmarks | ./ppbenchmarks.py
2038
- stage: deploy
2139
if: tag IS present
22-
language: objective-c
40+
language: generic
2341
os: osx
24-
osx_image: xcode9.3
42+
osx_image: xcode10
2543
env:
2644
secure: fmKQgrPRx2iisNPzxDhOTfXPsnQMJxDgIMItVNjl1AKByraOpiDAGVESySvy+vwQqITCB/BfvdkW7smAPcvFJxIPRx1v4J0VY9kGHdnafMw35XY0Vj9soYkzNS4zrUebxY2gWkGM6Q6dgLOGT/9MSEyWqXBTtVz9sLwA7yr3ZI72yZDbcSz3XGa1fFZRVfwv3I+bmuozG7dq7tyqcSKgRZnHg1VvaRdxcaGqSGSUsNu0YLzmNedujNcU+gTXcxMdrXA1eaheHc2pwNA0TDf3KkefJpaVMXrA/Un8e9MaJ1lMnPlIiEI3dPTuogtQY7p59vgulBNBPEJovTHI0jCaNyLUkTkHgGcUuOwHqwUIKZCEiiqM1j12sdLo4O2tAdNaNHDtd8D3bCakrdJxXlUWVfjrCwvBB555gd0drRirQgYX+5gGFwnTQE8tOcjK4qUvJaOAouHsnm/DmW+fLJPX76KoU6QOtGJt6PQ92yBgKRhaSg/sQ28WPuCmF2p7BuUSuULxcM2LU5eA5aFxayoZvR2E9uvfFxnFh01iV6clcZo25U03AuxJmuI7Mhl83amj8bm5CRBbuRw5sIljXfBujFUel+kz/HXalS7lStqH9iPyiQvh24WkPzHKNQdjRI7v3kyrVSXJ3Xl6+fopXqr/25MwqD4bt57QgglJ2IQtnLM=
2745
before_install:

BenchmarksResults/base.txt

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
ByteReaderBenchmarks:
2+
testByte 0.457 2.094%
3+
testBytes 0.397 2.203%
4+
testIntFromBytes 0.417 3.351%
5+
testUint16 0.239 3.205%
6+
testUint16FromBytes 0.206 9.280%
7+
testUint32 0.122 4.881%
8+
testUint32FromBytes 0.103 3.399%
9+
testUint64 0.029 11.959%
10+
testUint64FromBytes 0.416 1.480%
11+
12+
LsbBitReaderBenchmarks:
13+
testBit 2.192 10.594%
14+
testBits 3.956 0.858%
15+
testByteFromBits 0.917 1.045%
16+
testIntFromBits 0.679 1.361%
17+
testUint16FromBits 0.821 1.885%
18+
testUint32FromBits 0.993 2.142%
19+
testUint64FromBits 0.709 1.185%
20+
21+
LsbBitWriterBenchmarks:
22+
testAppendByte 1.114 4.319%
23+
testWriteBit 1.243 1.516%
24+
testWriteNumberBitsCount 1.071 1.721%
25+
testWriteUnsignedNumberBitsCount 1.052 1.330%
26+
27+
MsbBitReaderBenchmarks:
28+
testBit 2.088 2.183%
29+
testBits 3.952 0.516%
30+
testByteFromBits 0.944 1.012%
31+
testIntFromBits 0.689 1.355%
32+
testUint16FromBits 0.835 1.000%
33+
testUint32FromBits 1.011 0.947%
34+
testUint64FromBits 0.722 2.311%
35+
36+
MsbBitWriterBenchmarks:
37+
testAppendByte 1.364 11.587%
38+
testWriteBit 1.301 1.769%
39+
testWriteNumberBitsCount 1.050 3.337%
40+
testWriteUnsignedNumberBitsCount 1.108 1.304%

BitByteData.podspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Pod::Spec.new do |s|
22

33
s.name = "BitByteData"
4-
s.version = "1.2.0"
4+
s.version = "1.3.0"
55
s.summary = "Read and write bits and bytes in Swift."
66

77
s.description = "A Swift framework with classes for reading and writing bits and bytes."
@@ -20,7 +20,7 @@ Pod::Spec.new do |s|
2020
s.tvos.deployment_target = "9.0"
2121
s.watchos.deployment_target = "2.0"
2222

23-
s.swift_version = "4.1"
23+
s.swift_version = "4.2"
2424

2525
s.source_files = "Sources/*.swift"
2626

BitByteData.xcodeproj/BitByteData.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
<key>CFBundlePackageType</key>
1616
<string>FMWK</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>1.2.0</string>
18+
<string>1.3.0</string>
1919
<key>CFBundleVersion</key>
20-
<string>13</string>
20+
<string>15</string>
2121
<key>NSHumanReadableCopyright</key>
2222
<string>Copyright © 2018 Timofey Solomko. All rights reserved.</string>
2323
</dict>
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>CFBundleDevelopmentRegion</key>
6+
<string>$(DEVELOPMENT_LANGUAGE)</string>
7+
<key>CFBundleExecutable</key>
8+
<string>$(EXECUTABLE_NAME)</string>
9+
<key>CFBundleIdentifier</key>
10+
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
11+
<key>CFBundleInfoDictionaryVersion</key>
12+
<string>6.0</string>
13+
<key>CFBundleName</key>
14+
<string>$(PRODUCT_NAME)</string>
15+
<key>CFBundlePackageType</key>
16+
<string>BNDL</string>
17+
<key>CFBundleShortVersionString</key>
18+
<string>1.3.0</string>
19+
<key>CFBundleVersion</key>
20+
<string>15</string>
21+
</dict>
22+
</plist>

BitByteData.xcodeproj/TestBitByteData.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
<key>CFBundlePackageType</key>
1616
<string>BNDL</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>1.2.0</string>
18+
<string>1.3.0</string>
1919
<key>CFBundleVersion</key>
20-
<string>13</string>
20+
<string>15</string>
2121
</dict>
2222
</plist>

0 commit comments

Comments
 (0)