fanforce-plugin-factory 0.41.0 → 1.6.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (260) hide show
  1. data/.gitignore +1 -0
  2. data/.ruby-version +1 -0
  3. data/.yardopts +5 -0
  4. data/.yardopts.rb +1 -0
  5. data/Gemfile +9 -0
  6. data/README.md +40 -75
  7. data/Rakefile +61 -4
  8. data/fanforce-plugin-factory.gemspec +21 -21
  9. data/lib/fanforce/plugin_factory.rb +16 -58
  10. data/lib/fanforce/plugin_factory/Rakefile +51 -0
  11. data/lib/fanforce/plugin_factory/Routes.rb +33 -0
  12. data/lib/fanforce/plugin_factory/asset_framework/plugin_factory/_bootstrap.scss +2 -0
  13. data/lib/fanforce/plugin_factory/asset_framework/plugin_factory/_common.scss +1 -0
  14. data/lib/fanforce/plugin_factory/asset_framework/plugin_factory/_directives.scss +7 -0
  15. data/lib/fanforce/plugin_factory/asset_framework/plugin_factory/_font-awesome.scss +1 -0
  16. data/lib/fanforce/plugin_factory/asset_framework/plugin_factory/_ui-select.scss +3 -0
  17. data/lib/fanforce/plugin_factory/{assets/lib/common → asset_framework/plugin_factory/bootstrap}/_bootstrap-overrides.scss +2 -0
  18. data/lib/fanforce/plugin_factory/{assets/lib/vendors/bootstrap/css → asset_framework/plugin_factory/bootstrap}/bootstrap.css +2 -2
  19. data/lib/fanforce/plugin_factory/{assets/lib/vendors/bootstrap/js → asset_framework/plugin_factory/bootstrap}/bootstrap.js +0 -0
  20. data/lib/fanforce/plugin_factory/asset_framework/plugin_factory/bootstrap/bootstrap.min.css +7 -0
  21. data/lib/fanforce/plugin_factory/{assets/lib/vendors/bootstrap/js → asset_framework/plugin_factory/bootstrap}/bootstrap.min.js +0 -0
  22. data/lib/fanforce/plugin_factory/asset_framework/plugin_factory/bootstrap/glyphicons-halflings-regular.eot +0 -0
  23. data/lib/fanforce/plugin_factory/asset_framework/plugin_factory/bootstrap/glyphicons-halflings-regular.svg +229 -0
  24. data/lib/fanforce/plugin_factory/asset_framework/plugin_factory/bootstrap/glyphicons-halflings-regular.ttf +0 -0
  25. data/lib/fanforce/plugin_factory/asset_framework/plugin_factory/bootstrap/glyphicons-halflings-regular.woff +0 -0
  26. data/lib/fanforce/plugin_factory/{assets/lib → asset_framework/plugin_factory}/common/_mixins.scss +2 -1
  27. data/lib/fanforce/plugin_factory/asset_framework/plugin_factory/directives.coffee +1 -0
  28. data/lib/fanforce/plugin_factory/asset_framework/plugin_factory/directives/error/_error.scss +6 -0
  29. data/lib/fanforce/plugin_factory/{assets/lib/common/module-error → asset_framework/plugin_factory/directives/error}/arrow-left.png +0 -0
  30. data/lib/fanforce/plugin_factory/{assets/lib/common/module-error → asset_framework/plugin_factory/directives/error}/icon-error.png +0 -0
  31. data/lib/fanforce/plugin_factory/asset_framework/plugin_factory/directives/initiative-footer/_initiative-footer.coffee +16 -0
  32. data/lib/fanforce/plugin_factory/{assets/lib/common/_module-add-initiative-footer.scss → asset_framework/plugin_factory/directives/initiative-footer/_initiative-footer.scss} +4 -1
  33. data/lib/fanforce/plugin_factory/{assets/lib/common/_module-initiative-searcher.scss → asset_framework/plugin_factory/directives/initiative-searcher/_initiative-searcher.scss} +14 -13
  34. data/lib/fanforce/plugin_factory/{assets/lib/common/module-initiative-searcher → asset_framework/plugin_factory/directives/initiative-searcher}/icon-search.png +0 -0
  35. data/lib/fanforce/plugin_factory/{assets/lib/common/module-initiative-searcher → asset_framework/plugin_factory/directives/initiative-searcher}/spinner.gif +0 -0
  36. data/lib/fanforce/plugin_factory/{assets/lib/common/module-initiative-searcher → asset_framework/plugin_factory/directives/initiative-searcher}/sprite-arrows.png +0 -0
  37. data/lib/fanforce/plugin_factory/asset_framework/plugin_factory/directives/loading/_loading.coffee +4 -0
  38. data/lib/fanforce/plugin_factory/asset_framework/plugin_factory/directives/loading/_loading.scss +4 -0
  39. data/lib/fanforce/plugin_factory/{assets/js/add_source_popup.js → asset_framework/plugin_factory/directives/saving-to-server/_saving-to-server.coffee} +0 -0
  40. data/lib/fanforce/plugin_factory/asset_framework/plugin_factory/directives/saving-to-server/_saving-to-server.scss +6 -0
  41. data/lib/fanforce/plugin_factory/{assets/lib/common/module-saving-initiative → asset_framework/plugin_factory/directives/saving-to-server}/spinner.gif +0 -0
  42. data/lib/fanforce/plugin_factory/asset_framework/plugin_factory/directives/start-arrow/_start-arrow.coffee +8 -0
  43. data/lib/fanforce/plugin_factory/{assets/lib/common/_module-start-here.scss → asset_framework/plugin_factory/directives/start-arrow/_start-arrow.scss} +5 -4
  44. data/lib/fanforce/plugin_factory/{assets/lib/common/module-start-here → asset_framework/plugin_factory/directives/start-arrow}/arrow.png +0 -0
  45. data/lib/fanforce/plugin_factory/{assets/lib/common/_module-video-thumbnail.scss → asset_framework/plugin_factory/directives/video-thumbnail/_video-thumbnail.scss} +4 -4
  46. data/lib/fanforce/plugin_factory/{assets/lib/common/module-video-thumbnail → asset_framework/plugin_factory/directives/video-thumbnail}/icon-play.png +0 -0
  47. data/lib/fanforce/plugin_factory/asset_framework/plugin_factory/font-awesome.coffee +1 -0
  48. data/lib/fanforce/plugin_factory/{assets/lib/vendors/font-awesome/font → asset_framework/plugin_factory/font-awesome}/FontAwesome.otf +0 -0
  49. data/lib/fanforce/plugin_factory/{assets/lib/vendors/font-awesome/css → asset_framework/plugin_factory/font-awesome}/font-awesome.css +2 -2
  50. data/lib/fanforce/plugin_factory/{assets/lib/vendors/font-awesome/css → asset_framework/plugin_factory/font-awesome}/font-awesome.min.css +0 -0
  51. data/lib/fanforce/plugin_factory/{assets/lib/vendors/font-awesome/font → asset_framework/plugin_factory/font-awesome}/fontawesome-webfont.eot +0 -0
  52. data/lib/fanforce/plugin_factory/{assets/lib/vendors/font-awesome/font → asset_framework/plugin_factory/font-awesome}/fontawesome-webfont.svg +0 -0
  53. data/lib/fanforce/plugin_factory/{assets/lib/vendors/font-awesome/font → asset_framework/plugin_factory/font-awesome}/fontawesome-webfont.ttf +0 -0
  54. data/lib/fanforce/plugin_factory/{assets/lib/vendors/font-awesome/font → asset_framework/plugin_factory/font-awesome}/fontawesome-webfont.woff +0 -0
  55. data/lib/fanforce/plugin_factory/asset_framework/plugin_factory/lib.coffee +1 -0
  56. data/lib/fanforce/plugin_factory/asset_framework/plugin_factory/lib/ng-focus-blur.js +68 -0
  57. data/lib/fanforce/plugin_factory/asset_framework/plugin_factory/lib/ng-visible.js +7 -0
  58. data/lib/fanforce/plugin_factory/asset_framework/plugin_factory/ui-select.coffee +1 -0
  59. data/lib/fanforce/plugin_factory/asset_framework/plugin_factory/ui-select/select.css +171 -0
  60. data/lib/fanforce/plugin_factory/asset_framework/plugin_factory/ui-select/select.js +1281 -0
  61. data/lib/fanforce/plugin_factory/asset_framework/plugin_factory/ui-select/select_override.scss +1 -0
  62. data/lib/fanforce/plugin_factory/asset_framework/plugin_factory/ui-select/selectize.default.css +443 -0
  63. data/lib/fanforce/plugin_factory/cli.rb +5 -0
  64. data/lib/fanforce/plugin_factory/cli/lib/bitbucket.rb +77 -0
  65. data/lib/fanforce/plugin_factory/cli/lib/bundler.rb +21 -0
  66. data/lib/fanforce/plugin_factory/cli/lib/env.rb +96 -0
  67. data/lib/fanforce/plugin_factory/cli/lib/git.rb +59 -0
  68. data/lib/fanforce/plugin_factory/cli/lib/heroku.rb +94 -0
  69. data/lib/fanforce/plugin_factory/cli/lib/iron.rb +71 -0
  70. data/lib/fanforce/plugin_factory/cli/lib/pow.rb +46 -0
  71. data/lib/fanforce/plugin_factory/cli/lib/scaffolding.rb +74 -0
  72. data/lib/fanforce/plugin_factory/cli/lib/scaffolding_file.rb +510 -0
  73. data/lib/fanforce/plugin_factory/cli/lib/uranium.rb +77 -0
  74. data/lib/fanforce/plugin_factory/cli/lib/utils.rb +57 -0
  75. data/lib/fanforce/plugin_factory/cli/scripts/config.rb +9 -0
  76. data/lib/fanforce/plugin_factory/cli/scripts/create.rb +64 -0
  77. data/lib/fanforce/plugin_factory/cli/scripts/destroy.rb +61 -0
  78. data/lib/fanforce/plugin_factory/cli/scripts/diff.rb +156 -0
  79. data/lib/fanforce/plugin_factory/cli/scripts/push.rb +88 -0
  80. data/lib/fanforce/plugin_factory/cli/scripts/restart.rb +41 -0
  81. data/lib/fanforce/plugin_factory/cli/scripts/setup.rb +70 -0
  82. data/lib/fanforce/plugin_factory/cli/scripts/update.rb +132 -0
  83. data/lib/fanforce/plugin_factory/cli_directory_of_plugins.rb +51 -0
  84. data/lib/fanforce/plugin_factory/cli_single_plugin.rb +52 -0
  85. data/lib/fanforce/plugin_factory/controllers/base_controller.rb +15 -0
  86. data/lib/fanforce/plugin_factory/core_config.rb +94 -0
  87. data/lib/fanforce/plugin_factory/directive_views/initiative-footer.haml +8 -0
  88. data/lib/fanforce/plugin_factory/load.rb +7 -0
  89. data/lib/fanforce/plugin_factory/load_iron_worker.rb +2 -0
  90. data/lib/fanforce/plugin_factory/load_sprockets.rb +2 -0
  91. data/lib/fanforce/plugin_factory/plugin.rb +60 -0
  92. data/lib/fanforce/plugin_factory/scaffolding/._.gitignore.registry +1 -0
  93. data/lib/fanforce/plugin_factory/scaffolding/._Gemfile.registry +3 -0
  94. data/lib/fanforce/plugin_factory/scaffolding/._Rakefile.registry +3 -0
  95. data/lib/fanforce/plugin_factory/scaffolding/._config.json.registry +2 -0
  96. data/lib/fanforce/plugin_factory/scaffolding/._config.ru.registry +4 -0
  97. data/lib/fanforce/plugin_factory/scaffolding/._favicon.ico.registry +1 -0
  98. data/lib/fanforce/plugin_factory/scaffolding/._robots.txt.registry +3 -0
  99. data/lib/fanforce/plugin_factory/scaffolding/.gitignore +27 -0
  100. data/lib/fanforce/plugin_factory/scaffolding/Gemfile +9 -0
  101. data/lib/fanforce/plugin_factory/scaffolding/Rakefile +7 -0
  102. data/lib/fanforce/plugin_factory/scaffolding/Routes.rb +67 -0
  103. data/lib/fanforce/plugin_factory/scaffolding/assets/css/._fembedded.scss.registry +4 -0
  104. data/lib/fanforce/plugin_factory/scaffolding/assets/css/._promotional.scss.registry +4 -0
  105. data/lib/fanforce/plugin_factory/scaffolding/assets/css/._visitor.scss.registry +4 -0
  106. data/lib/fanforce/plugin_factory/scaffolding/assets/css/fembedded.scss +24 -0
  107. data/lib/fanforce/plugin_factory/scaffolding/assets/css/promotional.scss +33 -0
  108. data/lib/fanforce/plugin_factory/scaffolding/assets/css/visitor.scss +61 -0
  109. data/lib/fanforce/plugin_factory/scaffolding/assets/img/._icon-16.png.registry +1 -0
  110. data/lib/fanforce/plugin_factory/scaffolding/assets/img/._icon-32.png.registry +1 -0
  111. data/lib/fanforce/plugin_factory/scaffolding/assets/img/._icon-42.png.registry +1 -0
  112. data/lib/fanforce/plugin_factory/scaffolding/assets/img/._marketplace.png.registry +1 -0
  113. data/lib/fanforce/plugin_factory/{assets → scaffolding/assets}/img/icon-16.png +0 -0
  114. data/lib/fanforce/plugin_factory/{assets → scaffolding/assets}/img/icon-32.png +0 -0
  115. data/lib/fanforce/plugin_factory/{assets → scaffolding/assets}/img/icon-42.png +0 -0
  116. data/lib/fanforce/plugin_factory/scaffolding/assets/img/marketplace.png +0 -0
  117. data/lib/fanforce/plugin_factory/scaffolding/assets/img/promotional/._fanforce_bg.png.registry +1 -0
  118. data/lib/fanforce/plugin_factory/scaffolding/assets/img/promotional/._icon-42.png.registry +1 -0
  119. data/lib/fanforce/plugin_factory/scaffolding/assets/img/promotional/._icon-plus.png.registry +1 -0
  120. data/lib/fanforce/plugin_factory/{assets/lib → scaffolding/assets/img}/promotional/fanforce_bg.png +0 -0
  121. data/lib/fanforce/plugin_factory/{assets/lib → scaffolding/assets/img}/promotional/icon-42.png +0 -0
  122. data/lib/fanforce/plugin_factory/scaffolding/assets/img/promotional/icon-plus.png +0 -0
  123. data/lib/fanforce/plugin_factory/scaffolding/assets/js/._fembedded-app.coffee.registry +5 -0
  124. data/lib/fanforce/plugin_factory/scaffolding/assets/js/._fembedded.js.registry +3 -0
  125. data/lib/fanforce/plugin_factory/scaffolding/assets/js/._promotional.js.registry +3 -0
  126. data/lib/fanforce/plugin_factory/scaffolding/assets/js/fembedded-app.coffee +11 -0
  127. data/lib/fanforce/plugin_factory/scaffolding/assets/js/fembedded.js +12 -0
  128. data/lib/fanforce/plugin_factory/scaffolding/assets/js/lib/._cookie.coffee.registry +3 -0
  129. data/lib/fanforce/plugin_factory/scaffolding/assets/js/lib/._filters.coffee.registry +3 -0
  130. data/lib/fanforce/plugin_factory/scaffolding/assets/js/lib/._utils.coffee.registry +3 -0
  131. data/lib/fanforce/plugin_factory/scaffolding/assets/js/lib/cookie.coffee +24 -0
  132. data/lib/fanforce/plugin_factory/scaffolding/assets/js/lib/filters.coffee +9 -0
  133. data/lib/fanforce/plugin_factory/scaffolding/assets/js/lib/utils.coffee +40 -0
  134. data/lib/fanforce/plugin_factory/scaffolding/assets/js/promotional.js +4 -0
  135. data/lib/fanforce/plugin_factory/scaffolding/config.json +24 -0
  136. data/lib/fanforce/plugin_factory/scaffolding/config.ru +8 -0
  137. data/lib/fanforce/plugin_factory/{public → scaffolding}/favicon.ico +0 -0
  138. data/lib/fanforce/plugin_factory/scaffolding/layouts/._fembedded.haml.registry +4 -0
  139. data/lib/fanforce/plugin_factory/scaffolding/layouts/._promotional.haml.registry +2 -0
  140. data/lib/fanforce/plugin_factory/scaffolding/layouts/._visitor.haml.registry +6 -0
  141. data/lib/fanforce/plugin_factory/scaffolding/layouts/fembedded.haml +26 -0
  142. data/lib/fanforce/plugin_factory/{layouts → scaffolding/layouts}/promotional.haml +6 -6
  143. data/lib/fanforce/plugin_factory/{layouts/engage.haml → scaffolding/layouts/visitor.haml} +10 -7
  144. data/lib/fanforce/plugin_factory/scaffolding/robots.txt +7 -0
  145. data/lib/fanforce/plugin_factory/scaffolding/views/._index.haml.registry +3 -0
  146. data/lib/fanforce/plugin_factory/{views → scaffolding/views}/index.haml +13 -7
  147. data/lib/fanforce/plugin_factory/sinatra/_load.rb +87 -0
  148. data/lib/fanforce/plugin_factory/sinatra/error_handling.rb +48 -0
  149. data/lib/fanforce/plugin_factory/sinatra/helper_routes/com_behavior.rb +19 -0
  150. data/lib/fanforce/plugin_factory/sinatra/helper_routes/com_broadcaster.rb +7 -0
  151. data/lib/fanforce/plugin_factory/sinatra/helper_routes/com_connector.rb +11 -0
  152. data/lib/fanforce/plugin_factory/sinatra/helper_routes/com_identifier.rb +3 -0
  153. data/lib/fanforce/plugin_factory/sinatra/helper_routes/com_js_widget.rb +8 -0
  154. data/lib/fanforce/plugin_factory/sinatra/helper_routes/plugin.rb +50 -0
  155. data/lib/fanforce/plugin_factory/sinatra/helpers/assets.rb +23 -0
  156. data/lib/fanforce/plugin_factory/sinatra/helpers/css_frameworks.rb +70 -0
  157. data/lib/fanforce/plugin_factory/sinatra/helpers/fanforce.rb +18 -0
  158. data/lib/fanforce/plugin_factory/{config → sinatra}/helpers/json.rb +2 -2
  159. data/lib/fanforce/plugin_factory/sinatra/helpers/ractive.rb +45 -0
  160. data/lib/fanforce/plugin_factory/sprockets/compiler.rb +5 -11
  161. data/lib/fanforce/plugin_factory/sprockets/hacks.rb +2 -2
  162. data/lib/fanforce/plugin_factory/version.rb +2 -2
  163. metadata +201 -195
  164. data/.rbenv-gemsets +0 -1
  165. data/.rbenv-version +0 -1
  166. data/lib/fanforce/plugin_factory.rake +0 -72
  167. data/lib/fanforce/plugin_factory/_init_sinatra.rb +0 -54
  168. data/lib/fanforce/plugin_factory/assets/css/add_edit_initiative.scss +0 -1
  169. data/lib/fanforce/plugin_factory/assets/css/add_source.scss +0 -1
  170. data/lib/fanforce/plugin_factory/assets/css/convert_pending_initiative.scss +0 -1
  171. data/lib/fanforce/plugin_factory/assets/css/engage.scss +0 -1
  172. data/lib/fanforce/plugin_factory/assets/css/new_message.scss +0 -1
  173. data/lib/fanforce/plugin_factory/assets/css/promotional.scss +0 -1
  174. data/lib/fanforce/plugin_factory/assets/css/source_details.scss +0 -1
  175. data/lib/fanforce/plugin_factory/assets/js/add_edit_initiative.js +0 -1
  176. data/lib/fanforce/plugin_factory/assets/js/add_source.js +0 -1
  177. data/lib/fanforce/plugin_factory/assets/js/convert_pending_initiative.js +0 -1
  178. data/lib/fanforce/plugin_factory/assets/js/engage.js +0 -1
  179. data/lib/fanforce/plugin_factory/assets/js/new_message.js +0 -1
  180. data/lib/fanforce/plugin_factory/assets/js/promotional.js +0 -2
  181. data/lib/fanforce/plugin_factory/assets/js/source_details.js +0 -0
  182. data/lib/fanforce/plugin_factory/assets/lib/common/_module-error.scss +0 -11
  183. data/lib/fanforce/plugin_factory/assets/lib/common/_module-page-loading.scss +0 -1
  184. data/lib/fanforce/plugin_factory/assets/lib/common/_module-saving-initiative.scss +0 -6
  185. data/lib/fanforce/plugin_factory/assets/lib/common/_tags.scss +0 -1
  186. data/lib/fanforce/plugin_factory/assets/lib/common/_variables.scss +0 -27
  187. data/lib/fanforce/plugin_factory/assets/lib/common/broadcaster-divider-arrow.png +0 -0
  188. data/lib/fanforce/plugin_factory/assets/lib/common/icons/dropdown-arrow.png +0 -0
  189. data/lib/fanforce/plugin_factory/assets/lib/common/icons/initiative.png +0 -0
  190. data/lib/fanforce/plugin_factory/assets/lib/common/layouts/_add_edit_initiative.scss +0 -27
  191. data/lib/fanforce/plugin_factory/assets/lib/common/layouts/_add_source.scss +0 -18
  192. data/lib/fanforce/plugin_factory/assets/lib/common/layouts/_convert_pending_initiative.scss +0 -27
  193. data/lib/fanforce/plugin_factory/assets/lib/common/layouts/_engage.scss +0 -78
  194. data/lib/fanforce/plugin_factory/assets/lib/common/layouts/_new_message.scss +0 -24
  195. data/lib/fanforce/plugin_factory/assets/lib/common/layouts/_promotional.scss +0 -27
  196. data/lib/fanforce/plugin_factory/assets/lib/common/layouts/_source_details.scss +0 -17
  197. data/lib/fanforce/plugin_factory/assets/lib/common/layouts/add_edit_initiative.js +0 -6
  198. data/lib/fanforce/plugin_factory/assets/lib/common/layouts/add_source.js +0 -6
  199. data/lib/fanforce/plugin_factory/assets/lib/common/layouts/convert_pending_initiative.js +0 -6
  200. data/lib/fanforce/plugin_factory/assets/lib/common/layouts/engage.js +0 -0
  201. data/lib/fanforce/plugin_factory/assets/lib/common/layouts/new_message.js +0 -5
  202. data/lib/fanforce/plugin_factory/assets/lib/common/layouts/promotional.js +0 -1
  203. data/lib/fanforce/plugin_factory/assets/lib/common/layouts/source_details.js +0 -5
  204. data/lib/fanforce/plugin_factory/assets/lib/promotional/icon-behavior.png +0 -0
  205. data/lib/fanforce/plugin_factory/assets/lib/promotional/icon-broadcaster.png +0 -0
  206. data/lib/fanforce/plugin_factory/assets/lib/promotional/icon-data-connector.png +0 -0
  207. data/lib/fanforce/plugin_factory/assets/lib/promotional/icon-data-processor.png +0 -0
  208. data/lib/fanforce/plugin_factory/assets/lib/promotional/icon-identifier.png +0 -0
  209. data/lib/fanforce/plugin_factory/assets/lib/vendors/bootstrap-datepicker/datepicker.css +0 -7
  210. data/lib/fanforce/plugin_factory/assets/lib/vendors/bootstrap-datepicker/datepicker.js +0 -454
  211. data/lib/fanforce/plugin_factory/assets/lib/vendors/bootstrap-timepicker/timepicker.css +0 -82
  212. data/lib/fanforce/plugin_factory/assets/lib/vendors/bootstrap-timepicker/timepicker.js +0 -803
  213. data/lib/fanforce/plugin_factory/assets/lib/vendors/bootstrap/css/bootstrap.min.css +0 -7
  214. data/lib/fanforce/plugin_factory/assets/lib/vendors/bootstrap/img/glyphicons-halflings-regular.eot +0 -0
  215. data/lib/fanforce/plugin_factory/assets/lib/vendors/bootstrap/img/glyphicons-halflings-regular.svg +0 -0
  216. data/lib/fanforce/plugin_factory/assets/lib/vendors/bootstrap/img/glyphicons-halflings-regular.ttf +0 -0
  217. data/lib/fanforce/plugin_factory/assets/lib/vendors/bootstrap/img/glyphicons-halflings-regular.woff +0 -0
  218. data/lib/fanforce/plugin_factory/assets/lib/vendors/chosen/_chosen_override.scss +0 -6
  219. data/lib/fanforce/plugin_factory/assets/lib/vendors/chosen/chosen-sprite.png +0 -0
  220. data/lib/fanforce/plugin_factory/assets/lib/vendors/chosen/chosen-sprite@2x.png +0 -0
  221. data/lib/fanforce/plugin_factory/assets/lib/vendors/chosen/chosen.jquery.js +0 -1166
  222. data/lib/fanforce/plugin_factory/assets/lib/vendors/chosen/chosen.scss +0 -434
  223. data/lib/fanforce/plugin_factory/assets/lib/vendors/jquery/jquery-1.10.2.js +0 -9789
  224. data/lib/fanforce/plugin_factory/assets/lib/vendors/jquery/jquery.inputHint.js +0 -154
  225. data/lib/fanforce/plugin_factory/assets/lib/vendors/jquery/jquery.tmpl.debug.js +0 -484
  226. data/lib/fanforce/plugin_factory/assets/lib/vendors/knockout/knockout.custom-handlers.coffee +0 -155
  227. data/lib/fanforce/plugin_factory/assets/lib/vendors/knockout/knockout.debug.js +0 -4469
  228. data/lib/fanforce/plugin_factory/assets/lib/vendors/knockout/knockout.min.js +0 -96
  229. data/lib/fanforce/plugin_factory/assets/lib/vendors/select2/_select2_override.scss +0 -47
  230. data/lib/fanforce/plugin_factory/assets/lib/vendors/select2/select2-spinner.gif +0 -0
  231. data/lib/fanforce/plugin_factory/assets/lib/vendors/select2/select2.png +0 -0
  232. data/lib/fanforce/plugin_factory/assets/lib/vendors/select2/select2.scss +0 -617
  233. data/lib/fanforce/plugin_factory/assets/lib/vendors/select2/select2_modified.js +0 -3225
  234. data/lib/fanforce/plugin_factory/assets/lib/vendors/select2/select2x2.png +0 -0
  235. data/lib/fanforce/plugin_factory/assets/lib/vendors/underscore/underscore.debug.js +0 -999
  236. data/lib/fanforce/plugin_factory/config/_error_handling.rb +0 -27
  237. data/lib/fanforce/plugin_factory/config/core_config.rb +0 -92
  238. data/lib/fanforce/plugin_factory/config/helpers/assets.rb +0 -72
  239. data/lib/fanforce/plugin_factory/config/helpers/fanforce.rb +0 -19
  240. data/lib/fanforce/plugin_factory/layouts/add_edit_initiative.haml +0 -19
  241. data/lib/fanforce/plugin_factory/layouts/add_source.haml +0 -19
  242. data/lib/fanforce/plugin_factory/layouts/convert_pending_initiative.haml +0 -19
  243. data/lib/fanforce/plugin_factory/layouts/new_message.haml +0 -19
  244. data/lib/fanforce/plugin_factory/layouts/source_details.haml +0 -19
  245. data/lib/fanforce/plugin_factory/public/robots.txt +0 -2
  246. data/lib/fanforce/plugin_factory/routes.rb +0 -48
  247. data/lib/fanforce/plugin_factory/routes_behavior.rb +0 -34
  248. data/lib/fanforce/plugin_factory/routes_broadcaster.rb +0 -9
  249. data/lib/fanforce/plugin_factory/routes_data_connector.rb +0 -21
  250. data/lib/fanforce/plugin_factory/routes_identifier.rb +0 -3
  251. data/lib/fanforce/plugin_factory/views/add_initiative.haml +0 -1
  252. data/lib/fanforce/plugin_factory/views/add_source.haml +0 -1
  253. data/lib/fanforce/plugin_factory/views/close_popup.haml +0 -8
  254. data/lib/fanforce/plugin_factory/views/convert_pending_initiative.haml +0 -1
  255. data/lib/fanforce/plugin_factory/views/edit_initiative.haml +0 -1
  256. data/lib/fanforce/plugin_factory/views/engage.haml +0 -1
  257. data/lib/fanforce/plugin_factory/views/new_message.haml +0 -1
  258. data/lib/fanforce/plugin_factory/views/source_details.haml +0 -1
  259. data/lib/fanforce/plugin_factory/views/widget_tmpls.haml +0 -1
  260. data/lib/fanforce/plugin_factory_workers.rb +0 -2
@@ -0,0 +1,8 @@
1
+ .footer
2
+ %label Save initiative as...
3
+ .input-wrapper(onclick='$(this).find("input").focus()')
4
+ .prefix {{prefix}}
5
+ %input.form-control.input-sm(type='text' ng-disabled='is_disabled' ng-model='initiative_name')
6
+ %button.btn.btn-sm.btn-primary(ng-click='save()' ng-disabled='is_disabled')
7
+ %i.icon-plus.icon-white
8
+ Create
@@ -0,0 +1,7 @@
1
+ class Fanforce::PluginFactory
2
+ @@base_dir = nil
3
+
4
+ def self.base_dir
5
+ @@base_dir ||= File.expand_path '../../plugin_factory', __FILE__
6
+ end
7
+ end
@@ -0,0 +1,2 @@
1
+ require_relative 'load'
2
+ require_relative 'plugin'
@@ -0,0 +1,2 @@
1
+ require_relative 'sprockets/hacks'
2
+ require_relative 'sprockets/compiler'
@@ -0,0 +1,60 @@
1
+ require 'redis'
2
+ require 'fileutils'
3
+ require 'rack/jsonr'
4
+ require 'sinatra/base'
5
+ require 'active_support/all'
6
+ require 'fanforce/api'
7
+ require 'fanforce/plugin_worker'
8
+
9
+ class Fanforce::Plugin
10
+ require_relative 'core_config'
11
+
12
+ @@loaded = nil
13
+ @@config = nil
14
+
15
+ # Only one instance is allowed to initialize, and the resulting instance is stored in Fanforce::Plugin.
16
+ # @param base_dir [String] base dir of plugin
17
+ # @param loader_filename [String] either config.ru or Rakefile
18
+ # @return [Fanforce::Plugin]
19
+ def self.load(base_dir)
20
+ @@loaded ? (raise 'Only one instance of Fanforce::PluginFactory can be loaded per process') : @@loaded = true
21
+ @@config = CoreConfig.new(base_dir)
22
+ return self
23
+ end
24
+
25
+ def self.plugin_id
26
+ @@config._id
27
+ end
28
+ def self._id; plugin_id; end
29
+
30
+ def self.config(&block)
31
+ block ? block.call(@@config) : @@config
32
+ end
33
+
34
+ def self.base_dir
35
+ @@config.base_dir
36
+ end
37
+
38
+ def self.is_bugsnag_enabled?
39
+ @@config.is_bugsnag_enabled
40
+ end
41
+
42
+ def self.redis
43
+ @@redis ||= ::Redis.new(url: @@config.redis_url)
44
+ end
45
+
46
+ ######################################################################################################################
47
+
48
+ # Method for use in config.ru files (i.e., run Fanforce::Plugin)
49
+ def self.call(env)
50
+ if ENV['RACK_ENV'] == 'development' and env['PATH_INFO'] =~ /^\/assets\//
51
+ env['PATH_INFO'] = env['PATH_INFO'].gsub(/^\/assets/, '')
52
+ sprockets = SprocketsCompiler.setup(base_dir)
53
+ return sprockets.index.call(env)
54
+ end
55
+ require_relative 'sinatra/_load'
56
+ request = Rack::Request.new(env)
57
+ Rack::JSONR.intercept_method_override(env, request, request.params, :all)
58
+ Sinatra.new.call(env)
59
+ end
60
+ end
@@ -0,0 +1 @@
1
+ fanforce-plugin-factory-1.6.0:{"ADD": ["*.gem", "*.rbc", ".bundle", ".config", "coverage", "InstalledFiles", "lib/bundler/man", "pkg", "rdoc", "spec/reports", "test/tmp", "test/version_tmp", "tmp", ".idea/", ".sass-cache/", ".DS_STORE", ".powenv", ".pluginenv", ".widgetenv", ".*env.rb", ".yardoc", "_yardoc", "doc/", ".pluginenv", ".env/"]}
@@ -0,0 +1,3 @@
1
+ fanforce-plugin-factory-1.6.0:ae064a186c4105989dbb1fc1d89d297c4bb50645
2
+ fanforce-plugin-factory-1.6.0:b4efb7323d5dd68f09d7a16c16d02880a0504284
3
+ fanforce-plugin-factory-1.6.0:8b96f77d8bb7e7cea7a96b2bd9e580bd8b12dee8
@@ -0,0 +1,3 @@
1
+ fanforce-plugin-factory-1.6.0:26cd00b1a8da9aae4cd70711b866f29140baeaff
2
+ fanforce-plugin-factory-1.6.0:cee70a90994a4d0f268511a584ec90db09650ed2
3
+ fanforce-plugin-factory-1.6.0:95c9666667a190e6c562393a68f22ab6f036f008
@@ -0,0 +1,2 @@
1
+ fanforce-plugin-factory-1.6.0:{"ADD": {"_id": null, "name": null, "description": null, "callback_urls": {"install": "http://{{PLUGIN_DOMAIN}}/install", "uninstall": "http://{{PLUGIN_DOMAIN}}/uninstall"}, "fanforce_version_dependency": "1.5", "created_with_plugin_factory_version": null}}
2
+ fanforce-plugin-factory-1.6.0:{"OPT": {"public_urls": {}, "com_behaviors": [], "com_broadcasters": [], "com_connectors": [], "com_js_finders": [], "com_js_trackers": [], "iron_workers": []}}
@@ -0,0 +1,4 @@
1
+ fanforce-plugin-factory-1.6.0:caed161fa223c1350d5af2ad35473b0e70038655
2
+ fanforce-plugin-factory-1.6.0:76016405e6284edb561d1e174d1ef8033461df64
3
+ fanforce-plugin-factory-1.6.0:a9286ef7cb6e5c691e6d147cbf264262ee196837
4
+ fanforce-plugin-factory-1.6.0:621e2a7626b0da72464346b506a47ef012912e23
@@ -0,0 +1 @@
1
+ fanforce-plugin-factory-1.6.0:11e7043a9066756655711247c28736cf4b5ca91a
@@ -0,0 +1,3 @@
1
+ fanforce-plugin-factory-1.6.0:fb35191721228a8b5315598705b637811e59ca56
2
+ fanforce-plugin-factory-1.6.0:464b1266fdd658b516de626464a5aa8455cba664
3
+ fanforce-plugin-factory-1.6.0:1fb3e86b6f8117f386bf3842718946d0157b7a0f
@@ -0,0 +1,27 @@
1
+ # PluginFactoryScaffolding : ITEMS
2
+ ########################################################################################################################
3
+ *.gem
4
+ *.rbc
5
+ .bundle
6
+ .config
7
+ coverage
8
+ InstalledFiles
9
+ lib/bundler/man
10
+ pkg
11
+ rdoc
12
+ spec/reports
13
+ test/tmp
14
+ test/version_tmp
15
+ tmp
16
+ .idea/
17
+ .sass-cache/
18
+ .DS_STORE
19
+ .powenv
20
+ .pluginenv
21
+ .widgetenv
22
+ .*env.rb
23
+ .yardoc
24
+ _yardoc
25
+ doc/
26
+ .pluginenv
27
+ .env/
@@ -0,0 +1,9 @@
1
+ # PluginFactoryScaffolding : PARTIAL
2
+ ########################################################################################################################
3
+
4
+ source 'https://rubygems.org'
5
+ ruby '1.9.3'
6
+
7
+ gem FANFORCE-PLUGIN-FACTORY
8
+
9
+ # END PARTIAL ##########################################################################################################
@@ -0,0 +1,7 @@
1
+ # PluginFactoryScaffolding : PARTIAL
2
+ ########################################################################################################################
3
+
4
+ require 'bundler'; Bundler.setup
5
+ require 'fanforce/plugin_factory'
6
+
7
+ # END PARTIAL ##########################################################################################################
@@ -0,0 +1,67 @@
1
+ # PluginFactoryScaffolding : SKIPPED
2
+ ########################################################################################################################
3
+
4
+ class Plugin::Sinatra
5
+
6
+ ###################################################################################################################### # PLUGIN
7
+
8
+ get '/ping' do route_ping_callback end
9
+ post '/install' do route_install_callback end
10
+ post '/uninstall' do route_uninstall_callback end
11
+
12
+ static '/' do route_index_ui end
13
+
14
+ #static '/config.html' do route_config_ui end
15
+ #static '/close_popup.html' do route_close_popup_ui end
16
+
17
+ ######################################################################################################################
18
+ # CONNECTOR
19
+
20
+ #static '/:com_connector_shortid/add_source.html', [] do route_add_source_ui end
21
+ #static '/:com_connector_shortid/source_details.html', [] do route_source_details_ui end
22
+
23
+ ######################################################################################################################
24
+ # PROCESSOR
25
+
26
+
27
+ ######################################################################################################################
28
+ # BROADCASTER
29
+
30
+ #static '/:com_behavior_shortid/new_message.html', [] do route_new_message_ui end
31
+
32
+ ######################################################################################################################
33
+ # IDENTIFIER
34
+
35
+
36
+ ######################################################################################################################
37
+ # BEHAVIOR
38
+
39
+ #static '/:com_behavior_shortid/add_initiative.html', [] do route_add_initiative_ui end
40
+ #static '/:com_behavior_shortid/convert_initiative.html', [] do route_convert_initiative_ui end
41
+ #static '/:com_behavior_shortid/edit_initiative.html', [] do route_edit_initiative_ui end
42
+
43
+ #post '/:com_behavior_shortid/autocreate_initiative' do status 404 end
44
+ #post '/:com_behavior_shortid/archive_initiative' do route_archive_initiative_callback end
45
+ #post '/:com_behavior_shortid/destroy_initiative' do route_destroy_initiative_callback end
46
+
47
+ ######################################################################################################################
48
+ # JS ENGAGER
49
+
50
+
51
+ ######################################################################################################################
52
+ # JS WIDGET
53
+
54
+ #static '/widget_templates' do route_widget_templates end
55
+
56
+ ######################################################################################################################
57
+ # JS FINDER
58
+
59
+
60
+ ######################################################################################################################
61
+ # VISITOR
62
+
63
+ #static '/:organization_slug/:com_behavior_shortid/:initiative_id', :engagement do route_visitor_page_ui(:engagement) end
64
+
65
+ ######################################################################################################################
66
+
67
+ end
@@ -0,0 +1,4 @@
1
+ fanforce-plugin-factory-1.6.0:90e4bd9c4abaeabd9f44b29bec97f76f8149054b
2
+ fanforce-plugin-factory-1.6.0:290a0a53557bf6151cb9db03bd91e4ff75888ef1
3
+ fanforce-plugin-factory-1.6.0:4bbddc05c99b42b72cc9b71036b1540db02b7842
4
+ fanforce-plugin-factory-1.6.0:3100df670df8f5fb23b7e9fce2653228db080841
@@ -0,0 +1,4 @@
1
+ fanforce-plugin-factory-1.6.0:cd006c446e288f6eba688bc01ef601981e6b6326
2
+ fanforce-plugin-factory-1.6.0:1c4d1c57a8b97a2ea0c5fc4d321b94a160f0469b
3
+ fanforce-plugin-factory-1.6.0:a1fadf99e03856d8a8b7b164225be2be9020a532
4
+ fanforce-plugin-factory-1.6.0:839c564025c5758af336b26e8347d26c772ad027
@@ -0,0 +1,4 @@
1
+ fanforce-plugin-factory-1.6.0:92bc47f80382ad2123eaf5eb4b1ab17ab60f63ef
2
+ fanforce-plugin-factory-1.6.0:346d7c19f0887e96ffd2783ef174af6ff147eb84
3
+ fanforce-plugin-factory-1.6.0:af90492fbf4ca65bce0f8f783052f78749da87b7
4
+ fanforce-plugin-factory-1.6.0:37e0580912668d3ab8f75b1af5d6ce8e90a38687
@@ -0,0 +1,24 @@
1
+ // PluginFactoryScaffolding : PARTIAL
2
+ ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
3
+
4
+ @import 'compass/css3';
5
+ @import 'compass/utilities';
6
+
7
+ ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
8
+
9
+ @import 'plugin_factory/bootstrap';
10
+ @import 'plugin_factory/font-awesome';
11
+ @import 'plugin_factory/common';
12
+ @import 'plugin_factory/ui-select';
13
+ @import 'plugin_factory/directives';
14
+
15
+ ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
16
+
17
+ html.fembedded-layout {
18
+ body {
19
+ overflow: hidden;
20
+ background: #F4F8FC;
21
+ }
22
+ }
23
+
24
+ // END PARTIAL /////////////////////////////////////////////////////////////////////////////////////////////////////////
@@ -0,0 +1,33 @@
1
+ // PluginFactoryScaffolding : PARTIAL
2
+ ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
3
+
4
+ @import 'compass/css3';
5
+ @import 'compass/utilities';
6
+
7
+ ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
8
+
9
+ @import 'plugin_factory/bootstrap';
10
+ @import 'plugin_factory/font-awesome';
11
+ @import 'plugin_factory/common';
12
+
13
+ ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
14
+
15
+ html.promotional-layout {
16
+ body { background:#f6f8fa url(/assets/img/promotional/fanforce_bg.png) fixed; text-align: center; text-shadow: #ffffff 1px 1px 0; }
17
+ .loading { color: #8f9ba7; }
18
+ .loading, .loaded { padding-top: 85px; }
19
+
20
+ .header-icons { padding: 20px 0 30px;
21
+ img { margin: 0 5px; }
22
+ }
23
+
24
+ .about-box { @include box-shadow(0 1px 0 #ffffff inset, 0 1px 0 #ffffff); margin:125px auto 50px; border-top: 1px solid #b8c6d3; border-bottom: 1px solid #b8c6d3; width: 80%; padding: 35px 0 35px 45px; overflow: hidden;
25
+ .about { width: 50%; @include box-sizing(border-box); padding-right:35px; min-width:300px; text-align: left; float:left; line-height:1.5em;
26
+ .fanforce {}
27
+ .developer {}
28
+ }
29
+ }
30
+
31
+ }
32
+
33
+ // END PARTIAL /////////////////////////////////////////////////////////////////////////////////////////////////////////
@@ -0,0 +1,61 @@
1
+ // PluginFactoryScaffolding : PARTIAL
2
+ ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
3
+
4
+ @import 'compass/css3';
5
+ @import "compass/layout/sticky-footer";
6
+ @import 'compass/utilities';
7
+
8
+ ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
9
+
10
+ @import 'plugin_factory/bootstrap';
11
+ @import 'plugin_factory/common';
12
+
13
+ ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
14
+
15
+ a { text-decoration:none; color:#1861a8;
16
+ &:hover { text-decoration:underline; }
17
+ }
18
+ strong, .strong { font-weight:bold; }
19
+ emphasis, .emphasis { font-style:italic; }
20
+
21
+ ul { list-style-type: square; list-style-position:outside; padding:0; margin-left:0; line-height:1.5em;
22
+ li { margin-top:5px; margin-left:1em; }
23
+ }
24
+
25
+ ol { list-style-type:decimal; list-style-position:outside; padding:0; margin-left:0; line-height:1.5em;
26
+ li { margin-top:5px; margin-left:1.5em; }
27
+ }
28
+
29
+ pre { font-family:"Courier New", Courier, monospace, sans-serif; color: #555; line-height: 1.6em; }
30
+
31
+ .hide { display:none !important; }
32
+
33
+ html { height:100%; }
34
+ body { height: 100%; background-color:#292a2e; @include ff-gradient(#26262a,#2b2d31); text-align:center; margin:0; font-family:'Helvetica', Arial, sans-serif; font-size:12px; line-height:1.5em;
35
+ @include sticky-footer(40px, ".lyt-root", ".lyt-root-footer", ".lyt-footer");
36
+
37
+ .lyt-root { @include ff-gradient(#26262a,#2b2d31); }
38
+ .lyt-header { min-height:80px;
39
+ .hello { background: #2d2d31; height:40px; line-height: 44px; text-align: right; border-bottom:1px solid #000000; @include box-shadow(#343438 0 1px 0);
40
+ .hello-wrapper { max-width: 960px; margin:0 auto; }
41
+ .greeting { color: #858789; font-style: italic; padding-right:10px; font-weight: 100; }
42
+ a { font-weight: bold; color: #aeb2b4; }
43
+ }
44
+ .logo { border-bottom:1px solid #000000; @include box-shadow(#343438 0 1px 0); background-position: center center; background-repeat:no-repeat;
45
+ img { margin-top:18px; }
46
+ }
47
+ }
48
+ .lyt-footer { color:#565d65; font-size:10px; line-height:40px; border-top:1px solid #343438; @include box-shadow(#000000 0 -1px 0);
49
+ a { color:#565d65;
50
+ &:hover { color:#747d88; }
51
+ }
52
+ }
53
+
54
+ // layout-specific components
55
+ .ff-widget { display:inline-block; @include box-shadow(#000000 2px 2px 2px); border:10px solid #ffffff; @include border-radius(3px); margin:50px 0 50px; color: #444444;
56
+ .loading { line-height: 100px; }
57
+ }
58
+ }
59
+
60
+ // END PARTIAL /////////////////////////////////////////////////////////////////////////////////////////////////////////
61
+
@@ -0,0 +1 @@
1
+ fanforce-plugin-factory-1.6.0:2c4a41c23733786ba4c196a9fea72629d3954324
@@ -0,0 +1 @@
1
+ fanforce-plugin-factory-1.6.0:0beb56b727da2e9c51fdc26807ec7a3639006ea0
@@ -0,0 +1 @@
1
+ fanforce-plugin-factory-1.6.0:5b9b715b154cf49ab66d18414d02d7b3dbc981cf
@@ -0,0 +1 @@
1
+ fanforce-plugin-factory-1.6.0:25352f7963722a800dd1f8dbbe14d4942f2f4383
@@ -0,0 +1 @@
1
+ fanforce-plugin-factory-1.6.0:80bb437f5177d8481ea4891ae3b699b933130cb0
@@ -0,0 +1 @@
1
+ fanforce-plugin-factory-1.6.0:5b9b715b154cf49ab66d18414d02d7b3dbc981cf
@@ -0,0 +1 @@
1
+ fanforce-plugin-factory-1.6.0:e5285efa7c82a083ed349f1dbe6c34ba37a6689d
@@ -0,0 +1,5 @@
1
+ fanforce-plugin-factory-1.6.0:6448e6a38da910d557be37ed6f2ccbd9e56e6842
2
+ fanforce-plugin-factory-1.6.0:4ec155f1fcbc67b0d55d7c61049d603892113a84
3
+ fanforce-plugin-factory-1.6.0:9d77c7fc8a6eecbca57c28b2ab272ea3d23caf1d
4
+ fanforce-plugin-factory-1.6.0:40e66e08737b83276f97d332edb075c5f2e1bf9d
5
+ fanforce-plugin-factory-1.6.0:281c679e36c2ddd26c3242d48223d379c9b1ff87
@@ -0,0 +1,3 @@
1
+ fanforce-plugin-factory-1.6.0:130fe4541ada9247bd4224b54f744f17476d7e55
2
+ fanforce-plugin-factory-1.6.0:89a46b16eb62e6dd5b68767cc9e2d39733eb94c0
3
+ fanforce-plugin-factory-1.6.0:bd29cc97b29b1819d13004bbecd02ef8d161e2ac
@@ -0,0 +1,3 @@
1
+ fanforce-plugin-factory-1.6.0:2bd39d304fc2704b882c6020e0b117f2803961e7
2
+ fanforce-plugin-factory-1.6.0:61ff012e2394a0a520e50043d6189240c567aa36
3
+ fanforce-plugin-factory-1.6.0:ad1a4e5c1d4a915f2879305045c1bda243db5330
@@ -0,0 +1,11 @@
1
+ # PluginFactoryScaffolding : PARTIAL
2
+ ########################################################################################################################
3
+ # SETUP PLUGIN
4
+ ########################################################################################################################
5
+ @App = angular.module('fembedded', ['ui.select'], ['$httpProvider', ($httpProvider) ->
6
+ $httpProvider.defaults.withCredentials = true
7
+ ]).run(['$rootScope', ($rootScope) ->
8
+ $rootScope.app_is_loaded = true;
9
+ ])
10
+ # END PARTIAL ##########################################################################################################
11
+