appjam 0.1.8.8 → 0.1.8.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (168) hide show
  1. data/README.md +22 -62
  2. data/lib/appjam/generators/gist.yml +1 -1
  3. data/lib/appjam/generators/templates/blank/EiffelApplication.xcodeproj/project.pbxproj +1166 -482
  4. data/lib/appjam/generators/templates/blank/EiffelApplication.xcodeproj/project.xcworkspace/xcuserdata/eiffel.xcuserdatad/UserInterfaceState.xcuserstate +0 -0
  5. data/lib/appjam/generators/templates/blank/EiffelApplication/EiffelApplication-Prefix.pch.tt +26 -0
  6. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/AwesomeMenu/AwesomeMenu.h +52 -0
  7. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/AwesomeMenu/AwesomeMenu.m +412 -0
  8. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/AwesomeMenu/AwesomeMenuItem.h +44 -0
  9. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/AwesomeMenu/AwesomeMenuItem.m +97 -0
  10. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/AwesomeMenu/Images/bg-addbutton-highlighted.png +0 -0
  11. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/AwesomeMenu/Images/bg-addbutton-highlighted@2x.png +0 -0
  12. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/AwesomeMenu/Images/bg-addbutton.png +0 -0
  13. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/AwesomeMenu/Images/bg-addbutton@2x.png +0 -0
  14. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/AwesomeMenu/Images/bg-menuitem-highlighted.png +0 -0
  15. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/AwesomeMenu/Images/bg-menuitem-highlighted@2x.png +0 -0
  16. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/AwesomeMenu/Images/bg-menuitem.png +0 -0
  17. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/AwesomeMenu/Images/bg-menuitem@2x.png +0 -0
  18. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/AwesomeMenu/Images/icon-plus-highlighted.png +0 -0
  19. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/AwesomeMenu/Images/icon-plus-highlighted@2x.png +0 -0
  20. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/AwesomeMenu/Images/icon-plus.png +0 -0
  21. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/AwesomeMenu/Images/icon-plus@2x.png +0 -0
  22. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/AwesomeMenu/Images/icon-star.png +0 -0
  23. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/AwesomeMenu/Images/icon-star@2x.png +0 -0
  24. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/CMPopTipView/CMPopTipView.h +167 -0
  25. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/CMPopTipView/CMPopTipView.m +639 -0
  26. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/FXLabel/FXLabel.h +97 -0
  27. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/FXLabel/FXLabel.m +1080 -0
  28. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/MBProgressHUD/MBProgressHUD.h +451 -0
  29. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/MBProgressHUD/MBProgressHUD.m +865 -0
  30. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/PaperFold/FacingView.h +42 -0
  31. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/PaperFold/FacingView.m +56 -0
  32. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/PaperFold/FoldView.h +90 -0
  33. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/PaperFold/FoldView.m +316 -0
  34. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/PaperFold/MultiFoldView.h +104 -0
  35. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/PaperFold/MultiFoldView.m +516 -0
  36. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/PaperFold/PaperFoldConstants.h +49 -0
  37. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/PaperFold/PaperFoldNavigationController.h +18 -0
  38. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/PaperFold/PaperFoldNavigationController.m +88 -0
  39. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/PaperFold/PaperFoldResources.bundle/swipe_guide_left.png +0 -0
  40. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/PaperFold/PaperFoldResources.bundle/swipe_guide_left@2x.png +0 -0
  41. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/PaperFold/PaperFoldResources.bundle/swipe_guide_right.png +0 -0
  42. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/PaperFold/PaperFoldResources.bundle/swipe_guide_right@2x.png +0 -0
  43. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/PaperFold/PaperFoldSwipeHintView.h +25 -0
  44. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/PaperFold/PaperFoldSwipeHintView.m +76 -0
  45. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/PaperFold/PaperFoldView.h +131 -0
  46. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/PaperFold/PaperFoldView.m +941 -0
  47. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/PaperFold/Resources/swipe_guide.psd +0 -0
  48. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/PaperFold/Resources/swipe_guide2.psd +0 -0
  49. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/PaperFold/ShadowView.h +46 -0
  50. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/PaperFold/ShadowView.m +82 -0
  51. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/PaperFold/TouchThroughUIView.h +39 -0
  52. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/PaperFold/TouchThroughUIView.m +72 -0
  53. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/PaperFold/UIView+Screenshot.h +42 -0
  54. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/PaperFold/UIView+Screenshot.m +100 -0
  55. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/UIBubbleTableView/NSBubbleData.h +34 -0
  56. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/UIBubbleTableView/NSBubbleData.m +140 -0
  57. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/UIBubbleTableView/UIBubbleHeaderTableViewCell.h +17 -0
  58. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/UIBubbleTableView/UIBubbleHeaderTableViewCell.m +57 -0
  59. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/UIBubbleTableView/UIBubbleTableView.h +30 -0
  60. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/UIBubbleTableView/UIBubbleTableView.m +233 -0
  61. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/UIBubbleTableView/UIBubbleTableViewCell.h +19 -0
  62. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/UIBubbleTableView/UIBubbleTableViewCell.m +122 -0
  63. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/UIBubbleTableView/UIBubbleTableViewDataSource.h +24 -0
  64. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/UIBubbleTableView/UIBubbleTypingTableViewCell.h +20 -0
  65. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/UIBubbleTableView/UIBubbleTypingTableViewCell.m +56 -0
  66. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/UIBubbleTableView/images/bubbleMine.png +0 -0
  67. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/UIBubbleTableView/images/bubbleMine@2x.png +0 -0
  68. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/UIBubbleTableView/images/bubbleSomeone.png +0 -0
  69. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/UIBubbleTableView/images/bubbleSomeone@2x.png +0 -0
  70. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/UIBubbleTableView/images/missingAvatar.png +0 -0
  71. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/UIBubbleTableView/images/missingAvatar@2x.png +0 -0
  72. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/UIBubbleTableView/images/typingMine.png +0 -0
  73. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/UIBubbleTableView/images/typingMine@2x.png +0 -0
  74. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/UIBubbleTableView/images/typingSomeone.png +0 -0
  75. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/UIBubbleTableView/images/typingSomeone@2x.png +0 -0
  76. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/UIGlossyButton/UIGlossyButton.h +124 -0
  77. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/UIGlossyButton/UIGlossyButton.m +545 -0
  78. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/UIGlossyButton/UIView+LayerEffects.h +22 -0
  79. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/components/UIGlossyButton/UIView+LayerEffects.m +32 -0
  80. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/frameworks/AFIncrementalStore/AFIncrementalStore.h +344 -0
  81. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/frameworks/AFIncrementalStore/AFIncrementalStore.m +848 -0
  82. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/frameworks/AFIncrementalStore/AFRESTClient.h +135 -0
  83. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/frameworks/AFIncrementalStore/AFRESTClient.m +441 -0
  84. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/frameworks/InflectorKit/NSString+InflectorKit.h +40 -0
  85. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/frameworks/InflectorKit/NSString+InflectorKit.m +36 -0
  86. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/frameworks/InflectorKit/TTTStringInflector.h +76 -0
  87. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/frameworks/InflectorKit/TTTStringInflector.m +270 -0
  88. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/frameworks/SDWebImage/MKAnnotationView+WebCache.h +95 -0
  89. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/frameworks/SDWebImage/MKAnnotationView+WebCache.m +78 -0
  90. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/frameworks/SDWebImage/SDImageCache.h +144 -0
  91. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/frameworks/SDWebImage/SDImageCache.m +311 -0
  92. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/frameworks/SDWebImage/SDWebImageCompat.h +40 -0
  93. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/frameworks/SDWebImage/SDWebImageCompat.m +54 -0
  94. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/frameworks/SDWebImage/SDWebImageDecoder.h +18 -0
  95. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/frameworks/SDWebImage/SDWebImageDecoder.m +70 -0
  96. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/frameworks/SDWebImage/SDWebImageDownloader.h +102 -0
  97. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/frameworks/SDWebImage/SDWebImageDownloader.m +226 -0
  98. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/frameworks/SDWebImage/SDWebImageDownloaderOperation.h +25 -0
  99. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/frameworks/SDWebImage/SDWebImageDownloaderOperation.m +339 -0
  100. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/frameworks/SDWebImage/SDWebImageManager.h +167 -0
  101. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/frameworks/SDWebImage/SDWebImageManager.m +244 -0
  102. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/frameworks/SDWebImage/SDWebImageOperation.h +15 -0
  103. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/frameworks/SDWebImage/SDWebImagePrefetcher.h +58 -0
  104. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/frameworks/SDWebImage/SDWebImagePrefetcher.m +127 -0
  105. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/frameworks/SDWebImage/UIButton+WebCache.h +173 -0
  106. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/frameworks/SDWebImage/UIButton+WebCache.m +129 -0
  107. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/frameworks/SDWebImage/UIImageView+WebCache.h +140 -0
  108. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/frameworks/SDWebImage/UIImageView+WebCache.m +84 -0
  109. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CPAnimationSequence/CPAnimationProgram.h +28 -0
  110. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CPAnimationSequence/CPAnimationSequence.h +28 -0
  111. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CPAnimationSequence/CPAnimationStep.h +49 -0
  112. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CPAnimationSequence/private/CPAnimationProgram.m +100 -0
  113. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CPAnimationSequence/private/CPAnimationSequence.m +85 -0
  114. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CPAnimationSequence/private/CPAnimationStep.m +122 -0
  115. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CocoaAsyncSocket/GCDAsyncSocket.h +1074 -0
  116. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CocoaAsyncSocket/GCDAsyncSocket.m +7430 -0
  117. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CocoaHTTPServer/Core/Categories/DDData.h +14 -0
  118. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CocoaHTTPServer/Core/Categories/DDData.m +158 -0
  119. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CocoaHTTPServer/Core/Categories/DDNumber.h +12 -0
  120. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CocoaHTTPServer/Core/Categories/DDNumber.m +88 -0
  121. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CocoaHTTPServer/Core/Categories/DDRange.h +56 -0
  122. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CocoaHTTPServer/Core/Categories/DDRange.m +104 -0
  123. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CocoaHTTPServer/Core/HTTPAuthenticationRequest.h +45 -0
  124. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CocoaHTTPServer/Core/HTTPAuthenticationRequest.m +195 -0
  125. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CocoaHTTPServer/Core/HTTPConnection.h +119 -0
  126. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CocoaHTTPServer/Core/HTTPConnection.m +2708 -0
  127. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CocoaHTTPServer/Core/HTTPLogging.h +136 -0
  128. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CocoaHTTPServer/Core/HTTPMessage.h +48 -0
  129. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CocoaHTTPServer/Core/HTTPMessage.m +113 -0
  130. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CocoaHTTPServer/Core/HTTPResponse.h +149 -0
  131. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CocoaHTTPServer/Core/HTTPServer.h +205 -0
  132. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CocoaHTTPServer/Core/HTTPServer.m +772 -0
  133. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CocoaHTTPServer/Core/Mime/MultipartFormDataParser.h +65 -0
  134. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CocoaHTTPServer/Core/Mime/MultipartFormDataParser.m +529 -0
  135. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CocoaHTTPServer/Core/Mime/MultipartMessageHeader.h +33 -0
  136. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CocoaHTTPServer/Core/Mime/MultipartMessageHeader.m +86 -0
  137. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CocoaHTTPServer/Core/Mime/MultipartMessageHeaderField.h +23 -0
  138. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CocoaHTTPServer/Core/Mime/MultipartMessageHeaderField.m +211 -0
  139. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CocoaHTTPServer/Core/Responses/HTTPAsyncFileResponse.h +75 -0
  140. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CocoaHTTPServer/Core/Responses/HTTPAsyncFileResponse.m +405 -0
  141. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CocoaHTTPServer/Core/Responses/HTTPDataResponse.h +13 -0
  142. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CocoaHTTPServer/Core/Responses/HTTPDataResponse.m +79 -0
  143. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CocoaHTTPServer/Core/Responses/HTTPDynamicFileResponse.h +52 -0
  144. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CocoaHTTPServer/Core/Responses/HTTPDynamicFileResponse.m +292 -0
  145. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CocoaHTTPServer/Core/Responses/HTTPErrorResponse.h +9 -0
  146. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CocoaHTTPServer/Core/Responses/HTTPErrorResponse.m +38 -0
  147. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CocoaHTTPServer/Core/Responses/HTTPFileResponse.h +25 -0
  148. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CocoaHTTPServer/Core/Responses/HTTPFileResponse.m +237 -0
  149. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CocoaHTTPServer/Core/Responses/HTTPRedirectResponse.h +12 -0
  150. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CocoaHTTPServer/Core/Responses/HTTPRedirectResponse.m +73 -0
  151. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CocoaHTTPServer/Core/WebSocket.h +105 -0
  152. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CocoaHTTPServer/Core/WebSocket.m +791 -0
  153. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CocoaHTTPServer/Extensions/WebDAV/DAVConnection.h +7 -0
  154. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CocoaHTTPServer/Extensions/WebDAV/DAVConnection.m +160 -0
  155. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CocoaHTTPServer/Extensions/WebDAV/DAVResponse.h +11 -0
  156. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CocoaHTTPServer/Extensions/WebDAV/DAVResponse.m +372 -0
  157. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CocoaHTTPServer/Extensions/WebDAV/DELETEResponse.h +7 -0
  158. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CocoaHTTPServer/Extensions/WebDAV/DELETEResponse.m +49 -0
  159. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CocoaHTTPServer/Extensions/WebDAV/PUTResponse.h +8 -0
  160. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/CocoaHTTPServer/Extensions/WebDAV/PUTResponse.m +69 -0
  161. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/hpple/TFHpple.h +54 -0
  162. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/hpple/TFHpple.m +102 -0
  163. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/hpple/TFHppleElement.h +103 -0
  164. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/hpple/TFHppleElement.m +200 -0
  165. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/hpple/XPathQuery.h +10 -0
  166. data/lib/appjam/generators/templates/blank/EiffelApplication/libs/toolkit/hpple/XPathQuery.m +197 -0
  167. data/lib/appjam/version.rb +1 -1
  168. metadata +164 -3
@@ -0,0 +1,25 @@
1
+ /*
2
+ * This file is part of the SDWebImage package.
3
+ * (c) Olivier Poitrey <rs@dailymotion.com>
4
+ *
5
+ * For the full copyright and license information, please view the LICENSE
6
+ * file that was distributed with this source code.
7
+ */
8
+
9
+ #import <Foundation/Foundation.h>
10
+ #import "SDWebImageDownloader.h"
11
+ #import "SDWebImageOperation.h"
12
+
13
+ @interface SDWebImageDownloaderOperation : NSOperation <SDWebImageOperation>
14
+
15
+ @property (strong, nonatomic, readonly) NSURLRequest *request;
16
+ @property (assign, nonatomic, readonly) SDWebImageDownloaderOptions options;
17
+
18
+ - (id)initWithRequest:(NSURLRequest *)request
19
+ queue:(dispatch_queue_t)queue
20
+ options:(SDWebImageDownloaderOptions)options
21
+ progress:(SDWebImageDownloaderProgressBlock)progressBlock
22
+ completed:(SDWebImageDownloaderCompletedBlock)completedBlock
23
+ cancelled:(void (^)())cancelBlock;
24
+
25
+ @end
@@ -0,0 +1,339 @@
1
+ /*
2
+ * This file is part of the SDWebImage package.
3
+ * (c) Olivier Poitrey <rs@dailymotion.com>
4
+ *
5
+ * For the full copyright and license information, please view the LICENSE
6
+ * file that was distributed with this source code.
7
+ */
8
+
9
+ #import "SDWebImageDownloaderOperation.h"
10
+ #import "SDWebImageDecoder.h"
11
+ #import <ImageIO/ImageIO.h>
12
+
13
+ @interface SDWebImageDownloaderOperation ()
14
+
15
+ @property (copy, nonatomic) SDWebImageDownloaderProgressBlock progressBlock;
16
+ @property (copy, nonatomic) SDWebImageDownloaderCompletedBlock completedBlock;
17
+ @property (copy, nonatomic) void (^cancelBlock)();
18
+
19
+ @property (assign, nonatomic, getter = isExecuting) BOOL executing;
20
+ @property (assign, nonatomic, getter = isFinished) BOOL finished;
21
+ @property (assign, nonatomic) long long expectedSize;
22
+ @property (strong, nonatomic) NSMutableData *imageData;
23
+ @property (strong, nonatomic) NSURLConnection *connection;
24
+ @property (SDDispatchQueueSetterSementics, nonatomic) dispatch_queue_t queue;
25
+
26
+ @end
27
+
28
+ @implementation SDWebImageDownloaderOperation
29
+ {
30
+ size_t width, height;
31
+ BOOL responseFromCached;
32
+ }
33
+
34
+ - (id)initWithRequest:(NSURLRequest *)request queue:(dispatch_queue_t)queue options:(SDWebImageDownloaderOptions)options progress:(void (^)(NSUInteger, long long))progressBlock completed:(void (^)(UIImage *, NSData *, NSError *, BOOL))completedBlock cancelled:(void (^)())cancelBlock
35
+ {
36
+ if ((self = [super init]))
37
+ {
38
+ _queue = queue;
39
+ _request = request;
40
+ _options = options;
41
+ _progressBlock = [progressBlock copy];
42
+ _completedBlock = [completedBlock copy];
43
+ _cancelBlock = [cancelBlock copy];
44
+ _executing = NO;
45
+ _finished = NO;
46
+ _expectedSize = 0;
47
+ responseFromCached = YES; // Initially wrong until `connection:willCacheResponse:` is called or not called
48
+ }
49
+ return self;
50
+ }
51
+
52
+ - (void)start
53
+ {
54
+ dispatch_async(dispatch_get_main_queue(), ^
55
+ {
56
+ if (self.isCancelled)
57
+ {
58
+ self.finished = YES;
59
+ [self reset];
60
+ return;
61
+ }
62
+
63
+ self.executing = YES;
64
+ self.connection = [NSURLConnection.alloc initWithRequest:self.request delegate:self startImmediately:NO];
65
+
66
+ // If not in low priority mode, ensure we aren't blocked by UI manipulations (default runloop mode for NSURLConnection is NSEventTrackingRunLoopMode)
67
+ if (!(self.options & SDWebImageDownloaderLowPriority))
68
+ {
69
+ [self.connection scheduleInRunLoop:[NSRunLoop currentRunLoop] forMode:NSRunLoopCommonModes];
70
+ }
71
+
72
+ [self.connection start];
73
+
74
+ if (self.connection)
75
+ {
76
+ if (self.progressBlock)
77
+ {
78
+ self.progressBlock(0, -1);
79
+ }
80
+ [[NSNotificationCenter defaultCenter] postNotificationName:SDWebImageDownloadStartNotification object:self];
81
+ }
82
+ else
83
+ {
84
+ if (self.completedBlock)
85
+ {
86
+ self.completedBlock(nil, nil, [NSError errorWithDomain:NSURLErrorDomain code:0 userInfo:@{NSLocalizedDescriptionKey: @"Connection can't be initialized"}], YES);
87
+ }
88
+ }
89
+ });
90
+ }
91
+
92
+ - (void)cancel
93
+ {
94
+ if (self.isFinished) return;
95
+ [super cancel];
96
+ if (self.cancelBlock) self.cancelBlock();
97
+
98
+ if (self.connection)
99
+ {
100
+ [self.connection cancel];
101
+ [[NSNotificationCenter defaultCenter] postNotificationName:SDWebImageDownloadStopNotification object:self];
102
+
103
+ // As we cancelled the connection, its callback won't be called and thus won't
104
+ // maintain the isFinished and isExecuting flags.
105
+ if (self.isExecuting) self.executing = NO;
106
+ if (!self.isFinished) self.finished = YES;
107
+ }
108
+
109
+ [self reset];
110
+ }
111
+
112
+ - (void)done
113
+ {
114
+ self.finished = YES;
115
+ self.executing = NO;
116
+ [self reset];
117
+ }
118
+
119
+ - (void)reset
120
+ {
121
+ dispatch_async(dispatch_get_main_queue(), ^
122
+ {
123
+ self.cancelBlock = nil;
124
+ self.completedBlock = nil;
125
+ self.progressBlock = nil;
126
+ self.connection = nil;
127
+ self.imageData = nil;
128
+ });
129
+ }
130
+
131
+ - (void)setFinished:(BOOL)finished
132
+ {
133
+ [self willChangeValueForKey:@"isFinished"];
134
+ _finished = finished;
135
+ [self didChangeValueForKey:@"isFinished"];
136
+ }
137
+
138
+ - (void)setExecuting:(BOOL)executing
139
+ {
140
+ [self willChangeValueForKey:@"isExecuting"];
141
+ _executing = executing;
142
+ [self didChangeValueForKey:@"isExecuting"];
143
+ }
144
+
145
+ - (BOOL)isConcurrent
146
+ {
147
+ return YES;
148
+ }
149
+
150
+ #pragma mark NSURLConnection (delegate)
151
+
152
+ - (void)connection:(NSURLConnection *)connection didReceiveResponse:(NSURLResponse *)response
153
+ {
154
+ if (![response respondsToSelector:@selector(statusCode)] || [((NSHTTPURLResponse *)response) statusCode] < 400)
155
+ {
156
+ NSUInteger expected = response.expectedContentLength > 0 ? (NSUInteger)response.expectedContentLength : 0;
157
+ self.expectedSize = expected;
158
+ if (self.progressBlock)
159
+ {
160
+ self.progressBlock(0, expected);
161
+ }
162
+
163
+ dispatch_async(self.queue, ^
164
+ {
165
+ self.imageData = [NSMutableData.alloc initWithCapacity:expected];
166
+ });
167
+ }
168
+ else
169
+ {
170
+ [self.connection cancel];
171
+
172
+ [[NSNotificationCenter defaultCenter] postNotificationName:SDWebImageDownloadStopNotification object:nil];
173
+
174
+ if (self.completedBlock)
175
+ {
176
+ self.completedBlock(nil, nil, [NSError errorWithDomain:NSURLErrorDomain code:[((NSHTTPURLResponse *)response) statusCode] userInfo:nil], YES);
177
+ }
178
+
179
+ [self done];
180
+ }
181
+ }
182
+
183
+ - (void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)data
184
+ {
185
+ dispatch_async(self.queue, ^
186
+ {
187
+ [self.imageData appendData:data];
188
+
189
+ if ((self.options & SDWebImageDownloaderProgressiveDownload) && self.expectedSize > 0 && self.completedBlock)
190
+ {
191
+ // The following code is from http://www.cocoaintheshell.com/2011/05/progressive-images-download-imageio/
192
+ // Thanks to the author @Nyx0uf
193
+
194
+ // Get the total bytes downloaded
195
+ const NSUInteger totalSize = self.imageData.length;
196
+
197
+ // Update the data source, we must pass ALL the data, not just the new bytes
198
+ CGImageSourceRef imageSource = CGImageSourceCreateIncremental(NULL);
199
+ CGImageSourceUpdateData(imageSource, (__bridge CFDataRef)self.imageData, totalSize == self.expectedSize);
200
+
201
+ if (width + height == 0)
202
+ {
203
+ CFDictionaryRef properties = CGImageSourceCopyPropertiesAtIndex(imageSource, 0, NULL);
204
+ if (properties)
205
+ {
206
+ CFTypeRef val = CFDictionaryGetValue(properties, kCGImagePropertyPixelHeight);
207
+ if (val) CFNumberGetValue(val, kCFNumberLongType, &height);
208
+ val = CFDictionaryGetValue(properties, kCGImagePropertyPixelWidth);
209
+ if (val) CFNumberGetValue(val, kCFNumberLongType, &width);
210
+ CFRelease(properties);
211
+ }
212
+ }
213
+
214
+ if (width + height > 0 && totalSize < self.expectedSize)
215
+ {
216
+ // Create the image
217
+ CGImageRef partialImageRef = CGImageSourceCreateImageAtIndex(imageSource, 0, NULL);
218
+
219
+ #ifdef TARGET_OS_IPHONE
220
+ // Workaround for iOS anamorphic image
221
+ if (partialImageRef)
222
+ {
223
+ const size_t partialHeight = CGImageGetHeight(partialImageRef);
224
+ CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB();
225
+ CGContextRef bmContext = CGBitmapContextCreate(NULL, width, height, 8, width * 4, colorSpace, kCGBitmapByteOrderDefault | kCGImageAlphaPremultipliedFirst);
226
+ CGColorSpaceRelease(colorSpace);
227
+ if (bmContext)
228
+ {
229
+ CGContextDrawImage(bmContext, (CGRect){.origin.x = 0.0f, .origin.y = 0.0f, .size.width = width, .size.height = partialHeight}, partialImageRef);
230
+ CGImageRelease(partialImageRef);
231
+ partialImageRef = CGBitmapContextCreateImage(bmContext);
232
+ CGContextRelease(bmContext);
233
+ }
234
+ else
235
+ {
236
+ CGImageRelease(partialImageRef);
237
+ partialImageRef = nil;
238
+ }
239
+ }
240
+ #endif
241
+
242
+ if (partialImageRef)
243
+ {
244
+ UIImage *image = [UIImage decodedImageWithImage:SDScaledImageForPath(self.request.URL.absoluteString, [UIImage imageWithCGImage:partialImageRef])];
245
+ CGImageRelease(partialImageRef);
246
+ dispatch_async(dispatch_get_main_queue(), ^
247
+ {
248
+ if (self.completedBlock)
249
+ {
250
+ self.completedBlock(image, nil, nil, NO);
251
+ }
252
+ });
253
+ }
254
+ }
255
+
256
+ CFRelease(imageSource);
257
+ }
258
+ NSUInteger received = self.imageData.length;
259
+ dispatch_async(dispatch_get_main_queue(), ^
260
+ {
261
+ if (self.progressBlock)
262
+ {
263
+ self.progressBlock(received, self.expectedSize);
264
+ }
265
+ });
266
+ });
267
+ }
268
+
269
+ - (void)connectionDidFinishLoading:(NSURLConnection *)aConnection
270
+ {
271
+ self.connection = nil;
272
+
273
+ [[NSNotificationCenter defaultCenter] postNotificationName:SDWebImageDownloadStopNotification object:nil];
274
+
275
+ SDWebImageDownloaderCompletedBlock completionBlock = self.completedBlock;
276
+
277
+ if (completionBlock)
278
+ {
279
+ if (self.options & SDWebImageDownloaderIgnoreCachedResponse && responseFromCached)
280
+ {
281
+ completionBlock(nil, nil, nil, YES);
282
+ self.completionBlock = nil;
283
+ [self done];
284
+ }
285
+ else
286
+ {
287
+ dispatch_async(self.queue, ^
288
+ {
289
+ UIImage *image = [UIImage decodedImageWithImage:SDScaledImageForPath(self.request.URL.absoluteString, self.imageData)];
290
+ dispatch_async(dispatch_get_main_queue(), ^
291
+ {
292
+ if (CGSizeEqualToSize(image.size, CGSizeZero))
293
+ {
294
+ completionBlock(nil, nil, [NSError errorWithDomain:@"SDWebImageErrorDomain" code:0 userInfo:@{NSLocalizedDescriptionKey: @"Downloaded image has 0 pixels"}], YES);
295
+ }
296
+ else
297
+ {
298
+ completionBlock(image, self.imageData, nil, YES);
299
+ }
300
+ self.completionBlock = nil;
301
+ [self done];
302
+ });
303
+ });
304
+ }
305
+ }
306
+ else
307
+ {
308
+ [self done];
309
+ }
310
+ }
311
+
312
+ - (void)connection:(NSURLConnection *)connection didFailWithError:(NSError *)error
313
+ {
314
+ [[NSNotificationCenter defaultCenter] postNotificationName:SDWebImageDownloadStopNotification object:nil];
315
+
316
+ if (self.completedBlock)
317
+ {
318
+ self.completedBlock(nil, nil, error, YES);
319
+ }
320
+
321
+ [self done];
322
+ }
323
+
324
+ - (NSCachedURLResponse *)connection:(NSURLConnection *)connection willCacheResponse:(NSCachedURLResponse *)cachedResponse
325
+ {
326
+ responseFromCached = NO; // If this method is called, it means the response wasn't read from cache
327
+ if (self.request.cachePolicy == NSURLRequestReloadIgnoringLocalCacheData)
328
+ {
329
+ // Prevents caching of responses
330
+ return nil;
331
+ }
332
+ else
333
+ {
334
+ return cachedResponse;
335
+ }
336
+ }
337
+
338
+
339
+ @end
@@ -0,0 +1,167 @@
1
+ /*
2
+ * This file is part of the SDWebImage package.
3
+ * (c) Olivier Poitrey <rs@dailymotion.com>
4
+ *
5
+ * For the full copyright and license information, please view the LICENSE
6
+ * file that was distributed with this source code.
7
+ */
8
+
9
+ #import "SDWebImageCompat.h"
10
+ #import "SDWebImageOperation.h"
11
+ #import "SDWebImageDownloader.h"
12
+ #import "SDImageCache.h"
13
+
14
+ typedef enum
15
+ {
16
+ /**
17
+ * By default, when a URL fail to be downloaded, the URL is blacklisted so the library won't keep trying.
18
+ * This flag disable this blacklisting.
19
+ */
20
+ SDWebImageRetryFailed = 1 << 0,
21
+ /**
22
+ * By default, image downloads are started during UI interactions, this flags disable this feature,
23
+ * leading to delayed download on UIScrollView deceleration for instance.
24
+ */
25
+ SDWebImageLowPriority = 1 << 1,
26
+ /**
27
+ * This flag disables on-disk caching
28
+ */
29
+ SDWebImageCacheMemoryOnly = 1 << 2,
30
+ /**
31
+ * This flag enables progressive download, the image is displayed progressively during download as a browser would do.
32
+ * By default, the image is only displayed once completely downloaded.
33
+ */
34
+ SDWebImageProgressiveDownload = 1 << 3,
35
+ /**
36
+ * Even if the image is cached, respect the HTTP response cache control, and refresh the image from remote location if needed.
37
+ * The disk caching will be handled by NSURLCache instead of SDWebImage leading to slight performance degradation.
38
+ * This option helps deal with images changing behind the same request URL, e.g. Facebook graph api profile pics.
39
+ * If a cached image is refreshed, the completion block is called once with the cached image and again with the final image.
40
+ *
41
+ * Use this flag only if you can't make your URLs static with embeded cache busting parameter.
42
+ */
43
+ SDWebImageRefreshCached = 1 << 4
44
+ } SDWebImageOptions;
45
+
46
+ typedef void(^SDWebImageCompletedBlock)(UIImage *image, NSError *error, SDImageCacheType cacheType);
47
+ typedef void(^SDWebImageCompletedWithFinishedBlock)(UIImage *image, NSError *error, SDImageCacheType cacheType, BOOL finished);
48
+
49
+
50
+ @class SDWebImageManager;
51
+
52
+ @protocol SDWebImageManagerDelegate <NSObject>
53
+
54
+ @optional
55
+
56
+ /**
57
+ * Controls which image should be downloaded when the image is not found in the cache.
58
+ *
59
+ * @param imageManager The current `SDWebImageManager`
60
+ * @param imageURL The url of the image to be downloaded
61
+ *
62
+ * @return Return NO to prevent the downloading of the image on cache misses. If not implemented, YES is implied.
63
+ */
64
+ - (BOOL)imageManager:(SDWebImageManager *)imageManager shouldDownloadImageForURL:(NSURL *)imageURL;
65
+
66
+ /**
67
+ * Allows to transform the image immediately after it has been downloaded and just before to cache it on disk and memory.
68
+ * NOTE: This method is called from a global queue in order to not to block the main thread.
69
+ *
70
+ * @param imageManager The current `SDWebImageManager`
71
+ * @param image The image to transform
72
+ * @param imageURL The url of the image to transform
73
+ *
74
+ * @return The transformed image object.
75
+ */
76
+ - (UIImage *)imageManager:(SDWebImageManager *)imageManager transformDownloadedImage:(UIImage *)image withURL:(NSURL *)imageURL;
77
+
78
+ @end
79
+
80
+ /**
81
+ * The SDWebImageManager is the class behind the UIImageView+WebCache category and likes.
82
+ * It ties the asynchronous downloader (SDWebImageDownloader) with the image cache store (SDImageCache).
83
+ * You can use this class directly to benefit from web image downloading with caching in another context than
84
+ * a UIView.
85
+ *
86
+ * Here is a simple example of how to use SDWebImageManager:
87
+ *
88
+ * SDWebImageManager *manager = [SDWebImageManager sharedManager];
89
+ * [manager downloadWithURL:imageURL
90
+ * delegate:self
91
+ * options:0
92
+ * progress:nil
93
+ * completed:^(UIImage *image, NSError *error, BOOL fromCache)
94
+ * {
95
+ * if (image)
96
+ * {
97
+ * // do something with image
98
+ * }
99
+ * }];
100
+ */
101
+ @interface SDWebImageManager : NSObject
102
+
103
+ @property (weak, nonatomic) id<SDWebImageManagerDelegate> delegate;
104
+
105
+ @property (strong, nonatomic, readonly) SDImageCache *imageCache;
106
+ @property (strong, nonatomic, readonly) SDWebImageDownloader *imageDownloader;
107
+
108
+ /**
109
+ * The cache filter is a block used each time SDWebImageManager need to convert an URL into a cache key. This can
110
+ * be used to remove dynamic part of an image URL.
111
+ *
112
+ * The following example sets a filter in the application delegate that will remove any query-string from the
113
+ * URL before to use it as a cache key:
114
+ *
115
+ * [[SDWebImageManager sharedManager] setCacheKeyFilter:^(NSURL *url)
116
+ * {
117
+ * url = [[NSURL alloc] initWithScheme:url.scheme host:url.host path:url.path];
118
+ * return [url absoluteString];
119
+ * }];
120
+ */
121
+ @property (strong) NSString *(^cacheKeyFilter)(NSURL *url);
122
+
123
+ /**
124
+ * Returns global SDWebImageManager instance.
125
+ *
126
+ * @return SDWebImageManager shared instance
127
+ */
128
+ + (SDWebImageManager *)sharedManager;
129
+
130
+ /**
131
+ * Downloads the image at the given URL if not present in cache or return the cached version otherwise.
132
+ *
133
+ * @param url The URL to the image
134
+ * @param delegate The delegate object used to send result back
135
+ * @param options A mask to specify options to use for this request
136
+ * @param progressBlock A block called while image is downloading
137
+ * @param completedBlock A block called when operation has been completed.
138
+ *
139
+ * This block as no return value and takes the requested UIImage as first parameter.
140
+ * In case of error the image parameter is nil and the second parameter may contain an NSError.
141
+ *
142
+ * The third parameter is a Boolean indicating if the image was retrived from the local cache
143
+ * of from the network.
144
+ *
145
+ * The last parameter is set to NO when the SDWebImageProgressiveDownload option is used and
146
+ * the image is downloading. This block is thus called repetidly with a partial image. When
147
+ * image is fully downloaded, the block is called a last time with the full image and the last
148
+ * parameter set to YES.
149
+ *
150
+ * @return Returns a cancellable NSOperation
151
+ */
152
+ - (id<SDWebImageOperation>)downloadWithURL:(NSURL *)url
153
+ options:(SDWebImageOptions)options
154
+ progress:(SDWebImageDownloaderProgressBlock)progressBlock
155
+ completed:(SDWebImageCompletedWithFinishedBlock)completedBlock;
156
+
157
+ /**
158
+ * Cancel all current opreations
159
+ */
160
+ - (void)cancelAll;
161
+
162
+ /**
163
+ * Check one or more operations running
164
+ */
165
+ - (BOOL)isRunning;
166
+
167
+ @end