Skip to content

Commit

Permalink
cops: enable frozen_string_literal
Browse files Browse the repository at this point in the history
  • Loading branch information
palkan committed Dec 21, 2018
1 parent 112140e commit 5d41ff2
Show file tree
Hide file tree
Showing 12 changed files with 25 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .rubocop.yml
Expand Up @@ -16,6 +16,9 @@ AllCops:
Standard/SemanticBlocks:
Enabled: false

Style/FrozenStringLiteralComment:
Enabled: true

Style/TrailingCommaInArrayLiteral:
EnforcedStyleForMultiline: no_comma

Expand Down
2 changes: 2 additions & 0 deletions Rakefile
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "bundler/gem_tasks"
require "rspec/core/rake_task"
require "rubocop/rake_task"
Expand Down
2 changes: 2 additions & 0 deletions gemfiles/rails42.gemfile
@@ -1,3 +1,5 @@
# frozen_string_literal: true

source "https://rubygems.org"

gem "activesupport", "~> 4.2"
Expand Down
2 changes: 2 additions & 0 deletions gemfiles/railsmaster.gemfile
@@ -1,3 +1,5 @@
# frozen_string_literal: true

source "https://rubygems.org"

gem "rails", github: "rails/rails"
Expand Down
2 changes: 2 additions & 0 deletions lib/active_delivery.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "active_delivery/version"
require "active_delivery/base"
require "active_delivery/callbacks" if defined?(ActiveSupport)
Expand Down
2 changes: 2 additions & 0 deletions lib/active_delivery/lines/base.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module ActiveDelivery
module Lines
class Base
Expand Down
2 changes: 2 additions & 0 deletions lib/active_delivery/lines/mailer.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module ActiveDelivery
module Lines
class Mailer < Base
Expand Down
2 changes: 2 additions & 0 deletions lib/active_delivery/testing.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module ActiveDelivery
module TestDelivery
class << self
Expand Down
2 changes: 2 additions & 0 deletions lib/active_delivery/testing/rspec.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module ActiveDelivery
class HaveDeliveredTo < RSpec::Matchers::BuiltIn::BaseMatcher
attr_reader :delivery_class, :event, :args, :params, :sync_value
Expand Down
2 changes: 2 additions & 0 deletions lib/active_delivery/version.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module ActiveDelivery
VERSION = "0.1.1"
end
2 changes: 2 additions & 0 deletions spec/spec_helper.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

ENV["RACK_ENV"] = "test"

require "bundler/setup"
Expand Down
2 changes: 2 additions & 0 deletions spec/support/quack.rb
@@ -1,3 +1,5 @@
# frozen_string_literal: true

class Quack
attr_reader :mid

Expand Down

0 comments on commit 5d41ff2

Please sign in to comment.