Skip to content

Commit c5e11cb

Browse files
committed
1 parent af36a40 commit c5e11cb

4 files changed

Lines changed: 4 additions & 6 deletions

File tree

.rubocop.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ require: 'rubocop-rspec'
22

33
AllCops:
44
NewCops: enable
5-
TargetRubyVersion: 2.5
5+
TargetRubyVersion: 2.6
66

77
Layout/LineLength:
88
Max: 120

cacheable.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ Gem::Specification.new do |s|
1515
s.files = Dir['lib/**/*', 'README.md', 'cache-adapters.md']
1616
s.homepage = 'https://github.com/splitwise/cacheable'
1717
s.licenses = 'MIT'
18-
s.required_ruby_version = '>= 2.5.0'
18+
s.required_ruby_version = '>= 2.6.0'
1919
s.metadata = {'rubygems_mfa_required' => 'true'}
2020
end

lib/cacheable/cache_adapters.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def lookup(adapter_name)
1414
private
1515

1616
def class_name_for(string)
17-
string.split('_').map { |name_part| "#{name_part[0].upcase}#{name_part[1..-1].downcase}" }.join
17+
string.split('_').map { |name_part| "#{name_part[0].upcase}#{name_part[1..].downcase}" }.join
1818
end
1919
end
2020
end

lib/cacheable/version.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,8 @@ module VERSION
77
TINY = 4
88
PRE = nil
99

10-
STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.').freeze
11-
1210
def self.to_s
13-
STRING
11+
[MAJOR, MINOR, TINY, PRE].compact.join('.').freeze
1412
end
1513
end
1614
end

0 commit comments

Comments
 (0)