Skip to content
Merged

v2 #16

Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2
ruby-version: 3.3
- name: Bundle install
run: bundle install
Comment thread
enjaku4 marked this conversation as resolved.
- name: Run RuboCop
Expand Down Expand Up @@ -48,12 +48,10 @@ jobs:
strategy:
matrix:
ruby:
- "3.2"
- "3.3"
- "3.4"
- "4.0"
rails:
- "~> 7.1.0"
- "~> 7.2.0"
- "~> 8.0.0"
- "~> 8.1.0"
Expand Down
4 changes: 2 additions & 2 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ plugins:
- rubocop-thread_safety

AllCops:
TargetRailsVersion: 7.1
TargetRubyVersion: 3.2
TargetRailsVersion: 7.2
TargetRubyVersion: 3.3
NewCops: enable

Layout/IndentationConsistency:
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## v2.0.0

- Dropped support for Ruby 3.2
- Dropped support for Rails 7.1
- Minor code improvements

## v1.1.7

- Added support for Ruby 4
Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ source "https://rubygems.org"

gemspec

rails_version = ENV.fetch("RAILS_VERSION", "~> 7.1")
rails_version = ENV.fetch("RAILS_VERSION", "~> 7.2")

gem "byebug"
gem "rails", rails_version
Expand Down
4 changes: 2 additions & 2 deletions kreds.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ Gem::Specification.new do |spec|
spec.summary = "The missing shorthand for Rails credentials"
spec.description = "Simpler and safer Rails credentials access with blank value detection and clear error messages"
spec.license = "MIT"
spec.required_ruby_version = ">= 3.2", "< 4.1"
spec.required_ruby_version = ">= 3.3", "< 4.1"

spec.files = [
"kreds.gemspec", "README.md", "CHANGELOG.md", "LICENSE.txt"
] + Dir.glob("lib/**/*")

spec.require_paths = ["lib"]

spec.add_dependency "rails", ">= 7.1", "< 8.2"
spec.add_dependency "rails", ">= 7.2", "< 8.2"
end
2 changes: 1 addition & 1 deletion lib/kreds/fetch.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def fetch_key(hash, key, path, keys)
end

def fallback_to_var(error, var, &)
return raise_or_yield(error, &) if var.blank?
return raise_or_yield(error, &) if var.nil?

var!(var, &)
rescue Kreds::BlankEnvironmentVariableError, Kreds::UnknownEnvironmentVariableError => e
Expand Down
2 changes: 1 addition & 1 deletion lib/kreds/show.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module Kreds
module Show
def show
Rails.application.credentials.as_json.deep_symbolize_keys
Rails.application.credentials.config.to_h
Comment thread
enjaku4 marked this conversation as resolved.
end
end
end
2 changes: 1 addition & 1 deletion lib/kreds/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Kreds
VERSION = "1.1.7".freeze
VERSION = "2.0.0".freeze
end
Loading