Skip to content

Commit ee6c720

Browse files
committed
Freeze string literals.
1 parent 9cab7dd commit ee6c720

File tree

7 files changed

+15
-1
lines changed

7 files changed

+15
-1
lines changed

lib/pond.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 'monitor'
24

35
require 'pond/version'

lib/pond/version.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 Pond
24
VERSION = '0.2.0'
35
end

spec/checkout_spec.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 'spec_helper'
24

35
describe Pond, "#checkout" do

spec/config_spec.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 'spec_helper'
24

35
describe Pond, "configuration" do

spec/spec_helper.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 'pond'
24

35
RSpec.configure do |config|

spec/wrapper_spec.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 'spec_helper'
24

35
describe Pond::Wrapper do

tasks/stress.rake

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# frozen_string_literal: true
2+
13
require 'pond'
24

35
desc "Stress test the Pond gem to check for concurrency issues."
@@ -9,7 +11,7 @@ task :stress do
911

1012
pond = Pond.new(detach_if: detach_if) do
1113
raise "Bad Instantiation!" if rand < 0.05
12-
"Good!"
14+
"Good!".dup
1315
end
1416

1517
threads =

0 commit comments

Comments
 (0)