manifestly 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +5 -1
- data/README.md +3 -0
- data/Rakefile +6 -0
- data/lib/manifestly/manifest_item.rb +6 -1
- data/lib/manifestly/repository.rb +2 -1
- data/lib/manifestly/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: deda3def4c079172f3a9624e4260041ccfb50aac
|
4
|
+
data.tar.gz: d4c6cd3a73b49786cf9ad17e19e017066a06694f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d0a633778244bee96e752223997e1c7c442b56c648c96338b41e37b028ce32324ba4e3b46c03122ad7f883c33629babd4fb39858cf68f75bcba39659c238ca17
|
7
|
+
data.tar.gz: afa6c48d8106b7c10adf5fbfe74f9060a8949278b315480727b34e643938f0fa92ada066590b13576f18235b78a2bfa05f4b64ec05a15e97b0182b642ab6c09d
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -1,3 +1,6 @@
|
|
1
|
+
[![Gem Version](https://badge.fury.io/rb/manifestly.svg)](http://badge.fury.io/rb/manifestly)
|
2
|
+
[![Build Status](https://travis-ci.org/openstax/manifestly.svg?branch=master)](https://travis-ci.org/openstax/manifestly)
|
3
|
+
|
1
4
|
# Manifestly
|
2
5
|
|
3
6
|
Manifestly helps you manage complicated deployments involving multiple sites and git repositories.
|
data/Rakefile
CHANGED
@@ -38,9 +38,14 @@ module Manifestly
|
|
38
38
|
repo_name, sha = string.split('@').collect(&:strip)
|
39
39
|
raise(InvalidManifestItem, string) if repo_name.blank? || sha.blank?
|
40
40
|
|
41
|
-
matching_repositories = repositories.select
|
41
|
+
matching_repositories = repositories.select do |repo|
|
42
|
+
repo.github_name == repo_name ||
|
43
|
+
repo.working_dir.to_s == repo_name
|
44
|
+
end
|
45
|
+
|
42
46
|
raise(MultipleSameNameRepositories, repo_name) if matching_repositories.size > 1
|
43
47
|
raise(RepositoryNotFound, repo_name) if matching_repositories.empty?
|
48
|
+
|
44
49
|
repository = matching_repositories.first
|
45
50
|
|
46
51
|
item = ManifestItem.new(repository)
|
@@ -127,8 +127,9 @@ module Manifestly
|
|
127
127
|
end
|
128
128
|
|
129
129
|
def github_name
|
130
|
+
# Extract 'org/reponame' out of remote url for both HTTP and SSH clones
|
130
131
|
return nil if origin.nil?
|
131
|
-
origin.url[/github.com.(
|
132
|
+
origin.url[/github.com.(.*?)(.git)?$/,1]
|
132
133
|
end
|
133
134
|
|
134
135
|
def working_dir
|
data/lib/manifestly/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: manifestly
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- JP Slavinsky
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-10-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|