Logo: Relish

  1. Sign in

Project: Vendorificator

simple tarball module

Scenarios
just URL as name
Given
a repository with following Vendorfile:
archive 'http://test-assets.3ofcoins.net.s3-website-us-east-1.amazonaws.com/testrepo-0.1.tar.gz'
When
I run "vendorify"
Then
following has been conjured:
Name testrepo-0.1
Version testrepo-0.1.tar.gz
With file test/alias.c
URL as keyword
Given
a repository with following Vendorfile:
archive :testrepo,
  :url => 'http://test-assets.3ofcoins.net.s3-website-us-east-1.amazonaws.com/testrepo-0.1.tar.gz'
When
I run "vendorify"
Then
following has been conjured:
Name testrepo
Version testrepo-0.1.tar.gz
With file test/alias.c
Version & checksum
Given
a repository with following Vendorfile:
archive :testrepo,
  :url => 'http://test-assets.3ofcoins.net.s3-website-us-east-1.amazonaws.com/testrepo-0.1.tar.gz',
  :version => '0.1',
  :checksum => 'ea207a896f929ffb3a1dfe128332d6134a18edab7c01b97bfb2b1c7eacebe0cb'
When
I run "vendorify"
Then
following has been conjured:
Name testrepo
Version 0.1
With file test/alias.c
Wrong checksum
Given
a repository with following Vendorfile:
archive :testrepo,
  :url => 'http://test-assets.3ofcoins.net.s3-website-us-east-1.amazonaws.com/testrepo-0.1.tar.gz',
  :version => '0.1',
  :checksum => 'incorrect'
When
I try to run "vendorify"
Then
the command has failed
Then
following has not been conjured:
Name testrepo
With file test/alias.c
Tarball without a root directory
Given
a repository with following Vendorfile:
archive :testrepo,
  :url => 'http://test-assets.3ofcoins.net.s3-website-us-east-1.amazonaws.com/testrepo-0.1-noroot.tar.gz'
When
I run "vendorify"
Then
following has been conjured:
Name testrepo
With file test/alias.c

Last published over 5 years ago by mpasternacki.