github-commit-status-updater 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -1
- data/bin/github-commit-status-updater +7 -0
- data/lib/github-commit-status-updater/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c4ddeb5f046c8aee90941a610c7ed7d95f76f3bf
|
4
|
+
data.tar.gz: c46a3554fb9b358c30a0beb66b23276a8ae3bc22
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a5cfa0cb5cb2441899f333ad440a528b0bd284a37d1910a9384e7637f726f54a6226a0f3950dfd7cc21d721128405f808fd5beae3b89ef4c001c51513d072aae
|
7
|
+
data.tar.gz: 1b8a69c2857ab9196f9825c763e4be5eb31c85beaa8ca61e44b1deb2c3d9362f44930936019a41fa9a0a0b21cda48a04d8527ac1e5ba7ad0bcb251f51fc972f0
|
data/README.md
CHANGED
@@ -32,8 +32,9 @@ And options for credential:
|
|
32
32
|
- `-u username`
|
33
33
|
- `-p password`
|
34
34
|
- `--oauth-token token`
|
35
|
-
- `--
|
35
|
+
- `--target_url URL`
|
36
36
|
- `--description description`
|
37
|
+
- `--web_endpoint if you want to use github enterprise, --web_endpoint="http(s)://yourghedomain/"`
|
37
38
|
|
38
39
|
## Contributing
|
39
40
|
|
@@ -15,10 +15,17 @@ class GithubCommitStatusUpdater < Thor
|
|
15
15
|
method_option :oauth_token, :type => :string
|
16
16
|
method_option :target_url, :type => :string
|
17
17
|
method_option :description, :type => :string
|
18
|
+
method_option :web_endpoint, :type => :string
|
18
19
|
|
19
20
|
desc "#{method}", "commit status #{method}"
|
20
21
|
define_method "#{method}" do
|
21
22
|
begin
|
23
|
+
if options.web_endpoint
|
24
|
+
Octokit.configure do |c|
|
25
|
+
c.api_endpoint = options.web_endpoint + 'api/v3'
|
26
|
+
c.web_endpoint = options.web_endpoint
|
27
|
+
end
|
28
|
+
end
|
22
29
|
client.create_status(options.repo, options.sha1, method, {target_url: options.target_url, description: options.description})
|
23
30
|
puts "Changed status as #{method}"
|
24
31
|
rescue Octokit::Error => e
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: github-commit-status-updater
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- joker1007
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-08-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: octokit
|
@@ -74,7 +74,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
74
74
|
version: '0'
|
75
75
|
requirements: []
|
76
76
|
rubyforge_project:
|
77
|
-
rubygems_version: 2.0.
|
77
|
+
rubygems_version: 2.0.3
|
78
78
|
signing_key:
|
79
79
|
specification_version: 4
|
80
80
|
summary: Github commit status api helper
|