Skip to content

Commit 2668597

Browse files
authored
Merge pull request #1649 from puma/schneems/frozen
Freeze all the strings!
2 parents 9de253d + 88e51fb commit 2668597

29 files changed

+57
-0
lines changed

lib/puma/binder.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
require 'uri'
24
require 'socket'
35

lib/puma/cli.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
require 'optparse'
24
require 'uri'
35

lib/puma/client.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
class IO
24
# We need to use this for a jruby work around on both 1.8 and 1.9.
35
# So this either creates the constant (on 1.8), or harmlessly

lib/puma/cluster.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
require 'puma/runner'
24
require 'puma/util'
35
require 'puma/plugin'

lib/puma/commonlogger.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
module Puma
24
# Rack::CommonLogger forwards every request to the given +app+, and
35
# logs a line in the

lib/puma/configuration.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
require 'puma/rack/builder'
24
require 'puma/plugin'
35
require 'puma/const'

lib/puma/const.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
#encoding: utf-8
2+
# frozen_string_literal: true
3+
24
module Puma
35
class UnsupportedOption < RuntimeError
46
end

lib/puma/control_cli.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
require 'optparse'
24
require_relative 'state_file'
35
require_relative 'const'

lib/puma/convenient.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
require 'puma/launcher'
24
require 'puma/configuration'
35

lib/puma/daemon_ext.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
module Process
24

35
# This overrides the default version because it is broken if it

0 commit comments

Comments
 (0)