Skip to content

Commit

Permalink
Update gemspec and Gemfile version constraints to match Gemfile.lock.
Browse files Browse the repository at this point in the history
Dependabot regularly updates gem versions in `Gemfile.lock`, which
ensures that our CI build runs against the latest versions of gems.
However, the version constraints in `Gemfile` and our gemspecs don't
get updated by dependabot. That means that users of ElasticGraph may
wind up installing and using older versions of gems. While that is
usually OK, it's not the verisons of gems that our CI build runs
against, which we are confident work with ElasticGraph (and all
the other gem versions...). It's best to keep the version constraints
up-to-date with our `Gemfile.lock`.

To automate this process, I've used [Goose](https://block.github.io/goose/)
to create a script that updates the version constraints. The changes in
this commit to `Gemfile`, `Gemfile.lock` and the gemspecs were all made by
the new script!
  • Loading branch information
myronmarston committed Feb 22, 2025
1 parent b21ab43 commit 85722a5
Show file tree
Hide file tree
Showing 19 changed files with 221 additions and 80 deletions.
18 changes: 9 additions & 9 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,19 @@ source "https://rubygems.org"
# Gems needed by the test suite and other CI checks.
group :development do
gem "aws_lambda_ric", "~> 2.0"
gem "coderay", "~> 1.1"
gem "factory_bot", "~> 6.5"
gem "faker", "~> 3.5"
gem "coderay", "~> 1.1", ">= 1.1.3"
gem "factory_bot", "~> 6.5", ">= 6.5.1"
gem "faker", "~> 3.5", ">= 3.5.1"
gem "flatware-rspec", "~> 2.3", ">= 2.3.4"
gem "httpx", "~> 1.3"
gem "httpx", "~> 1.4"
gem "method_source", "~> 1.1"
gem "rubocop-factory_bot", "~> 2.26"
gem "rubocop-factory_bot", "~> 2.26", ">= 2.26.1"
gem "rubocop-rake", "~> 0.6"
gem "rubocop-rspec", "~> 3.4"
gem "rspec", "~> 3.13"
gem "rspec-retry", "~> 0.6"
gem "rspec-retry", "~> 0.6", ">= 0.6.2"
gem "simplecov", "~> 0.22"
gem "simplecov-console", "~> 0.9"
gem "simplecov-console", "~> 0.9", ">= 0.9.3"
gem "standard", "~> 1.45.0"
gem "steep", "~> 1.9.4"
gem "super_diff", "~> 0.15"
Expand All @@ -33,8 +33,8 @@ end
# Documentation generation gems
group :site do
gem "filewatcher", "~> 2.1"
gem "jekyll", "~> 4.4"
gem "yard", "~> 0.9", ">= 0.9.36"
gem "jekyll", "~> 4.4", ">= 4.4.1"
gem "yard", "~> 0.9", ">= 0.9.37"
gem "yard-doctest", "~> 0.1", ">= 0.1.17"
end

Expand Down
80 changes: 40 additions & 40 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ PATH
elasticgraph-admin_lambda (0.19.1.1)
elasticgraph-admin (= 0.19.1.1)
elasticgraph-lambda_support (= 0.19.1.1)
rake (~> 13.2)
rake (~> 13.2, >= 13.2.1)

PATH
remote: elasticgraph-admin
Expand All @@ -14,16 +14,16 @@ PATH
elasticgraph-indexer (= 0.19.1.1)
elasticgraph-schema_artifacts (= 0.19.1.1)
elasticgraph-support (= 0.19.1.1)
rake (~> 13.2)
rake (~> 13.2, >= 13.2.1)

PATH
remote: elasticgraph-apollo
specs:
elasticgraph-apollo (0.19.1.1)
apollo-federation (~> 3.8)
apollo-federation (~> 3.10)
elasticgraph-graphql (= 0.19.1.1)
elasticgraph-support (= 0.19.1.1)
graphql (~> 2.4.8)
graphql (~> 2.4.10)

PATH
remote: elasticgraph-datastore_core
Expand All @@ -37,9 +37,9 @@ PATH
specs:
elasticgraph-elasticsearch (0.19.1.1)
elasticgraph-support (= 0.19.1.1)
elasticsearch (~> 8.16)
faraday (~> 2.12)
faraday-retry (~> 2.2)
elasticsearch (~> 8.17, >= 8.17.1)
faraday (~> 2.12, >= 2.12.2)
faraday-retry (~> 2.2, >= 2.2.1)

PATH
remote: elasticgraph-graphql_lambda
Expand All @@ -54,7 +54,7 @@ PATH
elasticgraph-graphql (0.19.1.1)
elasticgraph-datastore_core (= 0.19.1.1)
elasticgraph-schema_artifacts (= 0.19.1.1)
graphql (~> 2.4.8)
graphql (~> 2.4.10)

PATH
remote: elasticgraph-health_check
Expand All @@ -68,21 +68,21 @@ PATH
remote: elasticgraph-indexer_autoscaler_lambda
specs:
elasticgraph-indexer_autoscaler_lambda (0.19.1.1)
aws-sdk-cloudwatch (~> 1.108)
aws-sdk-lambda (~> 1.144)
aws-sdk-sqs (~> 1.89)
aws-sdk-cloudwatch (~> 1.111)
aws-sdk-lambda (~> 1.147)
aws-sdk-sqs (~> 1.92)
elasticgraph-datastore_core (= 0.19.1.1)
elasticgraph-lambda_support (= 0.19.1.1)
ox (~> 2.14, >= 2.14.18)
ox (~> 2.14, >= 2.14.22)

PATH
remote: elasticgraph-indexer_lambda
specs:
elasticgraph-indexer_lambda (0.19.1.1)
aws-sdk-s3 (~> 1.176)
aws-sdk-s3 (~> 1.182)
elasticgraph-indexer (= 0.19.1.1)
elasticgraph-lambda_support (= 0.19.1.1)
ox (~> 2.14)
ox (~> 2.14, >= 2.14.22)

PATH
remote: elasticgraph-indexer
Expand All @@ -92,7 +92,7 @@ PATH
elasticgraph-json_schema (= 0.19.1.1)
elasticgraph-schema_artifacts (= 0.19.1.1)
elasticgraph-support (= 0.19.1.1)
hashdiff (~> 1.1)
hashdiff (~> 1.1, >= 1.1.2)

PATH
remote: elasticgraph-json_schema
Expand All @@ -106,7 +106,7 @@ PATH
specs:
elasticgraph-lambda_support (0.19.1.1)
elasticgraph-opensearch (= 0.19.1.1)
faraday_middleware-aws-sigv4 (~> 1.0)
faraday_middleware-aws-sigv4 (~> 1.0, >= 1.0.1)

PATH
remote: elasticgraph-local
Expand All @@ -117,17 +117,17 @@ PATH
elasticgraph-indexer (= 0.19.1.1)
elasticgraph-rack (= 0.19.1.1)
elasticgraph-schema_definition (= 0.19.1.1)
rackup (~> 2.2)
rake (~> 13.2)
webrick (~> 1.9)
rackup (~> 2.2, >= 2.2.1)
rake (~> 13.2, >= 13.2.1)
webrick (~> 1.9, >= 1.9.1)

PATH
remote: elasticgraph-opensearch
specs:
elasticgraph-opensearch (0.19.1.1)
elasticgraph-support (= 0.19.1.1)
faraday (~> 2.12)
faraday-retry (~> 2.2)
faraday (~> 2.12, >= 2.12.2)
faraday-retry (~> 2.2, >= 2.2.1)
opensearch-ruby (~> 3.4)

PATH
Expand All @@ -143,15 +143,15 @@ PATH
elasticgraph-query_registry (0.19.1.1)
elasticgraph-graphql (= 0.19.1.1)
elasticgraph-support (= 0.19.1.1)
graphql (~> 2.4.8)
rake (~> 13.2)
graphql (~> 2.4.10)
rake (~> 13.2, >= 13.2.1)

PATH
remote: elasticgraph-rack
specs:
elasticgraph-rack (0.19.1.1)
elasticgraph-graphql (= 0.19.1.1)
rack (~> 3.1)
rack (~> 3.1, >= 3.1.10)

PATH
remote: elasticgraph-schema_artifacts
Expand All @@ -168,21 +168,21 @@ PATH
elasticgraph-json_schema (= 0.19.1.1)
elasticgraph-schema_artifacts (= 0.19.1.1)
elasticgraph-support (= 0.19.1.1)
graphql (~> 2.4.8)
rake (~> 13.2)
graphql (~> 2.4.10)
rake (~> 13.2, >= 13.2.1)

PATH
remote: elasticgraph-support
specs:
elasticgraph-support (0.19.1.1)
logger (~> 1.6, >= 1.6.2)
logger (~> 1.6, >= 1.6.6)

PATH
remote: elasticgraph
specs:
elasticgraph (0.19.1.1)
elasticgraph-support (= 0.19.1.1)
thor (~> 1.3)
thor (~> 1.3, >= 1.3.2)

GEM
remote: https://rubygems.org/
Expand Down Expand Up @@ -535,7 +535,7 @@ PLATFORMS

DEPENDENCIES
aws_lambda_ric (~> 2.0)
coderay (~> 1.1)
coderay (~> 1.1, >= 1.1.3)
elasticgraph (= 0.19.1.1)!
elasticgraph-admin (= 0.19.1.1)!
elasticgraph-admin_lambda (= 0.19.1.1)!
Expand All @@ -558,28 +558,28 @@ DEPENDENCIES
elasticgraph-schema_artifacts (= 0.19.1.1)!
elasticgraph-schema_definition (= 0.19.1.1)!
elasticgraph-support (= 0.19.1.1)!
factory_bot (~> 6.5)
faker (~> 3.5)
faraday (~> 2.12)
factory_bot (~> 6.5, >= 6.5.1)
faker (~> 3.5, >= 3.5.1)
faraday (~> 2.12, >= 2.12.2)
filewatcher (~> 2.1)
flatware-rspec (~> 2.3, >= 2.3.4)
httpx (~> 1.3)
jekyll (~> 4.4)
httpx (~> 1.4)
jekyll (~> 4.4, >= 4.4.1)
method_source (~> 1.1)
rack-test (~> 2.1)
rake (~> 13.2)
rack-test (~> 2.2)
rake (~> 13.2, >= 13.2.1)
rspec (~> 3.13)
rspec-retry (~> 0.6)
rubocop-factory_bot (~> 2.26)
rspec-retry (~> 0.6, >= 0.6.2)
rubocop-factory_bot (~> 2.26, >= 2.26.1)
rubocop-rake (~> 0.6)
rubocop-rspec (~> 3.4)
simplecov (~> 0.22)
simplecov-console (~> 0.9)
simplecov-console (~> 0.9, >= 0.9.3)
standard (~> 1.45.0)
steep (~> 1.9.4)
super_diff (~> 0.15)
vcr (~> 6.3, >= 6.3.1)
yard (~> 0.9, >= 0.9.36)
yard (~> 0.9, >= 0.9.37)
yard-doctest (~> 0.1, >= 0.1.17)

BUNDLED WITH
Expand Down
2 changes: 1 addition & 1 deletion elasticgraph-admin/elasticgraph-admin.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Gem::Specification.new do |spec|
spec.add_dependency "elasticgraph-indexer", ElasticGraph::VERSION
spec.add_dependency "elasticgraph-schema_artifacts", ElasticGraph::VERSION
spec.add_dependency "elasticgraph-support", ElasticGraph::VERSION
spec.add_dependency "rake", "~> 13.2"
spec.add_dependency "rake", "~> 13.2", ">= 13.2.1"

spec.add_development_dependency "elasticgraph-elasticsearch", ElasticGraph::VERSION
spec.add_development_dependency "elasticgraph-opensearch", ElasticGraph::VERSION
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Gem::Specification.new do |spec|

spec.required_ruby_version = [">= 3.2", "< 3.5"]

spec.add_dependency "rake", "~> 13.2"
spec.add_dependency "rake", "~> 13.2", ">= 13.2.1"
spec.add_dependency "elasticgraph-admin", ElasticGraph::VERSION
spec.add_dependency "elasticgraph-lambda_support", ElasticGraph::VERSION
end
4 changes: 2 additions & 2 deletions elasticgraph-apollo/elasticgraph-apollo.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ Gem::Specification.new do |spec|

spec.add_dependency "elasticgraph-graphql", ElasticGraph::VERSION
spec.add_dependency "elasticgraph-support", ElasticGraph::VERSION
spec.add_dependency "graphql", "~> 2.4.8"
spec.add_dependency "apollo-federation", "~> 3.8"
spec.add_dependency "graphql", "~> 2.4.10"
spec.add_dependency "apollo-federation", "~> 3.10"

# Note: technically, this is not purely a development dependency, but since `eg-schema_def`
# isn't intended to be used in production (or even included in a deployed bundle) we don't
Expand Down
6 changes: 3 additions & 3 deletions elasticgraph-elasticsearch/elasticgraph-elasticsearch.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Gem::Specification.new do |spec|
spec.required_ruby_version = [">= 3.2", "< 3.5"]

spec.add_dependency "elasticgraph-support", ElasticGraph::VERSION
spec.add_dependency "elasticsearch", "~> 8.16"
spec.add_dependency "faraday", "~> 2.12"
spec.add_dependency "faraday-retry", "~> 2.2"
spec.add_dependency "elasticsearch", "~> 8.17", ">= 8.17.1"
spec.add_dependency "faraday", "~> 2.12", ">= 2.12.2"
spec.add_dependency "faraday-retry", "~> 2.2", ">= 2.2.1"
end
2 changes: 1 addition & 1 deletion elasticgraph-graphql/elasticgraph-graphql.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Gem::Specification.new do |spec|

spec.add_dependency "elasticgraph-datastore_core", ElasticGraph::VERSION
spec.add_dependency "elasticgraph-schema_artifacts", ElasticGraph::VERSION
spec.add_dependency "graphql", "~> 2.4.8"
spec.add_dependency "graphql", "~> 2.4.10"

spec.add_development_dependency "elasticgraph-admin", ElasticGraph::VERSION
spec.add_development_dependency "elasticgraph-elasticsearch", ElasticGraph::VERSION
Expand Down
2 changes: 1 addition & 1 deletion elasticgraph-indexer/elasticgraph-indexer.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Gem::Specification.new do |spec|
spec.add_dependency "elasticgraph-json_schema", ElasticGraph::VERSION
spec.add_dependency "elasticgraph-schema_artifacts", ElasticGraph::VERSION
spec.add_dependency "elasticgraph-support", ElasticGraph::VERSION
spec.add_dependency "hashdiff", "~> 1.1"
spec.add_dependency "hashdiff", "~> 1.1", ">= 1.1.2"

spec.add_development_dependency "elasticgraph-admin", ElasticGraph::VERSION
spec.add_development_dependency "elasticgraph-elasticsearch", ElasticGraph::VERSION
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ Gem::Specification.new do |spec|

spec.add_dependency "elasticgraph-datastore_core", ElasticGraph::VERSION
spec.add_dependency "elasticgraph-lambda_support", ElasticGraph::VERSION
spec.add_dependency "aws-sdk-lambda", "~> 1.144"
spec.add_dependency "aws-sdk-sqs", "~> 1.89"
spec.add_dependency "aws-sdk-cloudwatch", "~> 1.108"
spec.add_dependency "aws-sdk-lambda", "~> 1.147"
spec.add_dependency "aws-sdk-sqs", "~> 1.92"
spec.add_dependency "aws-sdk-cloudwatch", "~> 1.111"
# aws-sdk-sqs requires an XML library be available. On Ruby < 3 it'll use rexml from the standard library but on Ruby 3.0+
# we have to add an explicit dependency. It supports ox, oga, libxml, nokogiri or rexml, and of those, ox seems to be the
# best choice: it leads benchmarks, is well-maintained, has no dependencies, and is MIT-licensed.
spec.add_dependency "ox", "~> 2.14", ">= 2.14.18"
spec.add_dependency "ox", "~> 2.14", ">= 2.14.22"

spec.add_development_dependency "elasticgraph-elasticsearch", ElasticGraph::VERSION
spec.add_development_dependency "elasticgraph-opensearch", ElasticGraph::VERSION
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ Gem::Specification.new do |spec|

spec.add_dependency "elasticgraph-indexer", ElasticGraph::VERSION
spec.add_dependency "elasticgraph-lambda_support", ElasticGraph::VERSION
spec.add_dependency "aws-sdk-s3", "~> 1.176"
spec.add_dependency "aws-sdk-s3", "~> 1.182"

# aws-sdk-s3 requires an XML library be available. On Ruby < 3 it'll use rexml from the standard library but on Ruby 3.0+
# we have to add an explicit dependency. It supports ox, oga, libxml, nokogiri or rexml, and of those, ox seems to be the
# best choice: it leads benchmarks, is well-maintained, has no dependencies, and is MIT-licensed.
spec.add_dependency "ox", "~> 2.14"
spec.add_dependency "ox", "~> 2.14", ">= 2.14.22"
end
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Gem::Specification.new do |spec|
spec.required_ruby_version = [">= 3.2", "< 3.5"]

spec.add_dependency "elasticgraph-opensearch", ElasticGraph::VERSION
spec.add_dependency "faraday_middleware-aws-sigv4", "~> 1.0"
spec.add_dependency "faraday_middleware-aws-sigv4", "~> 1.0", ">= 1.0.1"

spec.add_development_dependency "elasticgraph-admin", ElasticGraph::VERSION
spec.add_development_dependency "elasticgraph-graphql", ElasticGraph::VERSION
Expand Down
6 changes: 3 additions & 3 deletions elasticgraph-local/elasticgraph-local.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ Gem::Specification.new do |spec|
spec.add_dependency "elasticgraph-indexer", ElasticGraph::VERSION
spec.add_dependency "elasticgraph-rack", ElasticGraph::VERSION
spec.add_dependency "elasticgraph-schema_definition", ElasticGraph::VERSION
spec.add_dependency "rackup", "~> 2.2"
spec.add_dependency "rake", "~> 13.2"
spec.add_dependency "webrick", "~> 1.9"
spec.add_dependency "rackup", "~> 2.2", ">= 2.2.1"
spec.add_dependency "rake", "~> 13.2", ">= 13.2.1"
spec.add_dependency "webrick", "~> 1.9", ">= 1.9.1"

spec.add_development_dependency "elasticgraph-apollo", ElasticGraph::VERSION
spec.add_development_dependency "elasticgraph-elasticsearch", ElasticGraph::VERSION
Expand Down
4 changes: 2 additions & 2 deletions elasticgraph-opensearch/elasticgraph-opensearch.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ Gem::Specification.new do |spec|
spec.required_ruby_version = [">= 3.2", "< 3.5"]

spec.add_dependency "elasticgraph-support", ElasticGraph::VERSION
spec.add_dependency "faraday", "~> 2.12"
spec.add_dependency "faraday-retry", "~> 2.2"
spec.add_dependency "faraday", "~> 2.12", ">= 2.12.2"
spec.add_dependency "faraday-retry", "~> 2.2", ">= 2.2.1"
spec.add_dependency "opensearch-ruby", "~> 3.4"
end
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ Gem::Specification.new do |spec|

spec.add_dependency "elasticgraph-graphql", ElasticGraph::VERSION
spec.add_dependency "elasticgraph-support", ElasticGraph::VERSION
spec.add_dependency "graphql", "~> 2.4.8"
spec.add_dependency "rake", "~> 13.2"
spec.add_dependency "graphql", "~> 2.4.10"
spec.add_dependency "rake", "~> 13.2", ">= 13.2.1"

spec.add_development_dependency "elasticgraph-elasticsearch", ElasticGraph::VERSION
spec.add_development_dependency "elasticgraph-opensearch", ElasticGraph::VERSION
Expand Down
4 changes: 2 additions & 2 deletions elasticgraph-rack/elasticgraph-rack.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ Gem::Specification.new do |spec|
spec.required_ruby_version = [">= 3.2", "< 3.5"]

spec.add_dependency "elasticgraph-graphql", ElasticGraph::VERSION
spec.add_dependency "rack", "~> 3.1"
spec.add_dependency "rack", "~> 3.1", ">= 3.1.10"

spec.add_development_dependency "elasticgraph-admin", ElasticGraph::VERSION
spec.add_development_dependency "elasticgraph-elasticsearch", ElasticGraph::VERSION
spec.add_development_dependency "elasticgraph-opensearch", ElasticGraph::VERSION
spec.add_development_dependency "elasticgraph-indexer", ElasticGraph::VERSION
spec.add_development_dependency "rack-test", "~> 2.1"
spec.add_development_dependency "rack-test", "~> 2.2"
end
Loading

0 comments on commit 85722a5

Please sign in to comment.