Skip to content

Commit

Permalink
Chagne to freeze strings
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrmurach committed Dec 25, 2018
1 parent 64f2985 commit b885615
Show file tree
Hide file tree
Showing 24 changed files with 16 additions and 24 deletions.
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# encoding: utf-8
# frozen_string_literal: true

require "bundler/gem_tasks"

Expand Down
2 changes: 1 addition & 1 deletion lib/tty.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# encoding: utf-8
# frozen_string_literal: true

require_relative 'tty/cli'
require_relative 'tty/plugins'
Expand Down
1 change: 0 additions & 1 deletion lib/tty/cli.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# encoding: utf-8
# frozen_string_literal: true

require 'thor'
Expand Down
1 change: 0 additions & 1 deletion lib/tty/cmd.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# encoding: utf-8
# frozen_string_literal: true

require 'forwardable'
Expand Down
1 change: 0 additions & 1 deletion lib/tty/commands/add.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# encoding: utf-8
# frozen_string_literal: true

require 'ostruct'
Expand Down
1 change: 0 additions & 1 deletion lib/tty/commands/new.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# encoding: utf-8
# frozen_string_literal: true

require 'pastel'
Expand Down
1 change: 0 additions & 1 deletion lib/tty/gemspec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# encoding: utf-8
# frozen_string_literal: true

module TTY
Expand Down
1 change: 0 additions & 1 deletion lib/tty/licenses.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# frozen_string_literal: true
# encoding: utf-8

module TTY
module Licenses
Expand Down
1 change: 0 additions & 1 deletion lib/tty/path_helpers.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# encoding: utf-8
# frozen_string_literal: true

module TTY
Expand Down
2 changes: 1 addition & 1 deletion lib/tty/plugins.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# encoding: utf-8
# frozen_string_literal: true

require_relative 'plugins/plugin'

Expand Down
2 changes: 1 addition & 1 deletion lib/tty/plugins/plugin.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# encoding: utf-8
# frozen_string_literal: true

module TTY
# A class responsible for plugin loading
Expand Down
1 change: 0 additions & 1 deletion lib/tty/templater.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
# encoding: utf-8
# frozen_string_literal: true

require 'tty-file'
Expand Down
2 changes: 0 additions & 2 deletions spec/fixtures/foo-0.0.1.gemspec
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
# encoding: utf-8

Gem::Specification.new do |spec|
spec.name = 'foo'
spec.version = '0.0.1'
Expand Down
2 changes: 2 additions & 0 deletions spec/integration/add_desc_args_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

RSpec.describe "`teletype add --desc --args` command", type: :cli do
it "adds command with description and custom arguments" do
app_path = tmp_path('newcli')
Expand Down
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# encoding: utf-8
# frozen_string_literal: true

if ENV['TRAVIS'] || ENV['COVERAGE']
require 'simplecov'
Expand Down
2 changes: 1 addition & 1 deletion spec/unit/gemspec_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# encoding: utf-8
# frozen_string_literal: true

require 'tty/gemspec'

Expand Down
2 changes: 1 addition & 1 deletion spec/unit/plugins/activate_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# encoding: utf-8
# frozen_string_literal: true

RSpec.describe TTY::Plugins, '#activate' do
it "activates all plugins" do
Expand Down
2 changes: 1 addition & 1 deletion spec/unit/plugins/load_from_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# encoding: utf-8
# frozen_string_literal: true

RSpec.describe TTY::Plugins, '#load_from' do
it "loads gems with a specific pattern" do
Expand Down
2 changes: 1 addition & 1 deletion spec/unit/plugins/plugin/load_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# encoding: utf-8
# frozen_string_literal: true

RSpec.describe TTY::Plugin, '#load!' do
let(:gem) { Gem::Specification.new('tty-console', '3.1.3')}
Expand Down
2 changes: 1 addition & 1 deletion spec/unit/plugins/plugin/new_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# encoding: utf-8
# frozen_string_literal: true

RSpec.describe TTY::Plugin, '#new' do
let(:gem) { Gem::Specification.new('tty-console', '3.1.3')}
Expand Down
2 changes: 1 addition & 1 deletion spec/unit/tty_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# encoding: utf-8
# frozen_string_literal: true

RSpec.describe TTY do
let(:object) { described_class }
Expand Down
2 changes: 1 addition & 1 deletion tasks/console.rake
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# encoding: utf-8
# frozen_string_literal: true

desc 'Load gem inside irb console'
task :console do
Expand Down
2 changes: 1 addition & 1 deletion tasks/coverage.rake
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# encoding: utf-8
# frozen_string_literal: true

desc 'Measure code coverage'
task :coverage do
Expand Down
2 changes: 1 addition & 1 deletion tasks/spec.rake
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# encoding: utf-8
# frozen_string_literal: true

begin
require 'rspec/core/rake_task'
Expand Down

0 comments on commit b885615

Please sign in to comment.