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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3a86e97600803a417015f5f5819ce2a78dda67fb
4
- data.tar.gz: ec8334b66fd377062b3b4321fed6e23dede13244
3
+ metadata.gz: 437d5843837c6e9c15dc4fe17a09cb4c7cb06fb1
4
+ data.tar.gz: e106493ba23321e331dda9e851a2db95980b8d13
5
5
  SHA512:
6
- metadata.gz: dd43e49c68b5f9aa67a6e63d249013dc21f2797c21461b98859df49a8b5e31894bc59fb52b454f62a24dc0a9270a78bf3d3d5ac6d7ea20dbd72b90c64d586827
7
- data.tar.gz: 09de76b2adb79ded97e89a7fd6507e7afc68bc9669fcf2bf34775654c79738fb6ae2cb724666d11eb7644b7b483a8e0a3c4aab2779d052d860e1d028b5cfe9ec
6
+ metadata.gz: 6f82411537f47aa29dc51413b397d024bed91ded89e759a43fe4254248d19786acb27beab73594ad42f26746ba963080953dac1b24d8c0c6b59635d6ca8cbc2d
7
+ data.tar.gz: 04e13639557790d8d639edbc2cdbdbcff69103db2156d3b8e6ed483a4e5f7dba032b767eb2dce498f1bf9641bb746a4be92c0739b962376a0902d2f8dbf9c699
data/README.md CHANGED
@@ -1,4 +1,6 @@
1
1
  # Github::Commit::Status::Updater
2
+ [![Gem Version](https://badge.fury.io/rb/github-commit-status-updater.svg)](https://badge.fury.io/rb/github-commit-status-updater)
3
+
2
4
  Simple CLI Tools for GitHub commit status.
3
5
 
4
6
  ## Installation
@@ -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
- client.create_status(options.repo, options.sha1, method, {target_url: options.target_url, description: options.description})
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}"
@@ -19,4 +19,7 @@ Gem::Specification.new do |gem|
19
19
 
20
20
  gem.add_runtime_dependency 'octokit', '>= 2'
21
21
  gem.add_runtime_dependency 'thor'
22
+
23
+ gem.add_development_dependency "bundler", "~> 1.11"
24
+ gem.add_development_dependency "rake", "~> 10.0"
22
25
  end
@@ -2,7 +2,7 @@ module Github
2
2
  module Commit
3
3
  module Status
4
4
  module Updater
5
- VERSION = "1.0.4"
5
+ VERSION = "1.1.0"
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.4
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: 2014-03-09 00:00:00.000000000 Z
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.2.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: