Skip to content

Commit

Permalink
Add frozen string literal comment to files.
Browse files Browse the repository at this point in the history
  • Loading branch information
tgxworld committed May 13, 2019
1 parent 12f291b commit 73356aa
Show file tree
Hide file tree
Showing 25 changed files with 48 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Gemfile
@@ -1,3 +1,5 @@
# frozen_string_literal: true

group :development do
gem 'translations-manager', git: 'https://github.com/discourse/translations-manager.git'
end
2 changes: 2 additions & 0 deletions app/controllers/patreon_admin_controller.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require_dependency 'application_controller'

class ::Patreon::PatreonAdminController < Admin::AdminController
Expand Down
2 changes: 2 additions & 0 deletions app/controllers/patreon_webhook_controller.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'openssl'
require 'json'

Expand Down
2 changes: 2 additions & 0 deletions app/jobs/onceoff/migrate_patreon_user_infos.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Jobs
module Patreon
class MigratePatreonUserInfos < ::Jobs::Onceoff
Expand Down
2 changes: 2 additions & 0 deletions app/jobs/onceoff/update_brand_images.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Jobs
module Patreon
class UpdateBrandImages < ::Jobs::Onceoff
Expand Down
2 changes: 2 additions & 0 deletions app/jobs/regular/sync_local_patrons_to_groups.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module ::Jobs
class SyncLocalPatronsToGroups < ::Jobs::Base

Expand Down
2 changes: 2 additions & 0 deletions app/jobs/scheduled/patreon_sync_patrons_to_groups.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module ::Jobs
class PatreonSyncPatronsToGroups < ::Jobs::Scheduled
every 6.hours
Expand Down
2 changes: 2 additions & 0 deletions app/jobs/scheduled/patreon_update_tokens.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module ::Jobs
class PatreonUpdateTokens < ::Jobs::Scheduled
every 7.days
Expand Down
1 change: 1 addition & 0 deletions bin/pull_translations.rb
@@ -1,4 +1,5 @@
#!/usr/bin/env ruby
# frozen_string_literal: true

# Usage:
# bundle install
Expand Down
2 changes: 2 additions & 0 deletions lib/api.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'json'

module ::Patreon
Expand Down
2 changes: 2 additions & 0 deletions lib/campaign.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'json'

module ::Patreon
Expand Down
2 changes: 2 additions & 0 deletions lib/patron.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'json'

module ::Patreon
Expand Down
2 changes: 2 additions & 0 deletions lib/pledge.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module ::Patreon
class Pledge

Expand Down
2 changes: 2 additions & 0 deletions lib/seed.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module ::Patreon
class Seed
PLUGIN_NAME = 'discourse-patreon'.freeze
Expand Down
2 changes: 2 additions & 0 deletions lib/tokens.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'json'

module ::Patreon
Expand Down
2 changes: 2 additions & 0 deletions plugin.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

# name: discourse-patreon
# about: Integration features between Patreon and Discourse
# version: 2.0
Expand Down
2 changes: 2 additions & 0 deletions spec/api_spec.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'rails_helper'

RSpec.describe ::Patreon::Api do
Expand Down
2 changes: 2 additions & 0 deletions spec/campaign_spec.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'rails_helper'
require_relative 'spec_helper'

Expand Down
2 changes: 2 additions & 0 deletions spec/jobs/migrate_patreon_user_infos_spec.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'rails_helper'

RSpec.describe Jobs::Patreon::MigratePatreonUserInfos do
Expand Down
2 changes: 2 additions & 0 deletions spec/jobs/patreon_update_tokens_spec.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'rails_helper'
require_relative '../spec_helper'

Expand Down
2 changes: 2 additions & 0 deletions spec/jobs/update_brand_images_spec.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'rails_helper'

RSpec.describe Jobs::Patreon::UpdateBrandImages do
Expand Down
2 changes: 2 additions & 0 deletions spec/patron_spec.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'rails_helper'

RSpec.describe ::Patreon::Patron do
Expand Down
2 changes: 2 additions & 0 deletions spec/requests/patreon_admin_controller_spec.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require 'rails_helper'

describe Patreon::PatreonAdminController do
Expand Down
2 changes: 2 additions & 0 deletions spec/requests/patreon_webhook_controller_spec.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "rails_helper"
require 'openssl'
require 'json'
Expand Down
1 change: 1 addition & 0 deletions spec/spec_helper.rb
@@ -1,3 +1,4 @@
# frozen_string_literal: true

RSpec.shared_context "spec helper" do

Expand Down

0 comments on commit 73356aa

Please sign in to comment.