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.

113 lines
2.9 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
  1. # frozen_string_literal: true
  2. source 'https://rubygems.org'
  3. ruby '>= 2.3.0', '< 2.5.0'
  4. gem 'pkg-config', '~> 1.2'
  5. gem 'puma', '~> 3.8'
  6. gem 'rails', '~> 5.1.0'
  7. gem 'uglifier', '~> 3.2'
  8. gem 'hamlit-rails', '~> 0.2'
  9. gem 'pg', '~> 0.20'
  10. gem 'pghero', '~> 1.7'
  11. gem 'dotenv-rails', '~> 2.2'
  12. gem 'aws-sdk', '~> 2.9'
  13. gem 'paperclip', '~> 5.1'
  14. gem 'paperclip-av-transcoder', '~> 0.6'
  15. gem 'active_model_serializers', '~> 0.10'
  16. gem 'addressable', '~> 2.5'
  17. gem 'bootsnap'
  18. gem 'browser'
  19. gem 'charlock_holmes', '~> 0.7.3'
  20. gem 'cld3', '~> 3.1'
  21. gem 'devise', '~> 4.2'
  22. gem 'devise-two-factor', '~> 3.0'
  23. gem 'doorkeeper', '~> 4.2'
  24. gem 'fast_blank', '~> 1.0'
  25. gem 'gemoji', '~> 3.0'
  26. gem 'goldfinger', '~> 1.2'
  27. gem 'hiredis', '~> 0.6'
  28. gem 'redis-namespace', '~> 1.5'
  29. gem 'htmlentities', '~> 4.3'
  30. gem 'http', '~> 2.2'
  31. gem 'http_accept_language', '~> 2.1'
  32. gem 'httplog', '~> 0.99'
  33. gem 'idn-ruby', require: 'idn'
  34. gem 'kaminari', '~> 1.0'
  35. gem 'link_header', '~> 0.0'
  36. gem 'mime-types', '~> 3.1'
  37. gem 'nokogiri', '~> 1.7'
  38. gem 'oj', '~> 3.0'
  39. gem 'ostatus2', '~> 2.0'
  40. gem 'ox', '~> 2.5'
  41. gem 'pundit', '~> 1.1'
  42. gem 'rabl', '~> 0.13'
  43. gem 'rack-attack', '~> 5.0'
  44. gem 'rack-cors', '~> 0.4', require: 'rack/cors'
  45. gem 'rack-timeout', '~> 0.4'
  46. gem 'rails-i18n', '~> 5.0'
  47. gem 'rails-settings-cached', '~> 0.6'
  48. gem 'redis', '~> 3.3', require: ['redis', 'redis/connection/hiredis']
  49. gem 'rqrcode', '~> 0.10'
  50. gem 'ruby-oembed', '~> 0.12', require: 'oembed'
  51. gem 'sanitize', '~> 4.4'
  52. gem 'sidekiq', '~> 5.0'
  53. gem 'sidekiq-scheduler', '~> 2.1'
  54. gem 'sidekiq-unique-jobs', '~> 5.0'
  55. gem 'sidekiq-bulk', '~>0.1.1'
  56. gem 'simple-navigation', '~> 4.0'
  57. gem 'simple_form', '~> 3.4'
  58. gem 'sprockets-rails', '~> 3.2', require: 'sprockets/railtie'
  59. gem 'statsd-instrument', '~> 2.1'
  60. gem 'twitter-text', '~> 1.14'
  61. gem 'tzinfo-data', '~> 1.2017'
  62. gem 'webpacker', '~> 2.0'
  63. gem 'webpush'
  64. group :development, :test do
  65. gem 'fabrication', '~> 2.16'
  66. gem 'fuubar', '~> 2.2'
  67. gem 'i18n-tasks', '~> 0.9', require: false
  68. gem 'pry-rails', '~> 0.3'
  69. gem 'rspec-rails', '~> 3.6'
  70. end
  71. group :test do
  72. gem 'capybara', '~> 2.14'
  73. gem 'climate_control', '~> 0.2'
  74. gem 'faker', '~> 1.7'
  75. gem 'microformats', '~> 4.0'
  76. gem 'rails-controller-testing', '~> 1.0'
  77. gem 'rspec-sidekiq', '~> 3.0'
  78. gem 'simplecov', '~> 0.14', require: false
  79. gem 'webmock', '~> 3.0'
  80. gem 'parallel_tests', '~> 2.14'
  81. end
  82. group :development do
  83. gem 'active_record_query_trace', '~> 1.5'
  84. gem 'annotate', '~> 2.7'
  85. gem 'better_errors', '~> 2.1'
  86. gem 'binding_of_caller', '~> 0.7'
  87. gem 'bullet', '~> 5.5'
  88. gem 'letter_opener', '~> 1.4'
  89. gem 'letter_opener_web', '~> 1.3'
  90. gem 'rubocop', require: false
  91. gem 'brakeman', '~> 3.6', require: false
  92. gem 'bundler-audit', '~> 0.5', require: false
  93. gem 'scss_lint', '~> 0.53', require: false
  94. gem 'capistrano', '~> 3.8'
  95. gem 'capistrano-rails', '~> 1.2'
  96. gem 'capistrano-rbenv', '~> 2.1'
  97. gem 'capistrano-yarn', '~> 2.0'
  98. end
  99. group :production do
  100. gem 'lograge', '~> 0.5'
  101. gem 'redis-rails', '~> 5.0'
  102. end