Skip to content

Commit

Permalink
Simplify dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
3lvis committed Oct 4, 2016
1 parent 47dbbc7 commit 58e8c18
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 24 deletions.
19 changes: 5 additions & 14 deletions Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,17 +1,11 @@
PODS:
- DATASource (6.0.1)
- DATAStack (6.0.1)
- DateParser (0.1.1)
- JSON (5.0.0)
- NSEntityDescription-SYNCPrimaryKey (1.2.8):
- NSString-HYPNetworking (~> 1.0.6)
- NSManagedObject-HYPPropertyMapper (4.1.3):
- DateParser (~> 0.1.1)
- NSEntityDescription-SYNCPrimaryKey (~> 1.2.8)
- NSString-HYPNetworking (1.0.6)
- Sync (2.1.6):
- NSManagedObject-HYPPropertyMapper (4.1.4)
- Sync (2.2.0):
- DATAStack (~> 6.0.1)
- NSManagedObject-HYPPropertyMapper (~> 4.1.3)
- NSManagedObject-HYPPropertyMapper (~> 4.1.4)

DEPENDENCIES:
- DATASource (~> 6)
Expand All @@ -25,12 +19,9 @@ EXTERNAL SOURCES:
SPEC CHECKSUMS:
DATASource: 4038d08f9d7d4fcad81c153f9612ff7eb1789b17
DATAStack: 4138a30db76d535d04f9130847ac59748c6c16aa
DateParser: 17a256f651c5dd754b83aca6ef5827d796a5f292
JSON: 93622160a062588b4cd3497b77ccd777f1fd0587
NSEntityDescription-SYNCPrimaryKey: 6e0ca0958f7e05a15e2ed9317e5afeb75af6c782
NSManagedObject-HYPPropertyMapper: b054e2b9c8be5bb24a7f6f1729395cdb5903171c
NSString-HYPNetworking: 97eb879c5c43663dde06f89e01e8e1551a3f5bb7
Sync: b0753a37123b743d39cf3939e0b6336b8725793f
NSManagedObject-HYPPropertyMapper: 0502d7a0dcb8c0c8112757b80e6318a1baf9c486
Sync: 3be1ae6ae93685770d56b437a224e859989a14d6

PODFILE CHECKSUM: 2f66666173c7e212ebe798fd96713dc28117babd

Expand Down
5 changes: 2 additions & 3 deletions Source/Sync/NSArray+Sync.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,8 @@ public extension NSArray {

guard let filteredArray = (objectChanges as NSArray).filtered(using: predicate) as? [NSManagedObject] else { fatalError("Couldn't cast filteredArray as [NSManagedObject]: \(objectChanges), predicate: \(predicate)") }
for filteredObject in filteredArray {
if let change = filteredObject.hyp_dictionary(using: .array) as? [String : Any] {
filteredChanges.append(change)
}
let change = filteredObject.hyp_dictionary(using: .array)
filteredChanges.append(change)
}
}
}
Expand Down
3 changes: 1 addition & 2 deletions Source/Sync/NSManagedObject+Sync.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import CoreData
import NSEntityDescription_SYNCPrimaryKey
import DATAStack
import NSString_HYPNetworking
import NSManagedObject_HYPPropertyMapper

public extension NSManagedObject {
/**
Expand Down
2 changes: 0 additions & 2 deletions Source/Sync/NSManagedObjectContext+Sync.swift
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import CoreData
import NSEntityDescription_SYNCPrimaryKey
import NSString_HYPNetworking

public extension NSManagedObjectContext {
/**
Expand Down
1 change: 0 additions & 1 deletion Source/Sync/Sync.swift
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import CoreData
import NSEntityDescription_SYNCPrimaryKey
import NSManagedObject_HYPPropertyMapper
import DATAStack

Expand Down
4 changes: 2 additions & 2 deletions Sync.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "Sync"
s.version = "2.1.6"
s.version = "2.2.0"
s.summary = "Modern Swift JSON synchronization to Core Data"
s.description = <<-DESC
**Sync** eases your everyday job of parsing a `JSON` response and getting it into Core Data. It uses a convention-over-configuration paradigm to facilitate your workflow.
Expand Down Expand Up @@ -29,5 +29,5 @@ s.source_files = 'Source/**/*'
s.frameworks = 'Foundation', 'CoreData'

s.dependency 'DATAStack', '~> 6.0.1'
s.dependency 'NSManagedObject-HYPPropertyMapper', '~> 4.1.3'
s.dependency 'NSManagedObject-HYPPropertyMapper', '~> 4.1.4'
end

0 comments on commit 58e8c18

Please sign in to comment.