git-semaphore 2.0.1 → 2.1.0

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: fd25d5233bdfc4079292b47b103174664001b021
4
- data.tar.gz: e70317bd7216cfbe6759808514a1dcbd649f4d92
3
+ metadata.gz: e9733453309cb3c5b3e0b37c3caf3d4b3825cc28
4
+ data.tar.gz: 0497c7bdfe034c178905e1603ef753285282cccf
5
5
  SHA512:
6
- metadata.gz: 7afff9124c3adb13e9475847d84de65f009837b972740607dab353cef506cd5b7c4d5c3aa077d700bec683ce825f45521393159bc70dcf6b00988f023ec5c9d5
7
- data.tar.gz: ed3ce54393093426ee17347f8644be8b772e38c5d71e730c6c1dae383ce3a5a6a116ab0842f326a5453ef5aa26206359d540d2d5ec64a387e291fb37bcac9a95
6
+ metadata.gz: da315dcce58237a6b00f3193338256445d6d4ae6698546c26380be02cf62636ebce7497b0252d20a2f0c31e491e9f3f4c6048789d71e789370155f7b97328865
7
+ data.tar.gz: 5ad0d0af9c142e062db22e2bdc0469c47a38c26176458362051a79f00861017a35c4b6dc6782cf4ec2beebfce9b6a2b33657511bfea6947f626df1e466e3d2b9
data/.pryrc CHANGED
@@ -1,5 +1,5 @@
1
- # this loads all of "git semaphore"
2
- load "exe/git-semaphore" unless Kernel.const_defined? 'Git::Semaphore'
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>
@@ -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 peter.vandenberk@simplybusiness.co.uk. All
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/
@@ -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
- if __FILE__ == $0
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
- banner Git::Semaphore::BANNER
8
+ options = Slop.parse(help: true) do
19
9
 
20
- on :settings, 'Display most relevant settings'
21
- on :internals, 'Display all internal settings'
10
+ on :version, 'Print the version' do
11
+ puts Git::Semaphore::COPYRIGHT
12
+ exit(0)
13
+ end
22
14
 
23
- on :browse, 'Open the project on https://semaphoreci.com/'
15
+ banner Git::Semaphore::BANNER
24
16
 
25
- on :clean, 'Deletes the cached API query results'
17
+ on :settings, 'Display most relevant settings'
18
+ on :internals, 'Display all internal settings'
26
19
 
27
- on :projects, 'List all projects and their current status'
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
- end
22
+ on :clean, 'Deletes the cached API query results'
36
23
 
37
- if options.clean?
38
- Git::Semaphore.empty_cache_dir
39
- exit 0
40
- end
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
- if options.projects?
43
- puts Git::Semaphore::Project.all.to_json
44
- exit 0
45
- end
32
+ end
46
33
 
47
- project = if (git_repo = Git::Semaphore.git_repo)
48
- Git::Semaphore::Project.from_repo(git_repo)
49
- else
50
- Git::Semaphore::Project.from_config(ENV)
51
- end
34
+ if options.clean?
35
+ Git::Semaphore.empty_cache_dir
36
+ exit 0
37
+ end
52
38
 
53
- if options.settings?
54
- puts project.settings.to_json
55
- exit 0
56
- end
39
+ if options.projects?
40
+ puts Git::Semaphore::Project.all.to_json
41
+ exit 0
42
+ end
57
43
 
58
- if options.internals?
59
- puts project.internals.to_json
60
- exit 0
61
- end
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
- if options.browse?
64
- `open #{project.branch_url}`
65
- exit 0
66
- end
50
+ if options.settings?
51
+ puts project.settings.to_json
52
+ exit 0
53
+ end
67
54
 
68
- if options.branches?
69
- puts project.branches.to_json
70
- exit 0
71
- end
55
+ if options.internals?
56
+ puts project.internals.to_json
57
+ exit 0
58
+ end
72
59
 
73
- if options.status?
74
- puts project.status.to_json
75
- exit 0
76
- end
60
+ if options.browse?
61
+ `open #{project.branch_url}`
62
+ exit 0
63
+ end
77
64
 
78
- if options.history?
79
- puts project.history.to_json
80
- exit 0
81
- end
65
+ if options.branches?
66
+ puts project.branches.to_json
67
+ exit 0
68
+ end
82
69
 
83
- if options.information?
84
- puts project.information.to_json
85
- exit 0
86
- end
70
+ if options.status?
71
+ puts project.status.to_json
72
+ exit 0
73
+ end
87
74
 
88
- if options.log?
89
- puts project.log.to_json
90
- exit 0
91
- end
75
+ if options.history?
76
+ puts project.history.to_json
77
+ exit 0
78
+ end
92
79
 
93
- if options.rebuild?
94
- puts project.rebuild
95
- exit 0
96
- end
80
+ if options.information?
81
+ puts project.information.to_json
82
+ exit 0
83
+ end
97
84
 
98
- fail "Coming soon!"
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!
@@ -1,5 +1,5 @@
1
1
  module Git
2
2
  module Semaphore
3
- VERSION = "2.0.1"
3
+ VERSION = "2.1.0"
4
4
  end
5
5
  end
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.1
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-07-19 00:00:00.000000000 Z
11
+ date: 2016-11-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: slop