tutter 0.0.4 → 0.0.5

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: c7a93b113fd65ebf7f8e7f974c7fd00a8d209552
4
- data.tar.gz: 962e199c054ce3f6e8604c52d3ffc9ea18190bd3
3
+ metadata.gz: 4192ecc489da04f7c71eb66580dca786823bce76
4
+ data.tar.gz: f282b693463e39b6a25fb6656f08a84cc463acc1
5
5
  SHA512:
6
- metadata.gz: cfbd929d731f80453dafaf1a94b65853942dbfc321ff9c95343820e252f50deee28eff5155535c2716c182d2a25a513f1f9e85854e618d3cb9afdf88dde6735a
7
- data.tar.gz: 4135af68c1b7010077efb5f99dc5a274702e1c9c11d5f8e055ad8ea0abc551f1b01a7e6ca8ea4b141c852ebfe65f563abf31bec614d3cec5a43919832f473cd9
6
+ metadata.gz: a5341952596f313eeaac40969fec6e12203e8f99aaf3e521c6b8347b493454c4751adea57ea6e44e514ce001a3fd7a6961d8d48f95ba68e644d3dc39e122ae63
7
+ data.tar.gz: b9decb7449728ff7873669e4311dfa95cb1f2bebc28ee072b2d2b77e7b3af2f80a7e9fc8cacff618660f1d8ae7a55c7fb015ac2a39d55b8e6f9adb74def8d112
data/.gemspec CHANGED
@@ -1,7 +1,7 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  Gem::Specification.new do |s|
3
3
  s.name = 'tutter'
4
- s.version = '0.0.4'
4
+ s.version = '0.0.5'
5
5
  s.author = 'Johan Haals'
6
6
  s.email = ['johan.haals@gmail.com']
7
7
  s.homepage = 'https://github.com/jhaals/tutter'
@@ -14,9 +14,9 @@ Gem::Specification.new do |s|
14
14
  s.require_paths = ['lib', 'conf']
15
15
 
16
16
  s.required_ruby_version = '>= 1.8.7'
17
- s.add_runtime_dependency 'sinatra', '~> 1.4.4'
18
- s.add_runtime_dependency 'octokit', '~> 3.2.0'
17
+ s.add_runtime_dependency 'sinatra', '~> 1.4'
18
+ s.add_runtime_dependency 'octokit', '~> 3.2'
19
19
 
20
- s.add_development_dependency 'sinatra-contrib', '~> 1.4.0'
20
+ s.add_development_dependency 'sinatra-contrib', '~> 1.4'
21
21
  end
22
22
 
@@ -1,4 +1,14 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 1.9.3
4
- - 2.0.0
3
+ - 1.9.3
4
+ - 2.0.0
5
+ deploy:
6
+ provider: rubygems
7
+ api_key:
8
+ secure: n8Dxj8UpauHBzBF10yVOCndmXEfLUQNV9ye9fi+b3tCtZHPqfEAaOfltbgP0Z8UglbiN8zPlt+Ayq4AiYXMx+gWEWpin+euVSvcK2JnMLQP1U9WD9qpTpAUXzIXxdUsoIY0VDfDMWpC+PYVCbNYNviKslaMRvzCd7w5dCOfsI30=
9
+ gem: tutter
10
+ gemspec: .gemspec
11
+ on:
12
+ tags: true
13
+ repo: jhaals/tutter
14
+ all_branches: true
@@ -1,5 +1,6 @@
1
1
  # Example action
2
2
  # Thank the person who submit an issue
3
+ # The comment text is configurabe using the 'comment' setting.
3
4
 
4
5
  class Thanks
5
6
  def initialize(settings, client, project, data, event)
@@ -17,7 +18,7 @@ class Thanks
17
18
  end
18
19
  issue = @data['issue']['number']
19
20
  submitter = @data['issue']['user']['login']
20
- comment = "@#{submitter} thanks for submitting this issue!"
21
+ comment = @settings['comment'] || "@#{submitter} thanks for submitting this issue!"
21
22
 
22
23
  begin
23
24
  @client.add_comment(@project, issue, comment)
@@ -32,4 +33,4 @@ class Thanks
32
33
  # TODO - Verify return data from @client.add_comment
33
34
  end
34
35
 
35
- end
36
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tutter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Johan Haals
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-23 00:00:00.000000000 Z
11
+ date: 2015-01-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sinatra
@@ -16,42 +16,42 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 1.4.4
19
+ version: '1.4'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 1.4.4
26
+ version: '1.4'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: octokit
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 3.2.0
33
+ version: '3.2'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 3.2.0
40
+ version: '3.2'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: sinatra-contrib
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 1.4.0
47
+ version: '1.4'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 1.4.0
54
+ version: '1.4'
55
55
  description: Tutter is a web app that trigger actions based on Github events(push,
56
56
  pull_reqeust, release, issue, ...)
57
57
  email: