Skip to content

dugancathal/transdeps

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Transdeps

A gem to find inconsistent dependency versions in component-based Ruby apps.

Installation

Add this line to your application's Gemfile:

gem 'transdeps'

And then execute:

$ bundle

Or install it yourself as:

$ gem install transdeps

Usage

Using rake

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]

Using rspec

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

Contributing

  1. Fork it ( https://github.com/dugancathal/transdeps/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Install gems (gem install bundler && bundle)
  4. Run tests (rspec)
  5. Commit your changes (git commit -am 'Add some feature')
  6. Push to the branch (git push origin my-new-feature)
  7. Create a new Pull Request

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages