File tree 4 files changed +27
-4
lines changed
4 files changed +27
-4
lines changed Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change @@ -3,4 +3,4 @@ require "rspec/core/rake_task"
3
3
4
4
RSpec ::Core ::RakeTask . new ( :spec )
5
5
6
- task : default => :spec
6
+ task default : :spec
Original file line number Diff line number Diff line change 1
1
module Ruby
2
2
module Openai
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.0" . freeze
4
4
end
5
5
end
Original file line number Diff line number Diff line change 1
- require_relative ' lib/ruby/openai/version'
1
+ require_relative " lib/ruby/openai/version"
2
2
3
3
Gem ::Specification . new do |spec |
4
4
spec . name = "ruby-openai"
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
19
19
20
20
# Specify which files should be added to the gem when it is released.
21
21
# 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
23
23
`git ls-files -z` . split ( "\x0 " ) . reject { |f | f . match ( %r{^(test|spec|features)/} ) }
24
24
end
25
25
spec . bindir = "exe"
You can’t perform that action at this time.
0 commit comments