Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dugancathal/transdeps
https://github.com/dugancathal/transdeps
Last synced: 18 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/dugancathal/transdeps
- Owner: dugancathal
- License: mit
- Created: 2014-12-31T06:45:05.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2023-01-19T16:18:50.000Z (almost 2 years ago)
- Last Synced: 2024-07-31T21:56:52.618Z (3 months ago)
- Language: Ruby
- Size: 54.7 KB
- Stars: 14
- Watchers: 2
- Forks: 4
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Transdeps
A gem to find inconsistent dependency versions in component-based
Ruby apps.## Installation
Add this line to your application's Gemfile:
```ruby
gem 'transdeps'
```And then execute:
$ bundle
Or install it yourself as:
$ gem install transdeps
## Usage
### Using `rake`
Add this line to application's Rakefile:
```ruby
require 'transdeps/tasks'
```Then run:
```bash
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:```bash
bundle exec rake transdeps[components]
```### Using `rspec`
Add this spec:
```ruby
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)
enddef failure_message(results)
(["❌ Dependency inconsistencies found:"] + results).join("\n")
end
end
```## Contributing
1. Fork it ( https://github.com/dugancathal/transdeps/fork )
1. Create your feature branch (`git checkout -b my-new-feature`)
1. Install gems (`gem install bundler && bundle`)
1. Run tests (`rspec`)
1. Commit your changes (`git commit -am 'Add some feature'`)
1. Push to the branch (`git push origin my-new-feature`)
1. Create a new Pull Request