Skip to content

Commit fd9ea62

Browse files
committed
Get Rubocop green
1 parent 0972b81 commit fd9ea62

File tree

4 files changed

+27
-4
lines changed

4 files changed

+27
-4
lines changed

.rubocop.yml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
AllCops:
2+
TargetRubyVersion: 2.7
3+
4+
NewCops: enable
5+
6+
Style/Documentation:
7+
# Skips checking to make sure top level modules / classes have a comment.
8+
Enabled: false
9+
10+
Layout/LineLength:
11+
Max: 100
12+
13+
Metrics/BlockLength:
14+
Exclude:
15+
- "Rakefile"
16+
- "**/*.rake"
17+
- "spec/**/*.rb"
18+
19+
Style/StringLiterals:
20+
EnforcedStyle: double_quotes
21+
22+
Style/FrozenStringLiteralComment:
23+
Enabled: false

Rakefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ require "rspec/core/rake_task"
33

44
RSpec::Core::RakeTask.new(:spec)
55

6-
task :default => :spec
6+
task default: :spec

lib/ruby/openai/version.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module Ruby
22
module Openai
3-
VERSION = "0.1.0"
3+
VERSION = "0.1.0".freeze
44
end
55
end

ruby-openai.gemspec

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
require_relative 'lib/ruby/openai/version'
1+
require_relative "lib/ruby/openai/version"
22

33
Gem::Specification.new do |spec|
44
spec.name = "ruby-openai"
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
1919

2020
# Specify which files should be added to the gem when it is released.
2121
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
22-
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
22+
spec.files = Dir.chdir(File.expand_path(__dir__)) do
2323
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
2424
end
2525
spec.bindir = "exe"

0 commit comments

Comments
 (0)