github-commit-status-updater 1.0.4 → 1.1.0
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 -0
- data/bin/github-commit-status-updater +9 -1
- data/github-commit-status-updater.gemspec +3 -0
- data/lib/github-commit-status-updater/version.rb +1 -1
- metadata +31 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 437d5843837c6e9c15dc4fe17a09cb4c7cb06fb1
|
4
|
+
data.tar.gz: e106493ba23321e331dda9e851a2db95980b8d13
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6f82411537f47aa29dc51413b397d024bed91ded89e759a43fe4254248d19786acb27beab73594ad42f26746ba963080953dac1b24d8c0c6b59635d6ca8cbc2d
|
7
|
+
data.tar.gz: 04e13639557790d8d639edbc2cdbdbcff69103db2156d3b8e6ed483a4e5f7dba032b767eb2dce498f1bf9641bb746a4be92c0739b962376a0902d2f8dbf9c699
|
data/README.md
CHANGED
@@ -16,6 +16,7 @@ class GithubCommitStatusUpdater < Thor
|
|
16
16
|
method_option :target_url, :type => :string
|
17
17
|
method_option :description, :type => :string
|
18
18
|
method_option :web_endpoint, :type => :string
|
19
|
+
method_option :context, :type => :string
|
19
20
|
|
20
21
|
desc "#{method}", "commit status #{method}"
|
21
22
|
define_method "#{method}" do
|
@@ -26,7 +27,14 @@ class GithubCommitStatusUpdater < Thor
|
|
26
27
|
c.web_endpoint = options.web_endpoint
|
27
28
|
end
|
28
29
|
end
|
29
|
-
|
30
|
+
|
31
|
+
status_options = {
|
32
|
+
target_url: options.target_url,
|
33
|
+
description: options.description,
|
34
|
+
context: options.context
|
35
|
+
}
|
36
|
+
|
37
|
+
client.create_status(options.repo, options.sha1, method, status_options)
|
30
38
|
puts "Changed status as #{method}"
|
31
39
|
rescue Octokit::Error => e
|
32
40
|
abort "Update error: #{e.message}"
|
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.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- joker1007
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-02-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: octokit
|
@@ -38,6 +38,34 @@ dependencies:
|
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: bundler
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '1.11'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '1.11'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rake
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '10.0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '10.0'
|
41
69
|
description: Github commit status api helper
|
42
70
|
email:
|
43
71
|
- kakyoin.hierophant@gmail.com
|
@@ -74,9 +102,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
74
102
|
version: '0'
|
75
103
|
requirements: []
|
76
104
|
rubyforge_project:
|
77
|
-
rubygems_version: 2.
|
105
|
+
rubygems_version: 2.5.1
|
78
106
|
signing_key:
|
79
107
|
specification_version: 4
|
80
108
|
summary: Github commit status api helper
|
81
109
|
test_files: []
|
82
|
-
has_rdoc:
|