dockistrano 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.travis.yml +5 -0
- data/Gemfile +2 -0
- data/README.md +3 -1
- data/bin/doc +2 -3
- data/lib/dockistrano/git.rb +2 -2
- data/lib/dockistrano/version.rb +1 -1
- data/spec/dockistrano/cli_spec.rb +0 -1
- data/spec/dockistrano/git_spec.rb +6 -0
- data/spec/spec_helper.rb +2 -0
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 62458175a705cb5e911f4964c7ba1e05bebf11a4
|
|
4
|
+
data.tar.gz: 457c55e88a61197d25e23913566a42590c632f80
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5f4ef6636154a182e4470e282d1d7a88e7f7ddc1038d2169c14bc758417c300803add8260a7cfa072e1fcc820ecf379c476a7a80345f0810fcc8299e80b313a2
|
|
7
|
+
data.tar.gz: 819e1eaac3726c507c4379760973d0b4dac1834524d4456cb0d57a050902d12df5fc5a86fe5054fdda9e9ff2f5b42df2c2e6b00ba13d6729a3cb16d23cf21da7
|
data/.travis.yml
ADDED
data/Gemfile
CHANGED
data/README.md
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
# Dockistrano
|
|
1
|
+
# Dockistrano [](https://travis-ci.org/moneybird/dockistrano) [](https://coveralls.io/r/moneybird/dockistrano) [](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
data/lib/dockistrano/git.rb
CHANGED
|
@@ -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
|
|
11
|
-
$
|
|
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
|
data/lib/dockistrano/version.rb
CHANGED
|
@@ -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
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.
|
|
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
|