Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swift 4.0 Migration #95

Open
wants to merge 61 commits into
base: development
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
b7dee8b
comment out the metadata portions from the Persistable protocol
JimRoepcke Sep 9, 2016
11f7543
fix nometadata versions
JimRoepcke Sep 10, 2016
e69cc43
fix functional with metadata versions
JimRoepcke Sep 10, 2016
39b9461
fix persistable versions
JimRoepcke Sep 10, 2016
10ec086
fix curried with metadata versions
JimRoepcke Sep 10, 2016
7fb0d32
give metadata parameters default values in write methods
JimRoepcke Sep 10, 2016
cf71843
remove commented metadata portions of Persistable protocol
JimRoepcke Sep 10, 2016
2987602
update comments
JimRoepcke Sep 10, 2016
8c7c4c7
add zipToWrite function that creates a list of tuples - hopefully thi…
JimRoepcke Sep 10, 2016
756a308
add “WithMetadata” to API that reads and writes items and their metadata
JimRoepcke Sep 10, 2016
b012709
remove default values for metadata arguments
JimRoepcke Sep 10, 2016
0480a12
update tests
JimRoepcke Sep 10, 2016
eb22d8e
use new YapItem struct instead of tuples, replace zipToWrite with an …
JimRoepcke Sep 16, 2016
1ed4c10
some updates to README.md
JimRoepcke Sep 16, 2016
e27c859
Merge remote-tracking branch 'refs/remotes/upstream/development' into…
JimRoepcke Oct 8, 2016
5014045
Merge branch 'development' into feature/separate-value-and-metadata
JimRoepcke Dec 29, 2016
31f0dce
update credentials_manager to 0.16.4 (thanks for yanking gems, fastlane)
JimRoepcke Dec 29, 2016
fcebdd4
update the podspec to fork the pod
JimRoepcke Dec 29, 2016
e1c674d
update Cartfile for Swift 3
JimRoepcke Dec 29, 2016
73f70e2
run the Swift 3 converter
JimRoepcke Dec 29, 2016
a95b199
run the Swift 3 converter again
JimRoepcke Dec 29, 2016
937f2f5
manual changes to get things building
JimRoepcke Dec 29, 2016
3d599c3
run the Swift 3 converter again
JimRoepcke Dec 29, 2016
098183e
fix build warnings about unused return values
JimRoepcke Dec 29, 2016
2ca966c
renames suggested by Xcode
JimRoepcke Dec 29, 2016
8e29034
prefixUpTo renames
JimRoepcke Dec 29, 2016
4dbbc7e
add @escaping to TestableConnection block parameters
JimRoepcke Dec 29, 2016
b90261d
suffixFrom renames
JimRoepcke Dec 29, 2016
cff9ad4
renames suggested by Xcode
JimRoepcke Dec 29, 2016
36dbc9c
renaming enum cases for lowercase
JimRoepcke Dec 29, 2016
820c828
Date is not NSCoding, NSDate is
JimRoepcke Dec 29, 2016
a60a509
renames suggested by Xcode
JimRoepcke Dec 29, 2016
bfda3f0
remove Reachability framework from Copy Carthage Frameworks input fil…
JimRoepcke Dec 29, 2016
418bb18
change the bundle identifiers to com.roepcke.*
JimRoepcke Dec 29, 2016
082cd84
update versions
JimRoepcke Dec 29, 2016
d2c5282
fix build warnings about unused return values
JimRoepcke Dec 29, 2016
480f25f
update YapDatabase version in the podspec
JimRoepcke Dec 29, 2016
c84c6ca
update CHANGELOG.md
JimRoepcke Dec 29, 2016
38934f8
rename podspec
JimRoepcke Dec 29, 2016
defb99f
downgrade YapDatabase in the podspec, the 2.9.3 pod release is malformed
JimRoepcke Dec 29, 2016
9997a4d
fix the subspecs
JimRoepcke Dec 29, 2016
703edcf
import YapDatabase in YapDB.swift
JimRoepcke Dec 29, 2016
f7f321d
don’t use flatMap when reading
JimRoepcke Dec 31, 2016
0a28f8d
added more detail to the CHANGELOG.
JimRoepcke Dec 31, 2016
76a94a9
when checking if an extension is registered, cast to YapDatabaseExten…
JimRoepcke Dec 31, 2016
10aa640
default does not need to be surrounded in backticks, and enum types c…
JimRoepcke Dec 31, 2016
5456e25
add another availability modifier to help people refactor from code u…
JimRoepcke Dec 31, 2016
9a0a549
Nothing in the Tests folder needs to be open for these tests to pass,…
JimRoepcke Dec 31, 2016
3162cf3
Merge pull request #1 from JimRoepcke/feature/swift3
JimRoepcke Jan 2, 2017
f237a13
Merge pull request #2 from JimRoepcke/feature/separate-value-and-meta…
JimRoepcke Jan 2, 2017
f5254f4
update README for the fork
JimRoepcke Jan 6, 2017
59bdec6
3.0.0
JimRoepcke Jan 6, 2017
22bb3e0
Merge tag '3.0.0' into development
JimRoepcke Jan 6, 2017
94f1a6b
chore: accept new versions of YapDatabase 2.9.x, and bump to 3.0.1
JimRoepcke Apr 27, 2017
b888704
- update
Oct 27, 2017
9c28a08
- wip
Oct 27, 2017
f6591e3
Merge branch 'development' into swift_4
Oct 27, 2017
a36e9f3
- wip
AYastrebov Oct 29, 2017
9918a05
- fixed build errors
AYastrebov Oct 30, 2017
d73af20
- fixed tests
AYastrebov Oct 31, 2017
29edbbe
- final touches
Nov 9, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions .fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ platform :ios do

desc "Runs all the tests"
lane :test do

scan(
scheme: 'YapDatabaseExtensions',
scheme: 'YapDatabaseExtensions',
output_directory: ".ci/xcodebuild-data",
destination: "platform=iOS Simulator,OS=10.1,name=iPhone 7"
destination: "platform=iOS Simulator,OS=11.1,name=iPhone 7"
)

end

end

platform :mac do
Expand All @@ -25,13 +25,13 @@ platform :mac do

desc "Runs all the tests"
lane :test do

scan(
scheme: 'YapDatabaseExtensions',
scheme: 'YapDatabaseExtensions',
output_directory: ".ci/xcodebuild-data",
destination: "platform=OS X"
)

end

end
1 change: 1 addition & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2.4.0
2 changes: 1 addition & 1 deletion .swift-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.3
4.0
16 changes: 12 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
# 4.0.0
1. Updated for Swift 4.0

# 3.0.0
1. Separated Metadata from Objects (removed `metadata` from `Persistable`)
2. Updated for Swift 3.0
4. Use `map` instead of `flatMap` when reading multiple objects so the order of the output corresponds to the order of the input.

# 2.6.0
Updated for Swift 2.3 - sorry it's taken so long!

Expand Down Expand Up @@ -50,7 +58,7 @@ Thanks a lot to Ryan ([@aranasaurus](https://github.com/aranasaurus)) for helpin
# 2.1.0
1. [[YDB-42](https://github.com/danthorpe/YapDatabaseExtensions/pull/42)]: Refactors read & write API, correctly supporting metadata.
2. [[YDB-43](https://github.com/danthorpe/YapDatabaseExtensions/pull/43)]: Makes project cross-platform (iOS & Mac OS)
3. [[YDB-44](https://github.com/danthorpe/YapDatabaseExtensions/pull/44)]: Enables code coverage reporting with CodeCov.io, see reports [here](https://codecov.io/github/danthorpe/YapDatabaseExtensions).
3. [[YDB-44](https://github.com/danthorpe/YapDatabaseExtensions/pull/44)]: Enables code coverage reporting with CodeCov.io, see reports [here](https://codecov.io/github/danthorpe/YapDatabaseExtensions).
4. [[YDB-45](https://github.com/danthorpe/YapDatabaseExtensions/pull/45)]: Adds back functional API.
5. [[YDB-47](https://github.com/danthorpe/YapDatabaseExtensions/pull/47)]: Updates README.
6. [[YDB-48](https://github.com/danthorpe/YapDatabaseExtensions/pull/48)]: Removes `Saveable`, created [ValueCoding](https://github.com/danthorpe/ValueCoding) as a standalone project and new dependency.
Expand All @@ -72,7 +80,7 @@ Thanks a lot to Ryan ([@aranasaurus](https://github.com/aranasaurus)) for helpin
4. [[YDB-29](https://github.com/danthorpe/YapDatabaseExtensions/pull/29)]: Adds support to `YapDatabaseConnection` for writeBlockOperation (`NSBlockOperation`), write and remove APIs. This is great if you want to perform a number of writes of different types in the same transaction inside of an `NSOperation` based architecture, as you can do:

```swift
queue.addOperation(connection.writeBlockOperation { transaction in
queue.addOperation(connection.writeBlockOperation { transaction in
transaction.write(foo)
transaction.write(bar)
transaction.remove(bat)
Expand All @@ -81,7 +89,7 @@ queue.addOperation(connection.writeBlockOperation { transaction in
If you're using my `Operations` framework, as these operations are `NSBlockOperation`s, use `ComposedOperation` to attach conditions or observers. E.g.

```swift
let write = ComposedOperation(connection.writeBlockOperation { transaction in
let write = ComposedOperation(connection.writeBlockOperation { transaction in
transaction.write(foo)
transaction.write(bar)
transaction.remove(bat)
Expand Down Expand Up @@ -120,7 +128,7 @@ queue.addOperation(write)

# 1.1.1

1. [[YDB-11](https://github.com/danthorpe/YapDatabaseExtensions/pull/11)]: Renames `YapDatabase.Index` to `YapDB.Index`.
1. [[YDB-11](https://github.com/danthorpe/YapDatabaseExtensions/pull/11)]: Renames `YapDatabase.Index` to `YapDB.Index`.

# 1.1.0

Expand Down
5 changes: 2 additions & 3 deletions Cartfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
github "danthorpe/ValueCoding" "1.5.0"
github "CocoaLumberjack/CocoaLumberjack" "2.4.0"
github "yapstudios/YapDatabase" "2.9.2"
github "danthorpe/ValueCoding" ~> 3.0.0
github "yapstudios/YapDatabase" ~> 3.0.0
7 changes: 3 additions & 4 deletions Cartfile.resolved
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
github "CocoaLumberjack/CocoaLumberjack" "2.4.0"
github "tonymillion/Reachability" "c4d225a479379f9998dbd5b55070427373d20574"
github "danthorpe/ValueCoding" "1.5.0"
github "yapstudios/YapDatabase" "2.9.2"
github "CocoaLumberjack/CocoaLumberjack" "3.3.0"
github "danthorpe/ValueCoding" "3.0.0"
github "yapstudios/YapDatabase" "3.0.2"
Loading