Skip to content

Commit

Permalink
Merge pull request #466 from bkeepers/ruby-3.3
Browse files Browse the repository at this point in the history
Add Ruby 3.3 to build matrix
  • Loading branch information
bkeepers committed Jan 20, 2024
2 parents 45b712a + e0463a2 commit 0444545
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby: ['2.5', '2.6', '2.7', '3.0', '3.1', '3.2']
ruby: ['3.0', '3.1', '3.2', '3.3']
steps:
- name: Check out repository code
uses: actions/checkout@v3
Expand Down
2 changes: 1 addition & 1 deletion lib/dotenv/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def initialize(argv = [])
@filenames = []
@overload = false

super "Usage: dotenv [options]"
super("Usage: dotenv [options]")
separator ""

on("-f FILES", Array, "List of env files to parse") do |list|
Expand Down
2 changes: 1 addition & 1 deletion lib/dotenv/missing_keys.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ class Error < StandardError; end

class MissingKeys < Error # :nodoc:
def initialize(keys)
key_word = "key#{keys.size > 1 ? "s" : ""}"
key_word = "key#{(keys.size > 1) ? "s" : ""}"
super("Missing required configuration #{key_word}: #{keys.inspect}")
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/dotenv/template.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def template_line(line)
var, value = line.split("=")
template = var.gsub(EXPORT_COMMAND, "")
is_a_comment = var.strip[0].eql?("#")
value.nil? || is_a_comment ? line : "#{var}=#{template}"
(value.nil? || is_a_comment) ? line : "#{var}=#{template}"
end
end
end

0 comments on commit 0444545

Please sign in to comment.