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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 27e444dcd8fa28ababac67f3b65cc111962ce5ca
4
- data.tar.gz: 5320806e0e66db13b621fa82e929a52189184940
3
+ metadata.gz: deda3def4c079172f3a9624e4260041ccfb50aac
4
+ data.tar.gz: d4c6cd3a73b49786cf9ad17e19e017066a06694f
5
5
  SHA512:
6
- metadata.gz: 38e852ab6e864f55fbb592ff32dd6051c3acc9c69c9767bb5fb654b273477b78525d4cab563d846c34ac49ca9e8ed5d6a0b29875b3b1b3e313db605e665cf06a
7
- data.tar.gz: bf0b841d7e45b285a0719c412a8b9b896f9d6bc2fa909e0223ba6bcc8a8f12d16e52774bd7837e32c37dad4e217fde86c898cdab8480545cd9556ef3fb43831c
6
+ metadata.gz: d0a633778244bee96e752223997e1c7c442b56c648c96338b41e37b028ce32324ba4e3b46c03122ad7f883c33629babd4fb39858cf68f75bcba39659c238ca17
7
+ data.tar.gz: afa6c48d8106b7c10adf5fbfe74f9060a8949278b315480727b34e643938f0fa92ada066590b13576f18235b78a2bfa05f4b64ec05a15e97b0182b642ab6c09d
data/.travis.yml CHANGED
@@ -1,8 +1,12 @@
1
1
  sudo: false
2
2
  language: ruby
3
3
  rvm:
4
- - 1.9.3
4
+ - 2.2.3
5
5
  cache: bundler
6
+ before_install: gem install bundler
7
+ branches:
8
+ only:
9
+ - master
6
10
  bundler_args: --retry=6
7
11
  script:
8
12
  - bundle exec rake
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
@@ -1 +1,7 @@
1
1
  require "bundler/gem_tasks"
2
+ require 'rspec/core/rake_task'
3
+
4
+ RSpec::Core::RakeTask.new
5
+
6
+ task default: :spec
7
+ task test: :spec
@@ -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{|repo| repo.github_name == repo_name}
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.(.*).git/,1]
132
+ origin.url[/github.com.(.*?)(.git)?$/,1]
132
133
  end
133
134
 
134
135
  def working_dir
@@ -1,3 +1,3 @@
1
1
  module Manifestly
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
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.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-09-28 00:00:00.000000000 Z
11
+ date: 2015-10-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor