Skip to content

Commit 16d7f99

Browse files
drinckeszongweil
authored andcommitted
Fix frozen string checks (#348)
1 parent cd58157 commit 16d7f99

File tree

5 files changed

+13
-3
lines changed

5 files changed

+13
-3
lines changed

ruby/lib/plus_codes.rb

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
1+
# frozen_string_literal: true
2+
13
# Plus+Codes is a Ruby implementation of Google Open Location Code (Plus Codes).
24
#
35
# @author We-Ming Wu
46
module PlusCodes
57
# The character set used to encode coordinates.
6-
CODE_ALPHABET = '23456789CFGHJMPQRVWX'.freeze
8+
CODE_ALPHABET = '23456789CFGHJMPQRVWX'
79

810
# The character used to pad a code
9-
PADDING = '0'.freeze
11+
PADDING = '0'
1012

1113
# A separator used to separate the code into two parts.
12-
SEPARATOR = '+'.freeze
14+
SEPARATOR = '+'
1315

1416
# The max number of characters can be placed before the separator.
1517
SEPARATOR_POSITION = 8

ruby/lib/plus_codes/code_area.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 PlusCodes
24
# [CodeArea] contains coordinates of a decoded Open Location Code(Plus+Codes).
35
# The coordinates include the latitude and longitude of the lower left and

ruby/lib/plus_codes/open_location_code.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_relative '../plus_codes'
24
require_relative '../plus_codes/code_area'
35

ruby/open-location-code.gemspec

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
lib = File.expand_path('lib', __dir__)
24
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
35
require 'date'

ruby/test/plus_codes_test.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 'test/unit'
24
require_relative '../lib/plus_codes/open_location_code'
35

0 commit comments

Comments
 (0)