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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5465cad5577e63422895508c7d07582581dae637
4
- data.tar.gz: 4f2d8640afca442b15e992426c819f2bcf21241a
3
+ metadata.gz: c4ddeb5f046c8aee90941a610c7ed7d95f76f3bf
4
+ data.tar.gz: c46a3554fb9b358c30a0beb66b23276a8ae3bc22
5
5
  SHA512:
6
- metadata.gz: e70beb451cb172aa34d9693e22c3505bf629a536235883501d85c4758d5d33dc283ec8d84c30f044e677ffa7b73c8928ed04e028964c88235be0b879aca9168d
7
- data.tar.gz: 3b4dbcde48afaeeabcd454a3c0a8c898184937ff3800e2e33c02a28cecf18f26b256cdf70b2bb3f98aee98a2e3206ad0901707eda16088f233a35692088ce82f
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
- - `--target-url URL`
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
@@ -2,7 +2,7 @@ module Github
2
2
  module Commit
3
3
  module Status
4
4
  module Updater
5
- VERSION = "1.0.1"
5
+ VERSION = "1.0.2"
6
6
  end
7
7
  end
8
8
  end
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.1
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-05-29 00:00:00.000000000 Z
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.2
77
+ rubygems_version: 2.0.3
78
78
  signing_key:
79
79
  specification_version: 4
80
80
  summary: Github commit status api helper