-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
make compatible with ruby 3 #174
Open
scones
wants to merge
1
commit into
kontena:master
Choose a base branch
from
scones:upgrades
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) | |
require "k8s/client/version" | ||
|
||
Gem::Specification.new do |spec| | ||
spec.name = "k8s-client" | ||
spec.name = "k8s-client-renewed" | ||
spec.version = K8s::Client::VERSION | ||
spec.authors = ["Kontena, Inc."] | ||
spec.email = ["[email protected]"] | ||
|
@@ -21,18 +21,19 @@ Gem::Specification.new do |spec| | |
spec.bindir = "bin" | ||
spec.executables = [] | ||
spec.require_paths = ["lib"] | ||
spec.required_ruby_version = '~> 2.4' | ||
# spec.required_ruby_version = '> 2.4' | ||
|
||
spec.add_runtime_dependency "excon", "~> 0.66" | ||
spec.add_runtime_dependency "recursive-open-struct", "~> 1.1.0" | ||
spec.add_runtime_dependency 'hashdiff', '~> 1.0.0' | ||
spec.add_runtime_dependency 'jsonpath', '~> 0.9.5' | ||
spec.add_runtime_dependency "yaml-safe_load_stream", "~> 0.1" | ||
spec.add_runtime_dependency "excon"#, "~> 0.66" | ||
spec.add_runtime_dependency "recursive-open-struct"#, "~> 1.1.0" | ||
spec.add_runtime_dependency 'hashdiff'#, '~> 1.0.0' | ||
spec.add_runtime_dependency 'jsonpath'#, '~> 0.9.5' | ||
spec.add_runtime_dependency "yaml-safe_load_stream-renewed"#, "~> 0.1" | ||
|
||
spec.add_development_dependency "bundler", ">= 1.17", "< 3.0" | ||
spec.add_development_dependency "rake", "~> 10.0" | ||
spec.add_development_dependency "rspec", "~> 3.7" | ||
spec.add_development_dependency "webmock", "~> 3.6.2" | ||
spec.add_development_dependency "rubocop", "~> 0.59" | ||
spec.add_development_dependency 'yajl-ruby', '~> 1.4.0' | ||
# spec.add_development_dependency "bundler"#, ">= 1.17", "< 3.0" | ||
spec.add_development_dependency "byebug"#, "~> 10.0" | ||
spec.add_development_dependency "rake"#, "~> 10.0" | ||
spec.add_development_dependency "rspec"#, "~> 3.7" | ||
spec.add_development_dependency "webmock"#, "~> 3.6.2" | ||
spec.add_development_dependency "rubocop"#, "~> 0.59" | ||
spec.add_development_dependency 'yajl-ruby'#, '~> 1.4.0' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,6 @@ | |
module K8s | ||
class Client | ||
# Updated on releases using semver. | ||
VERSION = "0.10.3" | ||
VERSION = "0.10.5-1" | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Which of these gemspec changes are necessary? Do you really want all dependencies listed with no version costrains?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
counter question: do you really want to drag along 3 year outdated dependencies although the checks are all green?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see, it's a useful experiment and good question for a gem that's not very active. (My question was more "do these belong in same PR" or whether they were debug leftovers committed by mistake.)
However, if you drop constraints entirely, you also allow even older versions! Anything at all if it lets bundler solve the app constraints.
For dev dependencies, maybe that's fine.
For runtime dependencies, IMHO it's safer to at least set
>=
, and preferably pin major versions to current one (EDIT: I mean each library's last released, not current in this file).~>
means, love this reference 👀... OK,~> 3.7
form means 3.y (y >=7) and is useful;~> 3.6.2
form also constrains minor 3.6.z (z >= 2) and is probably unnecessarily strict.Anyway, I'm not a maintainer here, just watching and pushing my nose occasionally, these are more questions to @kke @jakolehm...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I haven't touched ruby in a long time. I believe the same applies to many of the other past contributors. If any of you want to take ownership and maintain the gem, I think we will gladly transfer/grant that, @matti ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we tried to move the development in this fork: https://github.com/k8s-ruby/k8s-ruby
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kke what about #175