github_webhook 0.3.0 → 0.3.1

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: ebcf435b142dbc33048434ccece05593df374855
4
- data.tar.gz: 685a3cc522b13a99f1e21867ce0aa7c2b5777770
3
+ metadata.gz: 6078831253aa84e9a6c92ccbdeb227d5d424a0e0
4
+ data.tar.gz: 18b5218813aeda4d57d3a57121a084ed2ffc66dd
5
5
  SHA512:
6
- metadata.gz: 63c28c385cee31dd18b91f3c0e3e418d8af53ddf43eae9abf6df923934df01aea7c9e60731ff9bb8b1609dc04c449c4100943b94d34203350be9e28c50c62ef4
7
- data.tar.gz: 980d7ca90fb8028c1ed5670cce359f25a9b846a18078b6f5129603ff378e7a41ea157626e3480adb6b0374482f67c1b9f3811215ed005a8190a424f1cd8cbcd9
6
+ metadata.gz: c77b98e276ca5aafa57e915a4c2cf25e13dc1ca496f32bf81753ecbdfa2b04ed5cf4d44d64254d17d361d15c2a5e3a509b26b16876023c3294553d0b64b8a1b3
7
+ data.tar.gz: 38eb962513e6fc0fdabc308f888e79b15378d49d1bd94aae2616b1b402d0f84a6e11ceb48406ba2a371cdd75d9544980c472d4e3fa91625f18dacb844bc7322f
data/.gitignore CHANGED
@@ -1,2 +1,3 @@
1
1
  .DS_Store
2
- *.gem
2
+ *.gem
3
+ coverage
data/.travis.yml CHANGED
@@ -1,5 +1,10 @@
1
1
  language: ruby
2
2
  rvm:
3
+ - 2.3.0
4
+ - 2.2.4
3
5
  - 2.1.1
4
6
  - 2.1.0
5
7
  - 2.0.0
8
+ addons:
9
+ code_climate:
10
+ repo_token: 50425d682162d68af0b65bd9e5160da8337d2159fc3ebc00d2a5b14386548ac5
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- github_webhook (0.2.0)
4
+ github_webhook (0.3.1)
5
5
  activesupport (~> 4)
6
6
 
7
7
  GEM
@@ -13,7 +13,10 @@ GEM
13
13
  minitest (~> 5.1)
14
14
  thread_safe (~> 0.1)
15
15
  tzinfo (~> 1.1)
16
+ codeclimate-test-reporter (0.4.8)
17
+ simplecov (>= 0.7.1, < 1.0.0)
16
18
  diff-lcs (1.2.5)
19
+ docile (1.1.5)
17
20
  i18n (0.6.9)
18
21
  json (1.8.3)
19
22
  minitest (5.3.5)
@@ -26,6 +29,11 @@ GEM
26
29
  rspec-expectations (2.14.5)
27
30
  diff-lcs (>= 1.1.3, < 2.0)
28
31
  rspec-mocks (2.14.6)
32
+ simplecov (0.11.2)
33
+ docile (~> 1.1.0)
34
+ json (~> 1.8)
35
+ simplecov-html (~> 0.10.0)
36
+ simplecov-html (0.10.0)
29
37
  thread_safe (0.3.4)
30
38
  tzinfo (1.2.1)
31
39
  thread_safe (~> 0.1)
@@ -35,6 +43,7 @@ PLATFORMS
35
43
 
36
44
  DEPENDENCIES
37
45
  bundler (~> 1.5)
46
+ codeclimate-test-reporter
38
47
  github_webhook!
39
48
  rake (~> 10.1)
40
49
  rspec (~> 2.14)
data/README.md CHANGED
@@ -1,4 +1,5 @@
1
1
  [![Build Status](https://travis-ci.org/ssaunier/github_webhook.svg?branch=master)](https://travis-ci.org/ssaunier/github_webhook)
2
+ [![Code Climate](https://codeclimate.com/github/ssaunier/github_webhook/badges/gpa.svg)](https://codeclimate.com/github/ssaunier/github_webhook)
2
3
  [![Gem Version](https://badge.fury.io/rb/github_webhook.svg)](http://badge.fury.io/rb/github_webhook)
3
4
 
4
5
 
@@ -23,4 +23,5 @@ Gem::Specification.new do |spec|
23
23
  spec.add_development_dependency "bundler", "~> 1.5"
24
24
  spec.add_development_dependency "rake", "~> 10.1"
25
25
  spec.add_development_dependency "rspec", "~> 2.14"
26
+ spec.add_development_dependency "codeclimate-test-reporter"
26
27
  end
@@ -10,7 +10,7 @@ module GithubWebhook::Processor
10
10
  class UnspecifiedWebhookSecretError < StandardError; end
11
11
  class UnsupportedGithubEventError < StandardError; end
12
12
 
13
- GITHUB_EVENTS_WHITELIST = %w(commit_comment create delete deployment deployment_status download follow fork fork_apply gist gollum issue_comment issues member membership page_build public pull_request pull_request_review_comment push release repository status team_add watch)
13
+ GITHUB_EVENTS_WHITELIST = %w(ping commit_comment create delete deployment deployment_status download follow fork fork_apply gist gollum issue_comment issues member membership page_build public pull_request pull_request_review_comment push release repository status team_add watch)
14
14
 
15
15
  def create
16
16
  if self.respond_to? event_method
@@ -1,3 +1,3 @@
1
1
  module GithubWebhook
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
data/spec/spec_helper.rb CHANGED
@@ -1,5 +1,8 @@
1
1
  ENV['RAILS_ENV'] ||= 'test'
2
2
 
3
+ require "codeclimate-test-reporter"
4
+ CodeClimate::TestReporter.start
5
+
3
6
  require "github_webhook"
4
7
 
5
8
  # Load support files
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: github_webhook
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sebastien Saunier
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-07 00:00:00.000000000 Z
11
+ date: 2016-02-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -66,6 +66,20 @@ dependencies:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '2.14'
69
+ - !ruby/object:Gem::Dependency
70
+ name: codeclimate-test-reporter
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
69
83
  description: Process GitHub Webhooks in your Rails app (Controller mixin)
70
84
  email:
71
85
  - seb@saunier.me