houston-core 0.8.0.pre → 0.8.0.pre2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2398) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +1 -1
  3. data/Gemfile +0 -1
  4. data/Gemfile.lock +101 -160
  5. data/app/assets/javascripts/houston/app/boot.coffee +0 -9
  6. data/app/assets/javascripts/houston/app/commands/show_keyboard_shortcuts.coffee +9 -0
  7. data/app/assets/javascripts/houston/app/models/user.coffee +0 -2
  8. data/app/assets/javascripts/houston/app/views/keyboard_shortcuts_modal.coffee +4 -29
  9. data/app/assets/javascripts/houston/application.js +2 -0
  10. data/app/assets/javascripts/houston/core/app.coffee +8 -46
  11. data/app/assets/javascripts/houston/core/core_ext/number.coffee +4 -0
  12. data/app/assets/javascripts/houston/core/handlebars_helpers.coffee +21 -23
  13. data/app/assets/javascripts/houston/core/keyboard_shortcuts.coffee +19 -0
  14. data/app/assets/javascripts/houston/core/observer.coffee +69 -0
  15. data/app/assets/javascripts/houston/dashboard.js +1 -9
  16. data/app/assets/javascripts/houston/vendor.js +4 -0
  17. data/app/assets/stylesheets/houston/application/globals.scss +5 -0
  18. data/app/assets/stylesheets/houston/application/keyboard_shortcuts.scss +23 -25
  19. data/app/assets/stylesheets/houston/application/markdown.scss +3 -1
  20. data/app/assets/stylesheets/houston/application/mobile.scss +0 -2
  21. data/app/assets/stylesheets/houston/application/navigation.scss +0 -26
  22. data/app/assets/stylesheets/houston/application/project_banner_buttons.scss +0 -18
  23. data/app/assets/stylesheets/houston/application/projects.css.scss +0 -49
  24. data/app/assets/stylesheets/houston/application/teams.scss +0 -3
  25. data/app/assets/stylesheets/houston/application/uploading.scss +3 -5
  26. data/app/assets/stylesheets/houston/application/users.scss +0 -1
  27. data/app/assets/stylesheets/houston/core/colors.scss.erb +9 -22
  28. data/app/assets/stylesheets/houston/core/globals.scss +20 -0
  29. data/app/assets/stylesheets/houston/core/misc.scss +0 -4
  30. data/app/assets/stylesheets/houston/print.css.scss +0 -12
  31. data/app/assets/templates/keyboard_shortcuts.hbs +6 -4
  32. data/app/channels/application_cable/channel.rb +5 -0
  33. data/app/channels/application_cable/connection.rb +5 -0
  34. data/app/channels/events_channel.rb +27 -0
  35. data/app/concerns/houston/props.rb +9 -1
  36. data/app/concerns/project_adapter.rb +40 -10
  37. data/app/controllers/api/v1/measurements_controller.rb +2 -2
  38. data/app/controllers/api/v1/projects_controller.rb +2 -2
  39. data/app/controllers/application_controller.rb +8 -17
  40. data/app/controllers/hooks_controller.rb +2 -29
  41. data/app/controllers/project_hooks_controller.rb +3 -3
  42. data/app/controllers/project_options_controller.rb +1 -1
  43. data/app/controllers/project_roles_controller.rb +1 -1
  44. data/app/controllers/projects_controller.rb +2 -52
  45. data/app/controllers/sessions_controller.rb +1 -1
  46. data/app/controllers/teams_controller.rb +14 -3
  47. data/app/controllers/user_options_controller.rb +1 -1
  48. data/app/controllers/users_controller.rb +1 -17
  49. data/app/helpers/application_helper.rb +36 -8
  50. data/app/helpers/avatar_helper.rb +3 -2
  51. data/app/helpers/navigation_helper.rb +5 -39
  52. data/app/helpers/project_helper.rb +0 -24
  53. data/app/helpers/url_helper.rb +0 -44
  54. data/app/mailers/view_mailer.rb +2 -9
  55. data/app/models/ability.rb +4 -0
  56. data/app/models/action.rb +50 -44
  57. data/app/models/error.rb +11 -1
  58. data/app/models/persistent_trigger.rb +1 -1
  59. data/app/models/project.rb +15 -171
  60. data/app/models/team.rb +1 -1
  61. data/app/models/team_user.rb +1 -1
  62. data/app/models/user.rb +1 -30
  63. data/app/models/user_credentials.rb +2 -23
  64. data/app/views/actions/_actions.html.erb +8 -1
  65. data/app/views/errors/_actions.html.erb +6 -1
  66. data/app/views/layouts/application.html.erb +3 -7
  67. data/app/views/layouts/dashboard.html.erb +11 -7
  68. data/app/views/layouts/minimal.html.erb +3 -7
  69. data/app/views/layouts/naked.html.erb +3 -8
  70. data/app/views/layouts/naked_dashboard.html.erb +12 -7
  71. data/app/views/projects/_form.html.erb +32 -35
  72. data/app/views/projects/_header.html.erb +6 -3
  73. data/app/views/projects/index.html.erb +6 -73
  74. data/app/views/teams/_form.html.erb +13 -0
  75. data/app/views/teams/index.html.erb +4 -1
  76. data/app/views/users/_form.html.erb +8 -6
  77. data/app/views/users/show.html.erb +0 -8
  78. data/bin/rails +1 -1
  79. data/config/application.rb +15 -11
  80. data/config/boot.rb +1 -1
  81. data/config/environment.rb +1 -1
  82. data/config/environments/development.rb +25 -3
  83. data/config/environments/production.rb +25 -14
  84. data/config/environments/test.rb +6 -6
  85. data/config/initializers/add_navigation_renderers.rb +0 -63
  86. data/config/initializers/application_controller_renderer.rb +6 -0
  87. data/config/initializers/cookies_serializer.rb +2 -0
  88. data/config/initializers/devise.rb +1 -1
  89. data/config/initializers/houston_observer_subscriber.rb +17 -0
  90. data/config/initializers/houston_report_exception.rb +1 -1
  91. data/config/initializers/load_persistent_triggers.rb +1 -1
  92. data/config/initializers/mime_types.rb +0 -1
  93. data/config/initializers/new_framework_defaults.rb +23 -0
  94. data/config/initializers/requirements.rb +0 -1
  95. data/config/initializers/wrap_parameters.rb +2 -2
  96. data/config/routes.rb +16 -175
  97. data/config/spring.rb +6 -0
  98. data/db/migrate/20120504143615_link_tickets_and_releases.rb +0 -6
  99. data/db/migrate/20140517012626_prevent_hstore_fields_from_being_null.rb +0 -2
  100. data/db/migrate/20151228183704_drop_unused_tables.rb +0 -24
  101. data/db/migrate/20160625203412_convert_user_view_options_to_props.rb +1 -1
  102. data/db/migrate/20160625221840_convert_project_extended_attributes_to_props.rb +1 -1
  103. data/db/migrate/20160813001242_create_teams.rb +1 -1
  104. data/db/migrate/20160814024129_drop_columns_unused_since07.rb +12 -0
  105. data/db/migrate/20160916191300_add_type_to_errors.rb +5 -0
  106. data/db/migrate/20161102012059_drop_code_climate_repo_token.rb +9 -0
  107. data/db/migrate/20161102012231_drop_feature_states.rb +9 -0
  108. data/db/migrate/20170115150643_move_adapter_names_to_props.rb +17 -0
  109. data/db/migrate/20170116002818_drop_releases_tickets_and_releases_tasks.rb +6 -0
  110. data/db/migrate/20170116210225_move_adapter_names_to_props2.rb +17 -0
  111. data/db/migrate/20170118005958_remove_antecedents_from_versions_of_tickets.rb +38 -0
  112. data/db/seeds.rb +0 -7
  113. data/db/structure.sql +173 -1619
  114. data/houston-core.gemspec +16 -43
  115. data/lib/generators/instance_generator.rb +6 -1
  116. data/lib/hash_dsl.rb +27 -0
  117. data/{app/adapters → lib}/houston/adapters.rb +1 -3
  118. data/lib/houston/boot.rb +3 -1
  119. data/lib/houston/boot/actions.rb +1 -3
  120. data/lib/houston/boot/active_record_serializer.rb +6 -1
  121. data/lib/houston/boot/configuration.rb +96 -249
  122. data/lib/houston/boot/daemonize.rb +1 -1
  123. data/lib/houston/boot/events.rb +1 -33
  124. data/lib/houston/boot/extensions.rb +114 -2
  125. data/lib/houston/boot/observer.rb +8 -6
  126. data/lib/houston/boot/running_as.rb +28 -0
  127. data/lib/houston/boot/serializer.rb +2 -0
  128. data/lib/houston/boot/timer.rb +34 -12
  129. data/lib/houston/boot/triggers.rb +5 -8
  130. data/lib/{params_serializer.rb → houston/params_serializer.rb} +0 -0
  131. data/lib/houston/test_helpers.rb +45 -0
  132. data/lib/houston/version.rb +1 -1
  133. data/script/cibuild +4 -1
  134. data/templates/new-instance/Gemfile +22 -4
  135. data/templates/new-instance/cable/config.ru +16 -0
  136. data/templates/new-instance/config.ru +1 -1
  137. data/templates/new-instance/config/abilities.rb +4 -53
  138. data/templates/new-instance/config/database.yml +3 -3
  139. data/{app/adapters/houston/adapters/error_tracker/errors.rb → templates/new-instance/config/events/.keep} +0 -0
  140. data/templates/new-instance/config/integrations/.keep +0 -0
  141. data/templates/new-instance/config/main.rb +58 -65
  142. data/templates/new-instance/config/routes.rb +1 -1
  143. data/templates/new-instance/config/timers/.keep +0 -0
  144. data/templates/new-instance/config/timers/purge_jobs.rb +2 -2
  145. data/templates/new-instance/db/seeds.rb +9 -0
  146. data/templates/new-instance/db/structure.sql +337 -1592
  147. data/templates/new-instance/public/sounds/silence.mp3 +0 -0
  148. data/templates/new-module/app/controllers/houston/%name%/application_controller.rb.tt +1 -1
  149. data/templates/new-module/test/acceptance/houston_dummy_test.rb +2 -2
  150. data/templates/new-module/test/dummy/houston.rb +0 -5
  151. data/templates/new-module/test/fixtures/teams.yml +2 -0
  152. data/templates/new-module/test/fixtures/teams_users.yml +5 -0
  153. data/test/factories/user_factory.rb +0 -6
  154. data/test/support/config.rb +0 -28
  155. data/test/support/houston/adapters/test_adapter.rb +21 -0
  156. data/test/support/houston/module1.rb +20 -0
  157. data/test/support/houston/module2.rb +14 -0
  158. data/test/test_helper.rb +4 -125
  159. data/test/unit/concerns/project_adapter_test.rb +66 -0
  160. data/test/unit/controllers/project_options_controller_test.rb +3 -3
  161. data/test/unit/controllers/user_options_controller_test.rb +3 -3
  162. data/test/unit/controllers/users_controller_test.rb +4 -4
  163. data/test/unit/models/configuration_test.rb +47 -0
  164. data/test/unit/models/persistent_trigger_test.rb +8 -11
  165. data/test/unit/models/triggers_test.rb +10 -10
  166. data/vendor/assets/javascripts/backbone.js +1920 -0
  167. data/vendor/assets/javascripts/{d3.v3.js → d3.js} +1295 -1015
  168. data/vendor/assets/javascripts/handlebars.js +4608 -0
  169. data/vendor/assets/javascripts/underscore.js +1548 -0
  170. metadata +90 -2493
  171. data/app/adapters/houston/adapters/ci_server.rb +0 -5
  172. data/app/adapters/houston/adapters/ci_server/errors.rb +0 -16
  173. data/app/adapters/houston/adapters/ci_server/jenkins_adapter.rb +0 -21
  174. data/app/adapters/houston/adapters/ci_server/jenkins_adapter/job.rb +0 -245
  175. data/app/adapters/houston/adapters/ci_server/none_adapter.rb +0 -21
  176. data/app/adapters/houston/adapters/ci_server/none_adapter/job.rb +0 -25
  177. data/app/adapters/houston/adapters/deployment/engineyard.rb +0 -108
  178. data/app/adapters/houston/adapters/deployment/engineyard/config.rb +0 -18
  179. data/app/adapters/houston/adapters/error_tracker.rb +0 -5
  180. data/app/adapters/houston/adapters/error_tracker/errbit_adapter.rb +0 -69
  181. data/app/adapters/houston/adapters/error_tracker/errbit_adapter/app.rb +0 -48
  182. data/app/adapters/houston/adapters/error_tracker/errbit_adapter/connection.rb +0 -153
  183. data/app/adapters/houston/adapters/error_tracker/errbit_adapter/notice.rb +0 -26
  184. data/app/adapters/houston/adapters/error_tracker/errbit_adapter/problem.rb +0 -98
  185. data/app/adapters/houston/adapters/error_tracker/none_adapter.rb +0 -31
  186. data/app/adapters/houston/adapters/error_tracker/null_app.rb +0 -40
  187. data/app/adapters/houston/adapters/ticket_tracker.rb +0 -5
  188. data/app/adapters/houston/adapters/ticket_tracker/errors.rb +0 -23
  189. data/app/adapters/houston/adapters/ticket_tracker/github_adapter.rb +0 -27
  190. data/app/adapters/houston/adapters/ticket_tracker/github_adapter/connection.rb +0 -167
  191. data/app/adapters/houston/adapters/ticket_tracker/github_adapter/issue.rb +0 -99
  192. data/app/adapters/houston/adapters/ticket_tracker/houston_adapter.rb +0 -23
  193. data/app/adapters/houston/adapters/ticket_tracker/houston_adapter/connection.rb +0 -48
  194. data/app/adapters/houston/adapters/ticket_tracker/houston_adapter/ticket.rb +0 -65
  195. data/app/adapters/houston/adapters/ticket_tracker/none_adapter.rb +0 -21
  196. data/app/adapters/houston/adapters/ticket_tracker/null_connection.rb +0 -46
  197. data/app/adapters/houston/adapters/ticket_tracker/null_ticket.rb +0 -71
  198. data/app/adapters/houston/adapters/ticket_tracker/unfuddle_adapter.rb +0 -43
  199. data/app/adapters/houston/adapters/ticket_tracker/unfuddle_adapter/connection.rb +0 -224
  200. data/app/adapters/houston/adapters/ticket_tracker/unfuddle_adapter/milestone.rb +0 -42
  201. data/app/adapters/houston/adapters/ticket_tracker/unfuddle_adapter/ticket.rb +0 -240
  202. data/app/adapters/houston/adapters/version_control.rb +0 -5
  203. data/app/adapters/houston/adapters/version_control/commit.rb +0 -29
  204. data/app/adapters/houston/adapters/version_control/errors.rb +0 -37
  205. data/app/adapters/houston/adapters/version_control/git_adapter.rb +0 -90
  206. data/app/adapters/houston/adapters/version_control/git_adapter/diff_changes.rb +0 -49
  207. data/app/adapters/houston/adapters/version_control/git_adapter/github_repo.rb +0 -84
  208. data/app/adapters/houston/adapters/version_control/git_adapter/remote_repo.rb +0 -166
  209. data/app/adapters/houston/adapters/version_control/git_adapter/repo.rb +0 -265
  210. data/app/adapters/houston/adapters/version_control/none_adapter.rb +0 -21
  211. data/app/adapters/houston/adapters/version_control/null_commit.rb +0 -21
  212. data/app/adapters/houston/adapters/version_control/null_repo.rb +0 -73
  213. data/app/assets/javascripts/houston/app/models/commit.coffee +0 -9
  214. data/app/assets/javascripts/houston/app/models/release.coffee +0 -9
  215. data/app/assets/javascripts/houston/app/models/task.coffee +0 -5
  216. data/app/assets/javascripts/houston/app/models/tester.coffee +0 -8
  217. data/app/assets/javascripts/houston/app/models/ticket.coffee +0 -125
  218. data/app/assets/javascripts/houston/app/releases.coffee +0 -55
  219. data/app/assets/javascripts/houston/app/ticket_tracker_refresh.coffee +0 -71
  220. data/app/assets/javascripts/houston/app/views/_show_sprint_view.coffee +0 -84
  221. data/app/assets/javascripts/houston/app/views/_tickets_view.coffee +0 -62
  222. data/app/assets/javascripts/houston/app/views/all_tickets_view.coffee +0 -28
  223. data/app/assets/javascripts/houston/app/views/edit_sprint_view.coffee +0 -327
  224. data/app/assets/javascripts/houston/app/views/edit_ticket_view.coffee +0 -67
  225. data/app/assets/javascripts/houston/app/views/find_or_create_ticket_view.coffee +0 -75
  226. data/app/assets/javascripts/houston/app/views/new_ticket_modal.coffee +0 -24
  227. data/app/assets/javascripts/houston/app/views/new_ticket_view.coffee +0 -187
  228. data/app/assets/javascripts/houston/app/views/ticket_modal_view.coffee +0 -77
  229. data/app/assets/stylesheets/houston/application/commit.scss +0 -22
  230. data/app/assets/stylesheets/houston/application/exceptions.scss +0 -66
  231. data/app/assets/stylesheets/houston/application/find_or_create_ticket.scss +0 -12
  232. data/app/assets/stylesheets/houston/application/new_ticket_view.scss +0 -85
  233. data/app/assets/stylesheets/houston/application/omnibar.scss +0 -55
  234. data/app/assets/stylesheets/houston/application/pull_requests.scss +0 -54
  235. data/app/assets/stylesheets/houston/application/queue.scss +0 -11
  236. data/app/assets/stylesheets/houston/application/release_form.scss +0 -67
  237. data/app/assets/stylesheets/houston/application/releases.scss +0 -187
  238. data/app/assets/stylesheets/houston/application/sprint.scss +0 -83
  239. data/app/assets/stylesheets/houston/application/test.scss +0 -118
  240. data/app/assets/stylesheets/houston/application/test_run.scss +0 -154
  241. data/app/assets/stylesheets/houston/application/ticket.scss +0 -156
  242. data/app/assets/stylesheets/houston/application/ticket_modal.scss +0 -173
  243. data/app/assets/stylesheets/houston/application/tickets.scss +0 -36
  244. data/app/assets/stylesheets/houston/application/timeline.scss +0 -204
  245. data/app/assets/stylesheets/houston/application/welcome.scss +0 -48
  246. data/app/assets/templates/new_ticket/form.hbs +0 -14
  247. data/app/assets/templates/new_ticket/modal.hbs +0 -9
  248. data/app/assets/templates/new_ticket/suggestion.hbs +0 -3
  249. data/app/assets/templates/omnibar/commit.hbs +0 -6
  250. data/app/assets/templates/omnibar/modal.hbs +0 -5
  251. data/app/assets/templates/omnibar/project.hbs +0 -5
  252. data/app/assets/templates/omnibar/ticket.hbs +0 -6
  253. data/app/assets/templates/problems/index.hbs +0 -3
  254. data/app/assets/templates/problems/show.hbs +0 -48
  255. data/app/assets/templates/sprints/edit.hbs +0 -50
  256. data/app/assets/templates/sprints/show.hbs +0 -1
  257. data/app/assets/templates/sprints/task.hbs +0 -17
  258. data/app/assets/templates/sprints/typeahead.hbs +0 -7
  259. data/app/assets/templates/tickets/find_or_create.hbs +0 -4
  260. data/app/assets/templates/tickets/index.hbs +0 -18
  261. data/app/assets/templates/tickets/modal.hbs +0 -5
  262. data/app/assets/templates/tickets/show.hbs +0 -62
  263. data/app/assets/templates/tickets/typeahead.hbs +0 -2
  264. data/app/concerns/belongs_to_commit.rb +0 -36
  265. data/app/concerns/commit_synchronizer.rb +0 -150
  266. data/app/concerns/feature_state.rb +0 -27
  267. data/app/concerns/milestone_synchronizer.rb +0 -60
  268. data/app/concerns/ticket_synchronizer.rb +0 -120
  269. data/app/concerns/unique_add.rb +0 -7
  270. data/app/controllers/api/v1/sprint_tasks_controller.rb +0 -97
  271. data/app/controllers/api/v1/ticket_tasks_controller.rb +0 -75
  272. data/app/controllers/commits_controller.rb +0 -33
  273. data/app/controllers/deploys_controller.rb +0 -44
  274. data/app/controllers/github/pulls_controller.rb +0 -13
  275. data/app/controllers/omnibar_controller.rb +0 -54
  276. data/app/controllers/project_tests_controller.rb +0 -105
  277. data/app/controllers/project_tickets_controller.rb +0 -149
  278. data/app/controllers/project_tickets_sync_controller.rb +0 -22
  279. data/app/controllers/releases_controller.rb +0 -151
  280. data/app/controllers/sprint_task_locks_controller.rb +0 -47
  281. data/app/controllers/sprints_controller.rb +0 -99
  282. data/app/controllers/tasks_controller.rb +0 -40
  283. data/app/controllers/test_runs_controller.rb +0 -61
  284. data/app/controllers/tickets_controller.rb +0 -48
  285. data/app/controllers/welcome_controller.rb +0 -28
  286. data/app/helpers/ansi_helper.rb +0 -46
  287. data/app/helpers/backtrace_helper.rb +0 -7
  288. data/app/helpers/breadcrumbs_helper.rb +0 -60
  289. data/app/helpers/commit_helper.rb +0 -69
  290. data/app/helpers/demo_helper.rb +0 -23
  291. data/app/helpers/excel_helpers.rb +0 -7
  292. data/app/helpers/flash_message_helper.rb +0 -22
  293. data/app/helpers/maintenance_light_helper.rb +0 -19
  294. data/app/helpers/release_helper.rb +0 -58
  295. data/app/helpers/sprint_helper.rb +0 -11
  296. data/app/helpers/static_chart_helper.rb +0 -7
  297. data/app/helpers/test_run_helper.rb +0 -76
  298. data/app/helpers/ticket_helper.rb +0 -25
  299. data/app/helpers/timeline_helper.rb +0 -39
  300. data/app/helpers/user_helper.rb +0 -15
  301. data/app/helpers/version_helper.rb +0 -9
  302. data/app/interactors/cache_key_dependencies.rb +0 -23
  303. data/app/interactors/test_run_comparer.rb +0 -46
  304. data/app/interactors/ticket_report.rb +0 -59
  305. data/app/jobs/sync_all_tickets_job.rb +0 -49
  306. data/app/jobs/sync_commits_job.rb +0 -13
  307. data/app/jobs/sync_project_tickets_job.rb +0 -32
  308. data/app/mailers/project_notification.rb +0 -79
  309. data/app/models/activity_feed.rb +0 -111
  310. data/app/models/code_climate/coverage_report.rb +0 -174
  311. data/app/models/commit.rb +0 -250
  312. data/app/models/deploy.rb +0 -120
  313. data/app/models/environment.rb +0 -39
  314. data/app/models/github/comment_event.rb +0 -35
  315. data/app/models/github/commit_comment_event.rb +0 -7
  316. data/app/models/github/commit_status_report.rb +0 -73
  317. data/app/models/github/diff_comment_event.rb +0 -7
  318. data/app/models/github/event.rb +0 -20
  319. data/app/models/github/issue_comment_event.rb +0 -16
  320. data/app/models/github/post_receive_event.rb +0 -14
  321. data/app/models/github/pull_request.rb +0 -278
  322. data/app/models/github/pull_request_event.rb +0 -38
  323. data/app/models/github/unauthorized.rb +0 -4
  324. data/app/models/key_dependency.rb +0 -45
  325. data/app/models/maintenance_light.rb +0 -12
  326. data/app/models/menu_item.rb +0 -19
  327. data/app/models/menu_item_divider.rb +0 -11
  328. data/app/models/milestone.rb +0 -90
  329. data/app/models/output_stream.rb +0 -26
  330. data/app/models/post_receive_payload.rb +0 -30
  331. data/app/models/project_dependencies.rb +0 -54
  332. data/app/models/project_dependency.rb +0 -108
  333. data/app/models/project_menu_item.rb +0 -12
  334. data/app/models/release.rb +0 -241
  335. data/app/models/release_change.rb +0 -54
  336. data/app/models/rubygems/gem.rb +0 -76
  337. data/app/models/run_tests_on_post_receive.rb +0 -184
  338. data/app/models/source_file_coverage.rb +0 -10
  339. data/app/models/sprint.rb +0 -75
  340. data/app/models/sprint_report.rb +0 -56
  341. data/app/models/sprint_task.rb +0 -32
  342. data/app/models/static_chart.rb +0 -137
  343. data/app/models/static_chart/area.rb +0 -70
  344. data/app/models/task.rb +0 -218
  345. data/app/models/test.rb +0 -12
  346. data/app/models/test_error.rb +0 -8
  347. data/app/models/test_result.rb +0 -17
  348. data/app/models/test_run.rb +0 -402
  349. data/app/models/test_run_statistics.rb +0 -53
  350. data/app/models/ticket.rb +0 -329
  351. data/app/models/ticket_comment.rb +0 -21
  352. data/app/models/ticket_committer.rb +0 -11
  353. data/app/models/ticket_tag.rb +0 -25
  354. data/app/presenters/commit_presenter.rb +0 -52
  355. data/app/presenters/full_ticket_presenter.rb +0 -78
  356. data/app/presenters/release_presenter.rb +0 -20
  357. data/app/presenters/sprint_task_presenter.rb +0 -49
  358. data/app/presenters/task_presenter.rb +0 -44
  359. data/app/presenters/tasks_excel_presenter.rb +0 -107
  360. data/app/presenters/ticket_presenter.rb +0 -36
  361. data/app/views/activity/_events.html.erb +0 -24
  362. data/app/views/commits/show.html.erb +0 -56
  363. data/app/views/configuration_error/_no_ticket_tracker.html.erb +0 -7
  364. data/app/views/deploys/show.html.erb +0 -51
  365. data/app/views/github/pulls/index.html.erb +0 -109
  366. data/app/views/project_notification/ci_configuration_error.html.erb +0 -15
  367. data/app/views/project_notification/new_release.html.erb +0 -37
  368. data/app/views/project_notification/test_run.html.erb +0 -128
  369. data/app/views/project_tests/_commits.html.erb +0 -14
  370. data/app/views/project_tests/index.html.erb +0 -55
  371. data/app/views/project_tests/show.html.erb +0 -39
  372. data/app/views/project_tickets/_tickets.html.erb +0 -36
  373. data/app/views/project_tickets/bugs.html.erb +0 -13
  374. data/app/views/project_tickets/ideas.html.erb +0 -13
  375. data/app/views/project_tickets/index.html.erb +0 -13
  376. data/app/views/project_tickets/index.xls.erb +0 -88
  377. data/app/views/project_tickets/new.html.erb +0 -17
  378. data/app/views/project_tickets/no_ticket_tracker.html.erb +0 -8
  379. data/app/views/project_tickets/open.html.erb +0 -13
  380. data/app/views/project_tickets/open_bugs.html.erb +0 -13
  381. data/app/views/project_tickets/open_ideas.html.erb +0 -13
  382. data/app/views/project_tickets/show.html.erb +0 -76
  383. data/app/views/projects/_new_ticket.html.erb +0 -8
  384. data/app/views/projects/_ticket_tracker_refresh.html.erb +0 -4
  385. data/app/views/projects/new_from_github.html.erb +0 -67
  386. data/app/views/releases/_changelog.html.erb +0 -45
  387. data/app/views/releases/_commits.html.erb +0 -18
  388. data/app/views/releases/_form.html.erb +0 -132
  389. data/app/views/releases/_index.html.erb +0 -65
  390. data/app/views/releases/_new_release.html.erb +0 -15
  391. data/app/views/releases/_results.html.erb +0 -47
  392. data/app/views/releases/_tickets.html.erb +0 -12
  393. data/app/views/releases/edit.html.erb +0 -19
  394. data/app/views/releases/index.html.erb +0 -44
  395. data/app/views/releases/new.html.erb +0 -72
  396. data/app/views/releases/show.html.erb +0 -12
  397. data/app/views/sprints/dashboard.html.erb +0 -31
  398. data/app/views/sprints/show.html.erb +0 -39
  399. data/app/views/test_runs/confirm_retry.html.erb +0 -3
  400. data/app/views/tickets/new.html.erb +0 -18
  401. data/app/views/welcome/index.html.erb +0 -29
  402. data/config/initializers/constants.rb +0 -9
  403. data/config/initializers/run_tests_on_post_receive.rb +0 -1
  404. data/config/initializers/sync_commits_on_post_receive.rb +0 -3
  405. data/config/initializers/unfuddle.rb +0 -6
  406. data/db/fixtures/projects.yml +0 -21
  407. data/db/fixtures/roles.yml +0 -9
  408. data/db/fixtures/users.yml +0 -36
  409. data/db/migrate/20120324202224_create_environments.rb +0 -11
  410. data/db/migrate/20120324212848_create_releases.rb +0 -12
  411. data/db/migrate/20120324212946_create_changes.rb +0 -11
  412. data/db/migrate/20120324230038_create_commits.rb +0 -13
  413. data/db/migrate/20120406185643_add_initial_commit_to_environments.rb +0 -5
  414. data/db/migrate/20120417195313_create_tickets.rb +0 -12
  415. data/db/migrate/20120417195433_create_ticket_queues.rb +0 -11
  416. data/db/migrate/20120501230243_add_unfuddle_id_to_tickets.rb +0 -9
  417. data/db/migrate/20120626140242_add_deployment_to_tickets.rb +0 -5
  418. data/db/migrate/20120626150333_add_last_release_at_to_tickets.rb +0 -14
  419. data/db/migrate/20120626151320_link_tickets_and_commits.rb +0 -17
  420. data/db/migrate/20120626152020_add_committer_email_to_commits.rb +0 -13
  421. data/db/migrate/20120626152949_replace_committer_info_with_author_info.rb +0 -12
  422. data/db/migrate/20120716010743_add_user_to_releases.rb +0 -14
  423. data/db/migrate/20120726212620_add_message_to_release.rb +0 -5
  424. data/db/migrate/20120804003344_add_goldmine_to_tickets.rb +0 -5
  425. data/db/migrate/20121027160548_create_deploys.rb +0 -11
  426. data/db/migrate/20121027171215_add_deploy_id_to_releases.rb +0 -6
  427. data/db/migrate/20121104233305_add_tag_slug_to_changes.rb +0 -5
  428. data/db/migrate/20121214025558_add_estimated_effort_and_estimated_value_to_tickets.rb +0 -6
  429. data/db/migrate/20121220031008_add_expires_at_to_tickets.rb +0 -5
  430. data/db/migrate/20121224212623_rename_environments.rb +0 -29
  431. data/db/migrate/20121225175106_replace_environment_id_with_environment_name.rb +0 -39
  432. data/db/migrate/20121230174234_create_test_runs.rb +0 -22
  433. data/db/migrate/20130106184327_replace_test_runs_details_with_tests.rb +0 -11
  434. data/db/migrate/20130106185425_add_total_count_to_test_runs.rb +0 -5
  435. data/db/migrate/20130119204608_add_extended_attributes_to_tickets.rb +0 -35
  436. data/db/migrate/20130119211540_remove_estimated_effort_and_estimated_value_from_tickets.rb +0 -11
  437. data/db/migrate/20130119212008_rename_tickets_unfuddle_id_to_remote_id.rb +0 -5
  438. data/db/migrate/20130120182026_create_ticket_prerequisites.rb +0 -13
  439. data/db/migrate/20130306023456_add_agent_email_to_test_runs.rb +0 -5
  440. data/db/migrate/20130306023613_add_branch_to_test_runs.rb +0 -5
  441. data/db/migrate/20130319003918_add_coverage_to_test_runs.rb +0 -7
  442. data/db/migrate/20130407220937_add_project_id_to_commits.rb +0 -26
  443. data/db/migrate/20130504135741_add_antecedents_to_tickets.rb +0 -26
  444. data/db/migrate/20130505144446_add_tags_to_tickets.rb +0 -9
  445. data/db/migrate/20130505162039_add_type_to_tickets.rb +0 -9
  446. data/db/migrate/20130505212838_add_closed_at_to_tickets.rb +0 -9
  447. data/db/migrate/20130518224352_drop_environments.rb +0 -9
  448. data/db/migrate/20130518224655_remove_goldmine_from_tickets.rb +0 -9
  449. data/db/migrate/20130525192607_add_reporter_email_and_reporter_id_to_tickets.rb +0 -6
  450. data/db/migrate/20130525222131_add_regression_count_to_test_runs.rb +0 -5
  451. data/db/migrate/20130526024851_give_default_values_for_counts_from_test_runs.rb +0 -19
  452. data/db/migrate/20130710233849_add_authored_at_to_commits.rb +0 -52
  453. data/db/migrate/20130711004558_downcase_commits_committer_emails.rb +0 -10
  454. data/db/migrate/20130711013156_link_commits_and_users.rb +0 -35
  455. data/db/migrate/20130806143651_link_commits_and_releases.rb +0 -18
  456. data/db/migrate/20130815232527_add_unreachable_to_commits.rb +0 -6
  457. data/db/migrate/20130914152419_rename_test_runs_commit_to_sha.rb +0 -9
  458. data/db/migrate/20130921141449_create_milestones.rb +0 -19
  459. data/db/migrate/20131002145620_add_destroyed_at_to_tickets.rb +0 -6
  460. data/db/migrate/20131003014023_add_destroyed_at_to_milestones.rb +0 -6
  461. data/db/migrate/20131004015452_add_resolution_to_tickets.rb +0 -6
  462. data/db/migrate/20131004185618_add_first_release_at_to_tickets.rb +0 -14
  463. data/db/migrate/20131012152403_create_sprints.rb +0 -15
  464. data/db/migrate/20131013185636_add_checked_out_to_tickets.rb +0 -6
  465. data/db/migrate/20131027214942_add_priority_to_tickets.rb +0 -5
  466. data/db/migrate/20131112010815_delete_duplicate_commits.rb +0 -33
  467. data/db/migrate/20131223194246_add_reopened_at_to_tickets.rb +0 -5
  468. data/db/migrate/20140114014144_add_deployer_to_deploys.rb +0 -5
  469. data/db/migrate/20140217195942_add_prerequisites_to_tickets.rb +0 -5
  470. data/db/migrate/20140327020121_drop_ticket_prerequisites.rb +0 -9
  471. data/db/migrate/20140401234330_add_index_to_ticket_queues.rb +0 -6
  472. data/db/migrate/20140406230121_delete_automatically_generated_messages_for_releases.rb +0 -12
  473. data/db/migrate/20140407010111_drop_sprints_project_id.rb +0 -9
  474. data/db/migrate/20140418133005_change_ticket_antecedents_to_text_array.rb +0 -9
  475. data/db/migrate/20140425141946_embed_changes_in_releases.rb +0 -19
  476. data/db/migrate/20140427235508_prevent_release_changes_from_being_null.rb +0 -6
  477. data/db/migrate/20140428023146_prevent_ticket_number_from_being_null.rb +0 -5
  478. data/db/migrate/20140506032958_add_locked_to_sprints.rb +0 -5
  479. data/db/migrate/20140515174322_create_tasks.rb +0 -20
  480. data/db/migrate/20140515200824_link_tasks_and_commits.rb +0 -8
  481. data/db/migrate/20140516012049_create_tasks_for_existing_tickets.rb +0 -33
  482. data/db/migrate/20140521014652_allow_task_descriptions_to_be_null.rb +0 -13
  483. data/db/migrate/20140526155845_add_commit_id_to_deploys.rb +0 -31
  484. data/db/migrate/20140526162645_add_commit_before_id_and_commit_after_id_to_releases.rb +0 -28
  485. data/db/migrate/20140526180608_associate_remaining_deploys_and_releases.rb +0 -60
  486. data/db/migrate/20140724231918_create_sprints_tasks.rb +0 -17
  487. data/db/migrate/20140806233301_add_position_to_milestones.rb +0 -5
  488. data/db/migrate/20140810224209_add_size_and_units_to_milestones.rb +0 -7
  489. data/db/migrate/20140824194031_add_project_id_to_tasks.rb +0 -11
  490. data/db/migrate/20140824194526_add_completed_at_to_tasks.rb +0 -20
  491. data/db/migrate/20140824211249_require_sprints_to_be_unique.rb +0 -9
  492. data/db/migrate/20140907012329_drop_table_changes.rb +0 -9
  493. data/db/migrate/20140921190022_add_checked_out_to_sprints_tasks.rb +0 -19
  494. data/db/migrate/20140925021043_rename_deploys_commit_to_sha.rb +0 -17
  495. data/db/migrate/20140929004347_create_historical_heads.rb +0 -23
  496. data/db/migrate/20141202004123_add_duration_to_deploys.rb +0 -5
  497. data/db/migrate/20150119154013_drop_unused_fields_from_milestones.rb +0 -13
  498. data/db/migrate/20150220215154_add_branch_to_deploys.rb +0 -5
  499. data/db/migrate/20150323004452_add_deploys_completed_at.rb +0 -10
  500. data/db/migrate/20150323011050_add_output_to_deploy.rb +0 -5
  501. data/db/migrate/20150805180939_add_commit_id_to_test_runs.rb +0 -30
  502. data/db/migrate/20150805233946_add_user_id_to_test_runs.rb +0 -23
  503. data/db/migrate/20150806032230_create_tests.rb +0 -33
  504. data/db/migrate/20150808161729_create_test_errors.rb +0 -10
  505. data/db/migrate/20150808161805_create_test_results.rb +0 -72
  506. data/db/migrate/20150808162928_index_test_runs_on_commit_id.rb +0 -5
  507. data/db/migrate/20150808192103_index_commits_on_sha.rb +0 -5
  508. data/db/migrate/20150808193354_add_parent_sha_to_commits.rb +0 -43
  509. data/db/migrate/20150809132417_rename_test_results_regression_to_difference.rb +0 -11
  510. data/db/migrate/20150809201942_add_compared_to_test_runs.rb +0 -5
  511. data/db/migrate/20150817232311_create_pull_requests.rb +0 -25
  512. data/db/migrate/20150820023708_add_labels_to_pull_requests.rb +0 -5
  513. data/db/migrate/20150902005758_downcase_environment_names.rb +0 -19
  514. data/db/migrate/20150902010629_add_user_id_to_deploys.rb +0 -5
  515. data/db/migrate/20150902010853_populate_deploys_user.rb +0 -13
  516. data/db/migrate/20150927014445_required_pull_requests_to_be_unique_by_project_and_number.rb +0 -13
  517. data/db/migrate/20151108221505_convert_pull_request_labels_to_array.rb +0 -22
  518. data/db/migrate/20151108223154_sync_body_also_for_pull_requests.rb +0 -5
  519. data/db/migrate/20151108233510_add_props_to_pull_requests.rb +0 -5
  520. data/db/migrate/20151205214647_add_avatar_url_to_pull_requests.rb +0 -5
  521. data/db/migrate/20151209004458_add_json_labels_to_pull_requests.rb +0 -5
  522. data/db/migrate/20151209030113_add_timestamps_to_pull_requests.rb +0 -6
  523. data/db/migrate/20151226154901_add_search_vector_to_releases.rb +0 -6
  524. data/db/migrate/20151226155305_generate_index_on_releases.rb +0 -5
  525. data/db/migrate/20160120145757_add_successful_to_deploys.rb +0 -10
  526. data/db/migrate/20160510233329_add_closed_at_and_merged_at_to_pull_requests.rb +0 -7
  527. data/lib/houston/boot/server.rb +0 -31
  528. data/support/award.ai +17 -4411
  529. data/support/badges.ai +17 -4623
  530. data/support/bugs-1.ai +1 -1364
  531. data/support/bugs-2.ai +0 -807
  532. data/support/chevron.ai +10 -4440
  533. data/support/favicon.psd +0 -0
  534. data/support/flask.ai +0 -387
  535. data/support/headings.ai +0 -394
  536. data/support/new-window-link-12.gif +0 -0
  537. data/support/newrelic.ai +0 -204
  538. data/support/newrelic.png +0 -0
  539. data/support/wrench.ai +16 -4393
  540. data/templates/new-instance/config/alerts/cves.rb +0 -14
  541. data/templates/new-instance/config/alerts/errs.rb +0 -30
  542. data/templates/new-instance/config/events/alerts/slack_when_assigned.rb +0 -23
  543. data/templates/new-instance/config/events/alerts/slack_when_opened.rb +0 -8
  544. data/templates/new-instance/config/events/daemons/health.rb +0 -21
  545. data/templates/new-instance/config/events/deploy/autoresolve_errs.rb +0 -11
  546. data/templates/new-instance/config/events/deploy/checkout_mentioned_alerts.rb +0 -5
  547. data/templates/new-instance/config/events/deploy/notify_deployer_when_finished.rb +0 -31
  548. data/templates/new-instance/config/events/github/publish_comments_on_slack.rb +0 -36
  549. data/templates/new-instance/config/events/tests/email_when_completed.rb +0 -11
  550. data/templates/new-instance/config/events/tests/slack_when_analyzed.rb +0 -27
  551. data/templates/new-instance/config/events/tests/slack_when_completed.rb +0 -38
  552. data/templates/new-instance/config/events/tickets/mark_tasks_completed_on_commit.rb +0 -7
  553. data/templates/new-instance/config/integrations/engineyard.rb +0 -4
  554. data/templates/new-instance/config/integrations/errbit.rb +0 -6
  555. data/templates/new-instance/config/integrations/gemnasium.rb +0 -2
  556. data/templates/new-instance/config/integrations/github.rb +0 -14
  557. data/templates/new-instance/config/integrations/jenkins.rb +0 -7
  558. data/templates/new-instance/config/integrations/ldap.rb +0 -9
  559. data/templates/new-instance/config/timers/cache_key_dependencies.rb +0 -3
  560. data/templates/new-instance/config/timers/email_about_open_alerts.rb +0 -5
  561. data/templates/new-instance/config/timers/slack_reminders_about_alerts.rb +0 -66
  562. data/templates/new-instance/config/timers/sync_commits.rb +0 -3
  563. data/templates/new-instance/config/timers/sync_pull_requests.rb +0 -3
  564. data/templates/new-instance/config/timers/sync_tickets.rb +0 -3
  565. data/templates/new-instance/lib/gemnasium-alert.rb +0 -25
  566. data/templates/new-instance/lib/slack_helpers.rb +0 -66
  567. data/templates/new-instance/lib/time_helpers.rb +0 -7
  568. data/templates/new-instance/public/images/emoji/+1.png +0 -0
  569. data/templates/new-instance/public/images/emoji/-1.png +0 -0
  570. data/templates/new-instance/public/images/emoji/100.png +0 -0
  571. data/templates/new-instance/public/images/emoji/1234.png +0 -0
  572. data/templates/new-instance/public/images/emoji/8ball.png +0 -0
  573. data/templates/new-instance/public/images/emoji/a.png +0 -0
  574. data/templates/new-instance/public/images/emoji/ab.png +0 -0
  575. data/templates/new-instance/public/images/emoji/abc.png +0 -0
  576. data/templates/new-instance/public/images/emoji/abcd.png +0 -0
  577. data/templates/new-instance/public/images/emoji/accept.png +0 -0
  578. data/templates/new-instance/public/images/emoji/aerial_tramway.png +0 -0
  579. data/templates/new-instance/public/images/emoji/airplane.png +0 -0
  580. data/templates/new-instance/public/images/emoji/alarm_clock.png +0 -0
  581. data/templates/new-instance/public/images/emoji/alien.png +0 -0
  582. data/templates/new-instance/public/images/emoji/ambulance.png +0 -0
  583. data/templates/new-instance/public/images/emoji/anchor.png +0 -0
  584. data/templates/new-instance/public/images/emoji/angel.png +0 -0
  585. data/templates/new-instance/public/images/emoji/anger.png +0 -0
  586. data/templates/new-instance/public/images/emoji/angry.png +0 -0
  587. data/templates/new-instance/public/images/emoji/anguished.png +0 -0
  588. data/templates/new-instance/public/images/emoji/ant.png +0 -0
  589. data/templates/new-instance/public/images/emoji/apple.png +0 -0
  590. data/templates/new-instance/public/images/emoji/aquarius.png +0 -0
  591. data/templates/new-instance/public/images/emoji/aries.png +0 -0
  592. data/templates/new-instance/public/images/emoji/arrow_backward.png +0 -0
  593. data/templates/new-instance/public/images/emoji/arrow_double_down.png +0 -0
  594. data/templates/new-instance/public/images/emoji/arrow_double_up.png +0 -0
  595. data/templates/new-instance/public/images/emoji/arrow_down.png +0 -0
  596. data/templates/new-instance/public/images/emoji/arrow_down_small.png +0 -0
  597. data/templates/new-instance/public/images/emoji/arrow_forward.png +0 -0
  598. data/templates/new-instance/public/images/emoji/arrow_heading_down.png +0 -0
  599. data/templates/new-instance/public/images/emoji/arrow_heading_up.png +0 -0
  600. data/templates/new-instance/public/images/emoji/arrow_left.png +0 -0
  601. data/templates/new-instance/public/images/emoji/arrow_lower_left.png +0 -0
  602. data/templates/new-instance/public/images/emoji/arrow_lower_right.png +0 -0
  603. data/templates/new-instance/public/images/emoji/arrow_right.png +0 -0
  604. data/templates/new-instance/public/images/emoji/arrow_right_hook.png +0 -0
  605. data/templates/new-instance/public/images/emoji/arrow_up.png +0 -0
  606. data/templates/new-instance/public/images/emoji/arrow_up_down.png +0 -0
  607. data/templates/new-instance/public/images/emoji/arrow_up_small.png +0 -0
  608. data/templates/new-instance/public/images/emoji/arrow_upper_left.png +0 -0
  609. data/templates/new-instance/public/images/emoji/arrow_upper_right.png +0 -0
  610. data/templates/new-instance/public/images/emoji/arrows_clockwise.png +0 -0
  611. data/templates/new-instance/public/images/emoji/arrows_counterclockwise.png +0 -0
  612. data/templates/new-instance/public/images/emoji/art.png +0 -0
  613. data/templates/new-instance/public/images/emoji/articulated_lorry.png +0 -0
  614. data/templates/new-instance/public/images/emoji/astonished.png +0 -0
  615. data/templates/new-instance/public/images/emoji/athletic_shoe.png +0 -0
  616. data/templates/new-instance/public/images/emoji/atm.png +0 -0
  617. data/templates/new-instance/public/images/emoji/b.png +0 -0
  618. data/templates/new-instance/public/images/emoji/baby.png +0 -0
  619. data/templates/new-instance/public/images/emoji/baby_bottle.png +0 -0
  620. data/templates/new-instance/public/images/emoji/baby_chick.png +0 -0
  621. data/templates/new-instance/public/images/emoji/baby_symbol.png +0 -0
  622. data/templates/new-instance/public/images/emoji/back.png +0 -0
  623. data/templates/new-instance/public/images/emoji/baggage_claim.png +0 -0
  624. data/templates/new-instance/public/images/emoji/balloon.png +0 -0
  625. data/templates/new-instance/public/images/emoji/ballot_box_with_check.png +0 -0
  626. data/templates/new-instance/public/images/emoji/bamboo.png +0 -0
  627. data/templates/new-instance/public/images/emoji/banana.png +0 -0
  628. data/templates/new-instance/public/images/emoji/bangbang.png +0 -0
  629. data/templates/new-instance/public/images/emoji/bank.png +0 -0
  630. data/templates/new-instance/public/images/emoji/bar_chart.png +0 -0
  631. data/templates/new-instance/public/images/emoji/barber.png +0 -0
  632. data/templates/new-instance/public/images/emoji/baseball.png +0 -0
  633. data/templates/new-instance/public/images/emoji/basketball.png +0 -0
  634. data/templates/new-instance/public/images/emoji/bath.png +0 -0
  635. data/templates/new-instance/public/images/emoji/bathtub.png +0 -0
  636. data/templates/new-instance/public/images/emoji/battery.png +0 -0
  637. data/templates/new-instance/public/images/emoji/bear.png +0 -0
  638. data/templates/new-instance/public/images/emoji/bee.png +0 -0
  639. data/templates/new-instance/public/images/emoji/beer.png +0 -0
  640. data/templates/new-instance/public/images/emoji/beers.png +0 -0
  641. data/templates/new-instance/public/images/emoji/beetle.png +0 -0
  642. data/templates/new-instance/public/images/emoji/beginner.png +0 -0
  643. data/templates/new-instance/public/images/emoji/bell.png +0 -0
  644. data/templates/new-instance/public/images/emoji/bento.png +0 -0
  645. data/templates/new-instance/public/images/emoji/bicyclist.png +0 -0
  646. data/templates/new-instance/public/images/emoji/bike.png +0 -0
  647. data/templates/new-instance/public/images/emoji/bikini.png +0 -0
  648. data/templates/new-instance/public/images/emoji/bird.png +0 -0
  649. data/templates/new-instance/public/images/emoji/birthday.png +0 -0
  650. data/templates/new-instance/public/images/emoji/black_circle.png +0 -0
  651. data/templates/new-instance/public/images/emoji/black_joker.png +0 -0
  652. data/templates/new-instance/public/images/emoji/black_large_square.png +0 -0
  653. data/templates/new-instance/public/images/emoji/black_medium_small_square.png +0 -0
  654. data/templates/new-instance/public/images/emoji/black_medium_square.png +0 -0
  655. data/templates/new-instance/public/images/emoji/black_nib.png +0 -0
  656. data/templates/new-instance/public/images/emoji/black_small_square.png +0 -0
  657. data/templates/new-instance/public/images/emoji/black_square_button.png +0 -0
  658. data/templates/new-instance/public/images/emoji/blossom.png +0 -0
  659. data/templates/new-instance/public/images/emoji/blowfish.png +0 -0
  660. data/templates/new-instance/public/images/emoji/blue_book.png +0 -0
  661. data/templates/new-instance/public/images/emoji/blue_car.png +0 -0
  662. data/templates/new-instance/public/images/emoji/blue_heart.png +0 -0
  663. data/templates/new-instance/public/images/emoji/blush.png +0 -0
  664. data/templates/new-instance/public/images/emoji/boar.png +0 -0
  665. data/templates/new-instance/public/images/emoji/boat.png +0 -0
  666. data/templates/new-instance/public/images/emoji/bomb.png +0 -0
  667. data/templates/new-instance/public/images/emoji/book.png +0 -0
  668. data/templates/new-instance/public/images/emoji/bookmark.png +0 -0
  669. data/templates/new-instance/public/images/emoji/bookmark_tabs.png +0 -0
  670. data/templates/new-instance/public/images/emoji/books.png +0 -0
  671. data/templates/new-instance/public/images/emoji/boom.png +0 -0
  672. data/templates/new-instance/public/images/emoji/boot.png +0 -0
  673. data/templates/new-instance/public/images/emoji/bouquet.png +0 -0
  674. data/templates/new-instance/public/images/emoji/bow.png +0 -0
  675. data/templates/new-instance/public/images/emoji/bowling.png +0 -0
  676. data/templates/new-instance/public/images/emoji/bowtie.png +0 -0
  677. data/templates/new-instance/public/images/emoji/boy.png +0 -0
  678. data/templates/new-instance/public/images/emoji/bread.png +0 -0
  679. data/templates/new-instance/public/images/emoji/bride_with_veil.png +0 -0
  680. data/templates/new-instance/public/images/emoji/bridge_at_night.png +0 -0
  681. data/templates/new-instance/public/images/emoji/briefcase.png +0 -0
  682. data/templates/new-instance/public/images/emoji/broken_heart.png +0 -0
  683. data/templates/new-instance/public/images/emoji/bug.png +0 -0
  684. data/templates/new-instance/public/images/emoji/bulb.png +0 -0
  685. data/templates/new-instance/public/images/emoji/bullettrain_front.png +0 -0
  686. data/templates/new-instance/public/images/emoji/bullettrain_side.png +0 -0
  687. data/templates/new-instance/public/images/emoji/bus.png +0 -0
  688. data/templates/new-instance/public/images/emoji/busstop.png +0 -0
  689. data/templates/new-instance/public/images/emoji/bust_in_silhouette.png +0 -0
  690. data/templates/new-instance/public/images/emoji/busts_in_silhouette.png +0 -0
  691. data/templates/new-instance/public/images/emoji/cactus.png +0 -0
  692. data/templates/new-instance/public/images/emoji/cake.png +0 -0
  693. data/templates/new-instance/public/images/emoji/calendar.png +0 -0
  694. data/templates/new-instance/public/images/emoji/calling.png +0 -0
  695. data/templates/new-instance/public/images/emoji/camel.png +0 -0
  696. data/templates/new-instance/public/images/emoji/camera.png +0 -0
  697. data/templates/new-instance/public/images/emoji/cancer.png +0 -0
  698. data/templates/new-instance/public/images/emoji/candy.png +0 -0
  699. data/templates/new-instance/public/images/emoji/capital_abcd.png +0 -0
  700. data/templates/new-instance/public/images/emoji/capricorn.png +0 -0
  701. data/templates/new-instance/public/images/emoji/car.png +0 -0
  702. data/templates/new-instance/public/images/emoji/card_index.png +0 -0
  703. data/templates/new-instance/public/images/emoji/carousel_horse.png +0 -0
  704. data/templates/new-instance/public/images/emoji/cat.png +0 -0
  705. data/templates/new-instance/public/images/emoji/cat2.png +0 -0
  706. data/templates/new-instance/public/images/emoji/cd.png +0 -0
  707. data/templates/new-instance/public/images/emoji/chart.png +0 -0
  708. data/templates/new-instance/public/images/emoji/chart_with_downwards_trend.png +0 -0
  709. data/templates/new-instance/public/images/emoji/chart_with_upwards_trend.png +0 -0
  710. data/templates/new-instance/public/images/emoji/checkered_flag.png +0 -0
  711. data/templates/new-instance/public/images/emoji/cherries.png +0 -0
  712. data/templates/new-instance/public/images/emoji/cherry_blossom.png +0 -0
  713. data/templates/new-instance/public/images/emoji/chestnut.png +0 -0
  714. data/templates/new-instance/public/images/emoji/chicken.png +0 -0
  715. data/templates/new-instance/public/images/emoji/children_crossing.png +0 -0
  716. data/templates/new-instance/public/images/emoji/chocolate_bar.png +0 -0
  717. data/templates/new-instance/public/images/emoji/christmas_tree.png +0 -0
  718. data/templates/new-instance/public/images/emoji/church.png +0 -0
  719. data/templates/new-instance/public/images/emoji/cinema.png +0 -0
  720. data/templates/new-instance/public/images/emoji/circus_tent.png +0 -0
  721. data/templates/new-instance/public/images/emoji/city_sunrise.png +0 -0
  722. data/templates/new-instance/public/images/emoji/city_sunset.png +0 -0
  723. data/templates/new-instance/public/images/emoji/cl.png +0 -0
  724. data/templates/new-instance/public/images/emoji/clap.png +0 -0
  725. data/templates/new-instance/public/images/emoji/clapper.png +0 -0
  726. data/templates/new-instance/public/images/emoji/clipboard.png +0 -0
  727. data/templates/new-instance/public/images/emoji/clock1.png +0 -0
  728. data/templates/new-instance/public/images/emoji/clock10.png +0 -0
  729. data/templates/new-instance/public/images/emoji/clock1030.png +0 -0
  730. data/templates/new-instance/public/images/emoji/clock11.png +0 -0
  731. data/templates/new-instance/public/images/emoji/clock1130.png +0 -0
  732. data/templates/new-instance/public/images/emoji/clock12.png +0 -0
  733. data/templates/new-instance/public/images/emoji/clock1230.png +0 -0
  734. data/templates/new-instance/public/images/emoji/clock130.png +0 -0
  735. data/templates/new-instance/public/images/emoji/clock2.png +0 -0
  736. data/templates/new-instance/public/images/emoji/clock230.png +0 -0
  737. data/templates/new-instance/public/images/emoji/clock3.png +0 -0
  738. data/templates/new-instance/public/images/emoji/clock330.png +0 -0
  739. data/templates/new-instance/public/images/emoji/clock4.png +0 -0
  740. data/templates/new-instance/public/images/emoji/clock430.png +0 -0
  741. data/templates/new-instance/public/images/emoji/clock5.png +0 -0
  742. data/templates/new-instance/public/images/emoji/clock530.png +0 -0
  743. data/templates/new-instance/public/images/emoji/clock6.png +0 -0
  744. data/templates/new-instance/public/images/emoji/clock630.png +0 -0
  745. data/templates/new-instance/public/images/emoji/clock7.png +0 -0
  746. data/templates/new-instance/public/images/emoji/clock730.png +0 -0
  747. data/templates/new-instance/public/images/emoji/clock8.png +0 -0
  748. data/templates/new-instance/public/images/emoji/clock830.png +0 -0
  749. data/templates/new-instance/public/images/emoji/clock9.png +0 -0
  750. data/templates/new-instance/public/images/emoji/clock930.png +0 -0
  751. data/templates/new-instance/public/images/emoji/closed_book.png +0 -0
  752. data/templates/new-instance/public/images/emoji/closed_lock_with_key.png +0 -0
  753. data/templates/new-instance/public/images/emoji/closed_umbrella.png +0 -0
  754. data/templates/new-instance/public/images/emoji/cloud.png +0 -0
  755. data/templates/new-instance/public/images/emoji/clubs.png +0 -0
  756. data/templates/new-instance/public/images/emoji/cn.png +0 -0
  757. data/templates/new-instance/public/images/emoji/cocktail.png +0 -0
  758. data/templates/new-instance/public/images/emoji/coffee.png +0 -0
  759. data/templates/new-instance/public/images/emoji/cold_sweat.png +0 -0
  760. data/templates/new-instance/public/images/emoji/collision.png +0 -0
  761. data/templates/new-instance/public/images/emoji/computer.png +0 -0
  762. data/templates/new-instance/public/images/emoji/confetti_ball.png +0 -0
  763. data/templates/new-instance/public/images/emoji/confounded.png +0 -0
  764. data/templates/new-instance/public/images/emoji/confused.png +0 -0
  765. data/templates/new-instance/public/images/emoji/congratulations.png +0 -0
  766. data/templates/new-instance/public/images/emoji/construction.png +0 -0
  767. data/templates/new-instance/public/images/emoji/construction_worker.png +0 -0
  768. data/templates/new-instance/public/images/emoji/convenience_store.png +0 -0
  769. data/templates/new-instance/public/images/emoji/cookie.png +0 -0
  770. data/templates/new-instance/public/images/emoji/cool.png +0 -0
  771. data/templates/new-instance/public/images/emoji/cop.png +0 -0
  772. data/templates/new-instance/public/images/emoji/copyright.png +0 -0
  773. data/templates/new-instance/public/images/emoji/corn.png +0 -0
  774. data/templates/new-instance/public/images/emoji/couple.png +0 -0
  775. data/templates/new-instance/public/images/emoji/couple_with_heart.png +0 -0
  776. data/templates/new-instance/public/images/emoji/couplekiss.png +0 -0
  777. data/templates/new-instance/public/images/emoji/cow.png +0 -0
  778. data/templates/new-instance/public/images/emoji/cow2.png +0 -0
  779. data/templates/new-instance/public/images/emoji/credit_card.png +0 -0
  780. data/templates/new-instance/public/images/emoji/crescent_moon.png +0 -0
  781. data/templates/new-instance/public/images/emoji/crocodile.png +0 -0
  782. data/templates/new-instance/public/images/emoji/crossed_flags.png +0 -0
  783. data/templates/new-instance/public/images/emoji/crown.png +0 -0
  784. data/templates/new-instance/public/images/emoji/cry.png +0 -0
  785. data/templates/new-instance/public/images/emoji/crying_cat_face.png +0 -0
  786. data/templates/new-instance/public/images/emoji/crystal_ball.png +0 -0
  787. data/templates/new-instance/public/images/emoji/cupid.png +0 -0
  788. data/templates/new-instance/public/images/emoji/curly_loop.png +0 -0
  789. data/templates/new-instance/public/images/emoji/currency_exchange.png +0 -0
  790. data/templates/new-instance/public/images/emoji/curry.png +0 -0
  791. data/templates/new-instance/public/images/emoji/custard.png +0 -0
  792. data/templates/new-instance/public/images/emoji/customs.png +0 -0
  793. data/templates/new-instance/public/images/emoji/cyclone.png +0 -0
  794. data/templates/new-instance/public/images/emoji/dancer.png +0 -0
  795. data/templates/new-instance/public/images/emoji/dancers.png +0 -0
  796. data/templates/new-instance/public/images/emoji/dango.png +0 -0
  797. data/templates/new-instance/public/images/emoji/dart.png +0 -0
  798. data/templates/new-instance/public/images/emoji/dash.png +0 -0
  799. data/templates/new-instance/public/images/emoji/date.png +0 -0
  800. data/templates/new-instance/public/images/emoji/de.png +0 -0
  801. data/templates/new-instance/public/images/emoji/deciduous_tree.png +0 -0
  802. data/templates/new-instance/public/images/emoji/department_store.png +0 -0
  803. data/templates/new-instance/public/images/emoji/diamond_shape_with_a_dot_inside.png +0 -0
  804. data/templates/new-instance/public/images/emoji/diamonds.png +0 -0
  805. data/templates/new-instance/public/images/emoji/disappointed.png +0 -0
  806. data/templates/new-instance/public/images/emoji/disappointed_relieved.png +0 -0
  807. data/templates/new-instance/public/images/emoji/dizzy.png +0 -0
  808. data/templates/new-instance/public/images/emoji/dizzy_face.png +0 -0
  809. data/templates/new-instance/public/images/emoji/do_not_litter.png +0 -0
  810. data/templates/new-instance/public/images/emoji/dog.png +0 -0
  811. data/templates/new-instance/public/images/emoji/dog2.png +0 -0
  812. data/templates/new-instance/public/images/emoji/dollar.png +0 -0
  813. data/templates/new-instance/public/images/emoji/dolls.png +0 -0
  814. data/templates/new-instance/public/images/emoji/dolphin.png +0 -0
  815. data/templates/new-instance/public/images/emoji/door.png +0 -0
  816. data/templates/new-instance/public/images/emoji/doughnut.png +0 -0
  817. data/templates/new-instance/public/images/emoji/dragon.png +0 -0
  818. data/templates/new-instance/public/images/emoji/dragon_face.png +0 -0
  819. data/templates/new-instance/public/images/emoji/dress.png +0 -0
  820. data/templates/new-instance/public/images/emoji/dromedary_camel.png +0 -0
  821. data/templates/new-instance/public/images/emoji/droplet.png +0 -0
  822. data/templates/new-instance/public/images/emoji/dvd.png +0 -0
  823. data/templates/new-instance/public/images/emoji/e-mail.png +0 -0
  824. data/templates/new-instance/public/images/emoji/ear.png +0 -0
  825. data/templates/new-instance/public/images/emoji/ear_of_rice.png +0 -0
  826. data/templates/new-instance/public/images/emoji/earth_africa.png +0 -0
  827. data/templates/new-instance/public/images/emoji/earth_americas.png +0 -0
  828. data/templates/new-instance/public/images/emoji/earth_asia.png +0 -0
  829. data/templates/new-instance/public/images/emoji/egg.png +0 -0
  830. data/templates/new-instance/public/images/emoji/eggplant.png +0 -0
  831. data/templates/new-instance/public/images/emoji/eight.png +0 -0
  832. data/templates/new-instance/public/images/emoji/eight_pointed_black_star.png +0 -0
  833. data/templates/new-instance/public/images/emoji/eight_spoked_asterisk.png +0 -0
  834. data/templates/new-instance/public/images/emoji/electric_plug.png +0 -0
  835. data/templates/new-instance/public/images/emoji/elephant.png +0 -0
  836. data/templates/new-instance/public/images/emoji/email.png +0 -0
  837. data/templates/new-instance/public/images/emoji/end.png +0 -0
  838. data/templates/new-instance/public/images/emoji/envelope.png +0 -0
  839. data/templates/new-instance/public/images/emoji/envelope_with_arrow.png +0 -0
  840. data/templates/new-instance/public/images/emoji/es.png +0 -0
  841. data/templates/new-instance/public/images/emoji/euro.png +0 -0
  842. data/templates/new-instance/public/images/emoji/european_castle.png +0 -0
  843. data/templates/new-instance/public/images/emoji/european_post_office.png +0 -0
  844. data/templates/new-instance/public/images/emoji/evergreen_tree.png +0 -0
  845. data/templates/new-instance/public/images/emoji/exclamation.png +0 -0
  846. data/templates/new-instance/public/images/emoji/expressionless.png +0 -0
  847. data/templates/new-instance/public/images/emoji/eyeglasses.png +0 -0
  848. data/templates/new-instance/public/images/emoji/eyes.png +0 -0
  849. data/templates/new-instance/public/images/emoji/facepunch.png +0 -0
  850. data/templates/new-instance/public/images/emoji/factory.png +0 -0
  851. data/templates/new-instance/public/images/emoji/fallen_leaf.png +0 -0
  852. data/templates/new-instance/public/images/emoji/family.png +0 -0
  853. data/templates/new-instance/public/images/emoji/fast_forward.png +0 -0
  854. data/templates/new-instance/public/images/emoji/fax.png +0 -0
  855. data/templates/new-instance/public/images/emoji/fearful.png +0 -0
  856. data/templates/new-instance/public/images/emoji/feelsgood.png +0 -0
  857. data/templates/new-instance/public/images/emoji/feet.png +0 -0
  858. data/templates/new-instance/public/images/emoji/ferris_wheel.png +0 -0
  859. data/templates/new-instance/public/images/emoji/file_folder.png +0 -0
  860. data/templates/new-instance/public/images/emoji/finnadie.png +0 -0
  861. data/templates/new-instance/public/images/emoji/fire.png +0 -0
  862. data/templates/new-instance/public/images/emoji/fire_engine.png +0 -0
  863. data/templates/new-instance/public/images/emoji/fireworks.png +0 -0
  864. data/templates/new-instance/public/images/emoji/first_quarter_moon.png +0 -0
  865. data/templates/new-instance/public/images/emoji/first_quarter_moon_with_face.png +0 -0
  866. data/templates/new-instance/public/images/emoji/fish.png +0 -0
  867. data/templates/new-instance/public/images/emoji/fish_cake.png +0 -0
  868. data/templates/new-instance/public/images/emoji/fishing_pole_and_fish.png +0 -0
  869. data/templates/new-instance/public/images/emoji/fist.png +0 -0
  870. data/templates/new-instance/public/images/emoji/five.png +0 -0
  871. data/templates/new-instance/public/images/emoji/flags.png +0 -0
  872. data/templates/new-instance/public/images/emoji/flashlight.png +0 -0
  873. data/templates/new-instance/public/images/emoji/floppy_disk.png +0 -0
  874. data/templates/new-instance/public/images/emoji/flower_playing_cards.png +0 -0
  875. data/templates/new-instance/public/images/emoji/flushed.png +0 -0
  876. data/templates/new-instance/public/images/emoji/foggy.png +0 -0
  877. data/templates/new-instance/public/images/emoji/football.png +0 -0
  878. data/templates/new-instance/public/images/emoji/footprints.png +0 -0
  879. data/templates/new-instance/public/images/emoji/fork_and_knife.png +0 -0
  880. data/templates/new-instance/public/images/emoji/fountain.png +0 -0
  881. data/templates/new-instance/public/images/emoji/four.png +0 -0
  882. data/templates/new-instance/public/images/emoji/four_leaf_clover.png +0 -0
  883. data/templates/new-instance/public/images/emoji/fr.png +0 -0
  884. data/templates/new-instance/public/images/emoji/free.png +0 -0
  885. data/templates/new-instance/public/images/emoji/fried_shrimp.png +0 -0
  886. data/templates/new-instance/public/images/emoji/fries.png +0 -0
  887. data/templates/new-instance/public/images/emoji/frog.png +0 -0
  888. data/templates/new-instance/public/images/emoji/frowning.png +0 -0
  889. data/templates/new-instance/public/images/emoji/fu.png +0 -0
  890. data/templates/new-instance/public/images/emoji/fuelpump.png +0 -0
  891. data/templates/new-instance/public/images/emoji/full_moon.png +0 -0
  892. data/templates/new-instance/public/images/emoji/full_moon_with_face.png +0 -0
  893. data/templates/new-instance/public/images/emoji/game_die.png +0 -0
  894. data/templates/new-instance/public/images/emoji/gb.png +0 -0
  895. data/templates/new-instance/public/images/emoji/gem.png +0 -0
  896. data/templates/new-instance/public/images/emoji/gemini.png +0 -0
  897. data/templates/new-instance/public/images/emoji/ghost.png +0 -0
  898. data/templates/new-instance/public/images/emoji/gift.png +0 -0
  899. data/templates/new-instance/public/images/emoji/gift_heart.png +0 -0
  900. data/templates/new-instance/public/images/emoji/girl.png +0 -0
  901. data/templates/new-instance/public/images/emoji/globe_with_meridians.png +0 -0
  902. data/templates/new-instance/public/images/emoji/goat.png +0 -0
  903. data/templates/new-instance/public/images/emoji/goberserk.png +0 -0
  904. data/templates/new-instance/public/images/emoji/godmode.png +0 -0
  905. data/templates/new-instance/public/images/emoji/golf.png +0 -0
  906. data/templates/new-instance/public/images/emoji/grapes.png +0 -0
  907. data/templates/new-instance/public/images/emoji/green_apple.png +0 -0
  908. data/templates/new-instance/public/images/emoji/green_book.png +0 -0
  909. data/templates/new-instance/public/images/emoji/green_heart.png +0 -0
  910. data/templates/new-instance/public/images/emoji/grey_exclamation.png +0 -0
  911. data/templates/new-instance/public/images/emoji/grey_question.png +0 -0
  912. data/templates/new-instance/public/images/emoji/grimacing.png +0 -0
  913. data/templates/new-instance/public/images/emoji/grin.png +0 -0
  914. data/templates/new-instance/public/images/emoji/grinning.png +0 -0
  915. data/templates/new-instance/public/images/emoji/guardsman.png +0 -0
  916. data/templates/new-instance/public/images/emoji/guitar.png +0 -0
  917. data/templates/new-instance/public/images/emoji/gun.png +0 -0
  918. data/templates/new-instance/public/images/emoji/haircut.png +0 -0
  919. data/templates/new-instance/public/images/emoji/hamburger.png +0 -0
  920. data/templates/new-instance/public/images/emoji/hammer.png +0 -0
  921. data/templates/new-instance/public/images/emoji/hamster.png +0 -0
  922. data/templates/new-instance/public/images/emoji/hand.png +0 -0
  923. data/templates/new-instance/public/images/emoji/handbag.png +0 -0
  924. data/templates/new-instance/public/images/emoji/hankey.png +0 -0
  925. data/templates/new-instance/public/images/emoji/hash.png +0 -0
  926. data/templates/new-instance/public/images/emoji/hatched_chick.png +0 -0
  927. data/templates/new-instance/public/images/emoji/hatching_chick.png +0 -0
  928. data/templates/new-instance/public/images/emoji/headphones.png +0 -0
  929. data/templates/new-instance/public/images/emoji/hear_no_evil.png +0 -0
  930. data/templates/new-instance/public/images/emoji/heart.png +0 -0
  931. data/templates/new-instance/public/images/emoji/heart_decoration.png +0 -0
  932. data/templates/new-instance/public/images/emoji/heart_eyes.png +0 -0
  933. data/templates/new-instance/public/images/emoji/heart_eyes_cat.png +0 -0
  934. data/templates/new-instance/public/images/emoji/heartbeat.png +0 -0
  935. data/templates/new-instance/public/images/emoji/heartpulse.png +0 -0
  936. data/templates/new-instance/public/images/emoji/hearts.png +0 -0
  937. data/templates/new-instance/public/images/emoji/heavy_check_mark.png +0 -0
  938. data/templates/new-instance/public/images/emoji/heavy_division_sign.png +0 -0
  939. data/templates/new-instance/public/images/emoji/heavy_dollar_sign.png +0 -0
  940. data/templates/new-instance/public/images/emoji/heavy_exclamation_mark.png +0 -0
  941. data/templates/new-instance/public/images/emoji/heavy_minus_sign.png +0 -0
  942. data/templates/new-instance/public/images/emoji/heavy_multiplication_x.png +0 -0
  943. data/templates/new-instance/public/images/emoji/heavy_plus_sign.png +0 -0
  944. data/templates/new-instance/public/images/emoji/helicopter.png +0 -0
  945. data/templates/new-instance/public/images/emoji/herb.png +0 -0
  946. data/templates/new-instance/public/images/emoji/hibiscus.png +0 -0
  947. data/templates/new-instance/public/images/emoji/high_brightness.png +0 -0
  948. data/templates/new-instance/public/images/emoji/high_heel.png +0 -0
  949. data/templates/new-instance/public/images/emoji/hocho.png +0 -0
  950. data/templates/new-instance/public/images/emoji/honey_pot.png +0 -0
  951. data/templates/new-instance/public/images/emoji/honeybee.png +0 -0
  952. data/templates/new-instance/public/images/emoji/horse.png +0 -0
  953. data/templates/new-instance/public/images/emoji/horse_racing.png +0 -0
  954. data/templates/new-instance/public/images/emoji/hospital.png +0 -0
  955. data/templates/new-instance/public/images/emoji/hotel.png +0 -0
  956. data/templates/new-instance/public/images/emoji/hotsprings.png +0 -0
  957. data/templates/new-instance/public/images/emoji/hourglass.png +0 -0
  958. data/templates/new-instance/public/images/emoji/hourglass_flowing_sand.png +0 -0
  959. data/templates/new-instance/public/images/emoji/house.png +0 -0
  960. data/templates/new-instance/public/images/emoji/house_with_garden.png +0 -0
  961. data/templates/new-instance/public/images/emoji/hurtrealbad.png +0 -0
  962. data/templates/new-instance/public/images/emoji/hushed.png +0 -0
  963. data/templates/new-instance/public/images/emoji/ice_cream.png +0 -0
  964. data/templates/new-instance/public/images/emoji/icecream.png +0 -0
  965. data/templates/new-instance/public/images/emoji/id.png +0 -0
  966. data/templates/new-instance/public/images/emoji/ideograph_advantage.png +0 -0
  967. data/templates/new-instance/public/images/emoji/imp.png +0 -0
  968. data/templates/new-instance/public/images/emoji/inbox_tray.png +0 -0
  969. data/templates/new-instance/public/images/emoji/incoming_envelope.png +0 -0
  970. data/templates/new-instance/public/images/emoji/information_desk_person.png +0 -0
  971. data/templates/new-instance/public/images/emoji/information_source.png +0 -0
  972. data/templates/new-instance/public/images/emoji/innocent.png +0 -0
  973. data/templates/new-instance/public/images/emoji/interrobang.png +0 -0
  974. data/templates/new-instance/public/images/emoji/iphone.png +0 -0
  975. data/templates/new-instance/public/images/emoji/it.png +0 -0
  976. data/templates/new-instance/public/images/emoji/izakaya_lantern.png +0 -0
  977. data/templates/new-instance/public/images/emoji/jack_o_lantern.png +0 -0
  978. data/templates/new-instance/public/images/emoji/japan.png +0 -0
  979. data/templates/new-instance/public/images/emoji/japanese_castle.png +0 -0
  980. data/templates/new-instance/public/images/emoji/japanese_goblin.png +0 -0
  981. data/templates/new-instance/public/images/emoji/japanese_ogre.png +0 -0
  982. data/templates/new-instance/public/images/emoji/jeans.png +0 -0
  983. data/templates/new-instance/public/images/emoji/joy.png +0 -0
  984. data/templates/new-instance/public/images/emoji/joy_cat.png +0 -0
  985. data/templates/new-instance/public/images/emoji/jp.png +0 -0
  986. data/templates/new-instance/public/images/emoji/key.png +0 -0
  987. data/templates/new-instance/public/images/emoji/keycap_ten.png +0 -0
  988. data/templates/new-instance/public/images/emoji/kimono.png +0 -0
  989. data/templates/new-instance/public/images/emoji/kiss.png +0 -0
  990. data/templates/new-instance/public/images/emoji/kissing.png +0 -0
  991. data/templates/new-instance/public/images/emoji/kissing_cat.png +0 -0
  992. data/templates/new-instance/public/images/emoji/kissing_closed_eyes.png +0 -0
  993. data/templates/new-instance/public/images/emoji/kissing_heart.png +0 -0
  994. data/templates/new-instance/public/images/emoji/kissing_smiling_eyes.png +0 -0
  995. data/templates/new-instance/public/images/emoji/koala.png +0 -0
  996. data/templates/new-instance/public/images/emoji/koko.png +0 -0
  997. data/templates/new-instance/public/images/emoji/kr.png +0 -0
  998. data/templates/new-instance/public/images/emoji/lantern.png +0 -0
  999. data/templates/new-instance/public/images/emoji/large_blue_circle.png +0 -0
  1000. data/templates/new-instance/public/images/emoji/large_blue_diamond.png +0 -0
  1001. data/templates/new-instance/public/images/emoji/large_orange_diamond.png +0 -0
  1002. data/templates/new-instance/public/images/emoji/last_quarter_moon.png +0 -0
  1003. data/templates/new-instance/public/images/emoji/last_quarter_moon_with_face.png +0 -0
  1004. data/templates/new-instance/public/images/emoji/laughing.png +0 -0
  1005. data/templates/new-instance/public/images/emoji/leaves.png +0 -0
  1006. data/templates/new-instance/public/images/emoji/ledger.png +0 -0
  1007. data/templates/new-instance/public/images/emoji/left_luggage.png +0 -0
  1008. data/templates/new-instance/public/images/emoji/left_right_arrow.png +0 -0
  1009. data/templates/new-instance/public/images/emoji/leftwards_arrow_with_hook.png +0 -0
  1010. data/templates/new-instance/public/images/emoji/lemon.png +0 -0
  1011. data/templates/new-instance/public/images/emoji/leo.png +0 -0
  1012. data/templates/new-instance/public/images/emoji/leopard.png +0 -0
  1013. data/templates/new-instance/public/images/emoji/libra.png +0 -0
  1014. data/templates/new-instance/public/images/emoji/light_rail.png +0 -0
  1015. data/templates/new-instance/public/images/emoji/link.png +0 -0
  1016. data/templates/new-instance/public/images/emoji/lips.png +0 -0
  1017. data/templates/new-instance/public/images/emoji/lipstick.png +0 -0
  1018. data/templates/new-instance/public/images/emoji/lock.png +0 -0
  1019. data/templates/new-instance/public/images/emoji/lock_with_ink_pen.png +0 -0
  1020. data/templates/new-instance/public/images/emoji/lollipop.png +0 -0
  1021. data/templates/new-instance/public/images/emoji/loop.png +0 -0
  1022. data/templates/new-instance/public/images/emoji/loudspeaker.png +0 -0
  1023. data/templates/new-instance/public/images/emoji/love_hotel.png +0 -0
  1024. data/templates/new-instance/public/images/emoji/love_letter.png +0 -0
  1025. data/templates/new-instance/public/images/emoji/low_brightness.png +0 -0
  1026. data/templates/new-instance/public/images/emoji/m.png +0 -0
  1027. data/templates/new-instance/public/images/emoji/mag.png +0 -0
  1028. data/templates/new-instance/public/images/emoji/mag_right.png +0 -0
  1029. data/templates/new-instance/public/images/emoji/mahjong.png +0 -0
  1030. data/templates/new-instance/public/images/emoji/mailbox.png +0 -0
  1031. data/templates/new-instance/public/images/emoji/mailbox_closed.png +0 -0
  1032. data/templates/new-instance/public/images/emoji/mailbox_with_mail.png +0 -0
  1033. data/templates/new-instance/public/images/emoji/mailbox_with_no_mail.png +0 -0
  1034. data/templates/new-instance/public/images/emoji/man.png +0 -0
  1035. data/templates/new-instance/public/images/emoji/man_with_gua_pi_mao.png +0 -0
  1036. data/templates/new-instance/public/images/emoji/man_with_turban.png +0 -0
  1037. data/templates/new-instance/public/images/emoji/mans_shoe.png +0 -0
  1038. data/templates/new-instance/public/images/emoji/maple_leaf.png +0 -0
  1039. data/templates/new-instance/public/images/emoji/mask.png +0 -0
  1040. data/templates/new-instance/public/images/emoji/massage.png +0 -0
  1041. data/templates/new-instance/public/images/emoji/meat_on_bone.png +0 -0
  1042. data/templates/new-instance/public/images/emoji/mega.png +0 -0
  1043. data/templates/new-instance/public/images/emoji/melon.png +0 -0
  1044. data/templates/new-instance/public/images/emoji/memo.png +0 -0
  1045. data/templates/new-instance/public/images/emoji/mens.png +0 -0
  1046. data/templates/new-instance/public/images/emoji/metal.png +0 -0
  1047. data/templates/new-instance/public/images/emoji/metro.png +0 -0
  1048. data/templates/new-instance/public/images/emoji/microphone.png +0 -0
  1049. data/templates/new-instance/public/images/emoji/microscope.png +0 -0
  1050. data/templates/new-instance/public/images/emoji/milky_way.png +0 -0
  1051. data/templates/new-instance/public/images/emoji/minibus.png +0 -0
  1052. data/templates/new-instance/public/images/emoji/minidisc.png +0 -0
  1053. data/templates/new-instance/public/images/emoji/mobile_phone_off.png +0 -0
  1054. data/templates/new-instance/public/images/emoji/money_with_wings.png +0 -0
  1055. data/templates/new-instance/public/images/emoji/moneybag.png +0 -0
  1056. data/templates/new-instance/public/images/emoji/monkey.png +0 -0
  1057. data/templates/new-instance/public/images/emoji/monkey_face.png +0 -0
  1058. data/templates/new-instance/public/images/emoji/monorail.png +0 -0
  1059. data/templates/new-instance/public/images/emoji/moon.png +0 -0
  1060. data/templates/new-instance/public/images/emoji/mortar_board.png +0 -0
  1061. data/templates/new-instance/public/images/emoji/mount_fuji.png +0 -0
  1062. data/templates/new-instance/public/images/emoji/mountain_bicyclist.png +0 -0
  1063. data/templates/new-instance/public/images/emoji/mountain_cableway.png +0 -0
  1064. data/templates/new-instance/public/images/emoji/mountain_railway.png +0 -0
  1065. data/templates/new-instance/public/images/emoji/mouse.png +0 -0
  1066. data/templates/new-instance/public/images/emoji/mouse2.png +0 -0
  1067. data/templates/new-instance/public/images/emoji/movie_camera.png +0 -0
  1068. data/templates/new-instance/public/images/emoji/moyai.png +0 -0
  1069. data/templates/new-instance/public/images/emoji/muscle.png +0 -0
  1070. data/templates/new-instance/public/images/emoji/mushroom.png +0 -0
  1071. data/templates/new-instance/public/images/emoji/musical_keyboard.png +0 -0
  1072. data/templates/new-instance/public/images/emoji/musical_note.png +0 -0
  1073. data/templates/new-instance/public/images/emoji/musical_score.png +0 -0
  1074. data/templates/new-instance/public/images/emoji/mute.png +0 -0
  1075. data/templates/new-instance/public/images/emoji/nail_care.png +0 -0
  1076. data/templates/new-instance/public/images/emoji/name_badge.png +0 -0
  1077. data/templates/new-instance/public/images/emoji/neckbeard.png +0 -0
  1078. data/templates/new-instance/public/images/emoji/necktie.png +0 -0
  1079. data/templates/new-instance/public/images/emoji/negative_squared_cross_mark.png +0 -0
  1080. data/templates/new-instance/public/images/emoji/neutral_face.png +0 -0
  1081. data/templates/new-instance/public/images/emoji/new.png +0 -0
  1082. data/templates/new-instance/public/images/emoji/new_moon.png +0 -0
  1083. data/templates/new-instance/public/images/emoji/new_moon_with_face.png +0 -0
  1084. data/templates/new-instance/public/images/emoji/newspaper.png +0 -0
  1085. data/templates/new-instance/public/images/emoji/ng.png +0 -0
  1086. data/templates/new-instance/public/images/emoji/nine.png +0 -0
  1087. data/templates/new-instance/public/images/emoji/no_bell.png +0 -0
  1088. data/templates/new-instance/public/images/emoji/no_bicycles.png +0 -0
  1089. data/templates/new-instance/public/images/emoji/no_entry.png +0 -0
  1090. data/templates/new-instance/public/images/emoji/no_entry_sign.png +0 -0
  1091. data/templates/new-instance/public/images/emoji/no_good.png +0 -0
  1092. data/templates/new-instance/public/images/emoji/no_mobile_phones.png +0 -0
  1093. data/templates/new-instance/public/images/emoji/no_mouth.png +0 -0
  1094. data/templates/new-instance/public/images/emoji/no_pedestrians.png +0 -0
  1095. data/templates/new-instance/public/images/emoji/no_smoking.png +0 -0
  1096. data/templates/new-instance/public/images/emoji/non-potable_water.png +0 -0
  1097. data/templates/new-instance/public/images/emoji/nose.png +0 -0
  1098. data/templates/new-instance/public/images/emoji/notebook.png +0 -0
  1099. data/templates/new-instance/public/images/emoji/notebook_with_decorative_cover.png +0 -0
  1100. data/templates/new-instance/public/images/emoji/notes.png +0 -0
  1101. data/templates/new-instance/public/images/emoji/nut_and_bolt.png +0 -0
  1102. data/templates/new-instance/public/images/emoji/o.png +0 -0
  1103. data/templates/new-instance/public/images/emoji/o2.png +0 -0
  1104. data/templates/new-instance/public/images/emoji/ocean.png +0 -0
  1105. data/templates/new-instance/public/images/emoji/octocat.png +0 -0
  1106. data/templates/new-instance/public/images/emoji/octopus.png +0 -0
  1107. data/templates/new-instance/public/images/emoji/oden.png +0 -0
  1108. data/templates/new-instance/public/images/emoji/office.png +0 -0
  1109. data/templates/new-instance/public/images/emoji/ok.png +0 -0
  1110. data/templates/new-instance/public/images/emoji/ok_hand.png +0 -0
  1111. data/templates/new-instance/public/images/emoji/ok_woman.png +0 -0
  1112. data/templates/new-instance/public/images/emoji/older_man.png +0 -0
  1113. data/templates/new-instance/public/images/emoji/older_woman.png +0 -0
  1114. data/templates/new-instance/public/images/emoji/on.png +0 -0
  1115. data/templates/new-instance/public/images/emoji/oncoming_automobile.png +0 -0
  1116. data/templates/new-instance/public/images/emoji/oncoming_bus.png +0 -0
  1117. data/templates/new-instance/public/images/emoji/oncoming_police_car.png +0 -0
  1118. data/templates/new-instance/public/images/emoji/oncoming_taxi.png +0 -0
  1119. data/templates/new-instance/public/images/emoji/one.png +0 -0
  1120. data/templates/new-instance/public/images/emoji/open_book.png +0 -0
  1121. data/templates/new-instance/public/images/emoji/open_file_folder.png +0 -0
  1122. data/templates/new-instance/public/images/emoji/open_hands.png +0 -0
  1123. data/templates/new-instance/public/images/emoji/open_mouth.png +0 -0
  1124. data/templates/new-instance/public/images/emoji/ophiuchus.png +0 -0
  1125. data/templates/new-instance/public/images/emoji/orange_book.png +0 -0
  1126. data/templates/new-instance/public/images/emoji/outbox_tray.png +0 -0
  1127. data/templates/new-instance/public/images/emoji/ox.png +0 -0
  1128. data/templates/new-instance/public/images/emoji/package.png +0 -0
  1129. data/templates/new-instance/public/images/emoji/page_facing_up.png +0 -0
  1130. data/templates/new-instance/public/images/emoji/page_with_curl.png +0 -0
  1131. data/templates/new-instance/public/images/emoji/pager.png +0 -0
  1132. data/templates/new-instance/public/images/emoji/palm_tree.png +0 -0
  1133. data/templates/new-instance/public/images/emoji/panda_face.png +0 -0
  1134. data/templates/new-instance/public/images/emoji/paperclip.png +0 -0
  1135. data/templates/new-instance/public/images/emoji/parking.png +0 -0
  1136. data/templates/new-instance/public/images/emoji/part_alternation_mark.png +0 -0
  1137. data/templates/new-instance/public/images/emoji/partly_sunny.png +0 -0
  1138. data/templates/new-instance/public/images/emoji/passport_control.png +0 -0
  1139. data/templates/new-instance/public/images/emoji/paw_prints.png +0 -0
  1140. data/templates/new-instance/public/images/emoji/peach.png +0 -0
  1141. data/templates/new-instance/public/images/emoji/pear.png +0 -0
  1142. data/templates/new-instance/public/images/emoji/pencil.png +0 -0
  1143. data/templates/new-instance/public/images/emoji/pencil2.png +0 -0
  1144. data/templates/new-instance/public/images/emoji/penguin.png +0 -0
  1145. data/templates/new-instance/public/images/emoji/pensive.png +0 -0
  1146. data/templates/new-instance/public/images/emoji/performing_arts.png +0 -0
  1147. data/templates/new-instance/public/images/emoji/persevere.png +0 -0
  1148. data/templates/new-instance/public/images/emoji/person_frowning.png +0 -0
  1149. data/templates/new-instance/public/images/emoji/person_with_blond_hair.png +0 -0
  1150. data/templates/new-instance/public/images/emoji/person_with_pouting_face.png +0 -0
  1151. data/templates/new-instance/public/images/emoji/phone.png +0 -0
  1152. data/templates/new-instance/public/images/emoji/pig.png +0 -0
  1153. data/templates/new-instance/public/images/emoji/pig2.png +0 -0
  1154. data/templates/new-instance/public/images/emoji/pig_nose.png +0 -0
  1155. data/templates/new-instance/public/images/emoji/pill.png +0 -0
  1156. data/templates/new-instance/public/images/emoji/pineapple.png +0 -0
  1157. data/templates/new-instance/public/images/emoji/pisces.png +0 -0
  1158. data/templates/new-instance/public/images/emoji/pizza.png +0 -0
  1159. data/templates/new-instance/public/images/emoji/point_down.png +0 -0
  1160. data/templates/new-instance/public/images/emoji/point_left.png +0 -0
  1161. data/templates/new-instance/public/images/emoji/point_right.png +0 -0
  1162. data/templates/new-instance/public/images/emoji/point_up.png +0 -0
  1163. data/templates/new-instance/public/images/emoji/point_up_2.png +0 -0
  1164. data/templates/new-instance/public/images/emoji/police_car.png +0 -0
  1165. data/templates/new-instance/public/images/emoji/poodle.png +0 -0
  1166. data/templates/new-instance/public/images/emoji/poop.png +0 -0
  1167. data/templates/new-instance/public/images/emoji/post_office.png +0 -0
  1168. data/templates/new-instance/public/images/emoji/postal_horn.png +0 -0
  1169. data/templates/new-instance/public/images/emoji/postbox.png +0 -0
  1170. data/templates/new-instance/public/images/emoji/potable_water.png +0 -0
  1171. data/templates/new-instance/public/images/emoji/pouch.png +0 -0
  1172. data/templates/new-instance/public/images/emoji/poultry_leg.png +0 -0
  1173. data/templates/new-instance/public/images/emoji/pound.png +0 -0
  1174. data/templates/new-instance/public/images/emoji/pouting_cat.png +0 -0
  1175. data/templates/new-instance/public/images/emoji/pray.png +0 -0
  1176. data/templates/new-instance/public/images/emoji/princess.png +0 -0
  1177. data/templates/new-instance/public/images/emoji/punch.png +0 -0
  1178. data/templates/new-instance/public/images/emoji/purple_heart.png +0 -0
  1179. data/templates/new-instance/public/images/emoji/purse.png +0 -0
  1180. data/templates/new-instance/public/images/emoji/pushpin.png +0 -0
  1181. data/templates/new-instance/public/images/emoji/put_litter_in_its_place.png +0 -0
  1182. data/templates/new-instance/public/images/emoji/question.png +0 -0
  1183. data/templates/new-instance/public/images/emoji/rabbit.png +0 -0
  1184. data/templates/new-instance/public/images/emoji/rabbit2.png +0 -0
  1185. data/templates/new-instance/public/images/emoji/racehorse.png +0 -0
  1186. data/templates/new-instance/public/images/emoji/radio.png +0 -0
  1187. data/templates/new-instance/public/images/emoji/radio_button.png +0 -0
  1188. data/templates/new-instance/public/images/emoji/rage.png +0 -0
  1189. data/templates/new-instance/public/images/emoji/rage1.png +0 -0
  1190. data/templates/new-instance/public/images/emoji/rage2.png +0 -0
  1191. data/templates/new-instance/public/images/emoji/rage3.png +0 -0
  1192. data/templates/new-instance/public/images/emoji/rage4.png +0 -0
  1193. data/templates/new-instance/public/images/emoji/railway_car.png +0 -0
  1194. data/templates/new-instance/public/images/emoji/rainbow.png +0 -0
  1195. data/templates/new-instance/public/images/emoji/raised_hand.png +0 -0
  1196. data/templates/new-instance/public/images/emoji/raised_hands.png +0 -0
  1197. data/templates/new-instance/public/images/emoji/raising_hand.png +0 -0
  1198. data/templates/new-instance/public/images/emoji/ram.png +0 -0
  1199. data/templates/new-instance/public/images/emoji/ramen.png +0 -0
  1200. data/templates/new-instance/public/images/emoji/rat.png +0 -0
  1201. data/templates/new-instance/public/images/emoji/recycle.png +0 -0
  1202. data/templates/new-instance/public/images/emoji/red_car.png +0 -0
  1203. data/templates/new-instance/public/images/emoji/red_circle.png +0 -0
  1204. data/templates/new-instance/public/images/emoji/registered.png +0 -0
  1205. data/templates/new-instance/public/images/emoji/relaxed.png +0 -0
  1206. data/templates/new-instance/public/images/emoji/relieved.png +0 -0
  1207. data/templates/new-instance/public/images/emoji/repeat.png +0 -0
  1208. data/templates/new-instance/public/images/emoji/repeat_one.png +0 -0
  1209. data/templates/new-instance/public/images/emoji/restroom.png +0 -0
  1210. data/templates/new-instance/public/images/emoji/revolving_hearts.png +0 -0
  1211. data/templates/new-instance/public/images/emoji/rewind.png +0 -0
  1212. data/templates/new-instance/public/images/emoji/ribbon.png +0 -0
  1213. data/templates/new-instance/public/images/emoji/rice.png +0 -0
  1214. data/templates/new-instance/public/images/emoji/rice_ball.png +0 -0
  1215. data/templates/new-instance/public/images/emoji/rice_cracker.png +0 -0
  1216. data/templates/new-instance/public/images/emoji/rice_scene.png +0 -0
  1217. data/templates/new-instance/public/images/emoji/ring.png +0 -0
  1218. data/templates/new-instance/public/images/emoji/rocket.png +0 -0
  1219. data/templates/new-instance/public/images/emoji/roller_coaster.png +0 -0
  1220. data/templates/new-instance/public/images/emoji/rooster.png +0 -0
  1221. data/templates/new-instance/public/images/emoji/rose.png +0 -0
  1222. data/templates/new-instance/public/images/emoji/rotating_light.png +0 -0
  1223. data/templates/new-instance/public/images/emoji/round_pushpin.png +0 -0
  1224. data/templates/new-instance/public/images/emoji/rowboat.png +0 -0
  1225. data/templates/new-instance/public/images/emoji/ru.png +0 -0
  1226. data/templates/new-instance/public/images/emoji/rugby_football.png +0 -0
  1227. data/templates/new-instance/public/images/emoji/runner.png +0 -0
  1228. data/templates/new-instance/public/images/emoji/running.png +0 -0
  1229. data/templates/new-instance/public/images/emoji/running_shirt_with_sash.png +0 -0
  1230. data/templates/new-instance/public/images/emoji/sa.png +0 -0
  1231. data/templates/new-instance/public/images/emoji/sagittarius.png +0 -0
  1232. data/templates/new-instance/public/images/emoji/sailboat.png +0 -0
  1233. data/templates/new-instance/public/images/emoji/sake.png +0 -0
  1234. data/templates/new-instance/public/images/emoji/sandal.png +0 -0
  1235. data/templates/new-instance/public/images/emoji/santa.png +0 -0
  1236. data/templates/new-instance/public/images/emoji/satellite.png +0 -0
  1237. data/templates/new-instance/public/images/emoji/satisfied.png +0 -0
  1238. data/templates/new-instance/public/images/emoji/saxophone.png +0 -0
  1239. data/templates/new-instance/public/images/emoji/school.png +0 -0
  1240. data/templates/new-instance/public/images/emoji/school_satchel.png +0 -0
  1241. data/templates/new-instance/public/images/emoji/scissors.png +0 -0
  1242. data/templates/new-instance/public/images/emoji/scorpius.png +0 -0
  1243. data/templates/new-instance/public/images/emoji/scream.png +0 -0
  1244. data/templates/new-instance/public/images/emoji/scream_cat.png +0 -0
  1245. data/templates/new-instance/public/images/emoji/scroll.png +0 -0
  1246. data/templates/new-instance/public/images/emoji/seat.png +0 -0
  1247. data/templates/new-instance/public/images/emoji/secret.png +0 -0
  1248. data/templates/new-instance/public/images/emoji/see_no_evil.png +0 -0
  1249. data/templates/new-instance/public/images/emoji/seedling.png +0 -0
  1250. data/templates/new-instance/public/images/emoji/seven.png +0 -0
  1251. data/templates/new-instance/public/images/emoji/shaved_ice.png +0 -0
  1252. data/templates/new-instance/public/images/emoji/sheep.png +0 -0
  1253. data/templates/new-instance/public/images/emoji/shell.png +0 -0
  1254. data/templates/new-instance/public/images/emoji/ship.png +0 -0
  1255. data/templates/new-instance/public/images/emoji/shipit.png +0 -0
  1256. data/templates/new-instance/public/images/emoji/shirt.png +0 -0
  1257. data/templates/new-instance/public/images/emoji/shit.png +0 -0
  1258. data/templates/new-instance/public/images/emoji/shoe.png +0 -0
  1259. data/templates/new-instance/public/images/emoji/shower.png +0 -0
  1260. data/templates/new-instance/public/images/emoji/signal_strength.png +0 -0
  1261. data/templates/new-instance/public/images/emoji/six.png +0 -0
  1262. data/templates/new-instance/public/images/emoji/six_pointed_star.png +0 -0
  1263. data/templates/new-instance/public/images/emoji/ski.png +0 -0
  1264. data/templates/new-instance/public/images/emoji/skull.png +0 -0
  1265. data/templates/new-instance/public/images/emoji/sleeping.png +0 -0
  1266. data/templates/new-instance/public/images/emoji/sleepy.png +0 -0
  1267. data/templates/new-instance/public/images/emoji/slot_machine.png +0 -0
  1268. data/templates/new-instance/public/images/emoji/small_blue_diamond.png +0 -0
  1269. data/templates/new-instance/public/images/emoji/small_orange_diamond.png +0 -0
  1270. data/templates/new-instance/public/images/emoji/small_red_triangle.png +0 -0
  1271. data/templates/new-instance/public/images/emoji/small_red_triangle_down.png +0 -0
  1272. data/templates/new-instance/public/images/emoji/smile.png +0 -0
  1273. data/templates/new-instance/public/images/emoji/smile_cat.png +0 -0
  1274. data/templates/new-instance/public/images/emoji/smiley.png +0 -0
  1275. data/templates/new-instance/public/images/emoji/smiley_cat.png +0 -0
  1276. data/templates/new-instance/public/images/emoji/smiling_imp.png +0 -0
  1277. data/templates/new-instance/public/images/emoji/smirk.png +0 -0
  1278. data/templates/new-instance/public/images/emoji/smirk_cat.png +0 -0
  1279. data/templates/new-instance/public/images/emoji/smoking.png +0 -0
  1280. data/templates/new-instance/public/images/emoji/snail.png +0 -0
  1281. data/templates/new-instance/public/images/emoji/snake.png +0 -0
  1282. data/templates/new-instance/public/images/emoji/snowboarder.png +0 -0
  1283. data/templates/new-instance/public/images/emoji/snowflake.png +0 -0
  1284. data/templates/new-instance/public/images/emoji/snowman.png +0 -0
  1285. data/templates/new-instance/public/images/emoji/sob.png +0 -0
  1286. data/templates/new-instance/public/images/emoji/soccer.png +0 -0
  1287. data/templates/new-instance/public/images/emoji/soon.png +0 -0
  1288. data/templates/new-instance/public/images/emoji/sos.png +0 -0
  1289. data/templates/new-instance/public/images/emoji/sound.png +0 -0
  1290. data/templates/new-instance/public/images/emoji/space_invader.png +0 -0
  1291. data/templates/new-instance/public/images/emoji/spades.png +0 -0
  1292. data/templates/new-instance/public/images/emoji/spaghetti.png +0 -0
  1293. data/templates/new-instance/public/images/emoji/sparkle.png +0 -0
  1294. data/templates/new-instance/public/images/emoji/sparkler.png +0 -0
  1295. data/templates/new-instance/public/images/emoji/sparkles.png +0 -0
  1296. data/templates/new-instance/public/images/emoji/sparkling_heart.png +0 -0
  1297. data/templates/new-instance/public/images/emoji/speak_no_evil.png +0 -0
  1298. data/templates/new-instance/public/images/emoji/speaker.png +0 -0
  1299. data/templates/new-instance/public/images/emoji/speech_balloon.png +0 -0
  1300. data/templates/new-instance/public/images/emoji/speedboat.png +0 -0
  1301. data/templates/new-instance/public/images/emoji/squirrel.png +0 -0
  1302. data/templates/new-instance/public/images/emoji/star.png +0 -0
  1303. data/templates/new-instance/public/images/emoji/star2.png +0 -0
  1304. data/templates/new-instance/public/images/emoji/stars.png +0 -0
  1305. data/templates/new-instance/public/images/emoji/station.png +0 -0
  1306. data/templates/new-instance/public/images/emoji/statue_of_liberty.png +0 -0
  1307. data/templates/new-instance/public/images/emoji/steam_locomotive.png +0 -0
  1308. data/templates/new-instance/public/images/emoji/stew.png +0 -0
  1309. data/templates/new-instance/public/images/emoji/straight_ruler.png +0 -0
  1310. data/templates/new-instance/public/images/emoji/strawberry.png +0 -0
  1311. data/templates/new-instance/public/images/emoji/stuck_out_tongue.png +0 -0
  1312. data/templates/new-instance/public/images/emoji/stuck_out_tongue_closed_eyes.png +0 -0
  1313. data/templates/new-instance/public/images/emoji/stuck_out_tongue_winking_eye.png +0 -0
  1314. data/templates/new-instance/public/images/emoji/sun_with_face.png +0 -0
  1315. data/templates/new-instance/public/images/emoji/sunflower.png +0 -0
  1316. data/templates/new-instance/public/images/emoji/sunglasses.png +0 -0
  1317. data/templates/new-instance/public/images/emoji/sunny.png +0 -0
  1318. data/templates/new-instance/public/images/emoji/sunrise.png +0 -0
  1319. data/templates/new-instance/public/images/emoji/sunrise_over_mountains.png +0 -0
  1320. data/templates/new-instance/public/images/emoji/surfer.png +0 -0
  1321. data/templates/new-instance/public/images/emoji/sushi.png +0 -0
  1322. data/templates/new-instance/public/images/emoji/suspect.png +0 -0
  1323. data/templates/new-instance/public/images/emoji/suspension_railway.png +0 -0
  1324. data/templates/new-instance/public/images/emoji/sweat.png +0 -0
  1325. data/templates/new-instance/public/images/emoji/sweat_drops.png +0 -0
  1326. data/templates/new-instance/public/images/emoji/sweat_smile.png +0 -0
  1327. data/templates/new-instance/public/images/emoji/sweet_potato.png +0 -0
  1328. data/templates/new-instance/public/images/emoji/swimmer.png +0 -0
  1329. data/templates/new-instance/public/images/emoji/symbols.png +0 -0
  1330. data/templates/new-instance/public/images/emoji/syringe.png +0 -0
  1331. data/templates/new-instance/public/images/emoji/tada.png +0 -0
  1332. data/templates/new-instance/public/images/emoji/tanabata_tree.png +0 -0
  1333. data/templates/new-instance/public/images/emoji/tangerine.png +0 -0
  1334. data/templates/new-instance/public/images/emoji/taurus.png +0 -0
  1335. data/templates/new-instance/public/images/emoji/taxi.png +0 -0
  1336. data/templates/new-instance/public/images/emoji/tea.png +0 -0
  1337. data/templates/new-instance/public/images/emoji/telephone.png +0 -0
  1338. data/templates/new-instance/public/images/emoji/telephone_receiver.png +0 -0
  1339. data/templates/new-instance/public/images/emoji/telescope.png +0 -0
  1340. data/templates/new-instance/public/images/emoji/tennis.png +0 -0
  1341. data/templates/new-instance/public/images/emoji/tent.png +0 -0
  1342. data/templates/new-instance/public/images/emoji/thought_balloon.png +0 -0
  1343. data/templates/new-instance/public/images/emoji/three.png +0 -0
  1344. data/templates/new-instance/public/images/emoji/thumbsdown.png +0 -0
  1345. data/templates/new-instance/public/images/emoji/thumbsup.png +0 -0
  1346. data/templates/new-instance/public/images/emoji/ticket.png +0 -0
  1347. data/templates/new-instance/public/images/emoji/tiger.png +0 -0
  1348. data/templates/new-instance/public/images/emoji/tiger2.png +0 -0
  1349. data/templates/new-instance/public/images/emoji/tired_face.png +0 -0
  1350. data/templates/new-instance/public/images/emoji/tm.png +0 -0
  1351. data/templates/new-instance/public/images/emoji/toilet.png +0 -0
  1352. data/templates/new-instance/public/images/emoji/tokyo_tower.png +0 -0
  1353. data/templates/new-instance/public/images/emoji/tomato.png +0 -0
  1354. data/templates/new-instance/public/images/emoji/tongue.png +0 -0
  1355. data/templates/new-instance/public/images/emoji/top.png +0 -0
  1356. data/templates/new-instance/public/images/emoji/tophat.png +0 -0
  1357. data/templates/new-instance/public/images/emoji/tractor.png +0 -0
  1358. data/templates/new-instance/public/images/emoji/traffic_light.png +0 -0
  1359. data/templates/new-instance/public/images/emoji/train.png +0 -0
  1360. data/templates/new-instance/public/images/emoji/train2.png +0 -0
  1361. data/templates/new-instance/public/images/emoji/tram.png +0 -0
  1362. data/templates/new-instance/public/images/emoji/triangular_flag_on_post.png +0 -0
  1363. data/templates/new-instance/public/images/emoji/triangular_ruler.png +0 -0
  1364. data/templates/new-instance/public/images/emoji/trident.png +0 -0
  1365. data/templates/new-instance/public/images/emoji/triumph.png +0 -0
  1366. data/templates/new-instance/public/images/emoji/trolleybus.png +0 -0
  1367. data/templates/new-instance/public/images/emoji/trollface.png +0 -0
  1368. data/templates/new-instance/public/images/emoji/trophy.png +0 -0
  1369. data/templates/new-instance/public/images/emoji/tropical_drink.png +0 -0
  1370. data/templates/new-instance/public/images/emoji/tropical_fish.png +0 -0
  1371. data/templates/new-instance/public/images/emoji/truck.png +0 -0
  1372. data/templates/new-instance/public/images/emoji/trumpet.png +0 -0
  1373. data/templates/new-instance/public/images/emoji/tshirt.png +0 -0
  1374. data/templates/new-instance/public/images/emoji/tulip.png +0 -0
  1375. data/templates/new-instance/public/images/emoji/turtle.png +0 -0
  1376. data/templates/new-instance/public/images/emoji/tv.png +0 -0
  1377. data/templates/new-instance/public/images/emoji/twisted_rightwards_arrows.png +0 -0
  1378. data/templates/new-instance/public/images/emoji/two.png +0 -0
  1379. data/templates/new-instance/public/images/emoji/two_hearts.png +0 -0
  1380. data/templates/new-instance/public/images/emoji/two_men_holding_hands.png +0 -0
  1381. data/templates/new-instance/public/images/emoji/two_women_holding_hands.png +0 -0
  1382. data/templates/new-instance/public/images/emoji/u5272.png +0 -0
  1383. data/templates/new-instance/public/images/emoji/u5408.png +0 -0
  1384. data/templates/new-instance/public/images/emoji/u55b6.png +0 -0
  1385. data/templates/new-instance/public/images/emoji/u6307.png +0 -0
  1386. data/templates/new-instance/public/images/emoji/u6708.png +0 -0
  1387. data/templates/new-instance/public/images/emoji/u6709.png +0 -0
  1388. data/templates/new-instance/public/images/emoji/u6e80.png +0 -0
  1389. data/templates/new-instance/public/images/emoji/u7121.png +0 -0
  1390. data/templates/new-instance/public/images/emoji/u7533.png +0 -0
  1391. data/templates/new-instance/public/images/emoji/u7981.png +0 -0
  1392. data/templates/new-instance/public/images/emoji/u7a7a.png +0 -0
  1393. data/templates/new-instance/public/images/emoji/uk.png +0 -0
  1394. data/templates/new-instance/public/images/emoji/umbrella.png +0 -0
  1395. data/templates/new-instance/public/images/emoji/unamused.png +0 -0
  1396. data/templates/new-instance/public/images/emoji/underage.png +0 -0
  1397. data/templates/new-instance/public/images/emoji/unicode/0023.png +0 -0
  1398. data/templates/new-instance/public/images/emoji/unicode/0030.png +0 -0
  1399. data/templates/new-instance/public/images/emoji/unicode/0031.png +0 -0
  1400. data/templates/new-instance/public/images/emoji/unicode/0032.png +0 -0
  1401. data/templates/new-instance/public/images/emoji/unicode/0033.png +0 -0
  1402. data/templates/new-instance/public/images/emoji/unicode/0034.png +0 -0
  1403. data/templates/new-instance/public/images/emoji/unicode/0035.png +0 -0
  1404. data/templates/new-instance/public/images/emoji/unicode/0036.png +0 -0
  1405. data/templates/new-instance/public/images/emoji/unicode/0037.png +0 -0
  1406. data/templates/new-instance/public/images/emoji/unicode/0038.png +0 -0
  1407. data/templates/new-instance/public/images/emoji/unicode/0039.png +0 -0
  1408. data/templates/new-instance/public/images/emoji/unicode/00a9.png +0 -0
  1409. data/templates/new-instance/public/images/emoji/unicode/00ae.png +0 -0
  1410. data/templates/new-instance/public/images/emoji/unicode/1f004.png +0 -0
  1411. data/templates/new-instance/public/images/emoji/unicode/1f0cf.png +0 -0
  1412. data/templates/new-instance/public/images/emoji/unicode/1f170.png +0 -0
  1413. data/templates/new-instance/public/images/emoji/unicode/1f171.png +0 -0
  1414. data/templates/new-instance/public/images/emoji/unicode/1f17e.png +0 -0
  1415. data/templates/new-instance/public/images/emoji/unicode/1f17f.png +0 -0
  1416. data/templates/new-instance/public/images/emoji/unicode/1f18e.png +0 -0
  1417. data/templates/new-instance/public/images/emoji/unicode/1f191.png +0 -0
  1418. data/templates/new-instance/public/images/emoji/unicode/1f192.png +0 -0
  1419. data/templates/new-instance/public/images/emoji/unicode/1f193.png +0 -0
  1420. data/templates/new-instance/public/images/emoji/unicode/1f194.png +0 -0
  1421. data/templates/new-instance/public/images/emoji/unicode/1f195.png +0 -0
  1422. data/templates/new-instance/public/images/emoji/unicode/1f196.png +0 -0
  1423. data/templates/new-instance/public/images/emoji/unicode/1f197.png +0 -0
  1424. data/templates/new-instance/public/images/emoji/unicode/1f198.png +0 -0
  1425. data/templates/new-instance/public/images/emoji/unicode/1f199.png +0 -0
  1426. data/templates/new-instance/public/images/emoji/unicode/1f19a.png +0 -0
  1427. data/templates/new-instance/public/images/emoji/unicode/1f1e8-1f1f3.png +0 -0
  1428. data/templates/new-instance/public/images/emoji/unicode/1f1e9-1f1ea.png +0 -0
  1429. data/templates/new-instance/public/images/emoji/unicode/1f1ea-1f1f8.png +0 -0
  1430. data/templates/new-instance/public/images/emoji/unicode/1f1eb-1f1f7.png +0 -0
  1431. data/templates/new-instance/public/images/emoji/unicode/1f1ec-1f1e7.png +0 -0
  1432. data/templates/new-instance/public/images/emoji/unicode/1f1ee-1f1f9.png +0 -0
  1433. data/templates/new-instance/public/images/emoji/unicode/1f1ef-1f1f5.png +0 -0
  1434. data/templates/new-instance/public/images/emoji/unicode/1f1f0-1f1f7.png +0 -0
  1435. data/templates/new-instance/public/images/emoji/unicode/1f1f7-1f1fa.png +0 -0
  1436. data/templates/new-instance/public/images/emoji/unicode/1f1fa-1f1f8.png +0 -0
  1437. data/templates/new-instance/public/images/emoji/unicode/1f201.png +0 -0
  1438. data/templates/new-instance/public/images/emoji/unicode/1f202.png +0 -0
  1439. data/templates/new-instance/public/images/emoji/unicode/1f21a.png +0 -0
  1440. data/templates/new-instance/public/images/emoji/unicode/1f22f.png +0 -0
  1441. data/templates/new-instance/public/images/emoji/unicode/1f232.png +0 -0
  1442. data/templates/new-instance/public/images/emoji/unicode/1f233.png +0 -0
  1443. data/templates/new-instance/public/images/emoji/unicode/1f234.png +0 -0
  1444. data/templates/new-instance/public/images/emoji/unicode/1f235.png +0 -0
  1445. data/templates/new-instance/public/images/emoji/unicode/1f236.png +0 -0
  1446. data/templates/new-instance/public/images/emoji/unicode/1f237.png +0 -0
  1447. data/templates/new-instance/public/images/emoji/unicode/1f238.png +0 -0
  1448. data/templates/new-instance/public/images/emoji/unicode/1f239.png +0 -0
  1449. data/templates/new-instance/public/images/emoji/unicode/1f23a.png +0 -0
  1450. data/templates/new-instance/public/images/emoji/unicode/1f250.png +0 -0
  1451. data/templates/new-instance/public/images/emoji/unicode/1f251.png +0 -0
  1452. data/templates/new-instance/public/images/emoji/unicode/1f300.png +0 -0
  1453. data/templates/new-instance/public/images/emoji/unicode/1f301.png +0 -0
  1454. data/templates/new-instance/public/images/emoji/unicode/1f302.png +0 -0
  1455. data/templates/new-instance/public/images/emoji/unicode/1f303.png +0 -0
  1456. data/templates/new-instance/public/images/emoji/unicode/1f304.png +0 -0
  1457. data/templates/new-instance/public/images/emoji/unicode/1f305.png +0 -0
  1458. data/templates/new-instance/public/images/emoji/unicode/1f306.png +0 -0
  1459. data/templates/new-instance/public/images/emoji/unicode/1f307.png +0 -0
  1460. data/templates/new-instance/public/images/emoji/unicode/1f308.png +0 -0
  1461. data/templates/new-instance/public/images/emoji/unicode/1f309.png +0 -0
  1462. data/templates/new-instance/public/images/emoji/unicode/1f30a.png +0 -0
  1463. data/templates/new-instance/public/images/emoji/unicode/1f30b.png +0 -0
  1464. data/templates/new-instance/public/images/emoji/unicode/1f30c.png +0 -0
  1465. data/templates/new-instance/public/images/emoji/unicode/1f30d.png +0 -0
  1466. data/templates/new-instance/public/images/emoji/unicode/1f30e.png +0 -0
  1467. data/templates/new-instance/public/images/emoji/unicode/1f30f.png +0 -0
  1468. data/templates/new-instance/public/images/emoji/unicode/1f310.png +0 -0
  1469. data/templates/new-instance/public/images/emoji/unicode/1f311.png +0 -0
  1470. data/templates/new-instance/public/images/emoji/unicode/1f312.png +0 -0
  1471. data/templates/new-instance/public/images/emoji/unicode/1f313.png +0 -0
  1472. data/templates/new-instance/public/images/emoji/unicode/1f314.png +0 -0
  1473. data/templates/new-instance/public/images/emoji/unicode/1f315.png +0 -0
  1474. data/templates/new-instance/public/images/emoji/unicode/1f316.png +0 -0
  1475. data/templates/new-instance/public/images/emoji/unicode/1f317.png +0 -0
  1476. data/templates/new-instance/public/images/emoji/unicode/1f318.png +0 -0
  1477. data/templates/new-instance/public/images/emoji/unicode/1f319.png +0 -0
  1478. data/templates/new-instance/public/images/emoji/unicode/1f31a.png +0 -0
  1479. data/templates/new-instance/public/images/emoji/unicode/1f31b.png +0 -0
  1480. data/templates/new-instance/public/images/emoji/unicode/1f31c.png +0 -0
  1481. data/templates/new-instance/public/images/emoji/unicode/1f31d.png +0 -0
  1482. data/templates/new-instance/public/images/emoji/unicode/1f31e.png +0 -0
  1483. data/templates/new-instance/public/images/emoji/unicode/1f31f.png +0 -0
  1484. data/templates/new-instance/public/images/emoji/unicode/1f330.png +0 -0
  1485. data/templates/new-instance/public/images/emoji/unicode/1f331.png +0 -0
  1486. data/templates/new-instance/public/images/emoji/unicode/1f332.png +0 -0
  1487. data/templates/new-instance/public/images/emoji/unicode/1f333.png +0 -0
  1488. data/templates/new-instance/public/images/emoji/unicode/1f334.png +0 -0
  1489. data/templates/new-instance/public/images/emoji/unicode/1f335.png +0 -0
  1490. data/templates/new-instance/public/images/emoji/unicode/1f337.png +0 -0
  1491. data/templates/new-instance/public/images/emoji/unicode/1f338.png +0 -0
  1492. data/templates/new-instance/public/images/emoji/unicode/1f339.png +0 -0
  1493. data/templates/new-instance/public/images/emoji/unicode/1f33a.png +0 -0
  1494. data/templates/new-instance/public/images/emoji/unicode/1f33b.png +0 -0
  1495. data/templates/new-instance/public/images/emoji/unicode/1f33c.png +0 -0
  1496. data/templates/new-instance/public/images/emoji/unicode/1f33d.png +0 -0
  1497. data/templates/new-instance/public/images/emoji/unicode/1f33e.png +0 -0
  1498. data/templates/new-instance/public/images/emoji/unicode/1f33f.png +0 -0
  1499. data/templates/new-instance/public/images/emoji/unicode/1f340.png +0 -0
  1500. data/templates/new-instance/public/images/emoji/unicode/1f341.png +0 -0
  1501. data/templates/new-instance/public/images/emoji/unicode/1f342.png +0 -0
  1502. data/templates/new-instance/public/images/emoji/unicode/1f343.png +0 -0
  1503. data/templates/new-instance/public/images/emoji/unicode/1f344.png +0 -0
  1504. data/templates/new-instance/public/images/emoji/unicode/1f345.png +0 -0
  1505. data/templates/new-instance/public/images/emoji/unicode/1f346.png +0 -0
  1506. data/templates/new-instance/public/images/emoji/unicode/1f347.png +0 -0
  1507. data/templates/new-instance/public/images/emoji/unicode/1f348.png +0 -0
  1508. data/templates/new-instance/public/images/emoji/unicode/1f349.png +0 -0
  1509. data/templates/new-instance/public/images/emoji/unicode/1f34a.png +0 -0
  1510. data/templates/new-instance/public/images/emoji/unicode/1f34b.png +0 -0
  1511. data/templates/new-instance/public/images/emoji/unicode/1f34c.png +0 -0
  1512. data/templates/new-instance/public/images/emoji/unicode/1f34d.png +0 -0
  1513. data/templates/new-instance/public/images/emoji/unicode/1f34e.png +0 -0
  1514. data/templates/new-instance/public/images/emoji/unicode/1f34f.png +0 -0
  1515. data/templates/new-instance/public/images/emoji/unicode/1f350.png +0 -0
  1516. data/templates/new-instance/public/images/emoji/unicode/1f351.png +0 -0
  1517. data/templates/new-instance/public/images/emoji/unicode/1f352.png +0 -0
  1518. data/templates/new-instance/public/images/emoji/unicode/1f353.png +0 -0
  1519. data/templates/new-instance/public/images/emoji/unicode/1f354.png +0 -0
  1520. data/templates/new-instance/public/images/emoji/unicode/1f355.png +0 -0
  1521. data/templates/new-instance/public/images/emoji/unicode/1f356.png +0 -0
  1522. data/templates/new-instance/public/images/emoji/unicode/1f357.png +0 -0
  1523. data/templates/new-instance/public/images/emoji/unicode/1f358.png +0 -0
  1524. data/templates/new-instance/public/images/emoji/unicode/1f359.png +0 -0
  1525. data/templates/new-instance/public/images/emoji/unicode/1f35a.png +0 -0
  1526. data/templates/new-instance/public/images/emoji/unicode/1f35b.png +0 -0
  1527. data/templates/new-instance/public/images/emoji/unicode/1f35c.png +0 -0
  1528. data/templates/new-instance/public/images/emoji/unicode/1f35d.png +0 -0
  1529. data/templates/new-instance/public/images/emoji/unicode/1f35e.png +0 -0
  1530. data/templates/new-instance/public/images/emoji/unicode/1f35f.png +0 -0
  1531. data/templates/new-instance/public/images/emoji/unicode/1f360.png +0 -0
  1532. data/templates/new-instance/public/images/emoji/unicode/1f361.png +0 -0
  1533. data/templates/new-instance/public/images/emoji/unicode/1f362.png +0 -0
  1534. data/templates/new-instance/public/images/emoji/unicode/1f363.png +0 -0
  1535. data/templates/new-instance/public/images/emoji/unicode/1f364.png +0 -0
  1536. data/templates/new-instance/public/images/emoji/unicode/1f365.png +0 -0
  1537. data/templates/new-instance/public/images/emoji/unicode/1f366.png +0 -0
  1538. data/templates/new-instance/public/images/emoji/unicode/1f367.png +0 -0
  1539. data/templates/new-instance/public/images/emoji/unicode/1f368.png +0 -0
  1540. data/templates/new-instance/public/images/emoji/unicode/1f369.png +0 -0
  1541. data/templates/new-instance/public/images/emoji/unicode/1f36a.png +0 -0
  1542. data/templates/new-instance/public/images/emoji/unicode/1f36b.png +0 -0
  1543. data/templates/new-instance/public/images/emoji/unicode/1f36c.png +0 -0
  1544. data/templates/new-instance/public/images/emoji/unicode/1f36d.png +0 -0
  1545. data/templates/new-instance/public/images/emoji/unicode/1f36e.png +0 -0
  1546. data/templates/new-instance/public/images/emoji/unicode/1f36f.png +0 -0
  1547. data/templates/new-instance/public/images/emoji/unicode/1f370.png +0 -0
  1548. data/templates/new-instance/public/images/emoji/unicode/1f371.png +0 -0
  1549. data/templates/new-instance/public/images/emoji/unicode/1f372.png +0 -0
  1550. data/templates/new-instance/public/images/emoji/unicode/1f373.png +0 -0
  1551. data/templates/new-instance/public/images/emoji/unicode/1f374.png +0 -0
  1552. data/templates/new-instance/public/images/emoji/unicode/1f375.png +0 -0
  1553. data/templates/new-instance/public/images/emoji/unicode/1f376.png +0 -0
  1554. data/templates/new-instance/public/images/emoji/unicode/1f377.png +0 -0
  1555. data/templates/new-instance/public/images/emoji/unicode/1f378.png +0 -0
  1556. data/templates/new-instance/public/images/emoji/unicode/1f379.png +0 -0
  1557. data/templates/new-instance/public/images/emoji/unicode/1f37a.png +0 -0
  1558. data/templates/new-instance/public/images/emoji/unicode/1f37b.png +0 -0
  1559. data/templates/new-instance/public/images/emoji/unicode/1f37c.png +0 -0
  1560. data/templates/new-instance/public/images/emoji/unicode/1f380.png +0 -0
  1561. data/templates/new-instance/public/images/emoji/unicode/1f381.png +0 -0
  1562. data/templates/new-instance/public/images/emoji/unicode/1f382.png +0 -0
  1563. data/templates/new-instance/public/images/emoji/unicode/1f383.png +0 -0
  1564. data/templates/new-instance/public/images/emoji/unicode/1f384.png +0 -0
  1565. data/templates/new-instance/public/images/emoji/unicode/1f385.png +0 -0
  1566. data/templates/new-instance/public/images/emoji/unicode/1f386.png +0 -0
  1567. data/templates/new-instance/public/images/emoji/unicode/1f387.png +0 -0
  1568. data/templates/new-instance/public/images/emoji/unicode/1f388.png +0 -0
  1569. data/templates/new-instance/public/images/emoji/unicode/1f389.png +0 -0
  1570. data/templates/new-instance/public/images/emoji/unicode/1f38a.png +0 -0
  1571. data/templates/new-instance/public/images/emoji/unicode/1f38b.png +0 -0
  1572. data/templates/new-instance/public/images/emoji/unicode/1f38c.png +0 -0
  1573. data/templates/new-instance/public/images/emoji/unicode/1f38d.png +0 -0
  1574. data/templates/new-instance/public/images/emoji/unicode/1f38e.png +0 -0
  1575. data/templates/new-instance/public/images/emoji/unicode/1f38f.png +0 -0
  1576. data/templates/new-instance/public/images/emoji/unicode/1f390.png +0 -0
  1577. data/templates/new-instance/public/images/emoji/unicode/1f391.png +0 -0
  1578. data/templates/new-instance/public/images/emoji/unicode/1f392.png +0 -0
  1579. data/templates/new-instance/public/images/emoji/unicode/1f393.png +0 -0
  1580. data/templates/new-instance/public/images/emoji/unicode/1f3a0.png +0 -0
  1581. data/templates/new-instance/public/images/emoji/unicode/1f3a1.png +0 -0
  1582. data/templates/new-instance/public/images/emoji/unicode/1f3a2.png +0 -0
  1583. data/templates/new-instance/public/images/emoji/unicode/1f3a3.png +0 -0
  1584. data/templates/new-instance/public/images/emoji/unicode/1f3a4.png +0 -0
  1585. data/templates/new-instance/public/images/emoji/unicode/1f3a5.png +0 -0
  1586. data/templates/new-instance/public/images/emoji/unicode/1f3a6.png +0 -0
  1587. data/templates/new-instance/public/images/emoji/unicode/1f3a7.png +0 -0
  1588. data/templates/new-instance/public/images/emoji/unicode/1f3a8.png +0 -0
  1589. data/templates/new-instance/public/images/emoji/unicode/1f3a9.png +0 -0
  1590. data/templates/new-instance/public/images/emoji/unicode/1f3aa.png +0 -0
  1591. data/templates/new-instance/public/images/emoji/unicode/1f3ab.png +0 -0
  1592. data/templates/new-instance/public/images/emoji/unicode/1f3ac.png +0 -0
  1593. data/templates/new-instance/public/images/emoji/unicode/1f3ad.png +0 -0
  1594. data/templates/new-instance/public/images/emoji/unicode/1f3ae.png +0 -0
  1595. data/templates/new-instance/public/images/emoji/unicode/1f3af.png +0 -0
  1596. data/templates/new-instance/public/images/emoji/unicode/1f3b0.png +0 -0
  1597. data/templates/new-instance/public/images/emoji/unicode/1f3b1.png +0 -0
  1598. data/templates/new-instance/public/images/emoji/unicode/1f3b2.png +0 -0
  1599. data/templates/new-instance/public/images/emoji/unicode/1f3b3.png +0 -0
  1600. data/templates/new-instance/public/images/emoji/unicode/1f3b4.png +0 -0
  1601. data/templates/new-instance/public/images/emoji/unicode/1f3b5.png +0 -0
  1602. data/templates/new-instance/public/images/emoji/unicode/1f3b6.png +0 -0
  1603. data/templates/new-instance/public/images/emoji/unicode/1f3b7.png +0 -0
  1604. data/templates/new-instance/public/images/emoji/unicode/1f3b8.png +0 -0
  1605. data/templates/new-instance/public/images/emoji/unicode/1f3b9.png +0 -0
  1606. data/templates/new-instance/public/images/emoji/unicode/1f3ba.png +0 -0
  1607. data/templates/new-instance/public/images/emoji/unicode/1f3bb.png +0 -0
  1608. data/templates/new-instance/public/images/emoji/unicode/1f3bc.png +0 -0
  1609. data/templates/new-instance/public/images/emoji/unicode/1f3bd.png +0 -0
  1610. data/templates/new-instance/public/images/emoji/unicode/1f3be.png +0 -0
  1611. data/templates/new-instance/public/images/emoji/unicode/1f3bf.png +0 -0
  1612. data/templates/new-instance/public/images/emoji/unicode/1f3c0.png +0 -0
  1613. data/templates/new-instance/public/images/emoji/unicode/1f3c1.png +0 -0
  1614. data/templates/new-instance/public/images/emoji/unicode/1f3c2.png +0 -0
  1615. data/templates/new-instance/public/images/emoji/unicode/1f3c3.png +0 -0
  1616. data/templates/new-instance/public/images/emoji/unicode/1f3c4.png +0 -0
  1617. data/templates/new-instance/public/images/emoji/unicode/1f3c6.png +0 -0
  1618. data/templates/new-instance/public/images/emoji/unicode/1f3c7.png +0 -0
  1619. data/templates/new-instance/public/images/emoji/unicode/1f3c8.png +0 -0
  1620. data/templates/new-instance/public/images/emoji/unicode/1f3c9.png +0 -0
  1621. data/templates/new-instance/public/images/emoji/unicode/1f3ca.png +0 -0
  1622. data/templates/new-instance/public/images/emoji/unicode/1f3e0.png +0 -0
  1623. data/templates/new-instance/public/images/emoji/unicode/1f3e1.png +0 -0
  1624. data/templates/new-instance/public/images/emoji/unicode/1f3e2.png +0 -0
  1625. data/templates/new-instance/public/images/emoji/unicode/1f3e3.png +0 -0
  1626. data/templates/new-instance/public/images/emoji/unicode/1f3e4.png +0 -0
  1627. data/templates/new-instance/public/images/emoji/unicode/1f3e5.png +0 -0
  1628. data/templates/new-instance/public/images/emoji/unicode/1f3e6.png +0 -0
  1629. data/templates/new-instance/public/images/emoji/unicode/1f3e7.png +0 -0
  1630. data/templates/new-instance/public/images/emoji/unicode/1f3e8.png +0 -0
  1631. data/templates/new-instance/public/images/emoji/unicode/1f3e9.png +0 -0
  1632. data/templates/new-instance/public/images/emoji/unicode/1f3ea.png +0 -0
  1633. data/templates/new-instance/public/images/emoji/unicode/1f3eb.png +0 -0
  1634. data/templates/new-instance/public/images/emoji/unicode/1f3ec.png +0 -0
  1635. data/templates/new-instance/public/images/emoji/unicode/1f3ed.png +0 -0
  1636. data/templates/new-instance/public/images/emoji/unicode/1f3ee.png +0 -0
  1637. data/templates/new-instance/public/images/emoji/unicode/1f3ef.png +0 -0
  1638. data/templates/new-instance/public/images/emoji/unicode/1f3f0.png +0 -0
  1639. data/templates/new-instance/public/images/emoji/unicode/1f400.png +0 -0
  1640. data/templates/new-instance/public/images/emoji/unicode/1f401.png +0 -0
  1641. data/templates/new-instance/public/images/emoji/unicode/1f402.png +0 -0
  1642. data/templates/new-instance/public/images/emoji/unicode/1f403.png +0 -0
  1643. data/templates/new-instance/public/images/emoji/unicode/1f404.png +0 -0
  1644. data/templates/new-instance/public/images/emoji/unicode/1f405.png +0 -0
  1645. data/templates/new-instance/public/images/emoji/unicode/1f406.png +0 -0
  1646. data/templates/new-instance/public/images/emoji/unicode/1f407.png +0 -0
  1647. data/templates/new-instance/public/images/emoji/unicode/1f408.png +0 -0
  1648. data/templates/new-instance/public/images/emoji/unicode/1f409.png +0 -0
  1649. data/templates/new-instance/public/images/emoji/unicode/1f40a.png +0 -0
  1650. data/templates/new-instance/public/images/emoji/unicode/1f40b.png +0 -0
  1651. data/templates/new-instance/public/images/emoji/unicode/1f40c.png +0 -0
  1652. data/templates/new-instance/public/images/emoji/unicode/1f40d.png +0 -0
  1653. data/templates/new-instance/public/images/emoji/unicode/1f40e.png +0 -0
  1654. data/templates/new-instance/public/images/emoji/unicode/1f40f.png +0 -0
  1655. data/templates/new-instance/public/images/emoji/unicode/1f410.png +0 -0
  1656. data/templates/new-instance/public/images/emoji/unicode/1f411.png +0 -0
  1657. data/templates/new-instance/public/images/emoji/unicode/1f412.png +0 -0
  1658. data/templates/new-instance/public/images/emoji/unicode/1f413.png +0 -0
  1659. data/templates/new-instance/public/images/emoji/unicode/1f414.png +0 -0
  1660. data/templates/new-instance/public/images/emoji/unicode/1f415.png +0 -0
  1661. data/templates/new-instance/public/images/emoji/unicode/1f416.png +0 -0
  1662. data/templates/new-instance/public/images/emoji/unicode/1f417.png +0 -0
  1663. data/templates/new-instance/public/images/emoji/unicode/1f418.png +0 -0
  1664. data/templates/new-instance/public/images/emoji/unicode/1f419.png +0 -0
  1665. data/templates/new-instance/public/images/emoji/unicode/1f41a.png +0 -0
  1666. data/templates/new-instance/public/images/emoji/unicode/1f41b.png +0 -0
  1667. data/templates/new-instance/public/images/emoji/unicode/1f41c.png +0 -0
  1668. data/templates/new-instance/public/images/emoji/unicode/1f41d.png +0 -0
  1669. data/templates/new-instance/public/images/emoji/unicode/1f41e.png +0 -0
  1670. data/templates/new-instance/public/images/emoji/unicode/1f41f.png +0 -0
  1671. data/templates/new-instance/public/images/emoji/unicode/1f420.png +0 -0
  1672. data/templates/new-instance/public/images/emoji/unicode/1f421.png +0 -0
  1673. data/templates/new-instance/public/images/emoji/unicode/1f422.png +0 -0
  1674. data/templates/new-instance/public/images/emoji/unicode/1f423.png +0 -0
  1675. data/templates/new-instance/public/images/emoji/unicode/1f424.png +0 -0
  1676. data/templates/new-instance/public/images/emoji/unicode/1f425.png +0 -0
  1677. data/templates/new-instance/public/images/emoji/unicode/1f426.png +0 -0
  1678. data/templates/new-instance/public/images/emoji/unicode/1f427.png +0 -0
  1679. data/templates/new-instance/public/images/emoji/unicode/1f428.png +0 -0
  1680. data/templates/new-instance/public/images/emoji/unicode/1f429.png +0 -0
  1681. data/templates/new-instance/public/images/emoji/unicode/1f42a.png +0 -0
  1682. data/templates/new-instance/public/images/emoji/unicode/1f42b.png +0 -0
  1683. data/templates/new-instance/public/images/emoji/unicode/1f42c.png +0 -0
  1684. data/templates/new-instance/public/images/emoji/unicode/1f42d.png +0 -0
  1685. data/templates/new-instance/public/images/emoji/unicode/1f42e.png +0 -0
  1686. data/templates/new-instance/public/images/emoji/unicode/1f42f.png +0 -0
  1687. data/templates/new-instance/public/images/emoji/unicode/1f430.png +0 -0
  1688. data/templates/new-instance/public/images/emoji/unicode/1f431.png +0 -0
  1689. data/templates/new-instance/public/images/emoji/unicode/1f432.png +0 -0
  1690. data/templates/new-instance/public/images/emoji/unicode/1f433.png +0 -0
  1691. data/templates/new-instance/public/images/emoji/unicode/1f434.png +0 -0
  1692. data/templates/new-instance/public/images/emoji/unicode/1f435.png +0 -0
  1693. data/templates/new-instance/public/images/emoji/unicode/1f436.png +0 -0
  1694. data/templates/new-instance/public/images/emoji/unicode/1f437.png +0 -0
  1695. data/templates/new-instance/public/images/emoji/unicode/1f438.png +0 -0
  1696. data/templates/new-instance/public/images/emoji/unicode/1f439.png +0 -0
  1697. data/templates/new-instance/public/images/emoji/unicode/1f43a.png +0 -0
  1698. data/templates/new-instance/public/images/emoji/unicode/1f43b.png +0 -0
  1699. data/templates/new-instance/public/images/emoji/unicode/1f43c.png +0 -0
  1700. data/templates/new-instance/public/images/emoji/unicode/1f43d.png +0 -0
  1701. data/templates/new-instance/public/images/emoji/unicode/1f43e.png +0 -0
  1702. data/templates/new-instance/public/images/emoji/unicode/1f440.png +0 -0
  1703. data/templates/new-instance/public/images/emoji/unicode/1f442.png +0 -0
  1704. data/templates/new-instance/public/images/emoji/unicode/1f443.png +0 -0
  1705. data/templates/new-instance/public/images/emoji/unicode/1f444.png +0 -0
  1706. data/templates/new-instance/public/images/emoji/unicode/1f445.png +0 -0
  1707. data/templates/new-instance/public/images/emoji/unicode/1f446.png +0 -0
  1708. data/templates/new-instance/public/images/emoji/unicode/1f447.png +0 -0
  1709. data/templates/new-instance/public/images/emoji/unicode/1f448.png +0 -0
  1710. data/templates/new-instance/public/images/emoji/unicode/1f449.png +0 -0
  1711. data/templates/new-instance/public/images/emoji/unicode/1f44a.png +0 -0
  1712. data/templates/new-instance/public/images/emoji/unicode/1f44b.png +0 -0
  1713. data/templates/new-instance/public/images/emoji/unicode/1f44c.png +0 -0
  1714. data/templates/new-instance/public/images/emoji/unicode/1f44d.png +0 -0
  1715. data/templates/new-instance/public/images/emoji/unicode/1f44e.png +0 -0
  1716. data/templates/new-instance/public/images/emoji/unicode/1f44f.png +0 -0
  1717. data/templates/new-instance/public/images/emoji/unicode/1f450.png +0 -0
  1718. data/templates/new-instance/public/images/emoji/unicode/1f451.png +0 -0
  1719. data/templates/new-instance/public/images/emoji/unicode/1f452.png +0 -0
  1720. data/templates/new-instance/public/images/emoji/unicode/1f453.png +0 -0
  1721. data/templates/new-instance/public/images/emoji/unicode/1f454.png +0 -0
  1722. data/templates/new-instance/public/images/emoji/unicode/1f455.png +0 -0
  1723. data/templates/new-instance/public/images/emoji/unicode/1f456.png +0 -0
  1724. data/templates/new-instance/public/images/emoji/unicode/1f457.png +0 -0
  1725. data/templates/new-instance/public/images/emoji/unicode/1f458.png +0 -0
  1726. data/templates/new-instance/public/images/emoji/unicode/1f459.png +0 -0
  1727. data/templates/new-instance/public/images/emoji/unicode/1f45a.png +0 -0
  1728. data/templates/new-instance/public/images/emoji/unicode/1f45b.png +0 -0
  1729. data/templates/new-instance/public/images/emoji/unicode/1f45c.png +0 -0
  1730. data/templates/new-instance/public/images/emoji/unicode/1f45d.png +0 -0
  1731. data/templates/new-instance/public/images/emoji/unicode/1f45e.png +0 -0
  1732. data/templates/new-instance/public/images/emoji/unicode/1f45f.png +0 -0
  1733. data/templates/new-instance/public/images/emoji/unicode/1f460.png +0 -0
  1734. data/templates/new-instance/public/images/emoji/unicode/1f461.png +0 -0
  1735. data/templates/new-instance/public/images/emoji/unicode/1f462.png +0 -0
  1736. data/templates/new-instance/public/images/emoji/unicode/1f463.png +0 -0
  1737. data/templates/new-instance/public/images/emoji/unicode/1f464.png +0 -0
  1738. data/templates/new-instance/public/images/emoji/unicode/1f465.png +0 -0
  1739. data/templates/new-instance/public/images/emoji/unicode/1f466.png +0 -0
  1740. data/templates/new-instance/public/images/emoji/unicode/1f467.png +0 -0
  1741. data/templates/new-instance/public/images/emoji/unicode/1f468.png +0 -0
  1742. data/templates/new-instance/public/images/emoji/unicode/1f469.png +0 -0
  1743. data/templates/new-instance/public/images/emoji/unicode/1f46a.png +0 -0
  1744. data/templates/new-instance/public/images/emoji/unicode/1f46b.png +0 -0
  1745. data/templates/new-instance/public/images/emoji/unicode/1f46c.png +0 -0
  1746. data/templates/new-instance/public/images/emoji/unicode/1f46d.png +0 -0
  1747. data/templates/new-instance/public/images/emoji/unicode/1f46e.png +0 -0
  1748. data/templates/new-instance/public/images/emoji/unicode/1f46f.png +0 -0
  1749. data/templates/new-instance/public/images/emoji/unicode/1f470.png +0 -0
  1750. data/templates/new-instance/public/images/emoji/unicode/1f471.png +0 -0
  1751. data/templates/new-instance/public/images/emoji/unicode/1f472.png +0 -0
  1752. data/templates/new-instance/public/images/emoji/unicode/1f473.png +0 -0
  1753. data/templates/new-instance/public/images/emoji/unicode/1f474.png +0 -0
  1754. data/templates/new-instance/public/images/emoji/unicode/1f475.png +0 -0
  1755. data/templates/new-instance/public/images/emoji/unicode/1f476.png +0 -0
  1756. data/templates/new-instance/public/images/emoji/unicode/1f477.png +0 -0
  1757. data/templates/new-instance/public/images/emoji/unicode/1f478.png +0 -0
  1758. data/templates/new-instance/public/images/emoji/unicode/1f479.png +0 -0
  1759. data/templates/new-instance/public/images/emoji/unicode/1f47a.png +0 -0
  1760. data/templates/new-instance/public/images/emoji/unicode/1f47b.png +0 -0
  1761. data/templates/new-instance/public/images/emoji/unicode/1f47c.png +0 -0
  1762. data/templates/new-instance/public/images/emoji/unicode/1f47d.png +0 -0
  1763. data/templates/new-instance/public/images/emoji/unicode/1f47e.png +0 -0
  1764. data/templates/new-instance/public/images/emoji/unicode/1f47f.png +0 -0
  1765. data/templates/new-instance/public/images/emoji/unicode/1f480.png +0 -0
  1766. data/templates/new-instance/public/images/emoji/unicode/1f481.png +0 -0
  1767. data/templates/new-instance/public/images/emoji/unicode/1f482.png +0 -0
  1768. data/templates/new-instance/public/images/emoji/unicode/1f483.png +0 -0
  1769. data/templates/new-instance/public/images/emoji/unicode/1f484.png +0 -0
  1770. data/templates/new-instance/public/images/emoji/unicode/1f485.png +0 -0
  1771. data/templates/new-instance/public/images/emoji/unicode/1f486.png +0 -0
  1772. data/templates/new-instance/public/images/emoji/unicode/1f487.png +0 -0
  1773. data/templates/new-instance/public/images/emoji/unicode/1f488.png +0 -0
  1774. data/templates/new-instance/public/images/emoji/unicode/1f489.png +0 -0
  1775. data/templates/new-instance/public/images/emoji/unicode/1f48a.png +0 -0
  1776. data/templates/new-instance/public/images/emoji/unicode/1f48b.png +0 -0
  1777. data/templates/new-instance/public/images/emoji/unicode/1f48c.png +0 -0
  1778. data/templates/new-instance/public/images/emoji/unicode/1f48d.png +0 -0
  1779. data/templates/new-instance/public/images/emoji/unicode/1f48e.png +0 -0
  1780. data/templates/new-instance/public/images/emoji/unicode/1f48f.png +0 -0
  1781. data/templates/new-instance/public/images/emoji/unicode/1f490.png +0 -0
  1782. data/templates/new-instance/public/images/emoji/unicode/1f491.png +0 -0
  1783. data/templates/new-instance/public/images/emoji/unicode/1f492.png +0 -0
  1784. data/templates/new-instance/public/images/emoji/unicode/1f493.png +0 -0
  1785. data/templates/new-instance/public/images/emoji/unicode/1f494.png +0 -0
  1786. data/templates/new-instance/public/images/emoji/unicode/1f495.png +0 -0
  1787. data/templates/new-instance/public/images/emoji/unicode/1f496.png +0 -0
  1788. data/templates/new-instance/public/images/emoji/unicode/1f497.png +0 -0
  1789. data/templates/new-instance/public/images/emoji/unicode/1f498.png +0 -0
  1790. data/templates/new-instance/public/images/emoji/unicode/1f499.png +0 -0
  1791. data/templates/new-instance/public/images/emoji/unicode/1f49a.png +0 -0
  1792. data/templates/new-instance/public/images/emoji/unicode/1f49b.png +0 -0
  1793. data/templates/new-instance/public/images/emoji/unicode/1f49c.png +0 -0
  1794. data/templates/new-instance/public/images/emoji/unicode/1f49d.png +0 -0
  1795. data/templates/new-instance/public/images/emoji/unicode/1f49e.png +0 -0
  1796. data/templates/new-instance/public/images/emoji/unicode/1f49f.png +0 -0
  1797. data/templates/new-instance/public/images/emoji/unicode/1f4a0.png +0 -0
  1798. data/templates/new-instance/public/images/emoji/unicode/1f4a1.png +0 -0
  1799. data/templates/new-instance/public/images/emoji/unicode/1f4a2.png +0 -0
  1800. data/templates/new-instance/public/images/emoji/unicode/1f4a3.png +0 -0
  1801. data/templates/new-instance/public/images/emoji/unicode/1f4a4.png +0 -0
  1802. data/templates/new-instance/public/images/emoji/unicode/1f4a5.png +0 -0
  1803. data/templates/new-instance/public/images/emoji/unicode/1f4a6.png +0 -0
  1804. data/templates/new-instance/public/images/emoji/unicode/1f4a7.png +0 -0
  1805. data/templates/new-instance/public/images/emoji/unicode/1f4a8.png +0 -0
  1806. data/templates/new-instance/public/images/emoji/unicode/1f4a9.png +0 -0
  1807. data/templates/new-instance/public/images/emoji/unicode/1f4aa.png +0 -0
  1808. data/templates/new-instance/public/images/emoji/unicode/1f4ab.png +0 -0
  1809. data/templates/new-instance/public/images/emoji/unicode/1f4ac.png +0 -0
  1810. data/templates/new-instance/public/images/emoji/unicode/1f4ad.png +0 -0
  1811. data/templates/new-instance/public/images/emoji/unicode/1f4ae.png +0 -0
  1812. data/templates/new-instance/public/images/emoji/unicode/1f4af.png +0 -0
  1813. data/templates/new-instance/public/images/emoji/unicode/1f4b0.png +0 -0
  1814. data/templates/new-instance/public/images/emoji/unicode/1f4b1.png +0 -0
  1815. data/templates/new-instance/public/images/emoji/unicode/1f4b2.png +0 -0
  1816. data/templates/new-instance/public/images/emoji/unicode/1f4b3.png +0 -0
  1817. data/templates/new-instance/public/images/emoji/unicode/1f4b4.png +0 -0
  1818. data/templates/new-instance/public/images/emoji/unicode/1f4b5.png +0 -0
  1819. data/templates/new-instance/public/images/emoji/unicode/1f4b6.png +0 -0
  1820. data/templates/new-instance/public/images/emoji/unicode/1f4b7.png +0 -0
  1821. data/templates/new-instance/public/images/emoji/unicode/1f4b8.png +0 -0
  1822. data/templates/new-instance/public/images/emoji/unicode/1f4b9.png +0 -0
  1823. data/templates/new-instance/public/images/emoji/unicode/1f4ba.png +0 -0
  1824. data/templates/new-instance/public/images/emoji/unicode/1f4bb.png +0 -0
  1825. data/templates/new-instance/public/images/emoji/unicode/1f4bc.png +0 -0
  1826. data/templates/new-instance/public/images/emoji/unicode/1f4bd.png +0 -0
  1827. data/templates/new-instance/public/images/emoji/unicode/1f4be.png +0 -0
  1828. data/templates/new-instance/public/images/emoji/unicode/1f4bf.png +0 -0
  1829. data/templates/new-instance/public/images/emoji/unicode/1f4c0.png +0 -0
  1830. data/templates/new-instance/public/images/emoji/unicode/1f4c1.png +0 -0
  1831. data/templates/new-instance/public/images/emoji/unicode/1f4c2.png +0 -0
  1832. data/templates/new-instance/public/images/emoji/unicode/1f4c3.png +0 -0
  1833. data/templates/new-instance/public/images/emoji/unicode/1f4c4.png +0 -0
  1834. data/templates/new-instance/public/images/emoji/unicode/1f4c5.png +0 -0
  1835. data/templates/new-instance/public/images/emoji/unicode/1f4c6.png +0 -0
  1836. data/templates/new-instance/public/images/emoji/unicode/1f4c7.png +0 -0
  1837. data/templates/new-instance/public/images/emoji/unicode/1f4c8.png +0 -0
  1838. data/templates/new-instance/public/images/emoji/unicode/1f4c9.png +0 -0
  1839. data/templates/new-instance/public/images/emoji/unicode/1f4ca.png +0 -0
  1840. data/templates/new-instance/public/images/emoji/unicode/1f4cb.png +0 -0
  1841. data/templates/new-instance/public/images/emoji/unicode/1f4cc.png +0 -0
  1842. data/templates/new-instance/public/images/emoji/unicode/1f4cd.png +0 -0
  1843. data/templates/new-instance/public/images/emoji/unicode/1f4ce.png +0 -0
  1844. data/templates/new-instance/public/images/emoji/unicode/1f4cf.png +0 -0
  1845. data/templates/new-instance/public/images/emoji/unicode/1f4d0.png +0 -0
  1846. data/templates/new-instance/public/images/emoji/unicode/1f4d1.png +0 -0
  1847. data/templates/new-instance/public/images/emoji/unicode/1f4d2.png +0 -0
  1848. data/templates/new-instance/public/images/emoji/unicode/1f4d3.png +0 -0
  1849. data/templates/new-instance/public/images/emoji/unicode/1f4d4.png +0 -0
  1850. data/templates/new-instance/public/images/emoji/unicode/1f4d5.png +0 -0
  1851. data/templates/new-instance/public/images/emoji/unicode/1f4d6.png +0 -0
  1852. data/templates/new-instance/public/images/emoji/unicode/1f4d7.png +0 -0
  1853. data/templates/new-instance/public/images/emoji/unicode/1f4d8.png +0 -0
  1854. data/templates/new-instance/public/images/emoji/unicode/1f4d9.png +0 -0
  1855. data/templates/new-instance/public/images/emoji/unicode/1f4da.png +0 -0
  1856. data/templates/new-instance/public/images/emoji/unicode/1f4db.png +0 -0
  1857. data/templates/new-instance/public/images/emoji/unicode/1f4dc.png +0 -0
  1858. data/templates/new-instance/public/images/emoji/unicode/1f4dd.png +0 -0
  1859. data/templates/new-instance/public/images/emoji/unicode/1f4de.png +0 -0
  1860. data/templates/new-instance/public/images/emoji/unicode/1f4df.png +0 -0
  1861. data/templates/new-instance/public/images/emoji/unicode/1f4e0.png +0 -0
  1862. data/templates/new-instance/public/images/emoji/unicode/1f4e1.png +0 -0
  1863. data/templates/new-instance/public/images/emoji/unicode/1f4e2.png +0 -0
  1864. data/templates/new-instance/public/images/emoji/unicode/1f4e3.png +0 -0
  1865. data/templates/new-instance/public/images/emoji/unicode/1f4e4.png +0 -0
  1866. data/templates/new-instance/public/images/emoji/unicode/1f4e5.png +0 -0
  1867. data/templates/new-instance/public/images/emoji/unicode/1f4e6.png +0 -0
  1868. data/templates/new-instance/public/images/emoji/unicode/1f4e7.png +0 -0
  1869. data/templates/new-instance/public/images/emoji/unicode/1f4e8.png +0 -0
  1870. data/templates/new-instance/public/images/emoji/unicode/1f4e9.png +0 -0
  1871. data/templates/new-instance/public/images/emoji/unicode/1f4ea.png +0 -0
  1872. data/templates/new-instance/public/images/emoji/unicode/1f4eb.png +0 -0
  1873. data/templates/new-instance/public/images/emoji/unicode/1f4ec.png +0 -0
  1874. data/templates/new-instance/public/images/emoji/unicode/1f4ed.png +0 -0
  1875. data/templates/new-instance/public/images/emoji/unicode/1f4ee.png +0 -0
  1876. data/templates/new-instance/public/images/emoji/unicode/1f4ef.png +0 -0
  1877. data/templates/new-instance/public/images/emoji/unicode/1f4f0.png +0 -0
  1878. data/templates/new-instance/public/images/emoji/unicode/1f4f1.png +0 -0
  1879. data/templates/new-instance/public/images/emoji/unicode/1f4f2.png +0 -0
  1880. data/templates/new-instance/public/images/emoji/unicode/1f4f3.png +0 -0
  1881. data/templates/new-instance/public/images/emoji/unicode/1f4f4.png +0 -0
  1882. data/templates/new-instance/public/images/emoji/unicode/1f4f5.png +0 -0
  1883. data/templates/new-instance/public/images/emoji/unicode/1f4f6.png +0 -0
  1884. data/templates/new-instance/public/images/emoji/unicode/1f4f7.png +0 -0
  1885. data/templates/new-instance/public/images/emoji/unicode/1f4f9.png +0 -0
  1886. data/templates/new-instance/public/images/emoji/unicode/1f4fa.png +0 -0
  1887. data/templates/new-instance/public/images/emoji/unicode/1f4fb.png +0 -0
  1888. data/templates/new-instance/public/images/emoji/unicode/1f4fc.png +0 -0
  1889. data/templates/new-instance/public/images/emoji/unicode/1f500.png +0 -0
  1890. data/templates/new-instance/public/images/emoji/unicode/1f501.png +0 -0
  1891. data/templates/new-instance/public/images/emoji/unicode/1f502.png +0 -0
  1892. data/templates/new-instance/public/images/emoji/unicode/1f503.png +0 -0
  1893. data/templates/new-instance/public/images/emoji/unicode/1f504.png +0 -0
  1894. data/templates/new-instance/public/images/emoji/unicode/1f505.png +0 -0
  1895. data/templates/new-instance/public/images/emoji/unicode/1f506.png +0 -0
  1896. data/templates/new-instance/public/images/emoji/unicode/1f507.png +0 -0
  1897. data/templates/new-instance/public/images/emoji/unicode/1f509.png +0 -0
  1898. data/templates/new-instance/public/images/emoji/unicode/1f50a.png +0 -0
  1899. data/templates/new-instance/public/images/emoji/unicode/1f50b.png +0 -0
  1900. data/templates/new-instance/public/images/emoji/unicode/1f50c.png +0 -0
  1901. data/templates/new-instance/public/images/emoji/unicode/1f50d.png +0 -0
  1902. data/templates/new-instance/public/images/emoji/unicode/1f50e.png +0 -0
  1903. data/templates/new-instance/public/images/emoji/unicode/1f50f.png +0 -0
  1904. data/templates/new-instance/public/images/emoji/unicode/1f510.png +0 -0
  1905. data/templates/new-instance/public/images/emoji/unicode/1f511.png +0 -0
  1906. data/templates/new-instance/public/images/emoji/unicode/1f512.png +0 -0
  1907. data/templates/new-instance/public/images/emoji/unicode/1f513.png +0 -0
  1908. data/templates/new-instance/public/images/emoji/unicode/1f514.png +0 -0
  1909. data/templates/new-instance/public/images/emoji/unicode/1f515.png +0 -0
  1910. data/templates/new-instance/public/images/emoji/unicode/1f516.png +0 -0
  1911. data/templates/new-instance/public/images/emoji/unicode/1f517.png +0 -0
  1912. data/templates/new-instance/public/images/emoji/unicode/1f518.png +0 -0
  1913. data/templates/new-instance/public/images/emoji/unicode/1f519.png +0 -0
  1914. data/templates/new-instance/public/images/emoji/unicode/1f51a.png +0 -0
  1915. data/templates/new-instance/public/images/emoji/unicode/1f51b.png +0 -0
  1916. data/templates/new-instance/public/images/emoji/unicode/1f51c.png +0 -0
  1917. data/templates/new-instance/public/images/emoji/unicode/1f51d.png +0 -0
  1918. data/templates/new-instance/public/images/emoji/unicode/1f51e.png +0 -0
  1919. data/templates/new-instance/public/images/emoji/unicode/1f51f.png +0 -0
  1920. data/templates/new-instance/public/images/emoji/unicode/1f520.png +0 -0
  1921. data/templates/new-instance/public/images/emoji/unicode/1f521.png +0 -0
  1922. data/templates/new-instance/public/images/emoji/unicode/1f522.png +0 -0
  1923. data/templates/new-instance/public/images/emoji/unicode/1f523.png +0 -0
  1924. data/templates/new-instance/public/images/emoji/unicode/1f524.png +0 -0
  1925. data/templates/new-instance/public/images/emoji/unicode/1f525.png +0 -0
  1926. data/templates/new-instance/public/images/emoji/unicode/1f526.png +0 -0
  1927. data/templates/new-instance/public/images/emoji/unicode/1f527.png +0 -0
  1928. data/templates/new-instance/public/images/emoji/unicode/1f528.png +0 -0
  1929. data/templates/new-instance/public/images/emoji/unicode/1f529.png +0 -0
  1930. data/templates/new-instance/public/images/emoji/unicode/1f52a.png +0 -0
  1931. data/templates/new-instance/public/images/emoji/unicode/1f52b.png +0 -0
  1932. data/templates/new-instance/public/images/emoji/unicode/1f52c.png +0 -0
  1933. data/templates/new-instance/public/images/emoji/unicode/1f52d.png +0 -0
  1934. data/templates/new-instance/public/images/emoji/unicode/1f52e.png +0 -0
  1935. data/templates/new-instance/public/images/emoji/unicode/1f52f.png +0 -0
  1936. data/templates/new-instance/public/images/emoji/unicode/1f530.png +0 -0
  1937. data/templates/new-instance/public/images/emoji/unicode/1f531.png +0 -0
  1938. data/templates/new-instance/public/images/emoji/unicode/1f532.png +0 -0
  1939. data/templates/new-instance/public/images/emoji/unicode/1f533.png +0 -0
  1940. data/templates/new-instance/public/images/emoji/unicode/1f534.png +0 -0
  1941. data/templates/new-instance/public/images/emoji/unicode/1f535.png +0 -0
  1942. data/templates/new-instance/public/images/emoji/unicode/1f536.png +0 -0
  1943. data/templates/new-instance/public/images/emoji/unicode/1f537.png +0 -0
  1944. data/templates/new-instance/public/images/emoji/unicode/1f538.png +0 -0
  1945. data/templates/new-instance/public/images/emoji/unicode/1f539.png +0 -0
  1946. data/templates/new-instance/public/images/emoji/unicode/1f53a.png +0 -0
  1947. data/templates/new-instance/public/images/emoji/unicode/1f53b.png +0 -0
  1948. data/templates/new-instance/public/images/emoji/unicode/1f53c.png +0 -0
  1949. data/templates/new-instance/public/images/emoji/unicode/1f53d.png +0 -0
  1950. data/templates/new-instance/public/images/emoji/unicode/1f550.png +0 -0
  1951. data/templates/new-instance/public/images/emoji/unicode/1f551.png +0 -0
  1952. data/templates/new-instance/public/images/emoji/unicode/1f552.png +0 -0
  1953. data/templates/new-instance/public/images/emoji/unicode/1f553.png +0 -0
  1954. data/templates/new-instance/public/images/emoji/unicode/1f554.png +0 -0
  1955. data/templates/new-instance/public/images/emoji/unicode/1f555.png +0 -0
  1956. data/templates/new-instance/public/images/emoji/unicode/1f556.png +0 -0
  1957. data/templates/new-instance/public/images/emoji/unicode/1f557.png +0 -0
  1958. data/templates/new-instance/public/images/emoji/unicode/1f558.png +0 -0
  1959. data/templates/new-instance/public/images/emoji/unicode/1f559.png +0 -0
  1960. data/templates/new-instance/public/images/emoji/unicode/1f55a.png +0 -0
  1961. data/templates/new-instance/public/images/emoji/unicode/1f55b.png +0 -0
  1962. data/templates/new-instance/public/images/emoji/unicode/1f55c.png +0 -0
  1963. data/templates/new-instance/public/images/emoji/unicode/1f55d.png +0 -0
  1964. data/templates/new-instance/public/images/emoji/unicode/1f55e.png +0 -0
  1965. data/templates/new-instance/public/images/emoji/unicode/1f55f.png +0 -0
  1966. data/templates/new-instance/public/images/emoji/unicode/1f560.png +0 -0
  1967. data/templates/new-instance/public/images/emoji/unicode/1f561.png +0 -0
  1968. data/templates/new-instance/public/images/emoji/unicode/1f562.png +0 -0
  1969. data/templates/new-instance/public/images/emoji/unicode/1f563.png +0 -0
  1970. data/templates/new-instance/public/images/emoji/unicode/1f564.png +0 -0
  1971. data/templates/new-instance/public/images/emoji/unicode/1f565.png +0 -0
  1972. data/templates/new-instance/public/images/emoji/unicode/1f566.png +0 -0
  1973. data/templates/new-instance/public/images/emoji/unicode/1f567.png +0 -0
  1974. data/templates/new-instance/public/images/emoji/unicode/1f5fb.png +0 -0
  1975. data/templates/new-instance/public/images/emoji/unicode/1f5fc.png +0 -0
  1976. data/templates/new-instance/public/images/emoji/unicode/1f5fd.png +0 -0
  1977. data/templates/new-instance/public/images/emoji/unicode/1f5fe.png +0 -0
  1978. data/templates/new-instance/public/images/emoji/unicode/1f5ff.png +0 -0
  1979. data/templates/new-instance/public/images/emoji/unicode/1f600.png +0 -0
  1980. data/templates/new-instance/public/images/emoji/unicode/1f601.png +0 -0
  1981. data/templates/new-instance/public/images/emoji/unicode/1f602.png +0 -0
  1982. data/templates/new-instance/public/images/emoji/unicode/1f603.png +0 -0
  1983. data/templates/new-instance/public/images/emoji/unicode/1f604.png +0 -0
  1984. data/templates/new-instance/public/images/emoji/unicode/1f605.png +0 -0
  1985. data/templates/new-instance/public/images/emoji/unicode/1f606.png +0 -0
  1986. data/templates/new-instance/public/images/emoji/unicode/1f607.png +0 -0
  1987. data/templates/new-instance/public/images/emoji/unicode/1f608.png +0 -0
  1988. data/templates/new-instance/public/images/emoji/unicode/1f609.png +0 -0
  1989. data/templates/new-instance/public/images/emoji/unicode/1f60a.png +0 -0
  1990. data/templates/new-instance/public/images/emoji/unicode/1f60b.png +0 -0
  1991. data/templates/new-instance/public/images/emoji/unicode/1f60c.png +0 -0
  1992. data/templates/new-instance/public/images/emoji/unicode/1f60d.png +0 -0
  1993. data/templates/new-instance/public/images/emoji/unicode/1f60e.png +0 -0
  1994. data/templates/new-instance/public/images/emoji/unicode/1f60f.png +0 -0
  1995. data/templates/new-instance/public/images/emoji/unicode/1f610.png +0 -0
  1996. data/templates/new-instance/public/images/emoji/unicode/1f611.png +0 -0
  1997. data/templates/new-instance/public/images/emoji/unicode/1f612.png +0 -0
  1998. data/templates/new-instance/public/images/emoji/unicode/1f613.png +0 -0
  1999. data/templates/new-instance/public/images/emoji/unicode/1f614.png +0 -0
  2000. data/templates/new-instance/public/images/emoji/unicode/1f615.png +0 -0
  2001. data/templates/new-instance/public/images/emoji/unicode/1f616.png +0 -0
  2002. data/templates/new-instance/public/images/emoji/unicode/1f617.png +0 -0
  2003. data/templates/new-instance/public/images/emoji/unicode/1f618.png +0 -0
  2004. data/templates/new-instance/public/images/emoji/unicode/1f619.png +0 -0
  2005. data/templates/new-instance/public/images/emoji/unicode/1f61a.png +0 -0
  2006. data/templates/new-instance/public/images/emoji/unicode/1f61b.png +0 -0
  2007. data/templates/new-instance/public/images/emoji/unicode/1f61c.png +0 -0
  2008. data/templates/new-instance/public/images/emoji/unicode/1f61d.png +0 -0
  2009. data/templates/new-instance/public/images/emoji/unicode/1f61e.png +0 -0
  2010. data/templates/new-instance/public/images/emoji/unicode/1f61f.png +0 -0
  2011. data/templates/new-instance/public/images/emoji/unicode/1f620.png +0 -0
  2012. data/templates/new-instance/public/images/emoji/unicode/1f621.png +0 -0
  2013. data/templates/new-instance/public/images/emoji/unicode/1f622.png +0 -0
  2014. data/templates/new-instance/public/images/emoji/unicode/1f623.png +0 -0
  2015. data/templates/new-instance/public/images/emoji/unicode/1f624.png +0 -0
  2016. data/templates/new-instance/public/images/emoji/unicode/1f625.png +0 -0
  2017. data/templates/new-instance/public/images/emoji/unicode/1f626.png +0 -0
  2018. data/templates/new-instance/public/images/emoji/unicode/1f627.png +0 -0
  2019. data/templates/new-instance/public/images/emoji/unicode/1f628.png +0 -0
  2020. data/templates/new-instance/public/images/emoji/unicode/1f629.png +0 -0
  2021. data/templates/new-instance/public/images/emoji/unicode/1f62a.png +0 -0
  2022. data/templates/new-instance/public/images/emoji/unicode/1f62b.png +0 -0
  2023. data/templates/new-instance/public/images/emoji/unicode/1f62c.png +0 -0
  2024. data/templates/new-instance/public/images/emoji/unicode/1f62d.png +0 -0
  2025. data/templates/new-instance/public/images/emoji/unicode/1f62e.png +0 -0
  2026. data/templates/new-instance/public/images/emoji/unicode/1f62f.png +0 -0
  2027. data/templates/new-instance/public/images/emoji/unicode/1f630.png +0 -0
  2028. data/templates/new-instance/public/images/emoji/unicode/1f631.png +0 -0
  2029. data/templates/new-instance/public/images/emoji/unicode/1f632.png +0 -0
  2030. data/templates/new-instance/public/images/emoji/unicode/1f633.png +0 -0
  2031. data/templates/new-instance/public/images/emoji/unicode/1f634.png +0 -0
  2032. data/templates/new-instance/public/images/emoji/unicode/1f635.png +0 -0
  2033. data/templates/new-instance/public/images/emoji/unicode/1f636.png +0 -0
  2034. data/templates/new-instance/public/images/emoji/unicode/1f637.png +0 -0
  2035. data/templates/new-instance/public/images/emoji/unicode/1f638.png +0 -0
  2036. data/templates/new-instance/public/images/emoji/unicode/1f639.png +0 -0
  2037. data/templates/new-instance/public/images/emoji/unicode/1f63a.png +0 -0
  2038. data/templates/new-instance/public/images/emoji/unicode/1f63b.png +0 -0
  2039. data/templates/new-instance/public/images/emoji/unicode/1f63c.png +0 -0
  2040. data/templates/new-instance/public/images/emoji/unicode/1f63d.png +0 -0
  2041. data/templates/new-instance/public/images/emoji/unicode/1f63e.png +0 -0
  2042. data/templates/new-instance/public/images/emoji/unicode/1f63f.png +0 -0
  2043. data/templates/new-instance/public/images/emoji/unicode/1f640.png +0 -0
  2044. data/templates/new-instance/public/images/emoji/unicode/1f645.png +0 -0
  2045. data/templates/new-instance/public/images/emoji/unicode/1f646.png +0 -0
  2046. data/templates/new-instance/public/images/emoji/unicode/1f647.png +0 -0
  2047. data/templates/new-instance/public/images/emoji/unicode/1f648.png +0 -0
  2048. data/templates/new-instance/public/images/emoji/unicode/1f649.png +0 -0
  2049. data/templates/new-instance/public/images/emoji/unicode/1f64a.png +0 -0
  2050. data/templates/new-instance/public/images/emoji/unicode/1f64b.png +0 -0
  2051. data/templates/new-instance/public/images/emoji/unicode/1f64c.png +0 -0
  2052. data/templates/new-instance/public/images/emoji/unicode/1f64d.png +0 -0
  2053. data/templates/new-instance/public/images/emoji/unicode/1f64e.png +0 -0
  2054. data/templates/new-instance/public/images/emoji/unicode/1f64f.png +0 -0
  2055. data/templates/new-instance/public/images/emoji/unicode/1f680.png +0 -0
  2056. data/templates/new-instance/public/images/emoji/unicode/1f681.png +0 -0
  2057. data/templates/new-instance/public/images/emoji/unicode/1f682.png +0 -0
  2058. data/templates/new-instance/public/images/emoji/unicode/1f683.png +0 -0
  2059. data/templates/new-instance/public/images/emoji/unicode/1f684.png +0 -0
  2060. data/templates/new-instance/public/images/emoji/unicode/1f685.png +0 -0
  2061. data/templates/new-instance/public/images/emoji/unicode/1f686.png +0 -0
  2062. data/templates/new-instance/public/images/emoji/unicode/1f687.png +0 -0
  2063. data/templates/new-instance/public/images/emoji/unicode/1f688.png +0 -0
  2064. data/templates/new-instance/public/images/emoji/unicode/1f689.png +0 -0
  2065. data/templates/new-instance/public/images/emoji/unicode/1f68a.png +0 -0
  2066. data/templates/new-instance/public/images/emoji/unicode/1f68c.png +0 -0
  2067. data/templates/new-instance/public/images/emoji/unicode/1f68d.png +0 -0
  2068. data/templates/new-instance/public/images/emoji/unicode/1f68e.png +0 -0
  2069. data/templates/new-instance/public/images/emoji/unicode/1f68f.png +0 -0
  2070. data/templates/new-instance/public/images/emoji/unicode/1f690.png +0 -0
  2071. data/templates/new-instance/public/images/emoji/unicode/1f691.png +0 -0
  2072. data/templates/new-instance/public/images/emoji/unicode/1f692.png +0 -0
  2073. data/templates/new-instance/public/images/emoji/unicode/1f693.png +0 -0
  2074. data/templates/new-instance/public/images/emoji/unicode/1f694.png +0 -0
  2075. data/templates/new-instance/public/images/emoji/unicode/1f695.png +0 -0
  2076. data/templates/new-instance/public/images/emoji/unicode/1f696.png +0 -0
  2077. data/templates/new-instance/public/images/emoji/unicode/1f697.png +0 -0
  2078. data/templates/new-instance/public/images/emoji/unicode/1f698.png +0 -0
  2079. data/templates/new-instance/public/images/emoji/unicode/1f699.png +0 -0
  2080. data/templates/new-instance/public/images/emoji/unicode/1f69a.png +0 -0
  2081. data/templates/new-instance/public/images/emoji/unicode/1f69b.png +0 -0
  2082. data/templates/new-instance/public/images/emoji/unicode/1f69c.png +0 -0
  2083. data/templates/new-instance/public/images/emoji/unicode/1f69d.png +0 -0
  2084. data/templates/new-instance/public/images/emoji/unicode/1f69e.png +0 -0
  2085. data/templates/new-instance/public/images/emoji/unicode/1f69f.png +0 -0
  2086. data/templates/new-instance/public/images/emoji/unicode/1f6a0.png +0 -0
  2087. data/templates/new-instance/public/images/emoji/unicode/1f6a1.png +0 -0
  2088. data/templates/new-instance/public/images/emoji/unicode/1f6a2.png +0 -0
  2089. data/templates/new-instance/public/images/emoji/unicode/1f6a3.png +0 -0
  2090. data/templates/new-instance/public/images/emoji/unicode/1f6a4.png +0 -0
  2091. data/templates/new-instance/public/images/emoji/unicode/1f6a5.png +0 -0
  2092. data/templates/new-instance/public/images/emoji/unicode/1f6a6.png +0 -0
  2093. data/templates/new-instance/public/images/emoji/unicode/1f6a7.png +0 -0
  2094. data/templates/new-instance/public/images/emoji/unicode/1f6a8.png +0 -0
  2095. data/templates/new-instance/public/images/emoji/unicode/1f6a9.png +0 -0
  2096. data/templates/new-instance/public/images/emoji/unicode/1f6aa.png +0 -0
  2097. data/templates/new-instance/public/images/emoji/unicode/1f6ab.png +0 -0
  2098. data/templates/new-instance/public/images/emoji/unicode/1f6ac.png +0 -0
  2099. data/templates/new-instance/public/images/emoji/unicode/1f6ad.png +0 -0
  2100. data/templates/new-instance/public/images/emoji/unicode/1f6ae.png +0 -0
  2101. data/templates/new-instance/public/images/emoji/unicode/1f6af.png +0 -0
  2102. data/templates/new-instance/public/images/emoji/unicode/1f6b0.png +0 -0
  2103. data/templates/new-instance/public/images/emoji/unicode/1f6b1.png +0 -0
  2104. data/templates/new-instance/public/images/emoji/unicode/1f6b2.png +0 -0
  2105. data/templates/new-instance/public/images/emoji/unicode/1f6b3.png +0 -0
  2106. data/templates/new-instance/public/images/emoji/unicode/1f6b4.png +0 -0
  2107. data/templates/new-instance/public/images/emoji/unicode/1f6b5.png +0 -0
  2108. data/templates/new-instance/public/images/emoji/unicode/1f6b6.png +0 -0
  2109. data/templates/new-instance/public/images/emoji/unicode/1f6b7.png +0 -0
  2110. data/templates/new-instance/public/images/emoji/unicode/1f6b8.png +0 -0
  2111. data/templates/new-instance/public/images/emoji/unicode/1f6b9.png +0 -0
  2112. data/templates/new-instance/public/images/emoji/unicode/1f6ba.png +0 -0
  2113. data/templates/new-instance/public/images/emoji/unicode/1f6bb.png +0 -0
  2114. data/templates/new-instance/public/images/emoji/unicode/1f6bc.png +0 -0
  2115. data/templates/new-instance/public/images/emoji/unicode/1f6bd.png +0 -0
  2116. data/templates/new-instance/public/images/emoji/unicode/1f6be.png +0 -0
  2117. data/templates/new-instance/public/images/emoji/unicode/1f6bf.png +0 -0
  2118. data/templates/new-instance/public/images/emoji/unicode/1f6c0.png +0 -0
  2119. data/templates/new-instance/public/images/emoji/unicode/1f6c1.png +0 -0
  2120. data/templates/new-instance/public/images/emoji/unicode/1f6c2.png +0 -0
  2121. data/templates/new-instance/public/images/emoji/unicode/1f6c3.png +0 -0
  2122. data/templates/new-instance/public/images/emoji/unicode/1f6c4.png +0 -0
  2123. data/templates/new-instance/public/images/emoji/unicode/1f6c5.png +0 -0
  2124. data/templates/new-instance/public/images/emoji/unicode/203c.png +0 -0
  2125. data/templates/new-instance/public/images/emoji/unicode/2049.png +0 -0
  2126. data/templates/new-instance/public/images/emoji/unicode/2122.png +0 -0
  2127. data/templates/new-instance/public/images/emoji/unicode/2139.png +0 -0
  2128. data/templates/new-instance/public/images/emoji/unicode/2194.png +0 -0
  2129. data/templates/new-instance/public/images/emoji/unicode/2195.png +0 -0
  2130. data/templates/new-instance/public/images/emoji/unicode/2196.png +0 -0
  2131. data/templates/new-instance/public/images/emoji/unicode/2197.png +0 -0
  2132. data/templates/new-instance/public/images/emoji/unicode/2198.png +0 -0
  2133. data/templates/new-instance/public/images/emoji/unicode/2199.png +0 -0
  2134. data/templates/new-instance/public/images/emoji/unicode/21a9.png +0 -0
  2135. data/templates/new-instance/public/images/emoji/unicode/21aa.png +0 -0
  2136. data/templates/new-instance/public/images/emoji/unicode/231a.png +0 -0
  2137. data/templates/new-instance/public/images/emoji/unicode/231b.png +0 -0
  2138. data/templates/new-instance/public/images/emoji/unicode/23e9.png +0 -0
  2139. data/templates/new-instance/public/images/emoji/unicode/23ea.png +0 -0
  2140. data/templates/new-instance/public/images/emoji/unicode/23eb.png +0 -0
  2141. data/templates/new-instance/public/images/emoji/unicode/23ec.png +0 -0
  2142. data/templates/new-instance/public/images/emoji/unicode/23f0.png +0 -0
  2143. data/templates/new-instance/public/images/emoji/unicode/23f3.png +0 -0
  2144. data/templates/new-instance/public/images/emoji/unicode/24c2.png +0 -0
  2145. data/templates/new-instance/public/images/emoji/unicode/25aa.png +0 -0
  2146. data/templates/new-instance/public/images/emoji/unicode/25ab.png +0 -0
  2147. data/templates/new-instance/public/images/emoji/unicode/25b6.png +0 -0
  2148. data/templates/new-instance/public/images/emoji/unicode/25c0.png +0 -0
  2149. data/templates/new-instance/public/images/emoji/unicode/25fb.png +0 -0
  2150. data/templates/new-instance/public/images/emoji/unicode/25fc.png +0 -0
  2151. data/templates/new-instance/public/images/emoji/unicode/25fd.png +0 -0
  2152. data/templates/new-instance/public/images/emoji/unicode/25fe.png +0 -0
  2153. data/templates/new-instance/public/images/emoji/unicode/2600.png +0 -0
  2154. data/templates/new-instance/public/images/emoji/unicode/2601.png +0 -0
  2155. data/templates/new-instance/public/images/emoji/unicode/260e.png +0 -0
  2156. data/templates/new-instance/public/images/emoji/unicode/2611.png +0 -0
  2157. data/templates/new-instance/public/images/emoji/unicode/2614.png +0 -0
  2158. data/templates/new-instance/public/images/emoji/unicode/2615.png +0 -0
  2159. data/templates/new-instance/public/images/emoji/unicode/261d.png +0 -0
  2160. data/templates/new-instance/public/images/emoji/unicode/263a.png +0 -0
  2161. data/templates/new-instance/public/images/emoji/unicode/2648.png +0 -0
  2162. data/templates/new-instance/public/images/emoji/unicode/2649.png +0 -0
  2163. data/templates/new-instance/public/images/emoji/unicode/264a.png +0 -0
  2164. data/templates/new-instance/public/images/emoji/unicode/264b.png +0 -0
  2165. data/templates/new-instance/public/images/emoji/unicode/264c.png +0 -0
  2166. data/templates/new-instance/public/images/emoji/unicode/264d.png +0 -0
  2167. data/templates/new-instance/public/images/emoji/unicode/264e.png +0 -0
  2168. data/templates/new-instance/public/images/emoji/unicode/264f.png +0 -0
  2169. data/templates/new-instance/public/images/emoji/unicode/2650.png +0 -0
  2170. data/templates/new-instance/public/images/emoji/unicode/2651.png +0 -0
  2171. data/templates/new-instance/public/images/emoji/unicode/2652.png +0 -0
  2172. data/templates/new-instance/public/images/emoji/unicode/2653.png +0 -0
  2173. data/templates/new-instance/public/images/emoji/unicode/2660.png +0 -0
  2174. data/templates/new-instance/public/images/emoji/unicode/2663.png +0 -0
  2175. data/templates/new-instance/public/images/emoji/unicode/2665.png +0 -0
  2176. data/templates/new-instance/public/images/emoji/unicode/2666.png +0 -0
  2177. data/templates/new-instance/public/images/emoji/unicode/2668.png +0 -0
  2178. data/templates/new-instance/public/images/emoji/unicode/267b.png +0 -0
  2179. data/templates/new-instance/public/images/emoji/unicode/267f.png +0 -0
  2180. data/templates/new-instance/public/images/emoji/unicode/2693.png +0 -0
  2181. data/templates/new-instance/public/images/emoji/unicode/26a0.png +0 -0
  2182. data/templates/new-instance/public/images/emoji/unicode/26a1.png +0 -0
  2183. data/templates/new-instance/public/images/emoji/unicode/26aa.png +0 -0
  2184. data/templates/new-instance/public/images/emoji/unicode/26ab.png +0 -0
  2185. data/templates/new-instance/public/images/emoji/unicode/26bd.png +0 -0
  2186. data/templates/new-instance/public/images/emoji/unicode/26be.png +0 -0
  2187. data/templates/new-instance/public/images/emoji/unicode/26c4.png +0 -0
  2188. data/templates/new-instance/public/images/emoji/unicode/26c5.png +0 -0
  2189. data/templates/new-instance/public/images/emoji/unicode/26ce.png +0 -0
  2190. data/templates/new-instance/public/images/emoji/unicode/26d4.png +0 -0
  2191. data/templates/new-instance/public/images/emoji/unicode/26ea.png +0 -0
  2192. data/templates/new-instance/public/images/emoji/unicode/26f2.png +0 -0
  2193. data/templates/new-instance/public/images/emoji/unicode/26f3.png +0 -0
  2194. data/templates/new-instance/public/images/emoji/unicode/26f5.png +0 -0
  2195. data/templates/new-instance/public/images/emoji/unicode/26fa.png +0 -0
  2196. data/templates/new-instance/public/images/emoji/unicode/26fd.png +0 -0
  2197. data/templates/new-instance/public/images/emoji/unicode/2702.png +0 -0
  2198. data/templates/new-instance/public/images/emoji/unicode/2705.png +0 -0
  2199. data/templates/new-instance/public/images/emoji/unicode/2708.png +0 -0
  2200. data/templates/new-instance/public/images/emoji/unicode/2709.png +0 -0
  2201. data/templates/new-instance/public/images/emoji/unicode/270a.png +0 -0
  2202. data/templates/new-instance/public/images/emoji/unicode/270b.png +0 -0
  2203. data/templates/new-instance/public/images/emoji/unicode/270c.png +0 -0
  2204. data/templates/new-instance/public/images/emoji/unicode/270f.png +0 -0
  2205. data/templates/new-instance/public/images/emoji/unicode/2712.png +0 -0
  2206. data/templates/new-instance/public/images/emoji/unicode/2714.png +0 -0
  2207. data/templates/new-instance/public/images/emoji/unicode/2716.png +0 -0
  2208. data/templates/new-instance/public/images/emoji/unicode/2728.png +0 -0
  2209. data/templates/new-instance/public/images/emoji/unicode/2733.png +0 -0
  2210. data/templates/new-instance/public/images/emoji/unicode/2734.png +0 -0
  2211. data/templates/new-instance/public/images/emoji/unicode/2744.png +0 -0
  2212. data/templates/new-instance/public/images/emoji/unicode/2747.png +0 -0
  2213. data/templates/new-instance/public/images/emoji/unicode/274c.png +0 -0
  2214. data/templates/new-instance/public/images/emoji/unicode/274e.png +0 -0
  2215. data/templates/new-instance/public/images/emoji/unicode/2753.png +0 -0
  2216. data/templates/new-instance/public/images/emoji/unicode/2754.png +0 -0
  2217. data/templates/new-instance/public/images/emoji/unicode/2755.png +0 -0
  2218. data/templates/new-instance/public/images/emoji/unicode/2757.png +0 -0
  2219. data/templates/new-instance/public/images/emoji/unicode/2764.png +0 -0
  2220. data/templates/new-instance/public/images/emoji/unicode/2795.png +0 -0
  2221. data/templates/new-instance/public/images/emoji/unicode/2796.png +0 -0
  2222. data/templates/new-instance/public/images/emoji/unicode/2797.png +0 -0
  2223. data/templates/new-instance/public/images/emoji/unicode/27a1.png +0 -0
  2224. data/templates/new-instance/public/images/emoji/unicode/27b0.png +0 -0
  2225. data/templates/new-instance/public/images/emoji/unicode/27bf.png +0 -0
  2226. data/templates/new-instance/public/images/emoji/unicode/2934.png +0 -0
  2227. data/templates/new-instance/public/images/emoji/unicode/2935.png +0 -0
  2228. data/templates/new-instance/public/images/emoji/unicode/2b05.png +0 -0
  2229. data/templates/new-instance/public/images/emoji/unicode/2b06.png +0 -0
  2230. data/templates/new-instance/public/images/emoji/unicode/2b07.png +0 -0
  2231. data/templates/new-instance/public/images/emoji/unicode/2b1b.png +0 -0
  2232. data/templates/new-instance/public/images/emoji/unicode/2b1c.png +0 -0
  2233. data/templates/new-instance/public/images/emoji/unicode/2b50.png +0 -0
  2234. data/templates/new-instance/public/images/emoji/unicode/2b55.png +0 -0
  2235. data/templates/new-instance/public/images/emoji/unicode/3030.png +0 -0
  2236. data/templates/new-instance/public/images/emoji/unicode/303d.png +0 -0
  2237. data/templates/new-instance/public/images/emoji/unicode/3297.png +0 -0
  2238. data/templates/new-instance/public/images/emoji/unicode/3299.png +0 -0
  2239. data/templates/new-instance/public/images/emoji/unlock.png +0 -0
  2240. data/templates/new-instance/public/images/emoji/up.png +0 -0
  2241. data/templates/new-instance/public/images/emoji/us.png +0 -0
  2242. data/templates/new-instance/public/images/emoji/v.png +0 -0
  2243. data/templates/new-instance/public/images/emoji/vertical_traffic_light.png +0 -0
  2244. data/templates/new-instance/public/images/emoji/vhs.png +0 -0
  2245. data/templates/new-instance/public/images/emoji/vibration_mode.png +0 -0
  2246. data/templates/new-instance/public/images/emoji/video_camera.png +0 -0
  2247. data/templates/new-instance/public/images/emoji/video_game.png +0 -0
  2248. data/templates/new-instance/public/images/emoji/violin.png +0 -0
  2249. data/templates/new-instance/public/images/emoji/virgo.png +0 -0
  2250. data/templates/new-instance/public/images/emoji/volcano.png +0 -0
  2251. data/templates/new-instance/public/images/emoji/vs.png +0 -0
  2252. data/templates/new-instance/public/images/emoji/walking.png +0 -0
  2253. data/templates/new-instance/public/images/emoji/waning_crescent_moon.png +0 -0
  2254. data/templates/new-instance/public/images/emoji/waning_gibbous_moon.png +0 -0
  2255. data/templates/new-instance/public/images/emoji/warning.png +0 -0
  2256. data/templates/new-instance/public/images/emoji/watch.png +0 -0
  2257. data/templates/new-instance/public/images/emoji/water_buffalo.png +0 -0
  2258. data/templates/new-instance/public/images/emoji/watermelon.png +0 -0
  2259. data/templates/new-instance/public/images/emoji/wave.png +0 -0
  2260. data/templates/new-instance/public/images/emoji/wavy_dash.png +0 -0
  2261. data/templates/new-instance/public/images/emoji/waxing_crescent_moon.png +0 -0
  2262. data/templates/new-instance/public/images/emoji/waxing_gibbous_moon.png +0 -0
  2263. data/templates/new-instance/public/images/emoji/wc.png +0 -0
  2264. data/templates/new-instance/public/images/emoji/weary.png +0 -0
  2265. data/templates/new-instance/public/images/emoji/wedding.png +0 -0
  2266. data/templates/new-instance/public/images/emoji/whale.png +0 -0
  2267. data/templates/new-instance/public/images/emoji/whale2.png +0 -0
  2268. data/templates/new-instance/public/images/emoji/wheelchair.png +0 -0
  2269. data/templates/new-instance/public/images/emoji/white_check_mark.png +0 -0
  2270. data/templates/new-instance/public/images/emoji/white_circle.png +0 -0
  2271. data/templates/new-instance/public/images/emoji/white_flower.png +0 -0
  2272. data/templates/new-instance/public/images/emoji/white_large_square.png +0 -0
  2273. data/templates/new-instance/public/images/emoji/white_medium_small_square.png +0 -0
  2274. data/templates/new-instance/public/images/emoji/white_medium_square.png +0 -0
  2275. data/templates/new-instance/public/images/emoji/white_small_square.png +0 -0
  2276. data/templates/new-instance/public/images/emoji/white_square_button.png +0 -0
  2277. data/templates/new-instance/public/images/emoji/wind_chime.png +0 -0
  2278. data/templates/new-instance/public/images/emoji/wine_glass.png +0 -0
  2279. data/templates/new-instance/public/images/emoji/wink.png +0 -0
  2280. data/templates/new-instance/public/images/emoji/wolf.png +0 -0
  2281. data/templates/new-instance/public/images/emoji/woman.png +0 -0
  2282. data/templates/new-instance/public/images/emoji/womans_clothes.png +0 -0
  2283. data/templates/new-instance/public/images/emoji/womans_hat.png +0 -0
  2284. data/templates/new-instance/public/images/emoji/womens.png +0 -0
  2285. data/templates/new-instance/public/images/emoji/worried.png +0 -0
  2286. data/templates/new-instance/public/images/emoji/wrench.png +0 -0
  2287. data/templates/new-instance/public/images/emoji/x.png +0 -0
  2288. data/templates/new-instance/public/images/emoji/yellow_heart.png +0 -0
  2289. data/templates/new-instance/public/images/emoji/yen.png +0 -0
  2290. data/templates/new-instance/public/images/emoji/yum.png +0 -0
  2291. data/templates/new-instance/public/images/emoji/zap.png +0 -0
  2292. data/templates/new-instance/public/images/emoji/zero.png +0 -0
  2293. data/templates/new-instance/public/images/emoji/zzz.png +0 -0
  2294. data/test/acceptance/creating_a_release_test.rb +0 -72
  2295. data/test/data/backtrace.txt +0 -27
  2296. data/test/data/bare_repo.git/FETCH_HEAD +0 -3
  2297. data/test/data/bare_repo.git/HEAD +0 -1
  2298. data/test/data/bare_repo.git/config +0 -9
  2299. data/test/data/bare_repo.git/description +0 -1
  2300. data/test/data/bare_repo.git/hooks/applypatch-msg.sample +0 -15
  2301. data/test/data/bare_repo.git/hooks/commit-msg.sample +0 -24
  2302. data/test/data/bare_repo.git/hooks/post-update.sample +0 -8
  2303. data/test/data/bare_repo.git/hooks/pre-applypatch.sample +0 -14
  2304. data/test/data/bare_repo.git/hooks/pre-commit.sample +0 -50
  2305. data/test/data/bare_repo.git/hooks/pre-rebase.sample +0 -169
  2306. data/test/data/bare_repo.git/hooks/prepare-commit-msg.sample +0 -36
  2307. data/test/data/bare_repo.git/hooks/update.sample +0 -128
  2308. data/test/data/bare_repo.git/info/exclude +0 -6
  2309. data/test/data/bare_repo.git/objects/22/924bbf4378f83cab93bfd5fa7d7777cbc1f3b4 +0 -0
  2310. data/test/data/bare_repo.git/objects/59/e4862a85cf64d42a8b17db45ebf2ba39568679 +0 -0
  2311. data/test/data/bare_repo.git/objects/5f/8cb742401c71308f858bf537855bb07d2932d8 +0 -3
  2312. data/test/data/bare_repo.git/objects/60/3a4970ec7ed5eb3f7a578850c21b7162424465 +0 -1
  2313. data/test/data/bare_repo.git/objects/6e/eab9f9ee664c1acb08473921238ca95a8c17f5 +0 -0
  2314. data/test/data/bare_repo.git/objects/7f/ce91258d10807380f36192304883e916a48ec0 +0 -0
  2315. data/test/data/bare_repo.git/objects/b3/d156e4d4bb279e09cca0f31af8ea6e35d3df64 +0 -1
  2316. data/test/data/bare_repo.git/objects/b9/1a4fe778398bc87b29842ca84a2727b4763c9d +0 -1
  2317. data/test/data/bare_repo.git/objects/ba/a3ef218a40f23fe542f98d8b8e60a2e8e0bff0 +0 -1
  2318. data/test/data/bare_repo.git/objects/ba/b88c00ec62b5f30bf720ab1136401d1f9d2310 +0 -2
  2319. data/test/data/bare_repo.git/objects/bd/3e9e2e4ddf89a640a4f880cbf55bb46cc7e88a +0 -2
  2320. data/test/data/bare_repo.git/objects/be/63e6ebab6ce87922f97ca24b1338befdbe6915 +0 -0
  2321. data/test/data/bare_repo.git/objects/cc/f4bdedd71011176c0236e98268d71ed73eb80f +0 -0
  2322. data/test/data/bare_repo.git/objects/e0/e4580f44317a084dd5142fef6b4144a4394819 +0 -0
  2323. data/test/data/bare_repo.git/objects/e4/d9901b79d8112dd2fe369fcd8c65594c96a10b +0 -0
  2324. data/test/data/bare_repo.git/objects/pack/pack-dd400c42eded7158ab780652af55aa92c30e37e3.idx +0 -0
  2325. data/test/data/bare_repo.git/objects/pack/pack-dd400c42eded7158ab780652af55aa92c30e37e3.pack +0 -0
  2326. data/test/data/bare_repo.git/packed-refs +0 -2
  2327. data/test/data/bare_repo.git/refs/heads/divergent-branch +0 -1
  2328. data/test/data/bare_repo.git/refs/heads/for-testing +0 -1
  2329. data/test/data/bare_repo.git/refs/heads/master +0 -1
  2330. data/test/data/github_push_event_payload.json +0 -161
  2331. data/test/factories/commit_factory.rb +0 -9
  2332. data/test/factories/deploy_factory.rb +0 -7
  2333. data/test/factories/task_factory.rb +0 -6
  2334. data/test/integration/ci_integration_test.rb +0 -170
  2335. data/test/integration/commits_api_test.rb +0 -68
  2336. data/test/integration/ticket_tasks_api_test.rb +0 -70
  2337. data/test/support/houston/adapters/ci_server/mock_adapter.rb +0 -23
  2338. data/test/support/houston/adapters/ci_server/mock_adapter/job.rb +0 -29
  2339. data/test/support/houston/adapters/error_tracker/mock_adapter.rb +0 -31
  2340. data/test/support/houston/adapters/ticket_tracker/mock_adapter.rb +0 -21
  2341. data/test/support/houston/adapters/version_control/mock_adapter.rb +0 -21
  2342. data/test/unit/adapters/ci_server_adapters_api_test.rb +0 -29
  2343. data/test/unit/adapters/error_tracker_adapters_test.rb +0 -36
  2344. data/test/unit/adapters/git_adapter_test.rb +0 -227
  2345. data/test/unit/adapters/jenkins_adapter_test.rb +0 -184
  2346. data/test/unit/adapters/ticket_tracker_adapters_api_test.rb +0 -67
  2347. data/test/unit/adapters/version_control_adapters_api_test.rb +0 -41
  2348. data/test/unit/concerns/commit_synchronizer_test.rb +0 -150
  2349. data/test/unit/controllers/deploys_controller_test.rb +0 -47
  2350. data/test/unit/controllers/hooks_controller_test.rb +0 -138
  2351. data/test/unit/controllers/sprints_controller_test.rb +0 -54
  2352. data/test/unit/controllers/test_runs_controller_test.rb +0 -20
  2353. data/test/unit/initializers/sync_commits_on_post_receive_test.rb +0 -14
  2354. data/test/unit/models/code_climate_coverage_report_test.rb +0 -137
  2355. data/test/unit/models/commit_test.rb +0 -279
  2356. data/test/unit/models/deploy_test.rb +0 -97
  2357. data/test/unit/models/post_receive_payload_test.rb +0 -19
  2358. data/test/unit/models/project_test.rb +0 -91
  2359. data/test/unit/models/pull_request_test.rb +0 -195
  2360. data/test/unit/models/release_change_test.rb +0 -32
  2361. data/test/unit/models/release_test.rb +0 -53
  2362. data/test/unit/models/source_file_coverage_test.rb +0 -33
  2363. data/test/unit/models/sprint_test.rb +0 -44
  2364. data/test/unit/models/task_test.rb +0 -135
  2365. data/test/unit/models/test_run_test.rb +0 -289
  2366. data/test/unit/models/ticket_test.rb +0 -218
  2367. data/test/unit/presenters/sprint_task_presenter_test.rb +0 -57
  2368. data/test/unit/test_run_comparer_test.rb +0 -108
  2369. data/vendor/assets/stylesheets/alertify-bootstrap-3.css +0 -2
  2370. data/vendor/assets/stylesheets/alertify-bootstrap.css +0 -2
  2371. data/vendor/images/fa-archive.svg +0 -6
  2372. data/vendor/images/fa-asterisk.svg +0 -6
  2373. data/vendor/images/fa-bank.svg +0 -9
  2374. data/vendor/images/fa-bell.svg +0 -9
  2375. data/vendor/images/fa-bomb.svg +0 -9
  2376. data/vendor/images/fa-bookmark.svg +0 -6
  2377. data/vendor/images/fa-bug.svg +0 -9
  2378. data/vendor/images/fa-bullhorn.svg +0 -6
  2379. data/vendor/images/fa-burndown.svg +0 -15
  2380. data/vendor/images/fa-calendar-o.svg +0 -9
  2381. data/vendor/images/fa-certificate.svg +0 -6
  2382. data/vendor/images/fa-comment.svg +0 -9
  2383. data/vendor/images/fa-comments.svg +0 -9
  2384. data/vendor/images/fa-database.svg +0 -9
  2385. data/vendor/images/fa-file.svg +0 -6
  2386. data/vendor/images/fa-fire-extinguisher.svg +0 -9
  2387. data/vendor/images/fa-flag.svg +0 -6
  2388. data/vendor/images/fa-gear.svg +0 -6
  2389. data/vendor/images/fa-home.svg +0 -6
  2390. data/vendor/images/fa-lightbulb-o.svg +0 -9
  2391. data/vendor/images/fa-map-signs.svg +0 -6
  2392. data/vendor/images/fa-map.svg +0 -6
  2393. data/vendor/images/fa-paper-plane.svg +0 -9
  2394. data/vendor/images/fa-road.svg +0 -9
  2395. data/vendor/images/fa-star.svg +0 -6
  2396. data/vendor/images/fa-suitcase.svg +0 -6
  2397. data/vendor/images/fa-user.svg +0 -9
  2398. data/vendor/images/octokit-pull-request.svg +0 -6
@@ -1,4 +1,6 @@
1
1
  require "test_helper"
2
+ require "support/houston/module1"
3
+ require "support/houston/module2"
2
4
 
3
5
  class ConfigurationTest < ActiveSupport::TestCase
4
6
 
@@ -99,6 +101,51 @@ class ConfigurationTest < ActiveSupport::TestCase
99
101
  end
100
102
 
101
103
 
104
+ context "#use" do
105
+ should "add a module to the list of modules to be loaded" do
106
+ config.use :module1
107
+ assert config.uses?(:module1)
108
+ end
109
+
110
+ should "configure the module when passed a block" do
111
+ config.use :module1 do
112
+ self.option1 = "value1"
113
+ end
114
+ assert_equal "value1", Houston::Module1.config.option1
115
+ end
116
+
117
+ should "raise an exception if passed a block for a module that doesn't accept configuration" do
118
+ assert_raises ArgumentError do
119
+ config.use :module2 do
120
+ # Module2 doesn't accept configuration
121
+ end
122
+ end
123
+ end
124
+
125
+ should "not load a module twice" do
126
+ config.use :module1
127
+ config.use :module1
128
+ assert_equal 1, config.modules.length
129
+ end
130
+
131
+ should "combine configuration if a module is used more than once" do
132
+ config.use :module1 do
133
+ self.option1 = "value1"
134
+ end
135
+ config.use :module1 do
136
+ self.option2 = "value2"
137
+ end
138
+ assert_equal "value1", Houston::Module1.config.option1
139
+ assert_equal "value2", Houston::Module1.config.option2
140
+ end
141
+
142
+ should "automatically use a module that is declared as a dependency" do
143
+ config.use :module2
144
+ assert config.uses? :module1
145
+ end
146
+ end
147
+
148
+
102
149
  private
103
150
 
104
151
  def config
@@ -3,11 +3,11 @@ require "test_helper"
3
3
  class PersistentTriggerTest < ActiveSupport::TestCase
4
4
 
5
5
 
6
- context ".at" do
6
+ context ".every" do
7
7
  should "define a new trigger" do
8
- trigger = PersistentTrigger.at("2:30pm", "test-action", example: 5)
9
- assert_equal :at, trigger.type
10
- assert_equal "2:30pm", trigger.value
8
+ trigger = PersistentTrigger.every("day at 2:30pm", "test-action", example: 5)
9
+ assert_equal :every, trigger.type
10
+ assert_equal "day at 2:30pm", trigger.value
11
11
  assert_equal "test-action", trigger.action
12
12
  assert_equal({example: 5}, trigger.params)
13
13
  end
@@ -23,9 +23,6 @@ class PersistentTriggerTest < ActiveSupport::TestCase
23
23
  should "require the type to be one of :at, :every, or :on" do
24
24
  trigger = PersistentTrigger.new
25
25
 
26
- trigger.type = :at
27
- refute trigger.tap(&:validate).errors[:type].any?
28
-
29
26
  trigger.type = :every
30
27
  refute trigger.tap(&:validate).errors[:type].any?
31
28
 
@@ -49,13 +46,13 @@ class PersistentTriggerTest < ActiveSupport::TestCase
49
46
 
50
47
  should "add the trigger to the database" do
51
48
  assert_difference "PersistentTrigger.count", +1 do
52
- PersistentTrigger.at("1:30pm", "test-action", example: 5).save!
49
+ PersistentTrigger.every("day at 1:30pm", "test-action", example: 5).save!
53
50
  end
54
51
  end
55
52
 
56
53
  should "register the trigger" do
57
54
  assert_difference "Houston.config.triggers.count", +1 do
58
- PersistentTrigger.at("2:30pm", "test-action", example: 5).save!
55
+ PersistentTrigger.every("day at 2:30pm", "test-action", example: 5).save!
59
56
  end
60
57
  end
61
58
  end
@@ -64,8 +61,8 @@ class PersistentTriggerTest < ActiveSupport::TestCase
64
61
  context ".load_all" do
65
62
  setup do
66
63
  PersistentTrigger.all.insert({
67
- PersistentTrigger.column_for_attribute(:type) => "at",
68
- PersistentTrigger.column_for_attribute(:value) => "9:00am",
64
+ PersistentTrigger.column_for_attribute(:type) => "every",
65
+ PersistentTrigger.column_for_attribute(:value) => "day at 9:00am",
69
66
  PersistentTrigger.column_for_attribute(:action) => "test-action",
70
67
  PersistentTrigger.column_for_attribute(:params) => {example: 5}
71
68
  })
@@ -8,34 +8,34 @@ class TriggersTest < ActiveSupport::TestCase
8
8
 
9
9
 
10
10
  should "raise an error if a trigger has already been registered" do
11
- triggers.at("5:30pm", "test-action")
11
+ triggers.every("day at 5:30pm", "test-action")
12
12
  assert_raises Houston::DuplicateTriggerError do
13
- triggers.at("5:30pm", "test-action")
13
+ triggers.every("day at 5:30pm", "test-action")
14
14
  end
15
15
 
16
16
  # Triggers with different params count as different
17
- triggers.at("5:30pm", "test-action", param: 1)
17
+ triggers.every("day at 5:30pm", "test-action", param: 1)
18
18
  refute_raises Houston::DuplicateTriggerError do
19
- triggers.at("5:30pm", "test-action", param: 2)
19
+ triggers.every("day at 5:30pm", "test-action", param: 2)
20
20
  end
21
21
  end
22
22
 
23
23
 
24
24
  should "allow you to invoke an action without params" do
25
- trigger = triggers.at("5:30pm", "test-action")
26
- mock(config.actions).run("test-action", {}, trigger: trigger.to_s)
25
+ trigger = triggers.every("day at 5:30pm", "test-action")
26
+ mock(config.actions).run("test-action", {}, hash_including(trigger: trigger.to_s))
27
27
  trigger.call
28
28
  end
29
29
 
30
30
  should "allow triggers to pass params to an action" do
31
- trigger = triggers.at("5:30pm", "test-action", trigger_param: 1)
32
- mock(config.actions).run("test-action", {trigger_param: 1}, {trigger: trigger.to_s})
31
+ trigger = triggers.every("day at 5:30pm", "test-action", trigger_param: 1)
32
+ mock(config.actions).run("test-action", {trigger_param: 1}, hash_including(trigger: trigger.to_s))
33
33
  trigger.call
34
34
  end
35
35
 
36
36
  should "allow callbacks to override triggers' params" do
37
- trigger = triggers.at("5:30pm", "test-action", trigger_param: 1)
38
- mock(config.actions).run("test-action", {trigger_param: 2}, {trigger: trigger.to_s})
37
+ trigger = triggers.every("day at 5:30pm", "test-action", trigger_param: 1)
38
+ mock(config.actions).run("test-action", {trigger_param: 2}, hash_including(trigger: trigger.to_s))
39
39
  trigger.call(trigger_param: 2)
40
40
  end
41
41
 
@@ -0,0 +1,1920 @@
1
+ // Backbone.js 1.3.3
2
+
3
+ // (c) 2010-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
4
+ // Backbone may be freely distributed under the MIT license.
5
+ // For all details and documentation:
6
+ // http://backbonejs.org
7
+
8
+ (function(factory) {
9
+
10
+ // Establish the root object, `window` (`self`) in the browser, or `global` on the server.
11
+ // We use `self` instead of `window` for `WebWorker` support.
12
+ var root = (typeof self == 'object' && self.self === self && self) ||
13
+ (typeof global == 'object' && global.global === global && global);
14
+
15
+ // Set up Backbone appropriately for the environment. Start with AMD.
16
+ if (typeof define === 'function' && define.amd) {
17
+ define(['underscore', 'jquery', 'exports'], function(_, $, exports) {
18
+ // Export global even in AMD case in case this script is loaded with
19
+ // others that may still expect a global Backbone.
20
+ root.Backbone = factory(root, exports, _, $);
21
+ });
22
+
23
+ // Next for Node.js or CommonJS. jQuery may not be needed as a module.
24
+ } else if (typeof exports !== 'undefined') {
25
+ var _ = require('underscore'), $;
26
+ try { $ = require('jquery'); } catch (e) {}
27
+ factory(root, exports, _, $);
28
+
29
+ // Finally, as a browser global.
30
+ } else {
31
+ root.Backbone = factory(root, {}, root._, (root.jQuery || root.Zepto || root.ender || root.$));
32
+ }
33
+
34
+ })(function(root, Backbone, _, $) {
35
+
36
+ // Initial Setup
37
+ // -------------
38
+
39
+ // Save the previous value of the `Backbone` variable, so that it can be
40
+ // restored later on, if `noConflict` is used.
41
+ var previousBackbone = root.Backbone;
42
+
43
+ // Create a local reference to a common array method we'll want to use later.
44
+ var slice = Array.prototype.slice;
45
+
46
+ // Current version of the library. Keep in sync with `package.json`.
47
+ Backbone.VERSION = '1.3.3';
48
+
49
+ // For Backbone's purposes, jQuery, Zepto, Ender, or My Library (kidding) owns
50
+ // the `$` variable.
51
+ Backbone.$ = $;
52
+
53
+ // Runs Backbone.js in *noConflict* mode, returning the `Backbone` variable
54
+ // to its previous owner. Returns a reference to this Backbone object.
55
+ Backbone.noConflict = function() {
56
+ root.Backbone = previousBackbone;
57
+ return this;
58
+ };
59
+
60
+ // Turn on `emulateHTTP` to support legacy HTTP servers. Setting this option
61
+ // will fake `"PATCH"`, `"PUT"` and `"DELETE"` requests via the `_method` parameter and
62
+ // set a `X-Http-Method-Override` header.
63
+ Backbone.emulateHTTP = false;
64
+
65
+ // Turn on `emulateJSON` to support legacy servers that can't deal with direct
66
+ // `application/json` requests ... this will encode the body as
67
+ // `application/x-www-form-urlencoded` instead and will send the model in a
68
+ // form param named `model`.
69
+ Backbone.emulateJSON = false;
70
+
71
+ // Proxy Backbone class methods to Underscore functions, wrapping the model's
72
+ // `attributes` object or collection's `models` array behind the scenes.
73
+ //
74
+ // collection.filter(function(model) { return model.get('age') > 10 });
75
+ // collection.each(this.addView);
76
+ //
77
+ // `Function#apply` can be slow so we use the method's arg count, if we know it.
78
+ var addMethod = function(length, method, attribute) {
79
+ switch (length) {
80
+ case 1: return function() {
81
+ return _[method](this[attribute]);
82
+ };
83
+ case 2: return function(value) {
84
+ return _[method](this[attribute], value);
85
+ };
86
+ case 3: return function(iteratee, context) {
87
+ return _[method](this[attribute], cb(iteratee, this), context);
88
+ };
89
+ case 4: return function(iteratee, defaultVal, context) {
90
+ return _[method](this[attribute], cb(iteratee, this), defaultVal, context);
91
+ };
92
+ default: return function() {
93
+ var args = slice.call(arguments);
94
+ args.unshift(this[attribute]);
95
+ return _[method].apply(_, args);
96
+ };
97
+ }
98
+ };
99
+ var addUnderscoreMethods = function(Class, methods, attribute) {
100
+ _.each(methods, function(length, method) {
101
+ if (_[method]) Class.prototype[method] = addMethod(length, method, attribute);
102
+ });
103
+ };
104
+
105
+ // Support `collection.sortBy('attr')` and `collection.findWhere({id: 1})`.
106
+ var cb = function(iteratee, instance) {
107
+ if (_.isFunction(iteratee)) return iteratee;
108
+ if (_.isObject(iteratee) && !instance._isModel(iteratee)) return modelMatcher(iteratee);
109
+ if (_.isString(iteratee)) return function(model) { return model.get(iteratee); };
110
+ return iteratee;
111
+ };
112
+ var modelMatcher = function(attrs) {
113
+ var matcher = _.matches(attrs);
114
+ return function(model) {
115
+ return matcher(model.attributes);
116
+ };
117
+ };
118
+
119
+ // Backbone.Events
120
+ // ---------------
121
+
122
+ // A module that can be mixed in to *any object* in order to provide it with
123
+ // a custom event channel. You may bind a callback to an event with `on` or
124
+ // remove with `off`; `trigger`-ing an event fires all callbacks in
125
+ // succession.
126
+ //
127
+ // var object = {};
128
+ // _.extend(object, Backbone.Events);
129
+ // object.on('expand', function(){ alert('expanded'); });
130
+ // object.trigger('expand');
131
+ //
132
+ var Events = Backbone.Events = {};
133
+
134
+ // Regular expression used to split event strings.
135
+ var eventSplitter = /\s+/;
136
+
137
+ // Iterates over the standard `event, callback` (as well as the fancy multiple
138
+ // space-separated events `"change blur", callback` and jQuery-style event
139
+ // maps `{event: callback}`).
140
+ var eventsApi = function(iteratee, events, name, callback, opts) {
141
+ var i = 0, names;
142
+ if (name && typeof name === 'object') {
143
+ // Handle event maps.
144
+ if (callback !== void 0 && 'context' in opts && opts.context === void 0) opts.context = callback;
145
+ for (names = _.keys(name); i < names.length ; i++) {
146
+ events = eventsApi(iteratee, events, names[i], name[names[i]], opts);
147
+ }
148
+ } else if (name && eventSplitter.test(name)) {
149
+ // Handle space-separated event names by delegating them individually.
150
+ for (names = name.split(eventSplitter); i < names.length; i++) {
151
+ events = iteratee(events, names[i], callback, opts);
152
+ }
153
+ } else {
154
+ // Finally, standard events.
155
+ events = iteratee(events, name, callback, opts);
156
+ }
157
+ return events;
158
+ };
159
+
160
+ // Bind an event to a `callback` function. Passing `"all"` will bind
161
+ // the callback to all events fired.
162
+ Events.on = function(name, callback, context) {
163
+ return internalOn(this, name, callback, context);
164
+ };
165
+
166
+ // Guard the `listening` argument from the public API.
167
+ var internalOn = function(obj, name, callback, context, listening) {
168
+ obj._events = eventsApi(onApi, obj._events || {}, name, callback, {
169
+ context: context,
170
+ ctx: obj,
171
+ listening: listening
172
+ });
173
+
174
+ if (listening) {
175
+ var listeners = obj._listeners || (obj._listeners = {});
176
+ listeners[listening.id] = listening;
177
+ }
178
+
179
+ return obj;
180
+ };
181
+
182
+ // Inversion-of-control versions of `on`. Tell *this* object to listen to
183
+ // an event in another object... keeping track of what it's listening to
184
+ // for easier unbinding later.
185
+ Events.listenTo = function(obj, name, callback) {
186
+ if (!obj) return this;
187
+ var id = obj._listenId || (obj._listenId = _.uniqueId('l'));
188
+ var listeningTo = this._listeningTo || (this._listeningTo = {});
189
+ var listening = listeningTo[id];
190
+
191
+ // This object is not listening to any other events on `obj` yet.
192
+ // Setup the necessary references to track the listening callbacks.
193
+ if (!listening) {
194
+ var thisId = this._listenId || (this._listenId = _.uniqueId('l'));
195
+ listening = listeningTo[id] = {obj: obj, objId: id, id: thisId, listeningTo: listeningTo, count: 0};
196
+ }
197
+
198
+ // Bind callbacks on obj, and keep track of them on listening.
199
+ internalOn(obj, name, callback, this, listening);
200
+ return this;
201
+ };
202
+
203
+ // The reducing API that adds a callback to the `events` object.
204
+ var onApi = function(events, name, callback, options) {
205
+ if (callback) {
206
+ var handlers = events[name] || (events[name] = []);
207
+ var context = options.context, ctx = options.ctx, listening = options.listening;
208
+ if (listening) listening.count++;
209
+
210
+ handlers.push({callback: callback, context: context, ctx: context || ctx, listening: listening});
211
+ }
212
+ return events;
213
+ };
214
+
215
+ // Remove one or many callbacks. If `context` is null, removes all
216
+ // callbacks with that function. If `callback` is null, removes all
217
+ // callbacks for the event. If `name` is null, removes all bound
218
+ // callbacks for all events.
219
+ Events.off = function(name, callback, context) {
220
+ if (!this._events) return this;
221
+ this._events = eventsApi(offApi, this._events, name, callback, {
222
+ context: context,
223
+ listeners: this._listeners
224
+ });
225
+ return this;
226
+ };
227
+
228
+ // Tell this object to stop listening to either specific events ... or
229
+ // to every object it's currently listening to.
230
+ Events.stopListening = function(obj, name, callback) {
231
+ var listeningTo = this._listeningTo;
232
+ if (!listeningTo) return this;
233
+
234
+ var ids = obj ? [obj._listenId] : _.keys(listeningTo);
235
+
236
+ for (var i = 0; i < ids.length; i++) {
237
+ var listening = listeningTo[ids[i]];
238
+
239
+ // If listening doesn't exist, this object is not currently
240
+ // listening to obj. Break out early.
241
+ if (!listening) break;
242
+
243
+ listening.obj.off(name, callback, this);
244
+ }
245
+
246
+ return this;
247
+ };
248
+
249
+ // The reducing API that removes a callback from the `events` object.
250
+ var offApi = function(events, name, callback, options) {
251
+ if (!events) return;
252
+
253
+ var i = 0, listening;
254
+ var context = options.context, listeners = options.listeners;
255
+
256
+ // Delete all events listeners and "drop" events.
257
+ if (!name && !callback && !context) {
258
+ var ids = _.keys(listeners);
259
+ for (; i < ids.length; i++) {
260
+ listening = listeners[ids[i]];
261
+ delete listeners[listening.id];
262
+ delete listening.listeningTo[listening.objId];
263
+ }
264
+ return;
265
+ }
266
+
267
+ var names = name ? [name] : _.keys(events);
268
+ for (; i < names.length; i++) {
269
+ name = names[i];
270
+ var handlers = events[name];
271
+
272
+ // Bail out if there are no events stored.
273
+ if (!handlers) break;
274
+
275
+ // Replace events if there are any remaining. Otherwise, clean up.
276
+ var remaining = [];
277
+ for (var j = 0; j < handlers.length; j++) {
278
+ var handler = handlers[j];
279
+ if (
280
+ callback && callback !== handler.callback &&
281
+ callback !== handler.callback._callback ||
282
+ context && context !== handler.context
283
+ ) {
284
+ remaining.push(handler);
285
+ } else {
286
+ listening = handler.listening;
287
+ if (listening && --listening.count === 0) {
288
+ delete listeners[listening.id];
289
+ delete listening.listeningTo[listening.objId];
290
+ }
291
+ }
292
+ }
293
+
294
+ // Update tail event if the list has any events. Otherwise, clean up.
295
+ if (remaining.length) {
296
+ events[name] = remaining;
297
+ } else {
298
+ delete events[name];
299
+ }
300
+ }
301
+ return events;
302
+ };
303
+
304
+ // Bind an event to only be triggered a single time. After the first time
305
+ // the callback is invoked, its listener will be removed. If multiple events
306
+ // are passed in using the space-separated syntax, the handler will fire
307
+ // once for each event, not once for a combination of all events.
308
+ Events.once = function(name, callback, context) {
309
+ // Map the event into a `{event: once}` object.
310
+ var events = eventsApi(onceMap, {}, name, callback, _.bind(this.off, this));
311
+ if (typeof name === 'string' && context == null) callback = void 0;
312
+ return this.on(events, callback, context);
313
+ };
314
+
315
+ // Inversion-of-control versions of `once`.
316
+ Events.listenToOnce = function(obj, name, callback) {
317
+ // Map the event into a `{event: once}` object.
318
+ var events = eventsApi(onceMap, {}, name, callback, _.bind(this.stopListening, this, obj));
319
+ return this.listenTo(obj, events);
320
+ };
321
+
322
+ // Reduces the event callbacks into a map of `{event: onceWrapper}`.
323
+ // `offer` unbinds the `onceWrapper` after it has been called.
324
+ var onceMap = function(map, name, callback, offer) {
325
+ if (callback) {
326
+ var once = map[name] = _.once(function() {
327
+ offer(name, once);
328
+ callback.apply(this, arguments);
329
+ });
330
+ once._callback = callback;
331
+ }
332
+ return map;
333
+ };
334
+
335
+ // Trigger one or many events, firing all bound callbacks. Callbacks are
336
+ // passed the same arguments as `trigger` is, apart from the event name
337
+ // (unless you're listening on `"all"`, which will cause your callback to
338
+ // receive the true name of the event as the first argument).
339
+ Events.trigger = function(name) {
340
+ if (!this._events) return this;
341
+
342
+ var length = Math.max(0, arguments.length - 1);
343
+ var args = Array(length);
344
+ for (var i = 0; i < length; i++) args[i] = arguments[i + 1];
345
+
346
+ eventsApi(triggerApi, this._events, name, void 0, args);
347
+ return this;
348
+ };
349
+
350
+ // Handles triggering the appropriate event callbacks.
351
+ var triggerApi = function(objEvents, name, callback, args) {
352
+ if (objEvents) {
353
+ var events = objEvents[name];
354
+ var allEvents = objEvents.all;
355
+ if (events && allEvents) allEvents = allEvents.slice();
356
+ if (events) triggerEvents(events, args);
357
+ if (allEvents) triggerEvents(allEvents, [name].concat(args));
358
+ }
359
+ return objEvents;
360
+ };
361
+
362
+ // A difficult-to-believe, but optimized internal dispatch function for
363
+ // triggering events. Tries to keep the usual cases speedy (most internal
364
+ // Backbone events have 3 arguments).
365
+ var triggerEvents = function(events, args) {
366
+ var ev, i = -1, l = events.length, a1 = args[0], a2 = args[1], a3 = args[2];
367
+ switch (args.length) {
368
+ case 0: while (++i < l) (ev = events[i]).callback.call(ev.ctx); return;
369
+ case 1: while (++i < l) (ev = events[i]).callback.call(ev.ctx, a1); return;
370
+ case 2: while (++i < l) (ev = events[i]).callback.call(ev.ctx, a1, a2); return;
371
+ case 3: while (++i < l) (ev = events[i]).callback.call(ev.ctx, a1, a2, a3); return;
372
+ default: while (++i < l) (ev = events[i]).callback.apply(ev.ctx, args); return;
373
+ }
374
+ };
375
+
376
+ // Aliases for backwards compatibility.
377
+ Events.bind = Events.on;
378
+ Events.unbind = Events.off;
379
+
380
+ // Allow the `Backbone` object to serve as a global event bus, for folks who
381
+ // want global "pubsub" in a convenient place.
382
+ _.extend(Backbone, Events);
383
+
384
+ // Backbone.Model
385
+ // --------------
386
+
387
+ // Backbone **Models** are the basic data object in the framework --
388
+ // frequently representing a row in a table in a database on your server.
389
+ // A discrete chunk of data and a bunch of useful, related methods for
390
+ // performing computations and transformations on that data.
391
+
392
+ // Create a new model with the specified attributes. A client id (`cid`)
393
+ // is automatically generated and assigned for you.
394
+ var Model = Backbone.Model = function(attributes, options) {
395
+ var attrs = attributes || {};
396
+ options || (options = {});
397
+ this.cid = _.uniqueId(this.cidPrefix);
398
+ this.attributes = {};
399
+ if (options.collection) this.collection = options.collection;
400
+ if (options.parse) attrs = this.parse(attrs, options) || {};
401
+ var defaults = _.result(this, 'defaults');
402
+ attrs = _.defaults(_.extend({}, defaults, attrs), defaults);
403
+ this.set(attrs, options);
404
+ this.changed = {};
405
+ this.initialize.apply(this, arguments);
406
+ };
407
+
408
+ // Attach all inheritable methods to the Model prototype.
409
+ _.extend(Model.prototype, Events, {
410
+
411
+ // A hash of attributes whose current and previous value differ.
412
+ changed: null,
413
+
414
+ // The value returned during the last failed validation.
415
+ validationError: null,
416
+
417
+ // The default name for the JSON `id` attribute is `"id"`. MongoDB and
418
+ // CouchDB users may want to set this to `"_id"`.
419
+ idAttribute: 'id',
420
+
421
+ // The prefix is used to create the client id which is used to identify models locally.
422
+ // You may want to override this if you're experiencing name clashes with model ids.
423
+ cidPrefix: 'c',
424
+
425
+ // Initialize is an empty function by default. Override it with your own
426
+ // initialization logic.
427
+ initialize: function(){},
428
+
429
+ // Return a copy of the model's `attributes` object.
430
+ toJSON: function(options) {
431
+ return _.clone(this.attributes);
432
+ },
433
+
434
+ // Proxy `Backbone.sync` by default -- but override this if you need
435
+ // custom syncing semantics for *this* particular model.
436
+ sync: function() {
437
+ return Backbone.sync.apply(this, arguments);
438
+ },
439
+
440
+ // Get the value of an attribute.
441
+ get: function(attr) {
442
+ return this.attributes[attr];
443
+ },
444
+
445
+ // Get the HTML-escaped value of an attribute.
446
+ escape: function(attr) {
447
+ return _.escape(this.get(attr));
448
+ },
449
+
450
+ // Returns `true` if the attribute contains a value that is not null
451
+ // or undefined.
452
+ has: function(attr) {
453
+ return this.get(attr) != null;
454
+ },
455
+
456
+ // Special-cased proxy to underscore's `_.matches` method.
457
+ matches: function(attrs) {
458
+ return !!_.iteratee(attrs, this)(this.attributes);
459
+ },
460
+
461
+ // Set a hash of model attributes on the object, firing `"change"`. This is
462
+ // the core primitive operation of a model, updating the data and notifying
463
+ // anyone who needs to know about the change in state. The heart of the beast.
464
+ set: function(key, val, options) {
465
+ if (key == null) return this;
466
+
467
+ // Handle both `"key", value` and `{key: value}` -style arguments.
468
+ var attrs;
469
+ if (typeof key === 'object') {
470
+ attrs = key;
471
+ options = val;
472
+ } else {
473
+ (attrs = {})[key] = val;
474
+ }
475
+
476
+ options || (options = {});
477
+
478
+ // Run validation.
479
+ if (!this._validate(attrs, options)) return false;
480
+
481
+ // Extract attributes and options.
482
+ var unset = options.unset;
483
+ var silent = options.silent;
484
+ var changes = [];
485
+ var changing = this._changing;
486
+ this._changing = true;
487
+
488
+ if (!changing) {
489
+ this._previousAttributes = _.clone(this.attributes);
490
+ this.changed = {};
491
+ }
492
+
493
+ var current = this.attributes;
494
+ var changed = this.changed;
495
+ var prev = this._previousAttributes;
496
+
497
+ // For each `set` attribute, update or delete the current value.
498
+ for (var attr in attrs) {
499
+ val = attrs[attr];
500
+ if (!_.isEqual(current[attr], val)) changes.push(attr);
501
+ if (!_.isEqual(prev[attr], val)) {
502
+ changed[attr] = val;
503
+ } else {
504
+ delete changed[attr];
505
+ }
506
+ unset ? delete current[attr] : current[attr] = val;
507
+ }
508
+
509
+ // Update the `id`.
510
+ if (this.idAttribute in attrs) this.id = this.get(this.idAttribute);
511
+
512
+ // Trigger all relevant attribute changes.
513
+ if (!silent) {
514
+ if (changes.length) this._pending = options;
515
+ for (var i = 0; i < changes.length; i++) {
516
+ this.trigger('change:' + changes[i], this, current[changes[i]], options);
517
+ }
518
+ }
519
+
520
+ // You might be wondering why there's a `while` loop here. Changes can
521
+ // be recursively nested within `"change"` events.
522
+ if (changing) return this;
523
+ if (!silent) {
524
+ while (this._pending) {
525
+ options = this._pending;
526
+ this._pending = false;
527
+ this.trigger('change', this, options);
528
+ }
529
+ }
530
+ this._pending = false;
531
+ this._changing = false;
532
+ return this;
533
+ },
534
+
535
+ // Remove an attribute from the model, firing `"change"`. `unset` is a noop
536
+ // if the attribute doesn't exist.
537
+ unset: function(attr, options) {
538
+ return this.set(attr, void 0, _.extend({}, options, {unset: true}));
539
+ },
540
+
541
+ // Clear all attributes on the model, firing `"change"`.
542
+ clear: function(options) {
543
+ var attrs = {};
544
+ for (var key in this.attributes) attrs[key] = void 0;
545
+ return this.set(attrs, _.extend({}, options, {unset: true}));
546
+ },
547
+
548
+ // Determine if the model has changed since the last `"change"` event.
549
+ // If you specify an attribute name, determine if that attribute has changed.
550
+ hasChanged: function(attr) {
551
+ if (attr == null) return !_.isEmpty(this.changed);
552
+ return _.has(this.changed, attr);
553
+ },
554
+
555
+ // Return an object containing all the attributes that have changed, or
556
+ // false if there are no changed attributes. Useful for determining what
557
+ // parts of a view need to be updated and/or what attributes need to be
558
+ // persisted to the server. Unset attributes will be set to undefined.
559
+ // You can also pass an attributes object to diff against the model,
560
+ // determining if there *would be* a change.
561
+ changedAttributes: function(diff) {
562
+ if (!diff) return this.hasChanged() ? _.clone(this.changed) : false;
563
+ var old = this._changing ? this._previousAttributes : this.attributes;
564
+ var changed = {};
565
+ for (var attr in diff) {
566
+ var val = diff[attr];
567
+ if (_.isEqual(old[attr], val)) continue;
568
+ changed[attr] = val;
569
+ }
570
+ return _.size(changed) ? changed : false;
571
+ },
572
+
573
+ // Get the previous value of an attribute, recorded at the time the last
574
+ // `"change"` event was fired.
575
+ previous: function(attr) {
576
+ if (attr == null || !this._previousAttributes) return null;
577
+ return this._previousAttributes[attr];
578
+ },
579
+
580
+ // Get all of the attributes of the model at the time of the previous
581
+ // `"change"` event.
582
+ previousAttributes: function() {
583
+ return _.clone(this._previousAttributes);
584
+ },
585
+
586
+ // Fetch the model from the server, merging the response with the model's
587
+ // local attributes. Any changed attributes will trigger a "change" event.
588
+ fetch: function(options) {
589
+ options = _.extend({parse: true}, options);
590
+ var model = this;
591
+ var success = options.success;
592
+ options.success = function(resp) {
593
+ var serverAttrs = options.parse ? model.parse(resp, options) : resp;
594
+ if (!model.set(serverAttrs, options)) return false;
595
+ if (success) success.call(options.context, model, resp, options);
596
+ model.trigger('sync', model, resp, options);
597
+ };
598
+ wrapError(this, options);
599
+ return this.sync('read', this, options);
600
+ },
601
+
602
+ // Set a hash of model attributes, and sync the model to the server.
603
+ // If the server returns an attributes hash that differs, the model's
604
+ // state will be `set` again.
605
+ save: function(key, val, options) {
606
+ // Handle both `"key", value` and `{key: value}` -style arguments.
607
+ var attrs;
608
+ if (key == null || typeof key === 'object') {
609
+ attrs = key;
610
+ options = val;
611
+ } else {
612
+ (attrs = {})[key] = val;
613
+ }
614
+
615
+ options = _.extend({validate: true, parse: true}, options);
616
+ var wait = options.wait;
617
+
618
+ // If we're not waiting and attributes exist, save acts as
619
+ // `set(attr).save(null, opts)` with validation. Otherwise, check if
620
+ // the model will be valid when the attributes, if any, are set.
621
+ if (attrs && !wait) {
622
+ if (!this.set(attrs, options)) return false;
623
+ } else if (!this._validate(attrs, options)) {
624
+ return false;
625
+ }
626
+
627
+ // After a successful server-side save, the client is (optionally)
628
+ // updated with the server-side state.
629
+ var model = this;
630
+ var success = options.success;
631
+ var attributes = this.attributes;
632
+ options.success = function(resp) {
633
+ // Ensure attributes are restored during synchronous saves.
634
+ model.attributes = attributes;
635
+ var serverAttrs = options.parse ? model.parse(resp, options) : resp;
636
+ if (wait) serverAttrs = _.extend({}, attrs, serverAttrs);
637
+ if (serverAttrs && !model.set(serverAttrs, options)) return false;
638
+ if (success) success.call(options.context, model, resp, options);
639
+ model.trigger('sync', model, resp, options);
640
+ };
641
+ wrapError(this, options);
642
+
643
+ // Set temporary attributes if `{wait: true}` to properly find new ids.
644
+ if (attrs && wait) this.attributes = _.extend({}, attributes, attrs);
645
+
646
+ var method = this.isNew() ? 'create' : (options.patch ? 'patch' : 'update');
647
+ if (method === 'patch' && !options.attrs) options.attrs = attrs;
648
+ var xhr = this.sync(method, this, options);
649
+
650
+ // Restore attributes.
651
+ this.attributes = attributes;
652
+
653
+ return xhr;
654
+ },
655
+
656
+ // Destroy this model on the server if it was already persisted.
657
+ // Optimistically removes the model from its collection, if it has one.
658
+ // If `wait: true` is passed, waits for the server to respond before removal.
659
+ destroy: function(options) {
660
+ options = options ? _.clone(options) : {};
661
+ var model = this;
662
+ var success = options.success;
663
+ var wait = options.wait;
664
+
665
+ var destroy = function() {
666
+ model.stopListening();
667
+ model.trigger('destroy', model, model.collection, options);
668
+ };
669
+
670
+ options.success = function(resp) {
671
+ if (wait) destroy();
672
+ if (success) success.call(options.context, model, resp, options);
673
+ if (!model.isNew()) model.trigger('sync', model, resp, options);
674
+ };
675
+
676
+ var xhr = false;
677
+ if (this.isNew()) {
678
+ _.defer(options.success);
679
+ } else {
680
+ wrapError(this, options);
681
+ xhr = this.sync('delete', this, options);
682
+ }
683
+ if (!wait) destroy();
684
+ return xhr;
685
+ },
686
+
687
+ // Default URL for the model's representation on the server -- if you're
688
+ // using Backbone's restful methods, override this to change the endpoint
689
+ // that will be called.
690
+ url: function() {
691
+ var base =
692
+ _.result(this, 'urlRoot') ||
693
+ _.result(this.collection, 'url') ||
694
+ urlError();
695
+ if (this.isNew()) return base;
696
+ var id = this.get(this.idAttribute);
697
+ return base.replace(/[^\/]$/, '$&/') + encodeURIComponent(id);
698
+ },
699
+
700
+ // **parse** converts a response into the hash of attributes to be `set` on
701
+ // the model. The default implementation is just to pass the response along.
702
+ parse: function(resp, options) {
703
+ return resp;
704
+ },
705
+
706
+ // Create a new model with identical attributes to this one.
707
+ clone: function() {
708
+ return new this.constructor(this.attributes);
709
+ },
710
+
711
+ // A model is new if it has never been saved to the server, and lacks an id.
712
+ isNew: function() {
713
+ return !this.has(this.idAttribute);
714
+ },
715
+
716
+ // Check if the model is currently in a valid state.
717
+ isValid: function(options) {
718
+ return this._validate({}, _.extend({}, options, {validate: true}));
719
+ },
720
+
721
+ // Run validation against the next complete set of model attributes,
722
+ // returning `true` if all is well. Otherwise, fire an `"invalid"` event.
723
+ _validate: function(attrs, options) {
724
+ if (!options.validate || !this.validate) return true;
725
+ attrs = _.extend({}, this.attributes, attrs);
726
+ var error = this.validationError = this.validate(attrs, options) || null;
727
+ if (!error) return true;
728
+ this.trigger('invalid', this, error, _.extend(options, {validationError: error}));
729
+ return false;
730
+ }
731
+
732
+ });
733
+
734
+ // Underscore methods that we want to implement on the Model, mapped to the
735
+ // number of arguments they take.
736
+ var modelMethods = {keys: 1, values: 1, pairs: 1, invert: 1, pick: 0,
737
+ omit: 0, chain: 1, isEmpty: 1};
738
+
739
+ // Mix in each Underscore method as a proxy to `Model#attributes`.
740
+ addUnderscoreMethods(Model, modelMethods, 'attributes');
741
+
742
+ // Backbone.Collection
743
+ // -------------------
744
+
745
+ // If models tend to represent a single row of data, a Backbone Collection is
746
+ // more analogous to a table full of data ... or a small slice or page of that
747
+ // table, or a collection of rows that belong together for a particular reason
748
+ // -- all of the messages in this particular folder, all of the documents
749
+ // belonging to this particular author, and so on. Collections maintain
750
+ // indexes of their models, both in order, and for lookup by `id`.
751
+
752
+ // Create a new **Collection**, perhaps to contain a specific type of `model`.
753
+ // If a `comparator` is specified, the Collection will maintain
754
+ // its models in sort order, as they're added and removed.
755
+ var Collection = Backbone.Collection = function(models, options) {
756
+ options || (options = {});
757
+ if (options.model) this.model = options.model;
758
+ if (options.comparator !== void 0) this.comparator = options.comparator;
759
+ this._reset();
760
+ this.initialize.apply(this, arguments);
761
+ if (models) this.reset(models, _.extend({silent: true}, options));
762
+ };
763
+
764
+ // Default options for `Collection#set`.
765
+ var setOptions = {add: true, remove: true, merge: true};
766
+ var addOptions = {add: true, remove: false};
767
+
768
+ // Splices `insert` into `array` at index `at`.
769
+ var splice = function(array, insert, at) {
770
+ at = Math.min(Math.max(at, 0), array.length);
771
+ var tail = Array(array.length - at);
772
+ var length = insert.length;
773
+ var i;
774
+ for (i = 0; i < tail.length; i++) tail[i] = array[i + at];
775
+ for (i = 0; i < length; i++) array[i + at] = insert[i];
776
+ for (i = 0; i < tail.length; i++) array[i + length + at] = tail[i];
777
+ };
778
+
779
+ // Define the Collection's inheritable methods.
780
+ _.extend(Collection.prototype, Events, {
781
+
782
+ // The default model for a collection is just a **Backbone.Model**.
783
+ // This should be overridden in most cases.
784
+ model: Model,
785
+
786
+ // Initialize is an empty function by default. Override it with your own
787
+ // initialization logic.
788
+ initialize: function(){},
789
+
790
+ // The JSON representation of a Collection is an array of the
791
+ // models' attributes.
792
+ toJSON: function(options) {
793
+ return this.map(function(model) { return model.toJSON(options); });
794
+ },
795
+
796
+ // Proxy `Backbone.sync` by default.
797
+ sync: function() {
798
+ return Backbone.sync.apply(this, arguments);
799
+ },
800
+
801
+ // Add a model, or list of models to the set. `models` may be Backbone
802
+ // Models or raw JavaScript objects to be converted to Models, or any
803
+ // combination of the two.
804
+ add: function(models, options) {
805
+ return this.set(models, _.extend({merge: false}, options, addOptions));
806
+ },
807
+
808
+ // Remove a model, or a list of models from the set.
809
+ remove: function(models, options) {
810
+ options = _.extend({}, options);
811
+ var singular = !_.isArray(models);
812
+ models = singular ? [models] : models.slice();
813
+ var removed = this._removeModels(models, options);
814
+ if (!options.silent && removed.length) {
815
+ options.changes = {added: [], merged: [], removed: removed};
816
+ this.trigger('update', this, options);
817
+ }
818
+ return singular ? removed[0] : removed;
819
+ },
820
+
821
+ // Update a collection by `set`-ing a new list of models, adding new ones,
822
+ // removing models that are no longer present, and merging models that
823
+ // already exist in the collection, as necessary. Similar to **Model#set**,
824
+ // the core operation for updating the data contained by the collection.
825
+ set: function(models, options) {
826
+ if (models == null) return;
827
+
828
+ options = _.extend({}, setOptions, options);
829
+ if (options.parse && !this._isModel(models)) {
830
+ models = this.parse(models, options) || [];
831
+ }
832
+
833
+ var singular = !_.isArray(models);
834
+ models = singular ? [models] : models.slice();
835
+
836
+ var at = options.at;
837
+ if (at != null) at = +at;
838
+ if (at > this.length) at = this.length;
839
+ if (at < 0) at += this.length + 1;
840
+
841
+ var set = [];
842
+ var toAdd = [];
843
+ var toMerge = [];
844
+ var toRemove = [];
845
+ var modelMap = {};
846
+
847
+ var add = options.add;
848
+ var merge = options.merge;
849
+ var remove = options.remove;
850
+
851
+ var sort = false;
852
+ var sortable = this.comparator && at == null && options.sort !== false;
853
+ var sortAttr = _.isString(this.comparator) ? this.comparator : null;
854
+
855
+ // Turn bare objects into model references, and prevent invalid models
856
+ // from being added.
857
+ var model, i;
858
+ for (i = 0; i < models.length; i++) {
859
+ model = models[i];
860
+
861
+ // If a duplicate is found, prevent it from being added and
862
+ // optionally merge it into the existing model.
863
+ var existing = this.get(model);
864
+ if (existing) {
865
+ if (merge && model !== existing) {
866
+ var attrs = this._isModel(model) ? model.attributes : model;
867
+ if (options.parse) attrs = existing.parse(attrs, options);
868
+ existing.set(attrs, options);
869
+ toMerge.push(existing);
870
+ if (sortable && !sort) sort = existing.hasChanged(sortAttr);
871
+ }
872
+ if (!modelMap[existing.cid]) {
873
+ modelMap[existing.cid] = true;
874
+ set.push(existing);
875
+ }
876
+ models[i] = existing;
877
+
878
+ // If this is a new, valid model, push it to the `toAdd` list.
879
+ } else if (add) {
880
+ model = models[i] = this._prepareModel(model, options);
881
+ if (model) {
882
+ toAdd.push(model);
883
+ this._addReference(model, options);
884
+ modelMap[model.cid] = true;
885
+ set.push(model);
886
+ }
887
+ }
888
+ }
889
+
890
+ // Remove stale models.
891
+ if (remove) {
892
+ for (i = 0; i < this.length; i++) {
893
+ model = this.models[i];
894
+ if (!modelMap[model.cid]) toRemove.push(model);
895
+ }
896
+ if (toRemove.length) this._removeModels(toRemove, options);
897
+ }
898
+
899
+ // See if sorting is needed, update `length` and splice in new models.
900
+ var orderChanged = false;
901
+ var replace = !sortable && add && remove;
902
+ if (set.length && replace) {
903
+ orderChanged = this.length !== set.length || _.some(this.models, function(m, index) {
904
+ return m !== set[index];
905
+ });
906
+ this.models.length = 0;
907
+ splice(this.models, set, 0);
908
+ this.length = this.models.length;
909
+ } else if (toAdd.length) {
910
+ if (sortable) sort = true;
911
+ splice(this.models, toAdd, at == null ? this.length : at);
912
+ this.length = this.models.length;
913
+ }
914
+
915
+ // Silently sort the collection if appropriate.
916
+ if (sort) this.sort({silent: true});
917
+
918
+ // Unless silenced, it's time to fire all appropriate add/sort/update events.
919
+ if (!options.silent) {
920
+ for (i = 0; i < toAdd.length; i++) {
921
+ if (at != null) options.index = at + i;
922
+ model = toAdd[i];
923
+ model.trigger('add', model, this, options);
924
+ }
925
+ if (sort || orderChanged) this.trigger('sort', this, options);
926
+ if (toAdd.length || toRemove.length || toMerge.length) {
927
+ options.changes = {
928
+ added: toAdd,
929
+ removed: toRemove,
930
+ merged: toMerge
931
+ };
932
+ this.trigger('update', this, options);
933
+ }
934
+ }
935
+
936
+ // Return the added (or merged) model (or models).
937
+ return singular ? models[0] : models;
938
+ },
939
+
940
+ // When you have more items than you want to add or remove individually,
941
+ // you can reset the entire set with a new list of models, without firing
942
+ // any granular `add` or `remove` events. Fires `reset` when finished.
943
+ // Useful for bulk operations and optimizations.
944
+ reset: function(models, options) {
945
+ options = options ? _.clone(options) : {};
946
+ for (var i = 0; i < this.models.length; i++) {
947
+ this._removeReference(this.models[i], options);
948
+ }
949
+ options.previousModels = this.models;
950
+ this._reset();
951
+ models = this.add(models, _.extend({silent: true}, options));
952
+ if (!options.silent) this.trigger('reset', this, options);
953
+ return models;
954
+ },
955
+
956
+ // Add a model to the end of the collection.
957
+ push: function(model, options) {
958
+ return this.add(model, _.extend({at: this.length}, options));
959
+ },
960
+
961
+ // Remove a model from the end of the collection.
962
+ pop: function(options) {
963
+ var model = this.at(this.length - 1);
964
+ return this.remove(model, options);
965
+ },
966
+
967
+ // Add a model to the beginning of the collection.
968
+ unshift: function(model, options) {
969
+ return this.add(model, _.extend({at: 0}, options));
970
+ },
971
+
972
+ // Remove a model from the beginning of the collection.
973
+ shift: function(options) {
974
+ var model = this.at(0);
975
+ return this.remove(model, options);
976
+ },
977
+
978
+ // Slice out a sub-array of models from the collection.
979
+ slice: function() {
980
+ return slice.apply(this.models, arguments);
981
+ },
982
+
983
+ // Get a model from the set by id, cid, model object with id or cid
984
+ // properties, or an attributes object that is transformed through modelId.
985
+ get: function(obj) {
986
+ if (obj == null) return void 0;
987
+ return this._byId[obj] ||
988
+ this._byId[this.modelId(obj.attributes || obj)] ||
989
+ obj.cid && this._byId[obj.cid];
990
+ },
991
+
992
+ // Returns `true` if the model is in the collection.
993
+ has: function(obj) {
994
+ return this.get(obj) != null;
995
+ },
996
+
997
+ // Get the model at the given index.
998
+ at: function(index) {
999
+ if (index < 0) index += this.length;
1000
+ return this.models[index];
1001
+ },
1002
+
1003
+ // Return models with matching attributes. Useful for simple cases of
1004
+ // `filter`.
1005
+ where: function(attrs, first) {
1006
+ return this[first ? 'find' : 'filter'](attrs);
1007
+ },
1008
+
1009
+ // Return the first model with matching attributes. Useful for simple cases
1010
+ // of `find`.
1011
+ findWhere: function(attrs) {
1012
+ return this.where(attrs, true);
1013
+ },
1014
+
1015
+ // Force the collection to re-sort itself. You don't need to call this under
1016
+ // normal circumstances, as the set will maintain sort order as each item
1017
+ // is added.
1018
+ sort: function(options) {
1019
+ var comparator = this.comparator;
1020
+ if (!comparator) throw new Error('Cannot sort a set without a comparator');
1021
+ options || (options = {});
1022
+
1023
+ var length = comparator.length;
1024
+ if (_.isFunction(comparator)) comparator = _.bind(comparator, this);
1025
+
1026
+ // Run sort based on type of `comparator`.
1027
+ if (length === 1 || _.isString(comparator)) {
1028
+ this.models = this.sortBy(comparator);
1029
+ } else {
1030
+ this.models.sort(comparator);
1031
+ }
1032
+ if (!options.silent) this.trigger('sort', this, options);
1033
+ return this;
1034
+ },
1035
+
1036
+ // Pluck an attribute from each model in the collection.
1037
+ pluck: function(attr) {
1038
+ return this.map(attr + '');
1039
+ },
1040
+
1041
+ // Fetch the default set of models for this collection, resetting the
1042
+ // collection when they arrive. If `reset: true` is passed, the response
1043
+ // data will be passed through the `reset` method instead of `set`.
1044
+ fetch: function(options) {
1045
+ options = _.extend({parse: true}, options);
1046
+ var success = options.success;
1047
+ var collection = this;
1048
+ options.success = function(resp) {
1049
+ var method = options.reset ? 'reset' : 'set';
1050
+ collection[method](resp, options);
1051
+ if (success) success.call(options.context, collection, resp, options);
1052
+ collection.trigger('sync', collection, resp, options);
1053
+ };
1054
+ wrapError(this, options);
1055
+ return this.sync('read', this, options);
1056
+ },
1057
+
1058
+ // Create a new instance of a model in this collection. Add the model to the
1059
+ // collection immediately, unless `wait: true` is passed, in which case we
1060
+ // wait for the server to agree.
1061
+ create: function(model, options) {
1062
+ options = options ? _.clone(options) : {};
1063
+ var wait = options.wait;
1064
+ model = this._prepareModel(model, options);
1065
+ if (!model) return false;
1066
+ if (!wait) this.add(model, options);
1067
+ var collection = this;
1068
+ var success = options.success;
1069
+ options.success = function(m, resp, callbackOpts) {
1070
+ if (wait) collection.add(m, callbackOpts);
1071
+ if (success) success.call(callbackOpts.context, m, resp, callbackOpts);
1072
+ };
1073
+ model.save(null, options);
1074
+ return model;
1075
+ },
1076
+
1077
+ // **parse** converts a response into a list of models to be added to the
1078
+ // collection. The default implementation is just to pass it through.
1079
+ parse: function(resp, options) {
1080
+ return resp;
1081
+ },
1082
+
1083
+ // Create a new collection with an identical list of models as this one.
1084
+ clone: function() {
1085
+ return new this.constructor(this.models, {
1086
+ model: this.model,
1087
+ comparator: this.comparator
1088
+ });
1089
+ },
1090
+
1091
+ // Define how to uniquely identify models in the collection.
1092
+ modelId: function(attrs) {
1093
+ return attrs[this.model.prototype.idAttribute || 'id'];
1094
+ },
1095
+
1096
+ // Private method to reset all internal state. Called when the collection
1097
+ // is first initialized or reset.
1098
+ _reset: function() {
1099
+ this.length = 0;
1100
+ this.models = [];
1101
+ this._byId = {};
1102
+ },
1103
+
1104
+ // Prepare a hash of attributes (or other model) to be added to this
1105
+ // collection.
1106
+ _prepareModel: function(attrs, options) {
1107
+ if (this._isModel(attrs)) {
1108
+ if (!attrs.collection) attrs.collection = this;
1109
+ return attrs;
1110
+ }
1111
+ options = options ? _.clone(options) : {};
1112
+ options.collection = this;
1113
+ var model = new this.model(attrs, options);
1114
+ if (!model.validationError) return model;
1115
+ this.trigger('invalid', this, model.validationError, options);
1116
+ return false;
1117
+ },
1118
+
1119
+ // Internal method called by both remove and set.
1120
+ _removeModels: function(models, options) {
1121
+ var removed = [];
1122
+ for (var i = 0; i < models.length; i++) {
1123
+ var model = this.get(models[i]);
1124
+ if (!model) continue;
1125
+
1126
+ var index = this.indexOf(model);
1127
+ this.models.splice(index, 1);
1128
+ this.length--;
1129
+
1130
+ // Remove references before triggering 'remove' event to prevent an
1131
+ // infinite loop. #3693
1132
+ delete this._byId[model.cid];
1133
+ var id = this.modelId(model.attributes);
1134
+ if (id != null) delete this._byId[id];
1135
+
1136
+ if (!options.silent) {
1137
+ options.index = index;
1138
+ model.trigger('remove', model, this, options);
1139
+ }
1140
+
1141
+ removed.push(model);
1142
+ this._removeReference(model, options);
1143
+ }
1144
+ return removed;
1145
+ },
1146
+
1147
+ // Method for checking whether an object should be considered a model for
1148
+ // the purposes of adding to the collection.
1149
+ _isModel: function(model) {
1150
+ return model instanceof Model;
1151
+ },
1152
+
1153
+ // Internal method to create a model's ties to a collection.
1154
+ _addReference: function(model, options) {
1155
+ this._byId[model.cid] = model;
1156
+ var id = this.modelId(model.attributes);
1157
+ if (id != null) this._byId[id] = model;
1158
+ model.on('all', this._onModelEvent, this);
1159
+ },
1160
+
1161
+ // Internal method to sever a model's ties to a collection.
1162
+ _removeReference: function(model, options) {
1163
+ delete this._byId[model.cid];
1164
+ var id = this.modelId(model.attributes);
1165
+ if (id != null) delete this._byId[id];
1166
+ if (this === model.collection) delete model.collection;
1167
+ model.off('all', this._onModelEvent, this);
1168
+ },
1169
+
1170
+ // Internal method called every time a model in the set fires an event.
1171
+ // Sets need to update their indexes when models change ids. All other
1172
+ // events simply proxy through. "add" and "remove" events that originate
1173
+ // in other collections are ignored.
1174
+ _onModelEvent: function(event, model, collection, options) {
1175
+ if (model) {
1176
+ if ((event === 'add' || event === 'remove') && collection !== this) return;
1177
+ if (event === 'destroy') this.remove(model, options);
1178
+ if (event === 'change') {
1179
+ var prevId = this.modelId(model.previousAttributes());
1180
+ var id = this.modelId(model.attributes);
1181
+ if (prevId !== id) {
1182
+ if (prevId != null) delete this._byId[prevId];
1183
+ if (id != null) this._byId[id] = model;
1184
+ }
1185
+ }
1186
+ }
1187
+ this.trigger.apply(this, arguments);
1188
+ }
1189
+
1190
+ });
1191
+
1192
+ // Underscore methods that we want to implement on the Collection.
1193
+ // 90% of the core usefulness of Backbone Collections is actually implemented
1194
+ // right here:
1195
+ var collectionMethods = {forEach: 3, each: 3, map: 3, collect: 3, reduce: 0,
1196
+ foldl: 0, inject: 0, reduceRight: 0, foldr: 0, find: 3, detect: 3, filter: 3,
1197
+ select: 3, reject: 3, every: 3, all: 3, some: 3, any: 3, include: 3, includes: 3,
1198
+ contains: 3, invoke: 0, max: 3, min: 3, toArray: 1, size: 1, first: 3,
1199
+ head: 3, take: 3, initial: 3, rest: 3, tail: 3, drop: 3, last: 3,
1200
+ without: 0, difference: 0, indexOf: 3, shuffle: 1, lastIndexOf: 3,
1201
+ isEmpty: 1, chain: 1, sample: 3, partition: 3, groupBy: 3, countBy: 3,
1202
+ sortBy: 3, indexBy: 3, findIndex: 3, findLastIndex: 3};
1203
+
1204
+ // Mix in each Underscore method as a proxy to `Collection#models`.
1205
+ addUnderscoreMethods(Collection, collectionMethods, 'models');
1206
+
1207
+ // Backbone.View
1208
+ // -------------
1209
+
1210
+ // Backbone Views are almost more convention than they are actual code. A View
1211
+ // is simply a JavaScript object that represents a logical chunk of UI in the
1212
+ // DOM. This might be a single item, an entire list, a sidebar or panel, or
1213
+ // even the surrounding frame which wraps your whole app. Defining a chunk of
1214
+ // UI as a **View** allows you to define your DOM events declaratively, without
1215
+ // having to worry about render order ... and makes it easy for the view to
1216
+ // react to specific changes in the state of your models.
1217
+
1218
+ // Creating a Backbone.View creates its initial element outside of the DOM,
1219
+ // if an existing element is not provided...
1220
+ var View = Backbone.View = function(options) {
1221
+ this.cid = _.uniqueId('view');
1222
+ _.extend(this, _.pick(options, viewOptions));
1223
+ this._ensureElement();
1224
+ this.initialize.apply(this, arguments);
1225
+ };
1226
+
1227
+ // Cached regex to split keys for `delegate`.
1228
+ var delegateEventSplitter = /^(\S+)\s*(.*)$/;
1229
+
1230
+ // List of view options to be set as properties.
1231
+ var viewOptions = ['model', 'collection', 'el', 'id', 'attributes', 'className', 'tagName', 'events'];
1232
+
1233
+ // Set up all inheritable **Backbone.View** properties and methods.
1234
+ _.extend(View.prototype, Events, {
1235
+
1236
+ // The default `tagName` of a View's element is `"div"`.
1237
+ tagName: 'div',
1238
+
1239
+ // jQuery delegate for element lookup, scoped to DOM elements within the
1240
+ // current view. This should be preferred to global lookups where possible.
1241
+ $: function(selector) {
1242
+ return this.$el.find(selector);
1243
+ },
1244
+
1245
+ // Initialize is an empty function by default. Override it with your own
1246
+ // initialization logic.
1247
+ initialize: function(){},
1248
+
1249
+ // **render** is the core function that your view should override, in order
1250
+ // to populate its element (`this.el`), with the appropriate HTML. The
1251
+ // convention is for **render** to always return `this`.
1252
+ render: function() {
1253
+ return this;
1254
+ },
1255
+
1256
+ // Remove this view by taking the element out of the DOM, and removing any
1257
+ // applicable Backbone.Events listeners.
1258
+ remove: function() {
1259
+ this._removeElement();
1260
+ this.stopListening();
1261
+ return this;
1262
+ },
1263
+
1264
+ // Remove this view's element from the document and all event listeners
1265
+ // attached to it. Exposed for subclasses using an alternative DOM
1266
+ // manipulation API.
1267
+ _removeElement: function() {
1268
+ this.$el.remove();
1269
+ },
1270
+
1271
+ // Change the view's element (`this.el` property) and re-delegate the
1272
+ // view's events on the new element.
1273
+ setElement: function(element) {
1274
+ this.undelegateEvents();
1275
+ this._setElement(element);
1276
+ this.delegateEvents();
1277
+ return this;
1278
+ },
1279
+
1280
+ // Creates the `this.el` and `this.$el` references for this view using the
1281
+ // given `el`. `el` can be a CSS selector or an HTML string, a jQuery
1282
+ // context or an element. Subclasses can override this to utilize an
1283
+ // alternative DOM manipulation API and are only required to set the
1284
+ // `this.el` property.
1285
+ _setElement: function(el) {
1286
+ this.$el = el instanceof Backbone.$ ? el : Backbone.$(el);
1287
+ this.el = this.$el[0];
1288
+ },
1289
+
1290
+ // Set callbacks, where `this.events` is a hash of
1291
+ //
1292
+ // *{"event selector": "callback"}*
1293
+ //
1294
+ // {
1295
+ // 'mousedown .title': 'edit',
1296
+ // 'click .button': 'save',
1297
+ // 'click .open': function(e) { ... }
1298
+ // }
1299
+ //
1300
+ // pairs. Callbacks will be bound to the view, with `this` set properly.
1301
+ // Uses event delegation for efficiency.
1302
+ // Omitting the selector binds the event to `this.el`.
1303
+ delegateEvents: function(events) {
1304
+ events || (events = _.result(this, 'events'));
1305
+ if (!events) return this;
1306
+ this.undelegateEvents();
1307
+ for (var key in events) {
1308
+ var method = events[key];
1309
+ if (!_.isFunction(method)) method = this[method];
1310
+ if (!method) continue;
1311
+ var match = key.match(delegateEventSplitter);
1312
+ this.delegate(match[1], match[2], _.bind(method, this));
1313
+ }
1314
+ return this;
1315
+ },
1316
+
1317
+ // Add a single event listener to the view's element (or a child element
1318
+ // using `selector`). This only works for delegate-able events: not `focus`,
1319
+ // `blur`, and not `change`, `submit`, and `reset` in Internet Explorer.
1320
+ delegate: function(eventName, selector, listener) {
1321
+ this.$el.on(eventName + '.delegateEvents' + this.cid, selector, listener);
1322
+ return this;
1323
+ },
1324
+
1325
+ // Clears all callbacks previously bound to the view by `delegateEvents`.
1326
+ // You usually don't need to use this, but may wish to if you have multiple
1327
+ // Backbone views attached to the same DOM element.
1328
+ undelegateEvents: function() {
1329
+ if (this.$el) this.$el.off('.delegateEvents' + this.cid);
1330
+ return this;
1331
+ },
1332
+
1333
+ // A finer-grained `undelegateEvents` for removing a single delegated event.
1334
+ // `selector` and `listener` are both optional.
1335
+ undelegate: function(eventName, selector, listener) {
1336
+ this.$el.off(eventName + '.delegateEvents' + this.cid, selector, listener);
1337
+ return this;
1338
+ },
1339
+
1340
+ // Produces a DOM element to be assigned to your view. Exposed for
1341
+ // subclasses using an alternative DOM manipulation API.
1342
+ _createElement: function(tagName) {
1343
+ return document.createElement(tagName);
1344
+ },
1345
+
1346
+ // Ensure that the View has a DOM element to render into.
1347
+ // If `this.el` is a string, pass it through `$()`, take the first
1348
+ // matching element, and re-assign it to `el`. Otherwise, create
1349
+ // an element from the `id`, `className` and `tagName` properties.
1350
+ _ensureElement: function() {
1351
+ if (!this.el) {
1352
+ var attrs = _.extend({}, _.result(this, 'attributes'));
1353
+ if (this.id) attrs.id = _.result(this, 'id');
1354
+ if (this.className) attrs['class'] = _.result(this, 'className');
1355
+ this.setElement(this._createElement(_.result(this, 'tagName')));
1356
+ this._setAttributes(attrs);
1357
+ } else {
1358
+ this.setElement(_.result(this, 'el'));
1359
+ }
1360
+ },
1361
+
1362
+ // Set attributes from a hash on this view's element. Exposed for
1363
+ // subclasses using an alternative DOM manipulation API.
1364
+ _setAttributes: function(attributes) {
1365
+ this.$el.attr(attributes);
1366
+ }
1367
+
1368
+ });
1369
+
1370
+ // Backbone.sync
1371
+ // -------------
1372
+
1373
+ // Override this function to change the manner in which Backbone persists
1374
+ // models to the server. You will be passed the type of request, and the
1375
+ // model in question. By default, makes a RESTful Ajax request
1376
+ // to the model's `url()`. Some possible customizations could be:
1377
+ //
1378
+ // * Use `setTimeout` to batch rapid-fire updates into a single request.
1379
+ // * Send up the models as XML instead of JSON.
1380
+ // * Persist models via WebSockets instead of Ajax.
1381
+ //
1382
+ // Turn on `Backbone.emulateHTTP` in order to send `PUT` and `DELETE` requests
1383
+ // as `POST`, with a `_method` parameter containing the true HTTP method,
1384
+ // as well as all requests with the body as `application/x-www-form-urlencoded`
1385
+ // instead of `application/json` with the model in a param named `model`.
1386
+ // Useful when interfacing with server-side languages like **PHP** that make
1387
+ // it difficult to read the body of `PUT` requests.
1388
+ Backbone.sync = function(method, model, options) {
1389
+ var type = methodMap[method];
1390
+
1391
+ // Default options, unless specified.
1392
+ _.defaults(options || (options = {}), {
1393
+ emulateHTTP: Backbone.emulateHTTP,
1394
+ emulateJSON: Backbone.emulateJSON
1395
+ });
1396
+
1397
+ // Default JSON-request options.
1398
+ var params = {type: type, dataType: 'json'};
1399
+
1400
+ // Ensure that we have a URL.
1401
+ if (!options.url) {
1402
+ params.url = _.result(model, 'url') || urlError();
1403
+ }
1404
+
1405
+ // Ensure that we have the appropriate request data.
1406
+ if (options.data == null && model && (method === 'create' || method === 'update' || method === 'patch')) {
1407
+ params.contentType = 'application/json';
1408
+ params.data = JSON.stringify(options.attrs || model.toJSON(options));
1409
+ }
1410
+
1411
+ // For older servers, emulate JSON by encoding the request into an HTML-form.
1412
+ if (options.emulateJSON) {
1413
+ params.contentType = 'application/x-www-form-urlencoded';
1414
+ params.data = params.data ? {model: params.data} : {};
1415
+ }
1416
+
1417
+ // For older servers, emulate HTTP by mimicking the HTTP method with `_method`
1418
+ // And an `X-HTTP-Method-Override` header.
1419
+ if (options.emulateHTTP && (type === 'PUT' || type === 'DELETE' || type === 'PATCH')) {
1420
+ params.type = 'POST';
1421
+ if (options.emulateJSON) params.data._method = type;
1422
+ var beforeSend = options.beforeSend;
1423
+ options.beforeSend = function(xhr) {
1424
+ xhr.setRequestHeader('X-HTTP-Method-Override', type);
1425
+ if (beforeSend) return beforeSend.apply(this, arguments);
1426
+ };
1427
+ }
1428
+
1429
+ // Don't process data on a non-GET request.
1430
+ if (params.type !== 'GET' && !options.emulateJSON) {
1431
+ params.processData = false;
1432
+ }
1433
+
1434
+ // Pass along `textStatus` and `errorThrown` from jQuery.
1435
+ var error = options.error;
1436
+ options.error = function(xhr, textStatus, errorThrown) {
1437
+ options.textStatus = textStatus;
1438
+ options.errorThrown = errorThrown;
1439
+ if (error) error.call(options.context, xhr, textStatus, errorThrown);
1440
+ };
1441
+
1442
+ // Make the request, allowing the user to override any Ajax options.
1443
+ var xhr = options.xhr = Backbone.ajax(_.extend(params, options));
1444
+ model.trigger('request', model, xhr, options);
1445
+ return xhr;
1446
+ };
1447
+
1448
+ // Map from CRUD to HTTP for our default `Backbone.sync` implementation.
1449
+ var methodMap = {
1450
+ 'create': 'POST',
1451
+ 'update': 'PUT',
1452
+ 'patch': 'PATCH',
1453
+ 'delete': 'DELETE',
1454
+ 'read': 'GET'
1455
+ };
1456
+
1457
+ // Set the default implementation of `Backbone.ajax` to proxy through to `$`.
1458
+ // Override this if you'd like to use a different library.
1459
+ Backbone.ajax = function() {
1460
+ return Backbone.$.ajax.apply(Backbone.$, arguments);
1461
+ };
1462
+
1463
+ // Backbone.Router
1464
+ // ---------------
1465
+
1466
+ // Routers map faux-URLs to actions, and fire events when routes are
1467
+ // matched. Creating a new one sets its `routes` hash, if not set statically.
1468
+ var Router = Backbone.Router = function(options) {
1469
+ options || (options = {});
1470
+ if (options.routes) this.routes = options.routes;
1471
+ this._bindRoutes();
1472
+ this.initialize.apply(this, arguments);
1473
+ };
1474
+
1475
+ // Cached regular expressions for matching named param parts and splatted
1476
+ // parts of route strings.
1477
+ var optionalParam = /\((.*?)\)/g;
1478
+ var namedParam = /(\(\?)?:\w+/g;
1479
+ var splatParam = /\*\w+/g;
1480
+ var escapeRegExp = /[\-{}\[\]+?.,\\\^$|#\s]/g;
1481
+
1482
+ // Set up all inheritable **Backbone.Router** properties and methods.
1483
+ _.extend(Router.prototype, Events, {
1484
+
1485
+ // Initialize is an empty function by default. Override it with your own
1486
+ // initialization logic.
1487
+ initialize: function(){},
1488
+
1489
+ // Manually bind a single named route to a callback. For example:
1490
+ //
1491
+ // this.route('search/:query/p:num', 'search', function(query, num) {
1492
+ // ...
1493
+ // });
1494
+ //
1495
+ route: function(route, name, callback) {
1496
+ if (!_.isRegExp(route)) route = this._routeToRegExp(route);
1497
+ if (_.isFunction(name)) {
1498
+ callback = name;
1499
+ name = '';
1500
+ }
1501
+ if (!callback) callback = this[name];
1502
+ var router = this;
1503
+ Backbone.history.route(route, function(fragment) {
1504
+ var args = router._extractParameters(route, fragment);
1505
+ if (router.execute(callback, args, name) !== false) {
1506
+ router.trigger.apply(router, ['route:' + name].concat(args));
1507
+ router.trigger('route', name, args);
1508
+ Backbone.history.trigger('route', router, name, args);
1509
+ }
1510
+ });
1511
+ return this;
1512
+ },
1513
+
1514
+ // Execute a route handler with the provided parameters. This is an
1515
+ // excellent place to do pre-route setup or post-route cleanup.
1516
+ execute: function(callback, args, name) {
1517
+ if (callback) callback.apply(this, args);
1518
+ },
1519
+
1520
+ // Simple proxy to `Backbone.history` to save a fragment into the history.
1521
+ navigate: function(fragment, options) {
1522
+ Backbone.history.navigate(fragment, options);
1523
+ return this;
1524
+ },
1525
+
1526
+ // Bind all defined routes to `Backbone.history`. We have to reverse the
1527
+ // order of the routes here to support behavior where the most general
1528
+ // routes can be defined at the bottom of the route map.
1529
+ _bindRoutes: function() {
1530
+ if (!this.routes) return;
1531
+ this.routes = _.result(this, 'routes');
1532
+ var route, routes = _.keys(this.routes);
1533
+ while ((route = routes.pop()) != null) {
1534
+ this.route(route, this.routes[route]);
1535
+ }
1536
+ },
1537
+
1538
+ // Convert a route string into a regular expression, suitable for matching
1539
+ // against the current location hash.
1540
+ _routeToRegExp: function(route) {
1541
+ route = route.replace(escapeRegExp, '\\$&')
1542
+ .replace(optionalParam, '(?:$1)?')
1543
+ .replace(namedParam, function(match, optional) {
1544
+ return optional ? match : '([^/?]+)';
1545
+ })
1546
+ .replace(splatParam, '([^?]*?)');
1547
+ return new RegExp('^' + route + '(?:\\?([\\s\\S]*))?$');
1548
+ },
1549
+
1550
+ // Given a route, and a URL fragment that it matches, return the array of
1551
+ // extracted decoded parameters. Empty or unmatched parameters will be
1552
+ // treated as `null` to normalize cross-browser behavior.
1553
+ _extractParameters: function(route, fragment) {
1554
+ var params = route.exec(fragment).slice(1);
1555
+ return _.map(params, function(param, i) {
1556
+ // Don't decode the search params.
1557
+ if (i === params.length - 1) return param || null;
1558
+ return param ? decodeURIComponent(param) : null;
1559
+ });
1560
+ }
1561
+
1562
+ });
1563
+
1564
+ // Backbone.History
1565
+ // ----------------
1566
+
1567
+ // Handles cross-browser history management, based on either
1568
+ // [pushState](http://diveintohtml5.info/history.html) and real URLs, or
1569
+ // [onhashchange](https://developer.mozilla.org/en-US/docs/DOM/window.onhashchange)
1570
+ // and URL fragments. If the browser supports neither (old IE, natch),
1571
+ // falls back to polling.
1572
+ var History = Backbone.History = function() {
1573
+ this.handlers = [];
1574
+ this.checkUrl = _.bind(this.checkUrl, this);
1575
+
1576
+ // Ensure that `History` can be used outside of the browser.
1577
+ if (typeof window !== 'undefined') {
1578
+ this.location = window.location;
1579
+ this.history = window.history;
1580
+ }
1581
+ };
1582
+
1583
+ // Cached regex for stripping a leading hash/slash and trailing space.
1584
+ var routeStripper = /^[#\/]|\s+$/g;
1585
+
1586
+ // Cached regex for stripping leading and trailing slashes.
1587
+ var rootStripper = /^\/+|\/+$/g;
1588
+
1589
+ // Cached regex for stripping urls of hash.
1590
+ var pathStripper = /#.*$/;
1591
+
1592
+ // Has the history handling already been started?
1593
+ History.started = false;
1594
+
1595
+ // Set up all inheritable **Backbone.History** properties and methods.
1596
+ _.extend(History.prototype, Events, {
1597
+
1598
+ // The default interval to poll for hash changes, if necessary, is
1599
+ // twenty times a second.
1600
+ interval: 50,
1601
+
1602
+ // Are we at the app root?
1603
+ atRoot: function() {
1604
+ var path = this.location.pathname.replace(/[^\/]$/, '$&/');
1605
+ return path === this.root && !this.getSearch();
1606
+ },
1607
+
1608
+ // Does the pathname match the root?
1609
+ matchRoot: function() {
1610
+ var path = this.decodeFragment(this.location.pathname);
1611
+ var rootPath = path.slice(0, this.root.length - 1) + '/';
1612
+ return rootPath === this.root;
1613
+ },
1614
+
1615
+ // Unicode characters in `location.pathname` are percent encoded so they're
1616
+ // decoded for comparison. `%25` should not be decoded since it may be part
1617
+ // of an encoded parameter.
1618
+ decodeFragment: function(fragment) {
1619
+ return decodeURI(fragment.replace(/%25/g, '%2525'));
1620
+ },
1621
+
1622
+ // In IE6, the hash fragment and search params are incorrect if the
1623
+ // fragment contains `?`.
1624
+ getSearch: function() {
1625
+ var match = this.location.href.replace(/#.*/, '').match(/\?.+/);
1626
+ return match ? match[0] : '';
1627
+ },
1628
+
1629
+ // Gets the true hash value. Cannot use location.hash directly due to bug
1630
+ // in Firefox where location.hash will always be decoded.
1631
+ getHash: function(window) {
1632
+ var match = (window || this).location.href.match(/#(.*)$/);
1633
+ return match ? match[1] : '';
1634
+ },
1635
+
1636
+ // Get the pathname and search params, without the root.
1637
+ getPath: function() {
1638
+ var path = this.decodeFragment(
1639
+ this.location.pathname + this.getSearch()
1640
+ ).slice(this.root.length - 1);
1641
+ return path.charAt(0) === '/' ? path.slice(1) : path;
1642
+ },
1643
+
1644
+ // Get the cross-browser normalized URL fragment from the path or hash.
1645
+ getFragment: function(fragment) {
1646
+ if (fragment == null) {
1647
+ if (this._usePushState || !this._wantsHashChange) {
1648
+ fragment = this.getPath();
1649
+ } else {
1650
+ fragment = this.getHash();
1651
+ }
1652
+ }
1653
+ return fragment.replace(routeStripper, '');
1654
+ },
1655
+
1656
+ // Start the hash change handling, returning `true` if the current URL matches
1657
+ // an existing route, and `false` otherwise.
1658
+ start: function(options) {
1659
+ if (History.started) throw new Error('Backbone.history has already been started');
1660
+ History.started = true;
1661
+
1662
+ // Figure out the initial configuration. Do we need an iframe?
1663
+ // Is pushState desired ... is it available?
1664
+ this.options = _.extend({root: '/'}, this.options, options);
1665
+ this.root = this.options.root;
1666
+ this._wantsHashChange = this.options.hashChange !== false;
1667
+ this._hasHashChange = 'onhashchange' in window && (document.documentMode === void 0 || document.documentMode > 7);
1668
+ this._useHashChange = this._wantsHashChange && this._hasHashChange;
1669
+ this._wantsPushState = !!this.options.pushState;
1670
+ this._hasPushState = !!(this.history && this.history.pushState);
1671
+ this._usePushState = this._wantsPushState && this._hasPushState;
1672
+ this.fragment = this.getFragment();
1673
+
1674
+ // Normalize root to always include a leading and trailing slash.
1675
+ this.root = ('/' + this.root + '/').replace(rootStripper, '/');
1676
+
1677
+ // Transition from hashChange to pushState or vice versa if both are
1678
+ // requested.
1679
+ if (this._wantsHashChange && this._wantsPushState) {
1680
+
1681
+ // If we've started off with a route from a `pushState`-enabled
1682
+ // browser, but we're currently in a browser that doesn't support it...
1683
+ if (!this._hasPushState && !this.atRoot()) {
1684
+ var rootPath = this.root.slice(0, -1) || '/';
1685
+ this.location.replace(rootPath + '#' + this.getPath());
1686
+ // Return immediately as browser will do redirect to new url
1687
+ return true;
1688
+
1689
+ // Or if we've started out with a hash-based route, but we're currently
1690
+ // in a browser where it could be `pushState`-based instead...
1691
+ } else if (this._hasPushState && this.atRoot()) {
1692
+ this.navigate(this.getHash(), {replace: true});
1693
+ }
1694
+
1695
+ }
1696
+
1697
+ // Proxy an iframe to handle location events if the browser doesn't
1698
+ // support the `hashchange` event, HTML5 history, or the user wants
1699
+ // `hashChange` but not `pushState`.
1700
+ if (!this._hasHashChange && this._wantsHashChange && !this._usePushState) {
1701
+ this.iframe = document.createElement('iframe');
1702
+ this.iframe.src = 'javascript:0';
1703
+ this.iframe.style.display = 'none';
1704
+ this.iframe.tabIndex = -1;
1705
+ var body = document.body;
1706
+ // Using `appendChild` will throw on IE < 9 if the document is not ready.
1707
+ var iWindow = body.insertBefore(this.iframe, body.firstChild).contentWindow;
1708
+ iWindow.document.open();
1709
+ iWindow.document.close();
1710
+ iWindow.location.hash = '#' + this.fragment;
1711
+ }
1712
+
1713
+ // Add a cross-platform `addEventListener` shim for older browsers.
1714
+ var addEventListener = window.addEventListener || function(eventName, listener) {
1715
+ return attachEvent('on' + eventName, listener);
1716
+ };
1717
+
1718
+ // Depending on whether we're using pushState or hashes, and whether
1719
+ // 'onhashchange' is supported, determine how we check the URL state.
1720
+ if (this._usePushState) {
1721
+ addEventListener('popstate', this.checkUrl, false);
1722
+ } else if (this._useHashChange && !this.iframe) {
1723
+ addEventListener('hashchange', this.checkUrl, false);
1724
+ } else if (this._wantsHashChange) {
1725
+ this._checkUrlInterval = setInterval(this.checkUrl, this.interval);
1726
+ }
1727
+
1728
+ if (!this.options.silent) return this.loadUrl();
1729
+ },
1730
+
1731
+ // Disable Backbone.history, perhaps temporarily. Not useful in a real app,
1732
+ // but possibly useful for unit testing Routers.
1733
+ stop: function() {
1734
+ // Add a cross-platform `removeEventListener` shim for older browsers.
1735
+ var removeEventListener = window.removeEventListener || function(eventName, listener) {
1736
+ return detachEvent('on' + eventName, listener);
1737
+ };
1738
+
1739
+ // Remove window listeners.
1740
+ if (this._usePushState) {
1741
+ removeEventListener('popstate', this.checkUrl, false);
1742
+ } else if (this._useHashChange && !this.iframe) {
1743
+ removeEventListener('hashchange', this.checkUrl, false);
1744
+ }
1745
+
1746
+ // Clean up the iframe if necessary.
1747
+ if (this.iframe) {
1748
+ document.body.removeChild(this.iframe);
1749
+ this.iframe = null;
1750
+ }
1751
+
1752
+ // Some environments will throw when clearing an undefined interval.
1753
+ if (this._checkUrlInterval) clearInterval(this._checkUrlInterval);
1754
+ History.started = false;
1755
+ },
1756
+
1757
+ // Add a route to be tested when the fragment changes. Routes added later
1758
+ // may override previous routes.
1759
+ route: function(route, callback) {
1760
+ this.handlers.unshift({route: route, callback: callback});
1761
+ },
1762
+
1763
+ // Checks the current URL to see if it has changed, and if it has,
1764
+ // calls `loadUrl`, normalizing across the hidden iframe.
1765
+ checkUrl: function(e) {
1766
+ var current = this.getFragment();
1767
+
1768
+ // If the user pressed the back button, the iframe's hash will have
1769
+ // changed and we should use that for comparison.
1770
+ if (current === this.fragment && this.iframe) {
1771
+ current = this.getHash(this.iframe.contentWindow);
1772
+ }
1773
+
1774
+ if (current === this.fragment) return false;
1775
+ if (this.iframe) this.navigate(current);
1776
+ this.loadUrl();
1777
+ },
1778
+
1779
+ // Attempt to load the current URL fragment. If a route succeeds with a
1780
+ // match, returns `true`. If no defined routes matches the fragment,
1781
+ // returns `false`.
1782
+ loadUrl: function(fragment) {
1783
+ // If the root doesn't match, no routes can match either.
1784
+ if (!this.matchRoot()) return false;
1785
+ fragment = this.fragment = this.getFragment(fragment);
1786
+ return _.some(this.handlers, function(handler) {
1787
+ if (handler.route.test(fragment)) {
1788
+ handler.callback(fragment);
1789
+ return true;
1790
+ }
1791
+ });
1792
+ },
1793
+
1794
+ // Save a fragment into the hash history, or replace the URL state if the
1795
+ // 'replace' option is passed. You are responsible for properly URL-encoding
1796
+ // the fragment in advance.
1797
+ //
1798
+ // The options object can contain `trigger: true` if you wish to have the
1799
+ // route callback be fired (not usually desirable), or `replace: true`, if
1800
+ // you wish to modify the current URL without adding an entry to the history.
1801
+ navigate: function(fragment, options) {
1802
+ if (!History.started) return false;
1803
+ if (!options || options === true) options = {trigger: !!options};
1804
+
1805
+ // Normalize the fragment.
1806
+ fragment = this.getFragment(fragment || '');
1807
+
1808
+ // Don't include a trailing slash on the root.
1809
+ var rootPath = this.root;
1810
+ if (fragment === '' || fragment.charAt(0) === '?') {
1811
+ rootPath = rootPath.slice(0, -1) || '/';
1812
+ }
1813
+ var url = rootPath + fragment;
1814
+
1815
+ // Strip the hash and decode for matching.
1816
+ fragment = this.decodeFragment(fragment.replace(pathStripper, ''));
1817
+
1818
+ if (this.fragment === fragment) return;
1819
+ this.fragment = fragment;
1820
+
1821
+ // If pushState is available, we use it to set the fragment as a real URL.
1822
+ if (this._usePushState) {
1823
+ this.history[options.replace ? 'replaceState' : 'pushState']({}, document.title, url);
1824
+
1825
+ // If hash changes haven't been explicitly disabled, update the hash
1826
+ // fragment to store history.
1827
+ } else if (this._wantsHashChange) {
1828
+ this._updateHash(this.location, fragment, options.replace);
1829
+ if (this.iframe && fragment !== this.getHash(this.iframe.contentWindow)) {
1830
+ var iWindow = this.iframe.contentWindow;
1831
+
1832
+ // Opening and closing the iframe tricks IE7 and earlier to push a
1833
+ // history entry on hash-tag change. When replace is true, we don't
1834
+ // want this.
1835
+ if (!options.replace) {
1836
+ iWindow.document.open();
1837
+ iWindow.document.close();
1838
+ }
1839
+
1840
+ this._updateHash(iWindow.location, fragment, options.replace);
1841
+ }
1842
+
1843
+ // If you've told us that you explicitly don't want fallback hashchange-
1844
+ // based history, then `navigate` becomes a page refresh.
1845
+ } else {
1846
+ return this.location.assign(url);
1847
+ }
1848
+ if (options.trigger) return this.loadUrl(fragment);
1849
+ },
1850
+
1851
+ // Update the hash location, either replacing the current entry, or adding
1852
+ // a new one to the browser history.
1853
+ _updateHash: function(location, fragment, replace) {
1854
+ if (replace) {
1855
+ var href = location.href.replace(/(javascript:|#).*$/, '');
1856
+ location.replace(href + '#' + fragment);
1857
+ } else {
1858
+ // Some browsers require that `hash` contains a leading #.
1859
+ location.hash = '#' + fragment;
1860
+ }
1861
+ }
1862
+
1863
+ });
1864
+
1865
+ // Create the default Backbone.history.
1866
+ Backbone.history = new History;
1867
+
1868
+ // Helpers
1869
+ // -------
1870
+
1871
+ // Helper function to correctly set up the prototype chain for subclasses.
1872
+ // Similar to `goog.inherits`, but uses a hash of prototype properties and
1873
+ // class properties to be extended.
1874
+ var extend = function(protoProps, staticProps) {
1875
+ var parent = this;
1876
+ var child;
1877
+
1878
+ // The constructor function for the new subclass is either defined by you
1879
+ // (the "constructor" property in your `extend` definition), or defaulted
1880
+ // by us to simply call the parent constructor.
1881
+ if (protoProps && _.has(protoProps, 'constructor')) {
1882
+ child = protoProps.constructor;
1883
+ } else {
1884
+ child = function(){ return parent.apply(this, arguments); };
1885
+ }
1886
+
1887
+ // Add static properties to the constructor function, if supplied.
1888
+ _.extend(child, parent, staticProps);
1889
+
1890
+ // Set the prototype chain to inherit from `parent`, without calling
1891
+ // `parent`'s constructor function and add the prototype properties.
1892
+ child.prototype = _.create(parent.prototype, protoProps);
1893
+ child.prototype.constructor = child;
1894
+
1895
+ // Set a convenience property in case the parent's prototype is needed
1896
+ // later.
1897
+ child.__super__ = parent.prototype;
1898
+
1899
+ return child;
1900
+ };
1901
+
1902
+ // Set up inheritance for the model, collection, router, view and history.
1903
+ Model.extend = Collection.extend = Router.extend = View.extend = History.extend = extend;
1904
+
1905
+ // Throw an error when a URL is needed, and none is supplied.
1906
+ var urlError = function() {
1907
+ throw new Error('A "url" property or function must be specified');
1908
+ };
1909
+
1910
+ // Wrap an optional error callback with a fallback error event.
1911
+ var wrapError = function(model, options) {
1912
+ var error = options.error;
1913
+ options.error = function(resp) {
1914
+ if (error) error.call(options.context, model, resp, options);
1915
+ model.trigger('error', model, resp, options);
1916
+ };
1917
+ };
1918
+
1919
+ return Backbone;
1920
+ });