You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

147 lines
4.0 KiB

8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
Web Push Notifications (#3243) * feat: Register push subscription * feat: Notify when mentioned * feat: Boost, favourite, reply, follow, follow request * feat: Notification interaction * feat: Handle change of public key * feat: Unsubscribe if things go wrong * feat: Do not send normal notifications if push is enabled * feat: Focus client if open * refactor: Move push logic to WebPushSubscription * feat: Better title and body * feat: Localize messages * chore: Fix lint errors * feat: Settings * refactor: Lazy load * fix: Check if push settings exist * feat: Device-based preferences * refactor: Simplify logic * refactor: Pull request feedback * refactor: Pull request feedback * refactor: Create /api/web/push_subscriptions endpoint * feat: Spec PushSubscriptionController * refactor: WebPushSubscription => Web::PushSubscription * feat: Spec Web::PushSubscription * feat: Display first media attachment * feat: Support direction * fix: Stuff broken while rebasing * refactor: Integration with session activations * refactor: Cleanup * refactor: Simplify implementation * feat: Set VAPID keys via environment * chore: Comments * fix: Crash when no alerts * fix: Set VAPID keys in testing environment * fix: Follow link * feat: Notification actions * fix: Delete previous subscription * chore: Temporary logs * refactor: Move migration to a later date * fix: Fetch the correct session activation and misc bugs * refactor: Move migration to a later date * fix: Remove follow request (no notifications) * feat: Send administrator contact to push service * feat: Set time-to-live * fix: Do not show sensitive images * fix: Reducer crash in error handling * feat: Add badge * chore: Fix lint error * fix: Checkbox label overlap * fix: Check for payload support * fix: Rename action "type" (crash in latest Chrome) * feat: Action to expand notification * fix: Lint errors * fix: Unescape notification body * fix: Do not allow boosting if the status is hidden * feat: Add VAPID keys to the production sample environment * fix: Strip HTML tags from status * refactor: Better error messages * refactor: Handle browser not implementing the VAPID protocol (Samsung Internet) * fix: Error when target_status is nil * fix: Handle lack of image * fix: Delete reference to invalid subscriptions * feat: Better error handling * fix: Unescape HTML characters after tags are striped * refactor: Simpify code * fix: Modify to work with #4091 * Sort strings alphabetically * i18n: Updated Polish translation it annoys me that it's not fully localized :P * refactor: Use current_session in PushSubscriptionController * fix: Rebase mistake * fix: Set cacheName to mastodon * refactor: Pull request feedback * refactor: Remove logging statements * chore(yarn): Fix conflicts with master * chore(yarn): Copy latest from master * chore(yarn): Readd offline-plugin * refactor: Use save! and update! * refactor: Send notifications async * fix: Allow retry when push fails * fix: Save track for failed pushes * fix: Minify sw.js * fix: Remove account_id from fabricator
7 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
  1. # frozen_string_literal: true
  2. source 'https://rubygems.org'
  3. ruby '>= 2.3.0', '< 2.6.0'
  4. gem 'pkg-config', '~> 1.3'
  5. gem 'puma', '~> 3.11'
  6. gem 'rails', '~> 5.2.0'
  7. gem 'hamlit-rails', '~> 0.2'
  8. gem 'pg', '~> 1.0'
  9. gem 'pghero', '~> 2.1'
  10. gem 'dotenv-rails', '~> 2.2', '< 2.3'
  11. gem 'aws-sdk-s3', '~> 1.9', require: false
  12. gem 'fog-core', '~> 1.45'
  13. gem 'fog-local', '~> 0.5', require: false
  14. gem 'fog-openstack', '~> 0.1', require: false
  15. gem 'paperclip', '~> 6.0'
  16. gem 'paperclip-av-transcoder', '~> 0.6'
  17. gem 'streamio-ffmpeg', '~> 3.0'
  18. gem 'active_model_serializers', '~> 0.10'
  19. gem 'addressable', '~> 2.5'
  20. gem 'bootsnap', '~> 1.3'
  21. gem 'browser'
  22. gem 'charlock_holmes', '~> 0.7.6'
  23. gem 'iso-639'
  24. gem 'chewy', '~> 5.0'
  25. gem 'cld3', '~> 3.2.0'
  26. gem 'devise', '~> 4.4'
  27. gem 'devise-two-factor', '~> 3.0'
  28. group :pam_authentication, optional: true do
  29. gem 'devise_pam_authenticatable2', '~> 9.1'
  30. end
  31. gem 'net-ldap', '~> 0.10'
  32. gem 'omniauth-cas', '~> 1.1'
  33. gem 'omniauth-saml', '~> 1.10'
  34. gem 'omniauth', '~> 1.2'
  35. gem 'doorkeeper', '~> 4.2', '< 4.3'
  36. gem 'fast_blank', '~> 1.0'
  37. gem 'fastimage'
  38. gem 'goldfinger', '~> 2.1'
  39. gem 'hiredis', '~> 0.6'
  40. gem 'redis-namespace', '~> 1.5'
  41. gem 'htmlentities', '~> 4.3'
  42. gem 'http', '~> 3.2'
  43. gem 'http_accept_language', '~> 2.1'
  44. gem 'http_parser.rb', '~> 0.6', git: 'https://github.com/tmm1/http_parser.rb', ref: '54b17ba8c7d8d20a16dfc65d1775241833219cf2'
  45. gem 'httplog', '~> 1.0'
  46. gem 'idn-ruby', require: 'idn'
  47. gem 'kaminari', '~> 1.1'
  48. gem 'link_header', '~> 0.0'
  49. gem 'mime-types', '~> 3.1', require: 'mime/types/columnar'
  50. gem 'nokogiri', '~> 1.8'
  51. gem 'nsa', '~> 0.2'
  52. gem 'oj', '~> 3.5'
  53. gem 'ostatus2', '~> 2.0'
  54. gem 'ox', '~> 2.9'
  55. gem 'posix-spawn', git: 'https://github.com/rtomayko/posix-spawn', ref: '58465d2e213991f8afb13b984854a49fcdcc980c'
  56. gem 'pundit', '~> 1.1'
  57. gem 'premailer-rails'
  58. gem 'rack-attack', '~> 5.2'
  59. gem 'rack-cors', '~> 1.0', require: 'rack/cors'
  60. gem 'rack-timeout', '~> 0.4'
  61. gem 'rails-i18n', '~> 5.1'
  62. gem 'rails-settings-cached', '~> 0.6'
  63. gem 'redis', '~> 4.0', require: ['redis', 'redis/connection/hiredis']
  64. gem 'mario-redis-lock', '~> 1.2', require: 'redis_lock'
  65. gem 'rqrcode', '~> 0.10'
  66. gem 'ruby-progressbar', '~> 1.4'
  67. gem 'sanitize', '~> 4.6'
  68. gem 'sidekiq', '~> 5.1'
  69. gem 'sidekiq-scheduler', '~> 2.2'
  70. gem 'sidekiq-unique-jobs', '~> 5.0'
  71. gem 'sidekiq-bulk', '~>0.1.1'
  72. gem 'simple-navigation', '~> 4.0'
  73. gem 'simple_form', '~> 4.0'
  74. gem 'sprockets-rails', '~> 3.2', require: 'sprockets/railtie'
  75. gem 'stoplight', '~> 2.1.3'
  76. gem 'strong_migrations', '~> 0.2'
  77. gem 'tty-command', '~> 0.8', require: false
  78. gem 'tty-prompt', '~> 0.16', require: false
  79. gem 'twitter-text', '~> 1.14'
  80. gem 'tzinfo-data', '~> 1.2018'
  81. gem 'webpacker', '~> 3.4'
  82. gem 'webpush'
  83. gem 'json-ld', '~> 2.2'
  84. gem 'rdf-normalize', '~> 0.3'
  85. group :development, :test do
  86. gem 'fabrication', '~> 2.20'
  87. gem 'fuubar', '~> 2.2'
  88. gem 'i18n-tasks', '~> 0.9', require: false
  89. gem 'pry-byebug', '~> 3.6'
  90. gem 'pry-rails', '~> 0.3'
  91. gem 'rspec-rails', '~> 3.7'
  92. end
  93. group :production, :test do
  94. gem 'private_address_check', '~> 0.4.1'
  95. end
  96. group :test do
  97. gem 'capybara', '~> 2.18'
  98. gem 'climate_control', '~> 0.2'
  99. gem 'faker', '~> 1.8'
  100. gem 'microformats', '~> 4.0'
  101. gem 'rails-controller-testing', '~> 1.0'
  102. gem 'rspec-sidekiq', '~> 3.0'
  103. gem 'simplecov', '~> 0.16', require: false
  104. gem 'webmock', '~> 3.3'
  105. gem 'parallel_tests', '~> 2.21'
  106. end
  107. group :development do
  108. gem 'active_record_query_trace', '~> 1.5'
  109. gem 'annotate', '~> 2.7'
  110. gem 'better_errors', '~> 2.4'
  111. gem 'binding_of_caller', '~> 0.7'
  112. gem 'bullet', '~> 5.7'
  113. gem 'letter_opener', '~> 1.4'
  114. gem 'letter_opener_web', '~> 1.3'
  115. gem 'memory_profiler'
  116. gem 'rubocop', '~> 0.55', require: false
  117. gem 'brakeman', '~> 4.2', require: false
  118. gem 'bundler-audit', '~> 0.6', require: false
  119. gem 'scss_lint', '~> 0.57', require: false
  120. gem 'capistrano', '~> 3.10'
  121. gem 'capistrano-rails', '~> 1.3'
  122. gem 'capistrano-rbenv', '~> 2.1'
  123. gem 'capistrano-yarn', '~> 2.0'
  124. gem 'derailed_benchmarks'
  125. gem 'stackprof'
  126. end
  127. group :production do
  128. gem 'lograge', '~> 0.10'
  129. gem 'redis-rails', '~> 5.0'
  130. end