Skip to content

Commit a148f62

Browse files
committed
Rubocop fixes
1 parent 4e400f2 commit a148f62

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

lib/faker.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
require 'psych'
66
require 'i18n'
77

8-
Dir.glob(File.join(mydir, 'helpers', '*.rb')).sort.each { |file| require file }
8+
Dir.glob(File.join(mydir, 'helpers', '*.rb')).each { |file| require file }
99

1010
I18n.load_path += Dir[File.join(mydir, 'locales', '**/*.yml')]
1111

@@ -275,4 +275,4 @@ def disable_enforce_available_locales
275275
end
276276

277277
# require faker objects
278-
Dir.glob(File.join(mydir, 'faker', '/**/*.rb')).sort.each { |file| require file }
278+
Dir.glob(File.join(mydir, 'faker', '/**/*.rb')).each { |file| require file }

lib/faker/default/id_number.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class IdNumber < Base
1212
].freeze
1313
ZA_RACE_DIGIT = '8'
1414
ZA_CITIZENSHIP_DIGITS = %w[0 1].freeze
15-
BRAZILIAN_ID_FORMAT = /(\d{1,2})(\d{3})(\d{3})([\dX])/.freeze
15+
BRAZILIAN_ID_FORMAT = /(\d{1,2})(\d{3})(\d{3})([\dX])/
1616
BRAZILIAN_ID_FROM = 10_000_000
1717
BRAZILIAN_ID_TO = 99_999_999
1818

test/faker/default/test_faker_crypto_coin.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ class TestFakerCryptoCoin < Test::Unit::TestCase
77
ACRONYM = 1
88
URL_LOGO = 2
99

10-
REGEX_COIN_NAME = /[a-zA-Z .]{3,}/.freeze
11-
REGEX_ACRONYM = /\w+{3,}/.freeze
12-
REGEX_URL_LOGO = /^https:\/\/i.imgur.com\/.......\./.freeze
10+
REGEX_COIN_NAME = /[a-zA-Z .]{3,}/
11+
REGEX_ACRONYM = /\w+{3,}/
12+
REGEX_URL_LOGO = /^https:\/\/i.imgur.com\/.......\./
1313

1414
def setup
1515
@tester = Faker::CryptoCoin

test/faker/default/test_faker_vehicle.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
require_relative '../../test_helper'
44

55
class TestFakerVehicle < Test::Unit::TestCase
6-
WORD_MATCH = /\w+\.?/.freeze
7-
VIN_REGEX = /\A[A-HJ-NPR-Z0-9]{17}\z/.freeze
6+
WORD_MATCH = /\w+\.?/
7+
VIN_REGEX = /\A[A-HJ-NPR-Z0-9]{17}\z/
88

99
def setup
1010
@tester = Faker::Vehicle

0 commit comments

Comments
 (0)