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.

157 lines
4.5 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
6 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.4.0', '< 2.7.0'
  4. gem 'pkg-config', '~> 1.4'
  5. gem 'puma', '~> 4.2'
  6. gem 'rails', '~> 5.2.3'
  7. gem 'thor', '~> 0.20'
  8. gem 'hamlit-rails', '~> 0.2'
  9. gem 'pg', '~> 1.1'
  10. gem 'makara', '~> 0.4'
  11. gem 'pghero', '~> 2.3'
  12. gem 'dotenv-rails', '~> 2.7'
  13. gem 'aws-sdk-s3', '~> 1.55', require: false
  14. gem 'fog-core', '<= 2.1.0'
  15. gem 'fog-openstack', '~> 0.3', require: false
  16. gem 'paperclip', '~> 6.0'
  17. gem 'paperclip-av-transcoder', '~> 0.6'
  18. gem 'streamio-ffmpeg', '~> 3.0'
  19. gem 'blurhash', '~> 0.1'
  20. gem 'active_model_serializers', '~> 0.10'
  21. gem 'addressable', '~> 2.7'
  22. gem 'bootsnap', '~> 1.4', require: false
  23. gem 'browser'
  24. gem 'charlock_holmes', '~> 0.7.6'
  25. gem 'iso-639'
  26. gem 'chewy', '~> 5.1'
  27. gem 'cld3', '~> 3.2.4'
  28. gem 'devise', '~> 4.7'
  29. gem 'devise-two-factor', '~> 3.1'
  30. group :pam_authentication, optional: true do
  31. gem 'devise_pam_authenticatable2', '~> 9.2'
  32. end
  33. gem 'net-ldap', '~> 0.10'
  34. gem 'omniauth-cas', '~> 1.1'
  35. gem 'omniauth-saml', '~> 1.10'
  36. gem 'omniauth', '~> 1.9'
  37. gem 'discard', '~> 1.1'
  38. gem 'doorkeeper', '~> 5.2'
  39. gem 'fast_blank', '~> 1.0'
  40. gem 'fastimage'
  41. gem 'goldfinger', '~> 2.1'
  42. gem 'hiredis', '~> 0.6'
  43. gem 'redis-namespace', '~> 1.5'
  44. gem 'health_check', git: 'https://github.com/ianheggie/health_check', ref: '0b799ead604f900ed50685e9b2d469cd2befba5b'
  45. gem 'htmlentities', '~> 4.3'
  46. gem 'http', '~> 3.3'
  47. gem 'http_accept_language', '~> 2.1'
  48. gem 'http_parser.rb', '~> 0.6', git: 'https://github.com/tmm1/http_parser.rb', ref: '54b17ba8c7d8d20a16dfc65d1775241833219cf2', submodules: true
  49. gem 'httplog', '~> 1.3'
  50. gem 'idn-ruby', require: 'idn'
  51. gem 'kaminari', '~> 1.1'
  52. gem 'link_header', '~> 0.0'
  53. gem 'mime-types', '~> 3.3', require: 'mime/types/columnar'
  54. gem 'nilsimsa', git: 'https://github.com/witgo/nilsimsa', ref: 'fd184883048b922b176939f851338d0a4971a532'
  55. gem 'nokogiri', '~> 1.10'
  56. gem 'nsa', '~> 0.2'
  57. gem 'oj', '~> 3.9'
  58. gem 'ostatus2', '~> 2.0'
  59. gem 'ox', '~> 2.11'
  60. gem 'parslet'
  61. gem 'parallel', '~> 1.18'
  62. gem 'posix-spawn', git: 'https://github.com/rtomayko/posix-spawn', ref: '58465d2e213991f8afb13b984854a49fcdcc980c'
  63. gem 'pundit', '~> 2.1'
  64. gem 'premailer-rails'
  65. gem 'rack-attack', '~> 6.2'
  66. gem 'rack-cors', '~> 1.0', require: 'rack/cors'
  67. gem 'rails-i18n', '~> 5.1'
  68. gem 'rails-settings-cached', '~> 0.6'
  69. gem 'redis', '~> 4.1', require: ['redis', 'redis/connection/hiredis']
  70. gem 'mario-redis-lock', '~> 1.2', require: 'redis_lock'
  71. gem 'rqrcode', '~> 0.10'
  72. gem 'ruby-progressbar', '~> 1.10'
  73. gem 'sanitize', '~> 5.1'
  74. gem 'sidekiq', '~> 5.2'
  75. gem 'sidekiq-scheduler', '~> 3.0'
  76. gem 'sidekiq-unique-jobs', '~> 6.0'
  77. gem 'sidekiq-bulk', '~>0.2.0'
  78. gem 'simple-navigation', '~> 4.1'
  79. gem 'simple_form', '~> 5.0'
  80. gem 'sprockets-rails', '~> 3.2', require: 'sprockets/railtie'
  81. gem 'stoplight', '~> 2.2.0'
  82. gem 'strong_migrations', '~> 0.4'
  83. gem 'tty-command', '~> 0.9', require: false
  84. gem 'tty-prompt', '~> 0.19', require: false
  85. gem 'twitter-text', '~> 1.14'
  86. gem 'tzinfo-data', '~> 1.2019'
  87. gem 'webpacker', '~> 4.2'
  88. gem 'webpush'
  89. gem 'json-ld', git: 'https://github.com/ruby-rdf/json-ld.git', ref: 'e742697a0906e74e8bb777ef98137bc3955d981d'
  90. gem 'json-ld-preloaded', '~> 3.0'
  91. gem 'rdf-normalize', '~> 0.3'
  92. group :development, :test do
  93. gem 'fabrication', '~> 2.20'
  94. gem 'fuubar', '~> 2.5'
  95. gem 'i18n-tasks', '~> 0.9', require: false
  96. gem 'pry-byebug', '~> 3.7'
  97. gem 'pry-rails', '~> 0.3'
  98. gem 'rspec-rails', '~> 3.9'
  99. end
  100. group :production, :test do
  101. gem 'private_address_check', '~> 0.5'
  102. end
  103. group :test do
  104. gem 'capybara', '~> 3.29'
  105. gem 'climate_control', '~> 0.2'
  106. gem 'faker', '~> 2.7'
  107. gem 'microformats', '~> 4.1'
  108. gem 'rails-controller-testing', '~> 1.0'
  109. gem 'rspec-sidekiq', '~> 3.0'
  110. gem 'simplecov', '~> 0.17', require: false
  111. gem 'webmock', '~> 3.7'
  112. gem 'parallel_tests', '~> 2.29'
  113. end
  114. group :development do
  115. gem 'active_record_query_trace', '~> 1.7'
  116. gem 'annotate', '~> 3.0'
  117. gem 'better_errors', '~> 2.5'
  118. gem 'binding_of_caller', '~> 0.7'
  119. gem 'bullet', '~> 6.0'
  120. gem 'letter_opener', '~> 1.7'
  121. gem 'letter_opener_web', '~> 1.3'
  122. gem 'memory_profiler'
  123. gem 'rubocop', '~> 0.76', require: false
  124. gem 'rubocop-rails', '~> 2.3', require: false
  125. gem 'brakeman', '~> 4.7', require: false
  126. gem 'bundler-audit', '~> 0.6', require: false
  127. gem 'capistrano', '~> 3.11'
  128. gem 'capistrano-rails', '~> 1.4'
  129. gem 'capistrano-rbenv', '~> 2.1'
  130. gem 'capistrano-yarn', '~> 2.0'
  131. gem 'derailed_benchmarks'
  132. gem 'stackprof'
  133. end
  134. group :production do
  135. gem 'lograge', '~> 0.11'
  136. gem 'redis-rails', '~> 5.0'
  137. end
  138. gem 'concurrent-ruby', require: false
  139. gem 'connection_pool', require: false