travis 1.5.7.travis.338.4 → 1.5.7.travis.341.4
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 +8 -8
- data/lib/travis/cli/repo_command.rb +4 -2
- data/travis.gemspec +1 -0
- metadata +15 -1
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
YWJjYWVhYjI5ZDc5MDBmYjZlOTE1N2M2NmZlYjcwMjc3MjYyNzczZQ==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
ZWM4YWZlY2E2MWIyMjY2MTZlN2Q1NmY1YjQ2ZjBjYjM0MmE3MTVkYw==
|
|
7
7
|
!binary "U0hBNTEy":
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
YjY2MmQwOTlkNmVlMTNhNjI1MmRkOTliZTI4Njc5ODgxNzkxZTI1N2NiYTAy
|
|
10
|
+
NjU1YTRjZTA2NzU4NzlkZDg5YTg4MzNmZjY2NTliYWFlMDE2YzQ0ODc2MDQz
|
|
11
|
+
MTNkYmYyMjlmYWM0YzMxM2VjZDQ5MmQ2MTE4ODAzODZkMjQzN2E=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
YTU2YzA3ODQyZTI5YWMyODUxYTQzYzgyMzI4ZGEwNzM0ZmJmOGU5ZDFhZWJl
|
|
14
|
+
MzcwM2ZkYmE4M2E0YjljZjViMDJkZGMwZTJkZGZhODczODViMjQyODY3ZTM5
|
|
15
|
+
NWI3ZGMxYjFmNTFkYWM5M2IwM2VkNWVjZTcyZDk4M2MwMjM1MjI=
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
require 'travis/cli'
|
|
2
2
|
require 'yaml'
|
|
3
|
+
require "addressable/uri"
|
|
3
4
|
|
|
4
5
|
module Travis
|
|
5
6
|
module CLI
|
|
6
7
|
class RepoCommand < ApiCommand
|
|
7
|
-
GIT_REGEX = %r{
|
|
8
|
+
GIT_REGEX = %r{/?(.*/.+?)(\.git)?$}
|
|
8
9
|
on('-r', '--repo SLUG', 'repository to use (will try to detect from current git clone)') { |c, slug| c.slug = slug }
|
|
9
10
|
|
|
10
11
|
attr_accessor :slug
|
|
@@ -12,6 +13,7 @@ module Travis
|
|
|
12
13
|
|
|
13
14
|
def setup
|
|
14
15
|
error "Can't figure out GitHub repo name. Ensure you're in the repo directory, or specify the repo name via the -r option (e.g. travis <command> -r <repo-name>)" unless self.slug ||= find_slug
|
|
16
|
+
error "GitHub repo name is invalid, it should be on the form 'owner/repo'" unless self.slug.include?("/")
|
|
15
17
|
self.api_endpoint = detect_api_endpoint
|
|
16
18
|
super
|
|
17
19
|
repository.load # makes sure we actually have access to the repo
|
|
@@ -52,7 +54,7 @@ module Travis
|
|
|
52
54
|
git_remote = `git config --get branch.#{git_head}.remote 2>#{IO::NULL}`.chomp
|
|
53
55
|
git_remote = 'origin' if git_remote.empty?
|
|
54
56
|
git_info = `git config --get remote.#{git_remote}.url 2>#{IO::NULL}`.chomp
|
|
55
|
-
$1 if git_info =~ GIT_REGEX
|
|
57
|
+
$1 if Addressable::URI.parse(git_info).path =~ GIT_REGEX
|
|
56
58
|
end
|
|
57
59
|
|
|
58
60
|
def repo_config
|
data/travis.gemspec
CHANGED
|
@@ -207,6 +207,7 @@ Gem::Specification.new do |s|
|
|
|
207
207
|
s.add_dependency "typhoeus", "~> 0.6"
|
|
208
208
|
s.add_dependency "pusher-client", "~> 0.3", ">= 0.3.1"
|
|
209
209
|
s.add_dependency "terminal-notifier", ">= 1.4.2"
|
|
210
|
+
s.add_dependency "addressable", "~> 2.3"
|
|
210
211
|
s.add_development_dependency "rspec", "~> 2.12"
|
|
211
212
|
s.add_development_dependency "sinatra", "~> 1.3"
|
|
212
213
|
s.add_development_dependency "rack-test", "~> 0.6"
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: travis
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.5.7.travis.
|
|
4
|
+
version: 1.5.7.travis.341.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Konstantin Haase
|
|
@@ -190,6 +190,20 @@ dependencies:
|
|
|
190
190
|
- - ! '>='
|
|
191
191
|
- !ruby/object:Gem::Version
|
|
192
192
|
version: 1.4.2
|
|
193
|
+
- !ruby/object:Gem::Dependency
|
|
194
|
+
name: addressable
|
|
195
|
+
requirement: !ruby/object:Gem::Requirement
|
|
196
|
+
requirements:
|
|
197
|
+
- - ~>
|
|
198
|
+
- !ruby/object:Gem::Version
|
|
199
|
+
version: '2.3'
|
|
200
|
+
type: :runtime
|
|
201
|
+
prerelease: false
|
|
202
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
203
|
+
requirements:
|
|
204
|
+
- - ~>
|
|
205
|
+
- !ruby/object:Gem::Version
|
|
206
|
+
version: '2.3'
|
|
193
207
|
- !ruby/object:Gem::Dependency
|
|
194
208
|
name: rspec
|
|
195
209
|
requirement: !ruby/object:Gem::Requirement
|