git-semaphore 2.0.1 → 2.1.0
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/.pryrc +2 -2
- data/CODE_OF_CONDUCT.md +2 -2
- data/exe/git-semaphore +69 -74
- data/lib/git/semaphore/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: e9733453309cb3c5b3e0b37c3caf3d4b3825cc28
|
4
|
+
data.tar.gz: 0497c7bdfe034c178905e1603ef753285282cccf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: da315dcce58237a6b00f3193338256445d6d4ae6698546c26380be02cf62636ebce7497b0252d20a2f0c31e491e9f3f4c6048789d71e789370155f7b97328865
|
7
|
+
data.tar.gz: 5ad0d0af9c142e062db22e2bdc0469c47a38c26176458362051a79f00861017a35c4b6dc6782cf4ec2beebfce9b6a2b33657511bfea6947f626df1e466e3d2b9
|
data/.pryrc
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
$LOAD_PATH.unshift File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib'))
|
2
|
+
require 'git/semaphore'
|
3
3
|
|
4
4
|
# utility function to set pry context
|
5
5
|
# to an instance of <Rugged::Repository>
|
data/CODE_OF_CONDUCT.md
CHANGED
@@ -35,7 +35,7 @@ This code of conduct applies both within project spaces and in public spaces
|
|
35
35
|
when an individual is representing the project or its community.
|
36
36
|
|
37
37
|
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
38
|
-
reported by contacting a project maintainer at
|
38
|
+
reported by contacting a project maintainer at pvandenberk@mac.com. All
|
39
39
|
complaints will be reviewed and investigated and will result in a response that
|
40
40
|
is deemed necessary and appropriate to the circumstances. Maintainers are
|
41
41
|
obligated to maintain confidentiality with regard to the reporter of an
|
@@ -46,4 +46,4 @@ version 1.3.0, available at
|
|
46
46
|
[http://contributor-covenant.org/version/1/3/0/][version]
|
47
47
|
|
48
48
|
[homepage]: http://contributor-covenant.org
|
49
|
-
[version]: http://contributor-covenant.org/version/1/3/0/
|
49
|
+
[version]: http://contributor-covenant.org/version/1/3/0/
|
data/exe/git-semaphore
CHANGED
@@ -1,102 +1,97 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
3
|
$LOAD_PATH.unshift File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib'))
|
4
|
-
|
5
4
|
require 'git/semaphore'
|
6
5
|
|
7
|
-
|
8
|
-
|
9
|
-
require 'slop'
|
10
|
-
|
11
|
-
options = Slop.parse(help: true) do
|
12
|
-
|
13
|
-
on :version, 'Print the version' do
|
14
|
-
puts Git::Semaphore::COPYRIGHT
|
15
|
-
exit(0)
|
16
|
-
end
|
6
|
+
require 'slop'
|
17
7
|
|
18
|
-
|
8
|
+
options = Slop.parse(help: true) do
|
19
9
|
|
20
|
-
|
21
|
-
|
10
|
+
on :version, 'Print the version' do
|
11
|
+
puts Git::Semaphore::COPYRIGHT
|
12
|
+
exit(0)
|
13
|
+
end
|
22
14
|
|
23
|
-
|
15
|
+
banner Git::Semaphore::BANNER
|
24
16
|
|
25
|
-
|
17
|
+
on :settings, 'Display most relevant settings'
|
18
|
+
on :internals, 'Display all internal settings'
|
26
19
|
|
27
|
-
|
28
|
-
on :branches, 'List all branches for the current project'
|
29
|
-
on :status, 'List the build status for the current branch'
|
30
|
-
on :history, 'List the build history for the current branch'
|
31
|
-
on :information, 'List the commit information for the last build'
|
32
|
-
on :log, 'List the build log for the last build'
|
33
|
-
on :rebuild, 'Rebuild last revision for the current branch'
|
20
|
+
on :browse, 'Open the project on https://semaphoreci.com/'
|
34
21
|
|
35
|
-
|
22
|
+
on :clean, 'Deletes the cached API query results'
|
36
23
|
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
24
|
+
on :projects, 'List all projects and their current status'
|
25
|
+
on :branches, 'List all branches for the current project'
|
26
|
+
on :status, 'List the build status for the current branch'
|
27
|
+
on :history, 'List the build history for the current branch'
|
28
|
+
on :information, 'List the commit information for the last build'
|
29
|
+
on :log, 'List the build log for the last build'
|
30
|
+
on :rebuild, 'Rebuild last revision for the current branch'
|
41
31
|
|
42
|
-
|
43
|
-
puts Git::Semaphore::Project.all.to_json
|
44
|
-
exit 0
|
45
|
-
end
|
32
|
+
end
|
46
33
|
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
end
|
34
|
+
if options.clean?
|
35
|
+
Git::Semaphore.empty_cache_dir
|
36
|
+
exit 0
|
37
|
+
end
|
52
38
|
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
39
|
+
if options.projects?
|
40
|
+
puts Git::Semaphore::Project.all.to_json
|
41
|
+
exit 0
|
42
|
+
end
|
57
43
|
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
44
|
+
project = if (git_repo = Git::Semaphore.git_repo)
|
45
|
+
Git::Semaphore::Project.from_repo(git_repo)
|
46
|
+
else
|
47
|
+
Git::Semaphore::Project.from_config(ENV)
|
48
|
+
end
|
62
49
|
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
50
|
+
if options.settings?
|
51
|
+
puts project.settings.to_json
|
52
|
+
exit 0
|
53
|
+
end
|
67
54
|
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
55
|
+
if options.internals?
|
56
|
+
puts project.internals.to_json
|
57
|
+
exit 0
|
58
|
+
end
|
72
59
|
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
60
|
+
if options.browse?
|
61
|
+
`open #{project.branch_url}`
|
62
|
+
exit 0
|
63
|
+
end
|
77
64
|
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
65
|
+
if options.branches?
|
66
|
+
puts project.branches.to_json
|
67
|
+
exit 0
|
68
|
+
end
|
82
69
|
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
70
|
+
if options.status?
|
71
|
+
puts project.status.to_json
|
72
|
+
exit 0
|
73
|
+
end
|
87
74
|
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
75
|
+
if options.history?
|
76
|
+
puts project.history.to_json
|
77
|
+
exit 0
|
78
|
+
end
|
92
79
|
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
80
|
+
if options.information?
|
81
|
+
puts project.information.to_json
|
82
|
+
exit 0
|
83
|
+
end
|
97
84
|
|
98
|
-
|
85
|
+
if options.log?
|
86
|
+
puts project.log.to_json
|
87
|
+
exit 0
|
88
|
+
end
|
99
89
|
|
90
|
+
if options.rebuild?
|
91
|
+
puts project.rebuild
|
92
|
+
exit 0
|
100
93
|
end
|
101
94
|
|
95
|
+
fail "Coming soon!"
|
96
|
+
|
102
97
|
# That's all Folks!
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: git-semaphore
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0
|
4
|
+
version: 2.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Vandenberk
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-11-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: slop
|