motion-yapper 0.0.3 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/.travis.yml +3 -1
- data/lib/yapper.rb +3 -3
- data/lib/yapper/db.rb +61 -4
- data/lib/yapper/document/persistence.rb +4 -0
- data/lib/yapper/document/selection.rb +13 -0
- data/lib/yapper/version.rb +1 -1
- data/motion-yapper.gemspec +1 -1
- data/spec/integration/search_spec.rb +111 -0
- data/vendor/Podfile.lock +11 -7
- data/vendor/YapDatabaseRubyMotion/YapDatabaseRubyMotion.bridgesupport +16 -2
- data/vendor/YapDatabaseRubyMotion/YapDatabaseRubyMotion.h +10 -7
- data/vendor/YapDatabaseRubyMotion/YapDatabaseRubyMotion.m +20 -2
- metadata +19 -297
- data/vendor/Pods/.build/libPods-CocoaLumberjack.a +0 -0
- data/vendor/Pods/.build/libPods-NSData+MD5Digest.a +0 -0
- data/vendor/Pods/.build/libPods-YapDatabase.a +0 -0
- data/vendor/Pods/.build/libPods.a +0 -0
- data/vendor/Pods/BuildHeaders/CocoaLumberjack/DDASLLogger.h +0 -41
- data/vendor/Pods/BuildHeaders/CocoaLumberjack/DDAbstractDatabaseLogger.h +0 -102
- data/vendor/Pods/BuildHeaders/CocoaLumberjack/DDContextFilterLogFormatter.h +0 -63
- data/vendor/Pods/BuildHeaders/CocoaLumberjack/DDDispatchQueueLogFormatter.h +0 -128
- data/vendor/Pods/BuildHeaders/CocoaLumberjack/DDFileLogger.h +0 -369
- data/vendor/Pods/BuildHeaders/CocoaLumberjack/DDLog+LOGV.h +0 -99
- data/vendor/Pods/BuildHeaders/CocoaLumberjack/DDLog.h +0 -634
- data/vendor/Pods/BuildHeaders/CocoaLumberjack/DDMultiFormatter.h +0 -30
- data/vendor/Pods/BuildHeaders/CocoaLumberjack/DDTTYLogger.h +0 -181
- data/vendor/Pods/BuildHeaders/NSData+MD5Digest/NSData+MD5Digest.h +0 -18
- data/vendor/Pods/BuildHeaders/YapDatabase/NSDictionary+YapDatabase.h +0 -8
- data/vendor/Pods/BuildHeaders/YapDatabase/YapCache.h +0 -91
- data/vendor/Pods/BuildHeaders/YapDatabase/YapCollectionKey.h +0 -23
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabase.h +0 -547
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseConnection.h +0 -449
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseConnectionState.h +0 -29
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseDefaults.h +0 -37
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseExtension.h +0 -15
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseExtensionConnection.h +0 -11
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseExtensionPrivate.h +0 -444
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseExtensionTransaction.h +0 -11
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseFilteredView.h +0 -81
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseFilteredViewConnection.h +0 -12
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseFilteredViewPrivate.h +0 -17
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseFilteredViewTransaction.h +0 -39
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseFilteredViewTypes.h +0 -32
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseFullTextSearch.h +0 -89
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseFullTextSearchConnection.h +0 -32
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseFullTextSearchPrivate.h +0 -77
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseFullTextSearchSnippetOptions.h +0 -79
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseFullTextSearchTransaction.h +0 -68
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseLogging.h +0 -158
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseManager.h +0 -17
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabasePrivate.h +0 -446
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseQuery.h +0 -42
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseRelationship.h +0 -35
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseRelationshipConnection.h +0 -29
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseRelationshipEdge.h +0 -163
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseRelationshipEdgePrivate.h +0 -79
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseRelationshipNode.h +0 -99
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseRelationshipOptions.h +0 -59
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseRelationshipPrivate.h +0 -125
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseRelationshipTransaction.h +0 -384
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseSecondaryIndex.h +0 -149
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseSecondaryIndexConnection.h +0 -33
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseSecondaryIndexPrivate.h +0 -83
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseSecondaryIndexSetup.h +0 -33
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseSecondaryIndexSetupPrivate.h +0 -18
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseSecondaryIndexTransaction.h +0 -58
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseStatement.h +0 -13
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseString.h +0 -121
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseTransaction.h +0 -651
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseView.h +0 -127
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseViewChange.h +0 -272
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseViewChangePrivate.h +0 -94
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseViewConnection.h +0 -116
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseViewMappings.h +0 -842
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseViewMappingsPrivate.h +0 -72
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseViewOptions.h +0 -63
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseViewPage.h +0 -36
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseViewPageMetadata.h +0 -27
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseViewPrivate.h +0 -170
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseViewRangeOptions.h +0 -330
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseViewRangeOptionsPrivate.h +0 -17
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseViewTransaction.h +0 -498
- data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseViewTypes.h +0 -99
- data/vendor/Pods/BuildHeaders/YapDatabase/YapMemoryTable.h +0 -74
- data/vendor/Pods/BuildHeaders/YapDatabase/YapNull.h +0 -17
- data/vendor/Pods/BuildHeaders/YapDatabase/YapSet.h +0 -41
- data/vendor/Pods/BuildHeaders/YapDatabase/YapTouch.h +0 -15
- data/vendor/Pods/CocoaLumberjack/LICENSE.txt +0 -18
- data/vendor/Pods/CocoaLumberjack/Lumberjack/DDASLLogger.h +0 -41
- data/vendor/Pods/CocoaLumberjack/Lumberjack/DDASLLogger.m +0 -100
- data/vendor/Pods/CocoaLumberjack/Lumberjack/DDAbstractDatabaseLogger.h +0 -102
- data/vendor/Pods/CocoaLumberjack/Lumberjack/DDAbstractDatabaseLogger.m +0 -727
- data/vendor/Pods/CocoaLumberjack/Lumberjack/DDFileLogger.h +0 -369
- data/vendor/Pods/CocoaLumberjack/Lumberjack/DDFileLogger.m +0 -1539
- data/vendor/Pods/CocoaLumberjack/Lumberjack/DDLog+LOGV.h +0 -99
- data/vendor/Pods/CocoaLumberjack/Lumberjack/DDLog.h +0 -634
- data/vendor/Pods/CocoaLumberjack/Lumberjack/DDLog.m +0 -1208
- data/vendor/Pods/CocoaLumberjack/Lumberjack/DDTTYLogger.h +0 -181
- data/vendor/Pods/CocoaLumberjack/Lumberjack/DDTTYLogger.m +0 -1520
- data/vendor/Pods/CocoaLumberjack/Lumberjack/Extensions/DDContextFilterLogFormatter.h +0 -63
- data/vendor/Pods/CocoaLumberjack/Lumberjack/Extensions/DDContextFilterLogFormatter.m +0 -191
- data/vendor/Pods/CocoaLumberjack/Lumberjack/Extensions/DDDispatchQueueLogFormatter.h +0 -128
- data/vendor/Pods/CocoaLumberjack/Lumberjack/Extensions/DDDispatchQueueLogFormatter.m +0 -253
- data/vendor/Pods/CocoaLumberjack/Lumberjack/Extensions/DDMultiFormatter.h +0 -30
- data/vendor/Pods/CocoaLumberjack/Lumberjack/Extensions/DDMultiFormatter.m +0 -127
- data/vendor/Pods/CocoaLumberjack/Lumberjack/Extensions/README.txt +0 -7
- data/vendor/Pods/CocoaLumberjack/README.markdown +0 -74
- data/vendor/Pods/Headers/CocoaLumberjack/DDASLLogger.h +0 -41
- data/vendor/Pods/Headers/CocoaLumberjack/DDAbstractDatabaseLogger.h +0 -102
- data/vendor/Pods/Headers/CocoaLumberjack/DDContextFilterLogFormatter.h +0 -63
- data/vendor/Pods/Headers/CocoaLumberjack/DDDispatchQueueLogFormatter.h +0 -128
- data/vendor/Pods/Headers/CocoaLumberjack/DDFileLogger.h +0 -369
- data/vendor/Pods/Headers/CocoaLumberjack/DDLog+LOGV.h +0 -99
- data/vendor/Pods/Headers/CocoaLumberjack/DDLog.h +0 -634
- data/vendor/Pods/Headers/CocoaLumberjack/DDMultiFormatter.h +0 -30
- data/vendor/Pods/Headers/CocoaLumberjack/DDTTYLogger.h +0 -181
- data/vendor/Pods/Headers/NSData+MD5Digest/NSData+MD5Digest.h +0 -18
- data/vendor/Pods/Headers/YapDatabase/YapCollectionKey.h +0 -23
- data/vendor/Pods/Headers/YapDatabase/YapDatabase.h +0 -547
- data/vendor/Pods/Headers/YapDatabase/YapDatabaseConnection.h +0 -449
- data/vendor/Pods/Headers/YapDatabase/YapDatabaseExtension.h +0 -15
- data/vendor/Pods/Headers/YapDatabase/YapDatabaseExtensionConnection.h +0 -11
- data/vendor/Pods/Headers/YapDatabase/YapDatabaseExtensionTransaction.h +0 -11
- data/vendor/Pods/Headers/YapDatabase/YapDatabaseFilteredView.h +0 -81
- data/vendor/Pods/Headers/YapDatabase/YapDatabaseFilteredViewConnection.h +0 -12
- data/vendor/Pods/Headers/YapDatabase/YapDatabaseFilteredViewTransaction.h +0 -39
- data/vendor/Pods/Headers/YapDatabase/YapDatabaseFilteredViewTypes.h +0 -32
- data/vendor/Pods/Headers/YapDatabase/YapDatabaseFullTextSearch.h +0 -89
- data/vendor/Pods/Headers/YapDatabase/YapDatabaseFullTextSearchConnection.h +0 -32
- data/vendor/Pods/Headers/YapDatabase/YapDatabaseFullTextSearchSnippetOptions.h +0 -79
- data/vendor/Pods/Headers/YapDatabase/YapDatabaseFullTextSearchTransaction.h +0 -68
- data/vendor/Pods/Headers/YapDatabase/YapDatabaseQuery.h +0 -42
- data/vendor/Pods/Headers/YapDatabase/YapDatabaseRelationship.h +0 -35
- data/vendor/Pods/Headers/YapDatabase/YapDatabaseRelationshipConnection.h +0 -29
- data/vendor/Pods/Headers/YapDatabase/YapDatabaseRelationshipEdge.h +0 -163
- data/vendor/Pods/Headers/YapDatabase/YapDatabaseRelationshipNode.h +0 -99
- data/vendor/Pods/Headers/YapDatabase/YapDatabaseRelationshipOptions.h +0 -59
- data/vendor/Pods/Headers/YapDatabase/YapDatabaseRelationshipTransaction.h +0 -384
- data/vendor/Pods/Headers/YapDatabase/YapDatabaseSecondaryIndex.h +0 -149
- data/vendor/Pods/Headers/YapDatabase/YapDatabaseSecondaryIndexConnection.h +0 -33
- data/vendor/Pods/Headers/YapDatabase/YapDatabaseSecondaryIndexSetup.h +0 -33
- data/vendor/Pods/Headers/YapDatabase/YapDatabaseSecondaryIndexTransaction.h +0 -58
- data/vendor/Pods/Headers/YapDatabase/YapDatabaseTransaction.h +0 -651
- data/vendor/Pods/Headers/YapDatabase/YapDatabaseView.h +0 -127
- data/vendor/Pods/Headers/YapDatabase/YapDatabaseViewChange.h +0 -272
- data/vendor/Pods/Headers/YapDatabase/YapDatabaseViewConnection.h +0 -116
- data/vendor/Pods/Headers/YapDatabase/YapDatabaseViewMappings.h +0 -842
- data/vendor/Pods/Headers/YapDatabase/YapDatabaseViewOptions.h +0 -63
- data/vendor/Pods/Headers/YapDatabase/YapDatabaseViewRangeOptions.h +0 -330
- data/vendor/Pods/Headers/YapDatabase/YapDatabaseViewTransaction.h +0 -498
- data/vendor/Pods/Headers/YapDatabase/YapDatabaseViewTypes.h +0 -99
- data/vendor/Pods/Headers/YapDatabase/YapSet.h +0 -41
- data/vendor/Pods/Headers/____Pods-CocoaLumberjack-prefix.h +0 -7
- data/vendor/Pods/Headers/____Pods-NSData+MD5Digest-prefix.h +0 -5
- data/vendor/Pods/Headers/____Pods-YapDatabase-prefix.h +0 -5
- data/vendor/Pods/Headers/____Pods-environment.h +0 -38
- data/vendor/Pods/Manifest.lock +0 -22
- data/vendor/Pods/NSData+MD5Digest/NSData+MD5Digest/NSData+MD5Digest.h +0 -18
- data/vendor/Pods/NSData+MD5Digest/NSData+MD5Digest/NSData+MD5Digest.m +0 -39
- data/vendor/Pods/NSData+MD5Digest/README.md +0 -11
- data/vendor/Pods/Pods-CocoaLumberjack-Private.xcconfig +0 -5
- data/vendor/Pods/Pods-CocoaLumberjack-dummy.m +0 -5
- data/vendor/Pods/Pods-CocoaLumberjack-prefix.pch +0 -7
- data/vendor/Pods/Pods-CocoaLumberjack.xcconfig +0 -0
- data/vendor/Pods/Pods-NSData+MD5Digest-Private.xcconfig +0 -5
- data/vendor/Pods/Pods-NSData+MD5Digest-dummy.m +0 -5
- data/vendor/Pods/Pods-NSData+MD5Digest-prefix.pch +0 -5
- data/vendor/Pods/Pods-NSData+MD5Digest.xcconfig +0 -0
- data/vendor/Pods/Pods-YapDatabase-Private.xcconfig +0 -5
- data/vendor/Pods/Pods-YapDatabase-dummy.m +0 -5
- data/vendor/Pods/Pods-YapDatabase-prefix.pch +0 -5
- data/vendor/Pods/Pods-YapDatabase.xcconfig +0 -1
- data/vendor/Pods/Pods-acknowledgements.markdown +0 -59
- data/vendor/Pods/Pods-acknowledgements.plist +0 -97
- data/vendor/Pods/Pods-dummy.m +0 -5
- data/vendor/Pods/Pods-environment.h +0 -38
- data/vendor/Pods/Pods-resources.sh +0 -68
- data/vendor/Pods/Pods.xcconfig +0 -5
- data/vendor/Pods/Pods.xcodeproj/project.pbxproj +0 -4807
- data/vendor/Pods/Pods.xcodeproj/xcuserdata/kareemk.xcuserdatad/xcschemes/Pods-CocoaLumberjack.xcscheme +0 -59
- data/vendor/Pods/Pods.xcodeproj/xcuserdata/kareemk.xcuserdatad/xcschemes/Pods-NSData+MD5Digest.xcscheme +0 -59
- data/vendor/Pods/Pods.xcodeproj/xcuserdata/kareemk.xcuserdatad/xcschemes/Pods-YapDatabase.xcscheme +0 -59
- data/vendor/Pods/Pods.xcodeproj/xcuserdata/kareemk.xcuserdatad/xcschemes/Pods.xcscheme +0 -59
- data/vendor/Pods/Pods.xcodeproj/xcuserdata/kareemk.xcuserdatad/xcschemes/xcschememanagement.plist +0 -31
- data/vendor/Pods/YapDatabase/LICENSE.txt +0 -18
- data/vendor/Pods/YapDatabase/README.md +0 -32
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/FilteredViews/Internal/YapDatabaseFilteredViewPrivate.h +0 -17
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/FilteredViews/YapDatabaseFilteredView.h +0 -81
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/FilteredViews/YapDatabaseFilteredView.m +0 -159
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/FilteredViews/YapDatabaseFilteredViewConnection.h +0 -12
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/FilteredViews/YapDatabaseFilteredViewConnection.m +0 -41
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/FilteredViews/YapDatabaseFilteredViewTransaction.h +0 -39
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/FilteredViews/YapDatabaseFilteredViewTransaction.m +0 -1235
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/FilteredViews/YapDatabaseFilteredViewTypes.h +0 -32
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/FullTextSearch/Internal/YapDatabaseFullTextSearchPrivate.h +0 -77
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/FullTextSearch/YapDatabaseFullTextSearch.h +0 -89
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/FullTextSearch/YapDatabaseFullTextSearch.m +0 -146
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/FullTextSearch/YapDatabaseFullTextSearchConnection.h +0 -32
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/FullTextSearch/YapDatabaseFullTextSearchConnection.m +0 -298
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/FullTextSearch/YapDatabaseFullTextSearchSnippetOptions.h +0 -79
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/FullTextSearch/YapDatabaseFullTextSearchSnippetOptions.m +0 -95
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/FullTextSearch/YapDatabaseFullTextSearchTransaction.h +0 -68
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/FullTextSearch/YapDatabaseFullTextSearchTransaction.m +0 -1403
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Protocol/Internal/YapDatabaseExtensionPrivate.h +0 -444
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Protocol/YapDatabaseExtension.h +0 -15
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Protocol/YapDatabaseExtension.m +0 -83
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Protocol/YapDatabaseExtensionConnection.h +0 -11
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Protocol/YapDatabaseExtensionConnection.m +0 -46
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Protocol/YapDatabaseExtensionTransaction.h +0 -11
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Protocol/YapDatabaseExtensionTransaction.m +0 -204
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Relationships/Internal/YapDatabaseRelationshipEdgePrivate.h +0 -79
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Relationships/Internal/YapDatabaseRelationshipPrivate.h +0 -125
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Relationships/YapDatabaseRelationship.h +0 -35
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Relationships/YapDatabaseRelationship.m +0 -129
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Relationships/YapDatabaseRelationshipConnection.h +0 -29
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Relationships/YapDatabaseRelationshipConnection.m +0 -802
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Relationships/YapDatabaseRelationshipEdge.h +0 -163
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Relationships/YapDatabaseRelationshipEdge.m +0 -408
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Relationships/YapDatabaseRelationshipNode.h +0 -99
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Relationships/YapDatabaseRelationshipOptions.h +0 -59
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Relationships/YapDatabaseRelationshipOptions.m +0 -29
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Relationships/YapDatabaseRelationshipTransaction.h +0 -384
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Relationships/YapDatabaseRelationshipTransaction.m +0 -5254
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/SecondaryIndex/Internal/YapDatabaseSecondaryIndexPrivate.h +0 -83
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/SecondaryIndex/Internal/YapDatabaseSecondaryIndexSetupPrivate.h +0 -18
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/SecondaryIndex/YapDatabaseSecondaryIndex.h +0 -149
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/SecondaryIndex/YapDatabaseSecondaryIndex.m +0 -161
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/SecondaryIndex/YapDatabaseSecondaryIndexConnection.h +0 -33
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/SecondaryIndex/YapDatabaseSecondaryIndexConnection.m +0 -331
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/SecondaryIndex/YapDatabaseSecondaryIndexSetup.h +0 -33
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/SecondaryIndex/YapDatabaseSecondaryIndexSetup.m +0 -245
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/SecondaryIndex/YapDatabaseSecondaryIndexTransaction.h +0 -58
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/SecondaryIndex/YapDatabaseSecondaryIndexTransaction.m +0 -1269
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Views/Internal/YapDatabaseViewChangePrivate.h +0 -94
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Views/Internal/YapDatabaseViewMappingsPrivate.h +0 -72
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Views/Internal/YapDatabaseViewPage.h +0 -36
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Views/Internal/YapDatabaseViewPage.mm +0 -296
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Views/Internal/YapDatabaseViewPageMetadata.h +0 -27
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Views/Internal/YapDatabaseViewPageMetadata.m +0 -28
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Views/Internal/YapDatabaseViewPrivate.h +0 -170
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Views/Internal/YapDatabaseViewRangeOptionsPrivate.h +0 -17
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Views/Utilities/YapDatabaseViewChange.h +0 -272
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Views/Utilities/YapDatabaseViewChange.m +0 -2500
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Views/Utilities/YapDatabaseViewMappings.h +0 -842
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Views/Utilities/YapDatabaseViewMappings.m +0 -1714
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Views/Utilities/YapDatabaseViewRangeOptions.h +0 -330
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Views/Utilities/YapDatabaseViewRangeOptions.m +0 -141
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Views/YapDatabaseView.h +0 -127
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Views/YapDatabaseView.m +0 -194
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Views/YapDatabaseViewConnection.h +0 -116
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Views/YapDatabaseViewConnection.m +0 -888
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Views/YapDatabaseViewOptions.h +0 -63
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Views/YapDatabaseViewOptions.m +0 -27
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Views/YapDatabaseViewTransaction.h +0 -498
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Views/YapDatabaseViewTransaction.m +0 -4986
- data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Views/YapDatabaseViewTypes.h +0 -99
- data/vendor/Pods/YapDatabase/YapDatabase/Internal/NSDictionary+YapDatabase.h +0 -8
- data/vendor/Pods/YapDatabase/YapDatabase/Internal/NSDictionary+YapDatabase.m +0 -19
- data/vendor/Pods/YapDatabase/YapDatabase/Internal/YapCache.h +0 -91
- data/vendor/Pods/YapDatabase/YapDatabase/Internal/YapCache.m +0 -465
- data/vendor/Pods/YapDatabase/YapDatabase/Internal/YapDatabaseConnectionState.h +0 -29
- data/vendor/Pods/YapDatabase/YapDatabase/Internal/YapDatabaseConnectionState.m +0 -48
- data/vendor/Pods/YapDatabase/YapDatabase/Internal/YapDatabaseDefaults.h +0 -37
- data/vendor/Pods/YapDatabase/YapDatabase/Internal/YapDatabaseDefaults.m +0 -83
- data/vendor/Pods/YapDatabase/YapDatabase/Internal/YapDatabaseLogging.h +0 -158
- data/vendor/Pods/YapDatabase/YapDatabase/Internal/YapDatabaseLogging.m +0 -73
- data/vendor/Pods/YapDatabase/YapDatabase/Internal/YapDatabaseManager.h +0 -17
- data/vendor/Pods/YapDatabase/YapDatabase/Internal/YapDatabaseManager.m +0 -56
- data/vendor/Pods/YapDatabase/YapDatabase/Internal/YapDatabasePrivate.h +0 -446
- data/vendor/Pods/YapDatabase/YapDatabase/Internal/YapDatabaseStatement.h +0 -13
- data/vendor/Pods/YapDatabase/YapDatabase/Internal/YapDatabaseStatement.m +0 -26
- data/vendor/Pods/YapDatabase/YapDatabase/Internal/YapDatabaseString.h +0 -121
- data/vendor/Pods/YapDatabase/YapDatabase/Internal/YapMemoryTable.h +0 -74
- data/vendor/Pods/YapDatabase/YapDatabase/Internal/YapMemoryTable.m +0 -603
- data/vendor/Pods/YapDatabase/YapDatabase/Internal/YapNull.h +0 -17
- data/vendor/Pods/YapDatabase/YapDatabase/Internal/YapNull.m +0 -35
- data/vendor/Pods/YapDatabase/YapDatabase/Internal/YapTouch.h +0 -15
- data/vendor/Pods/YapDatabase/YapDatabase/Internal/YapTouch.m +0 -31
- data/vendor/Pods/YapDatabase/YapDatabase/Utilities/YapCollectionKey.h +0 -23
- data/vendor/Pods/YapDatabase/YapDatabase/Utilities/YapCollectionKey.m +0 -199
- data/vendor/Pods/YapDatabase/YapDatabase/Utilities/YapDatabaseQuery.h +0 -42
- data/vendor/Pods/YapDatabase/YapDatabase/Utilities/YapDatabaseQuery.m +0 -96
- data/vendor/Pods/YapDatabase/YapDatabase/Utilities/YapSet.h +0 -41
- data/vendor/Pods/YapDatabase/YapDatabase/Utilities/YapSet.m +0 -82
- data/vendor/Pods/YapDatabase/YapDatabase/YapDatabase.h +0 -547
- data/vendor/Pods/YapDatabase/YapDatabase/YapDatabase.m +0 -2013
- data/vendor/Pods/YapDatabase/YapDatabase/YapDatabaseConnection.h +0 -449
- data/vendor/Pods/YapDatabase/YapDatabase/YapDatabaseConnection.m +0 -4046
- data/vendor/Pods/YapDatabase/YapDatabase/YapDatabaseTransaction.h +0 -651
- data/vendor/Pods/YapDatabase/YapDatabase/YapDatabaseTransaction.m +0 -5602
- data/vendor/Pods/build-iPhoneSimulator/Pods.bridgesupport +0 -3172
- data/vendor/Pods/build-iPhoneSimulator/libPods.a +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 133d9cff7840b8a1c1a70098049e100612623055
|
4
|
+
data.tar.gz: 9954e0b565b25580d172ac9956dd0ee96f43a12f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ce2518d510fa13cea0466ef3feded4055e0ef84de0c9530b9adce79fd6e534867b128322dd143d781f9a0278ebfd9db3a23cce72b1db44638dd0ee43bef90b81
|
7
|
+
data.tar.gz: 4445aa7414f9012b418f1b9058e3fd17ebd301a6fb6e4f87b6f82f188af48717cdbf30bde261665645cb6aec05874518bccad40131d37f6641658233da5eaed4
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
@@ -1,8 +1,10 @@
|
|
1
1
|
language: objective-c
|
2
2
|
before_install:
|
3
3
|
- (ruby --version)
|
4
|
-
-
|
4
|
+
- sudo chown -R travis ~/Library/RubyMotion
|
5
|
+
- sudo mkdir -p ~/Library/RubyMotion/build
|
5
6
|
- sudo motion update
|
7
|
+
- rake pod:install
|
6
8
|
install:
|
7
9
|
- bundle
|
8
10
|
script: bundle exec rake spec
|
data/lib/yapper.rb
CHANGED
@@ -14,7 +14,7 @@ Motion::Project::App.setup do |app|
|
|
14
14
|
app.detect_dependencies = false
|
15
15
|
|
16
16
|
app.pods do
|
17
|
-
pod 'YapDatabase' ,'~> 2.
|
17
|
+
pod 'YapDatabase' ,'~> 2.5.2'
|
18
18
|
pod 'CocoaLumberjack' ,'~> 1.6.5'
|
19
19
|
pod 'NSData+MD5Digest' ,'~> 1.0.0'
|
20
20
|
end
|
@@ -22,7 +22,7 @@ Motion::Project::App.setup do |app|
|
|
22
22
|
yap_patch = File.expand_path(File.join(File.dirname(__FILE__), '../vendor/YapDatabaseRubyMotion'))
|
23
23
|
app.vendor_project(yap_patch,
|
24
24
|
:static,
|
25
|
-
:bridgesupport_cflags => "-I#{Dir.pwd}/vendor/Pods/Headers -fobjc-arc",
|
26
|
-
:cflags => "-I#{Dir.pwd}/vendor/Pods/Headers -fobjc-arc")
|
25
|
+
:bridgesupport_cflags => "-I#{Dir.pwd}/vendor/Pods/Headers/Public -fobjc-arc",
|
26
|
+
:cflags => "-I#{Dir.pwd}/vendor/Pods/Headers/Public -fobjc-arc")
|
27
27
|
|
28
28
|
end
|
data/lib/yapper/db.rb
CHANGED
@@ -24,7 +24,8 @@ class Yapper::DB
|
|
24
24
|
def initialize(options)
|
25
25
|
@options = options
|
26
26
|
@name = options[:name]
|
27
|
-
@indexes = {}
|
27
|
+
@indexes = {}
|
28
|
+
@search_indexes = {}
|
28
29
|
|
29
30
|
self
|
30
31
|
end
|
@@ -37,6 +38,7 @@ class Yapper::DB
|
|
37
38
|
Notifications.track(notifications)
|
38
39
|
|
39
40
|
create_indexes!
|
41
|
+
create_search_indexes!
|
40
42
|
|
41
43
|
result = nil
|
42
44
|
unless self.transaction
|
@@ -56,8 +58,13 @@ class Yapper::DB
|
|
56
58
|
|
57
59
|
def purge
|
58
60
|
Yapper::Settings.purge
|
61
|
+
|
59
62
|
@index_creation_required = true
|
63
|
+
@search_index_creation_required = true
|
64
|
+
|
60
65
|
create_indexes!
|
66
|
+
create_search_indexes!
|
67
|
+
|
61
68
|
execute { |txn| txn.removeAllObjectsInAllCollections }
|
62
69
|
end
|
63
70
|
|
@@ -76,13 +83,26 @@ class Yapper::DB
|
|
76
83
|
@indexes[model._type] ||= {}
|
77
84
|
|
78
85
|
args.each do |field|
|
79
|
-
options = model.fields[field]; raise "#{
|
80
|
-
type = options[:type]; raise "#{
|
86
|
+
options = model.fields[field]; raise "#{model._type}:#{field} not defined" unless options
|
87
|
+
type = options[:type]; raise "#{model._type}:#{field} must define type as its indexed" if type.nil?
|
81
88
|
|
82
89
|
@indexes[model._type][field] = { :type => type }
|
83
90
|
end
|
84
91
|
end
|
85
92
|
|
93
|
+
def search_index(model, args=[])
|
94
|
+
options = args.extract_options!
|
95
|
+
|
96
|
+
@search_index_creation_required = true
|
97
|
+
@search_indexes[model._type] ||= []
|
98
|
+
|
99
|
+
args.each do |field|
|
100
|
+
options = model.fields[field]; raise "#{model._type}:#{field} not defined" unless options
|
101
|
+
|
102
|
+
@search_indexes[model._type] << field
|
103
|
+
end
|
104
|
+
end
|
105
|
+
|
86
106
|
def connection
|
87
107
|
Dispatch.once { @connection ||= db.newConnection }
|
88
108
|
@connection
|
@@ -123,6 +143,8 @@ class Yapper::DB
|
|
123
143
|
end
|
124
144
|
|
125
145
|
block = proc do |_dict, _collection, _key, _attrs|
|
146
|
+
next unless _collection == collection
|
147
|
+
|
126
148
|
if indexes = @indexes[_collection]
|
127
149
|
indexes.each do |field, options|
|
128
150
|
field = field.to_s
|
@@ -149,7 +171,7 @@ class Yapper::DB
|
|
149
171
|
end
|
150
172
|
end
|
151
173
|
|
152
|
-
index_block = YapDatabaseSecondaryIndex.alloc.initWithSetup(setup, objectBlock: block,
|
174
|
+
index_block = YapDatabaseSecondaryIndex.alloc.initWithSetup(setup, objectBlock: block, versionTag: '1')
|
153
175
|
configure do |yap|
|
154
176
|
yap.registerExtension(index_block, withName: "#{collection}_IDX")
|
155
177
|
end
|
@@ -159,6 +181,41 @@ class Yapper::DB
|
|
159
181
|
end
|
160
182
|
end
|
161
183
|
|
184
|
+
def create_search_indexes!
|
185
|
+
return unless @search_index_creation_required
|
186
|
+
|
187
|
+
@@queue.sync do
|
188
|
+
return unless @search_index_creation_required
|
189
|
+
|
190
|
+
@search_indexes.each do |collection, fields|
|
191
|
+
unless Yapper::Settings.get("#{collection}_sidx_defn") == @search_indexes[collection].to_canonical
|
192
|
+
Yapper::Settings.set("#{collection}_sidx_defn", @search_indexes[collection].to_canonical)
|
193
|
+
configure do|yap|
|
194
|
+
yap.unregisterExtension("#{collection}_SIDX") if yap.registeredExtension("#{collection}_SIDX")
|
195
|
+
end
|
196
|
+
end
|
197
|
+
|
198
|
+
block = proc do |_dict, _collection, _key, _attrs|
|
199
|
+
next unless _collection == collection
|
200
|
+
|
201
|
+
if fields = @search_indexes[_collection]
|
202
|
+
fields.each do |field|
|
203
|
+
field = field.to_s
|
204
|
+
_dict.setObject(_attrs[field].to_s, forKey: field)
|
205
|
+
end
|
206
|
+
end
|
207
|
+
end
|
208
|
+
|
209
|
+
index_block = YapDatabaseFullTextSearch.alloc.initWithColumnNames(fields.map(&:to_s), objectBlock: block, versionTag: '1')
|
210
|
+
configure do |yap|
|
211
|
+
yap.registerExtension(index_block, withName: "#{collection}_SIDX")
|
212
|
+
end
|
213
|
+
end
|
214
|
+
|
215
|
+
@search_index_creation_required = false
|
216
|
+
end
|
217
|
+
end
|
218
|
+
|
162
219
|
def version
|
163
220
|
Yapper::Settings.db_version || 0
|
164
221
|
end
|
@@ -23,6 +23,19 @@ module Yapper::Document
|
|
23
23
|
all.count
|
24
24
|
end
|
25
25
|
|
26
|
+
def search(query)
|
27
|
+
return nil if query.nil?
|
28
|
+
|
29
|
+
results = []
|
30
|
+
each_result_proc = proc do |collection, id, attrs, stop|
|
31
|
+
results << object_for_attrs(attrs)
|
32
|
+
end
|
33
|
+
|
34
|
+
db.execute { |txn| txn.ext("#{self._type}_SIDX").enumerateKeysAndObjectsMatching(query, usingBlock: each_result_proc) }
|
35
|
+
|
36
|
+
results
|
37
|
+
end
|
38
|
+
|
26
39
|
def find(id)
|
27
40
|
return nil if id.nil?
|
28
41
|
|
data/lib/yapper/version.rb
CHANGED
data/motion-yapper.gemspec
CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |gem|
|
|
18
18
|
gem.version = Yapper::VERSION
|
19
19
|
|
20
20
|
gem.add_dependency 'motion-support', '~> 0.2.0'
|
21
|
-
gem.add_dependency 'motion-cocoapods', '~> 1.
|
21
|
+
gem.add_dependency 'motion-cocoapods', '~> 1.6.0'
|
22
22
|
gem.add_dependency 'motion-logger', '~> 0.1.0'
|
23
23
|
gem.add_development_dependency 'motion-redgreen', '~> 0.1'
|
24
24
|
end
|
@@ -0,0 +1,111 @@
|
|
1
|
+
describe 'Search' do
|
2
|
+
before do
|
3
|
+
class SearchDocument
|
4
|
+
include Yapper::Document
|
5
|
+
|
6
|
+
field :field1, :type => String
|
7
|
+
field :field2, :type => Integer
|
8
|
+
field :field3, :type => String
|
9
|
+
field :field4, :type => Boolean
|
10
|
+
|
11
|
+
search_index :field1, :field2, :field4
|
12
|
+
end
|
13
|
+
class AnotherSearchDocument
|
14
|
+
include Yapper::Document
|
15
|
+
|
16
|
+
field :field1, :type => String
|
17
|
+
field :field2
|
18
|
+
|
19
|
+
search_index :field1
|
20
|
+
end
|
21
|
+
end
|
22
|
+
before { Yapper::DB.instance.purge }
|
23
|
+
after { Object.send(:remove_const, 'SearchDocument') }
|
24
|
+
after { Object.send(:remove_const, 'AnotherSearchDocument') }
|
25
|
+
|
26
|
+
describe 'when changing the search definition' do
|
27
|
+
it "reindexes the fields" do
|
28
|
+
SearchDocument.create(:field1 => 'field1', :field3 => 'field3')
|
29
|
+
|
30
|
+
SearchDocument.search('field3').should == []
|
31
|
+
|
32
|
+
SearchDocument.class_eval do
|
33
|
+
search_index :field3
|
34
|
+
end
|
35
|
+
|
36
|
+
SearchDocument.search('field3:field3').count.should == 1
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
# it 'does not allow indexing a Time field'
|
41
|
+
|
42
|
+
describe 'with no documents created' do
|
43
|
+
it 'returns []' do
|
44
|
+
SearchDocument.search('xxx').to_a.should == []
|
45
|
+
end
|
46
|
+
end
|
47
|
+
|
48
|
+
describe 'with documents created' do
|
49
|
+
before do
|
50
|
+
@now = Time.now
|
51
|
+
SearchDocument.create(:field1 => 'field1value', :field2 => 2)
|
52
|
+
SearchDocument.create(:field1 => 'field1value', :field2 => 3)
|
53
|
+
SearchDocument.create(:field1 => 'field1value', :field2 => 4)
|
54
|
+
SearchDocument.create(:field1 => 'othervaluefield1', :field2 => 1)
|
55
|
+
SearchDocument.create(:field4 => true)
|
56
|
+
AnotherSearchDocument.create(:field1 => 'field1value', :field2 => 2)
|
57
|
+
end
|
58
|
+
|
59
|
+
it 'can search by string' do
|
60
|
+
SearchDocument.search("field1:field1value").count.should == 3
|
61
|
+
end
|
62
|
+
|
63
|
+
it 'can search by integer' do
|
64
|
+
SearchDocument.search("field2:#{2}").count.should == 1
|
65
|
+
end
|
66
|
+
|
67
|
+
it 'can search by boolean' do
|
68
|
+
SearchDocument.search('field4:true').count.should == 1
|
69
|
+
SearchDocument.search('field5:false').count.should == 0
|
70
|
+
end
|
71
|
+
|
72
|
+
it 'returns [] when looking up a non-existant doc' do
|
73
|
+
SearchDocument.search('field1:xxx').to_a.should == []
|
74
|
+
end
|
75
|
+
|
76
|
+
it 'can select docments matching on multiple fields' do
|
77
|
+
SearchDocument.search("field1:field1value field2:2").to_a.count.should == 1
|
78
|
+
end
|
79
|
+
|
80
|
+
describe 'when documents are updated' do
|
81
|
+
before do
|
82
|
+
SearchDocument.search("field1:field1value").each { |doc| doc.update_attributes(:field1 => 'field1valueupdated', :field2 => 10) }
|
83
|
+
end
|
84
|
+
|
85
|
+
it 'searches by the updated values' do
|
86
|
+
SearchDocument.search("field1:field1value").count.should == 0
|
87
|
+
SearchDocument.search("field1:field1valueupdated field2:10").count.should == 3
|
88
|
+
end
|
89
|
+
end
|
90
|
+
end
|
91
|
+
|
92
|
+
describe 'when a document is created without all fields being set' do
|
93
|
+
before do
|
94
|
+
SearchDocument.create(:field1 => 'field1value')
|
95
|
+
end
|
96
|
+
|
97
|
+
it 'searches by the field' do
|
98
|
+
SearchDocument.search("field1:field1value").count.should == 1
|
99
|
+
end
|
100
|
+
|
101
|
+
describe 'when the document is updated to set a field that was not set before' do
|
102
|
+
before do
|
103
|
+
SearchDocument.search("field1:field1value").first.update_attributes(:field2 => 10)
|
104
|
+
end
|
105
|
+
|
106
|
+
it 'searches by the updated field' do
|
107
|
+
SearchDocument.search("field2:10").count.should == 1
|
108
|
+
end
|
109
|
+
end
|
110
|
+
end
|
111
|
+
end
|
data/vendor/Podfile.lock
CHANGED
@@ -5,18 +5,22 @@ PODS:
|
|
5
5
|
- CocoaLumberjack/Extensions (1.8.1):
|
6
6
|
- CocoaLumberjack/Core
|
7
7
|
- NSData+MD5Digest (1.0.0)
|
8
|
-
- YapDatabase (2.
|
9
|
-
-
|
8
|
+
- YapDatabase (2.5.2):
|
9
|
+
- YapDatabase/standard
|
10
|
+
- YapDatabase/common (2.5.2):
|
11
|
+
- CocoaLumberjack (~> 1)
|
12
|
+
- YapDatabase/standard (2.5.2):
|
13
|
+
- YapDatabase/common
|
10
14
|
|
11
15
|
DEPENDENCIES:
|
12
16
|
- CocoaLumberjack
|
13
17
|
- CocoaLumberjack (~> 1.6.5)
|
14
18
|
- NSData+MD5Digest (~> 1.0.0)
|
15
|
-
- YapDatabase (~> 2.
|
19
|
+
- YapDatabase (~> 2.5.2)
|
16
20
|
|
17
21
|
SPEC CHECKSUMS:
|
18
|
-
CocoaLumberjack:
|
19
|
-
NSData+MD5Digest:
|
20
|
-
YapDatabase:
|
22
|
+
CocoaLumberjack: 9d198d6e19909b3b113a38c5f06f7bb8eedd0427
|
23
|
+
NSData+MD5Digest: 3662c71c33c32cac0302dce76df6df7a6d81acca
|
24
|
+
YapDatabase: 50f763e49374c38025e8255b4c468d26d81b1048
|
21
25
|
|
22
|
-
COCOAPODS: 0.
|
26
|
+
COCOAPODS: 0.34.4
|
@@ -1,7 +1,21 @@
|
|
1
1
|
<?xml version='1.0'?>
|
2
2
|
<signatures version='1.0'>
|
3
|
+
<class name='YapDatabaseFullTextSearch'>
|
4
|
+
<method selector='initWithColumnNames:objectBlock:versionTag:'>
|
5
|
+
<arg declared_type='NSArray*' index='0' name='columnNames' type='@'/>
|
6
|
+
<arg declared_type='YapDatabaseFullTextSearchWithObjectBlock' function_pointer='true' index='1' name='block' type='@?'>
|
7
|
+
<arg declared_type='NSMutableDictionary*' type='@'/>
|
8
|
+
<arg declared_type='NSString*' type='@'/>
|
9
|
+
<arg declared_type='NSString*' type='@'/>
|
10
|
+
<arg declared_type='id' type='@'/>
|
11
|
+
<retval declared_type='void' type='v'/>
|
12
|
+
</arg>
|
13
|
+
<arg declared_type='NSString*' index='2' name='versionTag' type='@'/>
|
14
|
+
<retval declared_type='id' type='@'/>
|
15
|
+
</method>
|
16
|
+
</class>
|
3
17
|
<class name='YapDatabaseSecondaryIndex'>
|
4
|
-
<method selector='initWithSetup:objectBlock:
|
18
|
+
<method selector='initWithSetup:objectBlock:versionTag:'>
|
5
19
|
<arg declared_type='YapDatabaseSecondaryIndexSetup*' index='0' name='setup' type='@'/>
|
6
20
|
<arg declared_type='YapDatabaseSecondaryIndexWithObjectBlock' function_pointer='true' index='1' name='block' type='@?'>
|
7
21
|
<arg declared_type='NSMutableDictionary*' type='@'/>
|
@@ -10,7 +24,7 @@
|
|
10
24
|
<arg declared_type='id' type='@'/>
|
11
25
|
<retval declared_type='void' type='v'/>
|
12
26
|
</arg>
|
13
|
-
<arg declared_type='
|
27
|
+
<arg declared_type='NSString*' index='2' name='versionTag' type='@'/>
|
14
28
|
<retval declared_type='id' type='@'/>
|
15
29
|
</method>
|
16
30
|
</class>
|
@@ -2,13 +2,16 @@
|
|
2
2
|
|
3
3
|
@interface YapDatabaseSecondaryIndex (RubyMotionBlockTypeWrapper)
|
4
4
|
|
5
|
-
// Here we define the prototype of our wrapper method that explicitly
|
6
|
-
// states what the type signature of the block argument will be.
|
7
|
-
//
|
8
|
-
// This will give the RubyMotion compiler enough information to ‘do
|
9
|
-
// the right thing’.
|
10
5
|
- (id)initWithSetup:(YapDatabaseSecondaryIndexSetup *)setup
|
11
6
|
objectBlock:(YapDatabaseSecondaryIndexWithObjectBlock)block
|
12
|
-
|
13
|
-
|
7
|
+
versionTag:(NSString *)versionTag;
|
8
|
+
@end
|
9
|
+
|
10
|
+
#import <YapDatabase/YapDatabaseFullTextSearch.h>
|
11
|
+
|
12
|
+
@interface YapDatabaseFullTextSearch (RubyMotionBlockTypeWrapper)
|
13
|
+
|
14
|
+
- (id)initWithColumnNames:(NSArray *)columnNames
|
15
|
+
objectBlock:(YapDatabaseFullTextSearchWithObjectBlock)block
|
16
|
+
versionTag:(NSString *)versionTag;
|
14
17
|
@end
|
@@ -11,12 +11,30 @@
|
|
11
11
|
// ‘aliasing’ the method (although we do change the interface).
|
12
12
|
- (id)initWithSetup:(YapDatabaseSecondaryIndexSetup *)setup
|
13
13
|
objectBlock:(YapDatabaseSecondaryIndexWithObjectBlock)block
|
14
|
-
|
14
|
+
versionTag:(NSString *)versionTag;
|
15
15
|
{
|
16
16
|
return [self initWithSetup:setup
|
17
17
|
block:block
|
18
18
|
blockType:YapDatabaseSecondaryIndexBlockTypeWithObject
|
19
|
-
|
19
|
+
versionTag:versionTag];
|
20
|
+
}
|
21
|
+
|
22
|
+
@end
|
23
|
+
|
24
|
+
@implementation YapDatabaseFullTextSearch (RubyMotionBlockTypeWrapper)
|
25
|
+
|
26
|
+
// Here we define the implementation that does nothing else than forward
|
27
|
+
// the method call to the normal library’s API. You could say we are
|
28
|
+
// ‘aliasing’ the method (although we do change the interface).
|
29
|
+
- (id)initWithColumnNames:(NSArray *)columnNames
|
30
|
+
objectBlock:(YapDatabaseFullTextSearchWithObjectBlock)block
|
31
|
+
versionTag:(NSString *)versionTag;
|
32
|
+
{
|
33
|
+
|
34
|
+
return [self initWithColumnNames:columnNames
|
35
|
+
block:block
|
36
|
+
blockType:YapDatabaseFullTextSearchBlockTypeWithObject
|
37
|
+
versionTag:versionTag];
|
20
38
|
}
|
21
39
|
|
22
40
|
@end
|