dockistrano 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 031a5bef368643972d84782c3fe8aec9f9a83cdc
4
- data.tar.gz: d2f202905234e891b5a2ad5c07b453365d9aec1c
3
+ metadata.gz: 62458175a705cb5e911f4964c7ba1e05bebf11a4
4
+ data.tar.gz: 457c55e88a61197d25e23913566a42590c632f80
5
5
  SHA512:
6
- metadata.gz: d60c0c8983b6c70f78dca0a130f7db92fd0613117b11e3bb2859eb8b00dd9bfa1df6a81d8f9660978fdeeee7748974adffc60c8e45a2fd098b28d4b3f5501c8a
7
- data.tar.gz: a341da5a23a8f8cadaed99e1d1febf57f69a5922c497b8732a1d4eb21651c7c425446a129245a77197428a9ade403f49b97dc5b7d5b77dad15b03ee346416b84
6
+ metadata.gz: 5f4ef6636154a182e4470e282d1d7a88e7f7ddc1038d2169c14bc758417c300803add8260a7cfa072e1fcc820ecf379c476a7a80345f0810fcc8299e80b313a2
7
+ data.tar.gz: 819e1eaac3726c507c4379760973d0b4dac1834524d4456cb0d57a050902d12df5fc5a86fe5054fdda9e9ff2f5b42df2c2e6b00ba13d6729a3cb16d23cf21da7
data/.travis.yml ADDED
@@ -0,0 +1,5 @@
1
+ script: rspec
2
+ language: ruby
3
+ rvm:
4
+ - 2.0.0
5
+ - 1.9.3
data/Gemfile CHANGED
@@ -2,3 +2,5 @@ source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in dockistrano.gemspec
4
4
  gemspec
5
+
6
+ gem 'coveralls', require: false
data/README.md CHANGED
@@ -1,7 +1,9 @@
1
- # Dockistrano
1
+ # Dockistrano [![Build Status](https://travis-ci.org/moneybird/dockistrano.png?branch=master)](https://travis-ci.org/moneybird/dockistrano) [![Coverage Status](https://coveralls.io/repos/moneybird/dockistrano/badge.png)](https://coveralls.io/r/moneybird/dockistrano) [![Code Climate](https://codeclimate.com/github/moneybird/dockistrano.png)](https://codeclimate.com/github/moneybird/dockistrano)
2
2
 
3
3
  Dockistrano uses docker to create a development and testing environment for applications. It is inspired by Capistrano, because booting a container should be as easy as doing a `cap deploy`. The approach has a lot of conventions and as little as configuration as possible.
4
4
 
5
+ Don't forget to have a look at [the wiki](https://github.com/moneybird/dockistrano/wiki) for more information.
6
+
5
7
  ## Current status
6
8
 
7
9
  Dockistrano is actively used for software development at [MoneyBird](http://www.moneybird.com), but is still very immature. Feel free to play around and provide us feedback. A pull request with tested code is the best way to help us improve the software!
data/bin/doc CHANGED
@@ -2,10 +2,9 @@
2
2
 
3
3
  $: << File.expand_path("../../lib/", __FILE__)
4
4
 
5
- require "bundler"
6
- Bundler.setup(:default)
7
-
5
+ require "thor"
8
6
  require "dockistrano"
7
+
9
8
  begin
10
9
  Dockistrano::Cli.start
11
10
  rescue Thor::InvocationError => e
@@ -7,8 +7,8 @@ module Dockistrano
7
7
 
8
8
  if git_url =~ /^[A-z0-9]+@[A-z0-9.:\-]+\/([A-z0-9\-_\.]+)(\.git)?$/
9
9
  $1.gsub(/\.git$/, "")
10
- elsif git_url =~ /^https?:\/\/[a-z\-\.]+\/[a-z\-\.]+\/([A-z0-9.\-\_]+)$/
11
- $1
10
+ elsif git_url =~ /^(git|https?):\/\/[a-z\-\.]+\/[a-z\-\.]+\/([A-z0-9.\-\_]+)$/
11
+ $2.gsub(/\.git$/, "")
12
12
  else
13
13
  raise "Unknown git url '#{git_url}'"
14
14
  end
@@ -1,3 +1,3 @@
1
1
  module Dockistrano
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -24,7 +24,6 @@ describe Dockistrano::Cli do
24
24
 
25
25
  it "prints the DOCKER_BINARY" do
26
26
  expect(output).to include("DOCKER_BINARY:")
27
- expect(output).to include("bin/docker")
28
27
  end
29
28
 
30
29
  it "prints the registry" do
@@ -26,6 +26,12 @@ describe Dockistrano::Git do
26
26
  expect(described_class.repository_name).to eq("reponame-with-2.0")
27
27
  end
28
28
 
29
+ it "returns the name from a git:// url" do
30
+ expect(Cocaine::CommandLine).to receive(:new).with("git config --get remote.origin.url").and_return(command)
31
+ expect(command).to receive(:run).and_return("git://github.com/username/reponame-with-2.0.git")
32
+ expect(described_class.repository_name).to eq("reponame-with-2.0")
33
+ end
34
+
29
35
  end
30
36
 
31
37
  context ".branch" do
data/spec/spec_helper.rb CHANGED
@@ -1,6 +1,8 @@
1
1
  require 'rspec'
2
2
  require 'dockistrano'
3
3
  require 'webmock/rspec'
4
+ require 'coveralls'
5
+ Coveralls.wear!
4
6
 
5
7
  RSpec.configure do
6
8
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dockistrano
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Edwin Vlieg
@@ -174,6 +174,7 @@ extensions: []
174
174
  extra_rdoc_files: []
175
175
  files:
176
176
  - .gitignore
177
+ - .travis.yml
177
178
  - Gemfile
178
179
  - Guardfile
179
180
  - LICENSE.txt