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.
Files changed (294) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +1 -0
  3. data/.travis.yml +3 -1
  4. data/lib/yapper.rb +3 -3
  5. data/lib/yapper/db.rb +61 -4
  6. data/lib/yapper/document/persistence.rb +4 -0
  7. data/lib/yapper/document/selection.rb +13 -0
  8. data/lib/yapper/version.rb +1 -1
  9. data/motion-yapper.gemspec +1 -1
  10. data/spec/integration/search_spec.rb +111 -0
  11. data/vendor/Podfile.lock +11 -7
  12. data/vendor/YapDatabaseRubyMotion/YapDatabaseRubyMotion.bridgesupport +16 -2
  13. data/vendor/YapDatabaseRubyMotion/YapDatabaseRubyMotion.h +10 -7
  14. data/vendor/YapDatabaseRubyMotion/YapDatabaseRubyMotion.m +20 -2
  15. metadata +19 -297
  16. data/vendor/Pods/.build/libPods-CocoaLumberjack.a +0 -0
  17. data/vendor/Pods/.build/libPods-NSData+MD5Digest.a +0 -0
  18. data/vendor/Pods/.build/libPods-YapDatabase.a +0 -0
  19. data/vendor/Pods/.build/libPods.a +0 -0
  20. data/vendor/Pods/BuildHeaders/CocoaLumberjack/DDASLLogger.h +0 -41
  21. data/vendor/Pods/BuildHeaders/CocoaLumberjack/DDAbstractDatabaseLogger.h +0 -102
  22. data/vendor/Pods/BuildHeaders/CocoaLumberjack/DDContextFilterLogFormatter.h +0 -63
  23. data/vendor/Pods/BuildHeaders/CocoaLumberjack/DDDispatchQueueLogFormatter.h +0 -128
  24. data/vendor/Pods/BuildHeaders/CocoaLumberjack/DDFileLogger.h +0 -369
  25. data/vendor/Pods/BuildHeaders/CocoaLumberjack/DDLog+LOGV.h +0 -99
  26. data/vendor/Pods/BuildHeaders/CocoaLumberjack/DDLog.h +0 -634
  27. data/vendor/Pods/BuildHeaders/CocoaLumberjack/DDMultiFormatter.h +0 -30
  28. data/vendor/Pods/BuildHeaders/CocoaLumberjack/DDTTYLogger.h +0 -181
  29. data/vendor/Pods/BuildHeaders/NSData+MD5Digest/NSData+MD5Digest.h +0 -18
  30. data/vendor/Pods/BuildHeaders/YapDatabase/NSDictionary+YapDatabase.h +0 -8
  31. data/vendor/Pods/BuildHeaders/YapDatabase/YapCache.h +0 -91
  32. data/vendor/Pods/BuildHeaders/YapDatabase/YapCollectionKey.h +0 -23
  33. data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabase.h +0 -547
  34. data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseConnection.h +0 -449
  35. data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseConnectionState.h +0 -29
  36. data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseDefaults.h +0 -37
  37. data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseExtension.h +0 -15
  38. data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseExtensionConnection.h +0 -11
  39. data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseExtensionPrivate.h +0 -444
  40. data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseExtensionTransaction.h +0 -11
  41. data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseFilteredView.h +0 -81
  42. data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseFilteredViewConnection.h +0 -12
  43. data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseFilteredViewPrivate.h +0 -17
  44. data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseFilteredViewTransaction.h +0 -39
  45. data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseFilteredViewTypes.h +0 -32
  46. data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseFullTextSearch.h +0 -89
  47. data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseFullTextSearchConnection.h +0 -32
  48. data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseFullTextSearchPrivate.h +0 -77
  49. data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseFullTextSearchSnippetOptions.h +0 -79
  50. data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseFullTextSearchTransaction.h +0 -68
  51. data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseLogging.h +0 -158
  52. data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseManager.h +0 -17
  53. data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabasePrivate.h +0 -446
  54. data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseQuery.h +0 -42
  55. data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseRelationship.h +0 -35
  56. data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseRelationshipConnection.h +0 -29
  57. data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseRelationshipEdge.h +0 -163
  58. data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseRelationshipEdgePrivate.h +0 -79
  59. data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseRelationshipNode.h +0 -99
  60. data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseRelationshipOptions.h +0 -59
  61. data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseRelationshipPrivate.h +0 -125
  62. data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseRelationshipTransaction.h +0 -384
  63. data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseSecondaryIndex.h +0 -149
  64. data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseSecondaryIndexConnection.h +0 -33
  65. data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseSecondaryIndexPrivate.h +0 -83
  66. data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseSecondaryIndexSetup.h +0 -33
  67. data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseSecondaryIndexSetupPrivate.h +0 -18
  68. data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseSecondaryIndexTransaction.h +0 -58
  69. data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseStatement.h +0 -13
  70. data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseString.h +0 -121
  71. data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseTransaction.h +0 -651
  72. data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseView.h +0 -127
  73. data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseViewChange.h +0 -272
  74. data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseViewChangePrivate.h +0 -94
  75. data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseViewConnection.h +0 -116
  76. data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseViewMappings.h +0 -842
  77. data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseViewMappingsPrivate.h +0 -72
  78. data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseViewOptions.h +0 -63
  79. data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseViewPage.h +0 -36
  80. data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseViewPageMetadata.h +0 -27
  81. data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseViewPrivate.h +0 -170
  82. data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseViewRangeOptions.h +0 -330
  83. data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseViewRangeOptionsPrivate.h +0 -17
  84. data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseViewTransaction.h +0 -498
  85. data/vendor/Pods/BuildHeaders/YapDatabase/YapDatabaseViewTypes.h +0 -99
  86. data/vendor/Pods/BuildHeaders/YapDatabase/YapMemoryTable.h +0 -74
  87. data/vendor/Pods/BuildHeaders/YapDatabase/YapNull.h +0 -17
  88. data/vendor/Pods/BuildHeaders/YapDatabase/YapSet.h +0 -41
  89. data/vendor/Pods/BuildHeaders/YapDatabase/YapTouch.h +0 -15
  90. data/vendor/Pods/CocoaLumberjack/LICENSE.txt +0 -18
  91. data/vendor/Pods/CocoaLumberjack/Lumberjack/DDASLLogger.h +0 -41
  92. data/vendor/Pods/CocoaLumberjack/Lumberjack/DDASLLogger.m +0 -100
  93. data/vendor/Pods/CocoaLumberjack/Lumberjack/DDAbstractDatabaseLogger.h +0 -102
  94. data/vendor/Pods/CocoaLumberjack/Lumberjack/DDAbstractDatabaseLogger.m +0 -727
  95. data/vendor/Pods/CocoaLumberjack/Lumberjack/DDFileLogger.h +0 -369
  96. data/vendor/Pods/CocoaLumberjack/Lumberjack/DDFileLogger.m +0 -1539
  97. data/vendor/Pods/CocoaLumberjack/Lumberjack/DDLog+LOGV.h +0 -99
  98. data/vendor/Pods/CocoaLumberjack/Lumberjack/DDLog.h +0 -634
  99. data/vendor/Pods/CocoaLumberjack/Lumberjack/DDLog.m +0 -1208
  100. data/vendor/Pods/CocoaLumberjack/Lumberjack/DDTTYLogger.h +0 -181
  101. data/vendor/Pods/CocoaLumberjack/Lumberjack/DDTTYLogger.m +0 -1520
  102. data/vendor/Pods/CocoaLumberjack/Lumberjack/Extensions/DDContextFilterLogFormatter.h +0 -63
  103. data/vendor/Pods/CocoaLumberjack/Lumberjack/Extensions/DDContextFilterLogFormatter.m +0 -191
  104. data/vendor/Pods/CocoaLumberjack/Lumberjack/Extensions/DDDispatchQueueLogFormatter.h +0 -128
  105. data/vendor/Pods/CocoaLumberjack/Lumberjack/Extensions/DDDispatchQueueLogFormatter.m +0 -253
  106. data/vendor/Pods/CocoaLumberjack/Lumberjack/Extensions/DDMultiFormatter.h +0 -30
  107. data/vendor/Pods/CocoaLumberjack/Lumberjack/Extensions/DDMultiFormatter.m +0 -127
  108. data/vendor/Pods/CocoaLumberjack/Lumberjack/Extensions/README.txt +0 -7
  109. data/vendor/Pods/CocoaLumberjack/README.markdown +0 -74
  110. data/vendor/Pods/Headers/CocoaLumberjack/DDASLLogger.h +0 -41
  111. data/vendor/Pods/Headers/CocoaLumberjack/DDAbstractDatabaseLogger.h +0 -102
  112. data/vendor/Pods/Headers/CocoaLumberjack/DDContextFilterLogFormatter.h +0 -63
  113. data/vendor/Pods/Headers/CocoaLumberjack/DDDispatchQueueLogFormatter.h +0 -128
  114. data/vendor/Pods/Headers/CocoaLumberjack/DDFileLogger.h +0 -369
  115. data/vendor/Pods/Headers/CocoaLumberjack/DDLog+LOGV.h +0 -99
  116. data/vendor/Pods/Headers/CocoaLumberjack/DDLog.h +0 -634
  117. data/vendor/Pods/Headers/CocoaLumberjack/DDMultiFormatter.h +0 -30
  118. data/vendor/Pods/Headers/CocoaLumberjack/DDTTYLogger.h +0 -181
  119. data/vendor/Pods/Headers/NSData+MD5Digest/NSData+MD5Digest.h +0 -18
  120. data/vendor/Pods/Headers/YapDatabase/YapCollectionKey.h +0 -23
  121. data/vendor/Pods/Headers/YapDatabase/YapDatabase.h +0 -547
  122. data/vendor/Pods/Headers/YapDatabase/YapDatabaseConnection.h +0 -449
  123. data/vendor/Pods/Headers/YapDatabase/YapDatabaseExtension.h +0 -15
  124. data/vendor/Pods/Headers/YapDatabase/YapDatabaseExtensionConnection.h +0 -11
  125. data/vendor/Pods/Headers/YapDatabase/YapDatabaseExtensionTransaction.h +0 -11
  126. data/vendor/Pods/Headers/YapDatabase/YapDatabaseFilteredView.h +0 -81
  127. data/vendor/Pods/Headers/YapDatabase/YapDatabaseFilteredViewConnection.h +0 -12
  128. data/vendor/Pods/Headers/YapDatabase/YapDatabaseFilteredViewTransaction.h +0 -39
  129. data/vendor/Pods/Headers/YapDatabase/YapDatabaseFilteredViewTypes.h +0 -32
  130. data/vendor/Pods/Headers/YapDatabase/YapDatabaseFullTextSearch.h +0 -89
  131. data/vendor/Pods/Headers/YapDatabase/YapDatabaseFullTextSearchConnection.h +0 -32
  132. data/vendor/Pods/Headers/YapDatabase/YapDatabaseFullTextSearchSnippetOptions.h +0 -79
  133. data/vendor/Pods/Headers/YapDatabase/YapDatabaseFullTextSearchTransaction.h +0 -68
  134. data/vendor/Pods/Headers/YapDatabase/YapDatabaseQuery.h +0 -42
  135. data/vendor/Pods/Headers/YapDatabase/YapDatabaseRelationship.h +0 -35
  136. data/vendor/Pods/Headers/YapDatabase/YapDatabaseRelationshipConnection.h +0 -29
  137. data/vendor/Pods/Headers/YapDatabase/YapDatabaseRelationshipEdge.h +0 -163
  138. data/vendor/Pods/Headers/YapDatabase/YapDatabaseRelationshipNode.h +0 -99
  139. data/vendor/Pods/Headers/YapDatabase/YapDatabaseRelationshipOptions.h +0 -59
  140. data/vendor/Pods/Headers/YapDatabase/YapDatabaseRelationshipTransaction.h +0 -384
  141. data/vendor/Pods/Headers/YapDatabase/YapDatabaseSecondaryIndex.h +0 -149
  142. data/vendor/Pods/Headers/YapDatabase/YapDatabaseSecondaryIndexConnection.h +0 -33
  143. data/vendor/Pods/Headers/YapDatabase/YapDatabaseSecondaryIndexSetup.h +0 -33
  144. data/vendor/Pods/Headers/YapDatabase/YapDatabaseSecondaryIndexTransaction.h +0 -58
  145. data/vendor/Pods/Headers/YapDatabase/YapDatabaseTransaction.h +0 -651
  146. data/vendor/Pods/Headers/YapDatabase/YapDatabaseView.h +0 -127
  147. data/vendor/Pods/Headers/YapDatabase/YapDatabaseViewChange.h +0 -272
  148. data/vendor/Pods/Headers/YapDatabase/YapDatabaseViewConnection.h +0 -116
  149. data/vendor/Pods/Headers/YapDatabase/YapDatabaseViewMappings.h +0 -842
  150. data/vendor/Pods/Headers/YapDatabase/YapDatabaseViewOptions.h +0 -63
  151. data/vendor/Pods/Headers/YapDatabase/YapDatabaseViewRangeOptions.h +0 -330
  152. data/vendor/Pods/Headers/YapDatabase/YapDatabaseViewTransaction.h +0 -498
  153. data/vendor/Pods/Headers/YapDatabase/YapDatabaseViewTypes.h +0 -99
  154. data/vendor/Pods/Headers/YapDatabase/YapSet.h +0 -41
  155. data/vendor/Pods/Headers/____Pods-CocoaLumberjack-prefix.h +0 -7
  156. data/vendor/Pods/Headers/____Pods-NSData+MD5Digest-prefix.h +0 -5
  157. data/vendor/Pods/Headers/____Pods-YapDatabase-prefix.h +0 -5
  158. data/vendor/Pods/Headers/____Pods-environment.h +0 -38
  159. data/vendor/Pods/Manifest.lock +0 -22
  160. data/vendor/Pods/NSData+MD5Digest/NSData+MD5Digest/NSData+MD5Digest.h +0 -18
  161. data/vendor/Pods/NSData+MD5Digest/NSData+MD5Digest/NSData+MD5Digest.m +0 -39
  162. data/vendor/Pods/NSData+MD5Digest/README.md +0 -11
  163. data/vendor/Pods/Pods-CocoaLumberjack-Private.xcconfig +0 -5
  164. data/vendor/Pods/Pods-CocoaLumberjack-dummy.m +0 -5
  165. data/vendor/Pods/Pods-CocoaLumberjack-prefix.pch +0 -7
  166. data/vendor/Pods/Pods-CocoaLumberjack.xcconfig +0 -0
  167. data/vendor/Pods/Pods-NSData+MD5Digest-Private.xcconfig +0 -5
  168. data/vendor/Pods/Pods-NSData+MD5Digest-dummy.m +0 -5
  169. data/vendor/Pods/Pods-NSData+MD5Digest-prefix.pch +0 -5
  170. data/vendor/Pods/Pods-NSData+MD5Digest.xcconfig +0 -0
  171. data/vendor/Pods/Pods-YapDatabase-Private.xcconfig +0 -5
  172. data/vendor/Pods/Pods-YapDatabase-dummy.m +0 -5
  173. data/vendor/Pods/Pods-YapDatabase-prefix.pch +0 -5
  174. data/vendor/Pods/Pods-YapDatabase.xcconfig +0 -1
  175. data/vendor/Pods/Pods-acknowledgements.markdown +0 -59
  176. data/vendor/Pods/Pods-acknowledgements.plist +0 -97
  177. data/vendor/Pods/Pods-dummy.m +0 -5
  178. data/vendor/Pods/Pods-environment.h +0 -38
  179. data/vendor/Pods/Pods-resources.sh +0 -68
  180. data/vendor/Pods/Pods.xcconfig +0 -5
  181. data/vendor/Pods/Pods.xcodeproj/project.pbxproj +0 -4807
  182. data/vendor/Pods/Pods.xcodeproj/xcuserdata/kareemk.xcuserdatad/xcschemes/Pods-CocoaLumberjack.xcscheme +0 -59
  183. data/vendor/Pods/Pods.xcodeproj/xcuserdata/kareemk.xcuserdatad/xcschemes/Pods-NSData+MD5Digest.xcscheme +0 -59
  184. data/vendor/Pods/Pods.xcodeproj/xcuserdata/kareemk.xcuserdatad/xcschemes/Pods-YapDatabase.xcscheme +0 -59
  185. data/vendor/Pods/Pods.xcodeproj/xcuserdata/kareemk.xcuserdatad/xcschemes/Pods.xcscheme +0 -59
  186. data/vendor/Pods/Pods.xcodeproj/xcuserdata/kareemk.xcuserdatad/xcschemes/xcschememanagement.plist +0 -31
  187. data/vendor/Pods/YapDatabase/LICENSE.txt +0 -18
  188. data/vendor/Pods/YapDatabase/README.md +0 -32
  189. data/vendor/Pods/YapDatabase/YapDatabase/Extensions/FilteredViews/Internal/YapDatabaseFilteredViewPrivate.h +0 -17
  190. data/vendor/Pods/YapDatabase/YapDatabase/Extensions/FilteredViews/YapDatabaseFilteredView.h +0 -81
  191. data/vendor/Pods/YapDatabase/YapDatabase/Extensions/FilteredViews/YapDatabaseFilteredView.m +0 -159
  192. data/vendor/Pods/YapDatabase/YapDatabase/Extensions/FilteredViews/YapDatabaseFilteredViewConnection.h +0 -12
  193. data/vendor/Pods/YapDatabase/YapDatabase/Extensions/FilteredViews/YapDatabaseFilteredViewConnection.m +0 -41
  194. data/vendor/Pods/YapDatabase/YapDatabase/Extensions/FilteredViews/YapDatabaseFilteredViewTransaction.h +0 -39
  195. data/vendor/Pods/YapDatabase/YapDatabase/Extensions/FilteredViews/YapDatabaseFilteredViewTransaction.m +0 -1235
  196. data/vendor/Pods/YapDatabase/YapDatabase/Extensions/FilteredViews/YapDatabaseFilteredViewTypes.h +0 -32
  197. data/vendor/Pods/YapDatabase/YapDatabase/Extensions/FullTextSearch/Internal/YapDatabaseFullTextSearchPrivate.h +0 -77
  198. data/vendor/Pods/YapDatabase/YapDatabase/Extensions/FullTextSearch/YapDatabaseFullTextSearch.h +0 -89
  199. data/vendor/Pods/YapDatabase/YapDatabase/Extensions/FullTextSearch/YapDatabaseFullTextSearch.m +0 -146
  200. data/vendor/Pods/YapDatabase/YapDatabase/Extensions/FullTextSearch/YapDatabaseFullTextSearchConnection.h +0 -32
  201. data/vendor/Pods/YapDatabase/YapDatabase/Extensions/FullTextSearch/YapDatabaseFullTextSearchConnection.m +0 -298
  202. data/vendor/Pods/YapDatabase/YapDatabase/Extensions/FullTextSearch/YapDatabaseFullTextSearchSnippetOptions.h +0 -79
  203. data/vendor/Pods/YapDatabase/YapDatabase/Extensions/FullTextSearch/YapDatabaseFullTextSearchSnippetOptions.m +0 -95
  204. data/vendor/Pods/YapDatabase/YapDatabase/Extensions/FullTextSearch/YapDatabaseFullTextSearchTransaction.h +0 -68
  205. data/vendor/Pods/YapDatabase/YapDatabase/Extensions/FullTextSearch/YapDatabaseFullTextSearchTransaction.m +0 -1403
  206. data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Protocol/Internal/YapDatabaseExtensionPrivate.h +0 -444
  207. data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Protocol/YapDatabaseExtension.h +0 -15
  208. data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Protocol/YapDatabaseExtension.m +0 -83
  209. data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Protocol/YapDatabaseExtensionConnection.h +0 -11
  210. data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Protocol/YapDatabaseExtensionConnection.m +0 -46
  211. data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Protocol/YapDatabaseExtensionTransaction.h +0 -11
  212. data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Protocol/YapDatabaseExtensionTransaction.m +0 -204
  213. data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Relationships/Internal/YapDatabaseRelationshipEdgePrivate.h +0 -79
  214. data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Relationships/Internal/YapDatabaseRelationshipPrivate.h +0 -125
  215. data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Relationships/YapDatabaseRelationship.h +0 -35
  216. data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Relationships/YapDatabaseRelationship.m +0 -129
  217. data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Relationships/YapDatabaseRelationshipConnection.h +0 -29
  218. data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Relationships/YapDatabaseRelationshipConnection.m +0 -802
  219. data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Relationships/YapDatabaseRelationshipEdge.h +0 -163
  220. data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Relationships/YapDatabaseRelationshipEdge.m +0 -408
  221. data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Relationships/YapDatabaseRelationshipNode.h +0 -99
  222. data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Relationships/YapDatabaseRelationshipOptions.h +0 -59
  223. data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Relationships/YapDatabaseRelationshipOptions.m +0 -29
  224. data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Relationships/YapDatabaseRelationshipTransaction.h +0 -384
  225. data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Relationships/YapDatabaseRelationshipTransaction.m +0 -5254
  226. data/vendor/Pods/YapDatabase/YapDatabase/Extensions/SecondaryIndex/Internal/YapDatabaseSecondaryIndexPrivate.h +0 -83
  227. data/vendor/Pods/YapDatabase/YapDatabase/Extensions/SecondaryIndex/Internal/YapDatabaseSecondaryIndexSetupPrivate.h +0 -18
  228. data/vendor/Pods/YapDatabase/YapDatabase/Extensions/SecondaryIndex/YapDatabaseSecondaryIndex.h +0 -149
  229. data/vendor/Pods/YapDatabase/YapDatabase/Extensions/SecondaryIndex/YapDatabaseSecondaryIndex.m +0 -161
  230. data/vendor/Pods/YapDatabase/YapDatabase/Extensions/SecondaryIndex/YapDatabaseSecondaryIndexConnection.h +0 -33
  231. data/vendor/Pods/YapDatabase/YapDatabase/Extensions/SecondaryIndex/YapDatabaseSecondaryIndexConnection.m +0 -331
  232. data/vendor/Pods/YapDatabase/YapDatabase/Extensions/SecondaryIndex/YapDatabaseSecondaryIndexSetup.h +0 -33
  233. data/vendor/Pods/YapDatabase/YapDatabase/Extensions/SecondaryIndex/YapDatabaseSecondaryIndexSetup.m +0 -245
  234. data/vendor/Pods/YapDatabase/YapDatabase/Extensions/SecondaryIndex/YapDatabaseSecondaryIndexTransaction.h +0 -58
  235. data/vendor/Pods/YapDatabase/YapDatabase/Extensions/SecondaryIndex/YapDatabaseSecondaryIndexTransaction.m +0 -1269
  236. data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Views/Internal/YapDatabaseViewChangePrivate.h +0 -94
  237. data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Views/Internal/YapDatabaseViewMappingsPrivate.h +0 -72
  238. data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Views/Internal/YapDatabaseViewPage.h +0 -36
  239. data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Views/Internal/YapDatabaseViewPage.mm +0 -296
  240. data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Views/Internal/YapDatabaseViewPageMetadata.h +0 -27
  241. data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Views/Internal/YapDatabaseViewPageMetadata.m +0 -28
  242. data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Views/Internal/YapDatabaseViewPrivate.h +0 -170
  243. data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Views/Internal/YapDatabaseViewRangeOptionsPrivate.h +0 -17
  244. data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Views/Utilities/YapDatabaseViewChange.h +0 -272
  245. data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Views/Utilities/YapDatabaseViewChange.m +0 -2500
  246. data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Views/Utilities/YapDatabaseViewMappings.h +0 -842
  247. data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Views/Utilities/YapDatabaseViewMappings.m +0 -1714
  248. data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Views/Utilities/YapDatabaseViewRangeOptions.h +0 -330
  249. data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Views/Utilities/YapDatabaseViewRangeOptions.m +0 -141
  250. data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Views/YapDatabaseView.h +0 -127
  251. data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Views/YapDatabaseView.m +0 -194
  252. data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Views/YapDatabaseViewConnection.h +0 -116
  253. data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Views/YapDatabaseViewConnection.m +0 -888
  254. data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Views/YapDatabaseViewOptions.h +0 -63
  255. data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Views/YapDatabaseViewOptions.m +0 -27
  256. data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Views/YapDatabaseViewTransaction.h +0 -498
  257. data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Views/YapDatabaseViewTransaction.m +0 -4986
  258. data/vendor/Pods/YapDatabase/YapDatabase/Extensions/Views/YapDatabaseViewTypes.h +0 -99
  259. data/vendor/Pods/YapDatabase/YapDatabase/Internal/NSDictionary+YapDatabase.h +0 -8
  260. data/vendor/Pods/YapDatabase/YapDatabase/Internal/NSDictionary+YapDatabase.m +0 -19
  261. data/vendor/Pods/YapDatabase/YapDatabase/Internal/YapCache.h +0 -91
  262. data/vendor/Pods/YapDatabase/YapDatabase/Internal/YapCache.m +0 -465
  263. data/vendor/Pods/YapDatabase/YapDatabase/Internal/YapDatabaseConnectionState.h +0 -29
  264. data/vendor/Pods/YapDatabase/YapDatabase/Internal/YapDatabaseConnectionState.m +0 -48
  265. data/vendor/Pods/YapDatabase/YapDatabase/Internal/YapDatabaseDefaults.h +0 -37
  266. data/vendor/Pods/YapDatabase/YapDatabase/Internal/YapDatabaseDefaults.m +0 -83
  267. data/vendor/Pods/YapDatabase/YapDatabase/Internal/YapDatabaseLogging.h +0 -158
  268. data/vendor/Pods/YapDatabase/YapDatabase/Internal/YapDatabaseLogging.m +0 -73
  269. data/vendor/Pods/YapDatabase/YapDatabase/Internal/YapDatabaseManager.h +0 -17
  270. data/vendor/Pods/YapDatabase/YapDatabase/Internal/YapDatabaseManager.m +0 -56
  271. data/vendor/Pods/YapDatabase/YapDatabase/Internal/YapDatabasePrivate.h +0 -446
  272. data/vendor/Pods/YapDatabase/YapDatabase/Internal/YapDatabaseStatement.h +0 -13
  273. data/vendor/Pods/YapDatabase/YapDatabase/Internal/YapDatabaseStatement.m +0 -26
  274. data/vendor/Pods/YapDatabase/YapDatabase/Internal/YapDatabaseString.h +0 -121
  275. data/vendor/Pods/YapDatabase/YapDatabase/Internal/YapMemoryTable.h +0 -74
  276. data/vendor/Pods/YapDatabase/YapDatabase/Internal/YapMemoryTable.m +0 -603
  277. data/vendor/Pods/YapDatabase/YapDatabase/Internal/YapNull.h +0 -17
  278. data/vendor/Pods/YapDatabase/YapDatabase/Internal/YapNull.m +0 -35
  279. data/vendor/Pods/YapDatabase/YapDatabase/Internal/YapTouch.h +0 -15
  280. data/vendor/Pods/YapDatabase/YapDatabase/Internal/YapTouch.m +0 -31
  281. data/vendor/Pods/YapDatabase/YapDatabase/Utilities/YapCollectionKey.h +0 -23
  282. data/vendor/Pods/YapDatabase/YapDatabase/Utilities/YapCollectionKey.m +0 -199
  283. data/vendor/Pods/YapDatabase/YapDatabase/Utilities/YapDatabaseQuery.h +0 -42
  284. data/vendor/Pods/YapDatabase/YapDatabase/Utilities/YapDatabaseQuery.m +0 -96
  285. data/vendor/Pods/YapDatabase/YapDatabase/Utilities/YapSet.h +0 -41
  286. data/vendor/Pods/YapDatabase/YapDatabase/Utilities/YapSet.m +0 -82
  287. data/vendor/Pods/YapDatabase/YapDatabase/YapDatabase.h +0 -547
  288. data/vendor/Pods/YapDatabase/YapDatabase/YapDatabase.m +0 -2013
  289. data/vendor/Pods/YapDatabase/YapDatabase/YapDatabaseConnection.h +0 -449
  290. data/vendor/Pods/YapDatabase/YapDatabase/YapDatabaseConnection.m +0 -4046
  291. data/vendor/Pods/YapDatabase/YapDatabase/YapDatabaseTransaction.h +0 -651
  292. data/vendor/Pods/YapDatabase/YapDatabase/YapDatabaseTransaction.m +0 -5602
  293. data/vendor/Pods/build-iPhoneSimulator/Pods.bridgesupport +0 -3172
  294. data/vendor/Pods/build-iPhoneSimulator/libPods.a +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a84ae5876199c1963faf27d9b340e08f58098b38
4
- data.tar.gz: ff44ac1c1dfc0d9f52f346de7c3f1610c5cc5f65
3
+ metadata.gz: 133d9cff7840b8a1c1a70098049e100612623055
4
+ data.tar.gz: 9954e0b565b25580d172ac9956dd0ee96f43a12f
5
5
  SHA512:
6
- metadata.gz: 7cea8c8b4460163e19a71dc9ec12d6d140f6c60c23a297d2cf1059f8bb9e7bfd7acf98791889cdb2b89bdb19b35f2d62f14c51cf045da662ca61a7bdbea7672b
7
- data.tar.gz: 73bafc0b2a32159fcc14a4f883fb576d8f62f29da48931c6237d6202cc174fdead933d992093011e67208e8c906de57146b2487add1b0d162640fd48b0e51b29
6
+ metadata.gz: ce2518d510fa13cea0466ef3feded4055e0ef84de0c9530b9adce79fd6e534867b128322dd143d781f9a0278ebfd9db3a23cce72b1db44638dd0ee43bef90b81
7
+ data.tar.gz: 4445aa7414f9012b418f1b9058e3fd17ebd301a6fb6e4f87b6f82f188af48717cdbf30bde261665645cb6aec05874518bccad40131d37f6641658233da5eaed4
data/.gitignore CHANGED
@@ -18,3 +18,4 @@ tags
18
18
  .ruby-gemset
19
19
  Gemfile.lock
20
20
  vendor/YapDatabaseRubyMotion/build*
21
+ vendor/Pods
@@ -1,8 +1,10 @@
1
1
  language: objective-c
2
2
  before_install:
3
3
  - (ruby --version)
4
- - mkdir -p ~/Library/RubyMotion/build
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
@@ -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.4'
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
@@ -24,7 +24,8 @@ class Yapper::DB
24
24
  def initialize(options)
25
25
  @options = options
26
26
  @name = options[:name]
27
- @indexes = {}; @indexes_created = false
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 "#{self._type}:#{field} not defined" unless options
80
- type = options[:type]; raise "#{self._type}:#{field} must define type as its indexed" if type.nil?
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, version: 1)
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
@@ -35,6 +35,10 @@ module Yapper::Document
35
35
  db.index(self, args)
36
36
  end
37
37
 
38
+ def search_index(*args)
39
+ db.search_index(self, args)
40
+ end
41
+
38
42
  def indexes
39
43
  db.indexes[self._type]
40
44
  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
 
@@ -1,3 +1,3 @@
1
1
  module Yapper
2
- VERSION = '0.0.3'
2
+ VERSION = '0.1.0'
3
3
  end
@@ -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.4.0'
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
@@ -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.4):
9
- - CocoaLumberjack (~> 1.6.3)
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.4)
19
+ - YapDatabase (~> 2.5.2)
16
20
 
17
21
  SPEC CHECKSUMS:
18
- CocoaLumberjack: 020378ec400d658923bf5887178394f65f052c90
19
- NSData+MD5Digest: 8275479b2a935e6caa8a92a9a814fb5abecba367
20
- YapDatabase: 3e1159ee9540859342bf2869a86dd9e434548c45
22
+ CocoaLumberjack: 9d198d6e19909b3b113a38c5f06f7bb8eedd0427
23
+ NSData+MD5Digest: 3662c71c33c32cac0302dce76df6df7a6d81acca
24
+ YapDatabase: 50f763e49374c38025e8255b4c468d26d81b1048
21
25
 
22
- COCOAPODS: 0.29.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:version:'>
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='int' index='2' name='version' type='i'/>
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
- version:(int)version;
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
- version:(int)version;
14
+ versionTag:(NSString *)versionTag;
15
15
  {
16
16
  return [self initWithSetup:setup
17
17
  block:block
18
18
  blockType:YapDatabaseSecondaryIndexBlockTypeWithObject
19
- version:version];
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