A gem to find inconsistent dependency versions in component-based Ruby apps.
Add this line to your application's Gemfile:
gem 'transdeps'
And then execute:
$ bundle
Or install it yourself as:
$ gem install transdeps
Add this line to application's Rakefile:
require 'transdeps/tasks'
Then run:
bundle exec rake transdeps[/path/to/my/components,/path/to/my/project]
Since you are presumably running this task from the root of your project, you can leave the second argument to the Rake task off, and the first argument would be a relative path. Something like:
bundle exec rake transdeps[components]
Add this spec:
require "transdeps/cli"
RSpec.describe "Component" do
it "uses the same version of dependencies as the ones in the container application" do
results = Transdeps::Cli.new("components").run
expect(results).to be_empty, failure_message(results)
end
def failure_message(results)
(["❌ Dependency inconsistencies found:"] + results).join("\n")
end
end
- Fork it ( https://github.com/dugancathal/transdeps/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Install gems (
gem install bundler && bundle
) - Run tests (
rspec
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request