prpr 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1a7cd0ee0e956e0f78c0bc03fe8627019869b4ce
4
- data.tar.gz: bc8378dc5458e5e95a72e5ea7219b47359f76bf9
3
+ metadata.gz: acb98c1191998152f28d46200d2b2faa597f6440
4
+ data.tar.gz: b9f1d7d865268c90094d8fa70e8669832669aabb
5
5
  SHA512:
6
- metadata.gz: a111a19e2c001267189eacc5d4cc7f0e47cef7ca615f310b9abff4f176bcf870510b5a1820526b4caa160fe672b10426fe96ea9be35e9a6680ad5ddf5859a99c
7
- data.tar.gz: f911008a115e369296010d45c7fb452dff0db147b7e643127fc30ede0a53678ea1e6c9beecdcf6b454b0eefaebed1750fbe46ec60d548266f9b1e12230cbdd7a
6
+ metadata.gz: c6daab6af81040b800976966b0ca66510f40e8f9d9fb4141d0ac6d7d35ade28d7736a9fe906e831729374727b4216197f93cc1218d0c073e624c3c8c53d58214
7
+ data.tar.gz: 16c27e8de45327887d3bc5a5b3f448c691d75637431f0201e53a90df7dfb13f9a49578daea205485bd1d3aa7a2e04b5d6a6b11b8dd15997a9b99e550c35b6ce9
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- prpr (0.1.0)
4
+ prpr (0.2.0)
5
5
  hashie
6
6
  octokit
7
7
  sinatra
@@ -9,25 +9,27 @@ PATH
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- addressable (2.3.8)
12
+ addressable (2.5.0)
13
+ public_suffix (~> 2.0, >= 2.0.2)
13
14
  codeclimate-test-reporter (0.4.8)
14
15
  simplecov (>= 0.7.1, < 1.0.0)
15
16
  coderay (1.1.0)
16
17
  diff-lcs (1.2.5)
17
18
  docile (1.1.5)
18
- faraday (0.9.1)
19
+ faraday (0.10.0)
19
20
  multipart-post (>= 1.2, < 3)
20
- hashie (3.4.2)
21
+ hashie (3.4.6)
21
22
  json (1.8.3)
22
23
  method_source (0.8.2)
23
24
  multipart-post (2.0.0)
24
- octokit (4.1.0)
25
- sawyer (~> 0.6.0, >= 0.5.3)
25
+ octokit (4.6.2)
26
+ sawyer (~> 0.8.0, >= 0.5.3)
26
27
  pry (0.10.1)
27
28
  coderay (~> 1.1.0)
28
29
  method_source (~> 0.8.1)
29
30
  slop (~> 3.4)
30
- rack (1.6.4)
31
+ public_suffix (2.0.4)
32
+ rack (1.6.5)
31
33
  rack-protection (1.5.3)
32
34
  rack
33
35
  rake (10.4.2)
@@ -44,20 +46,20 @@ GEM
44
46
  diff-lcs (>= 1.2.0, < 2.0)
45
47
  rspec-support (~> 3.3.0)
46
48
  rspec-support (3.3.0)
47
- sawyer (0.6.0)
48
- addressable (~> 2.3.5)
49
- faraday (~> 0.8, < 0.10)
49
+ sawyer (0.8.1)
50
+ addressable (>= 2.3.5, < 2.6)
51
+ faraday (~> 0.8, < 1.0)
50
52
  simplecov (0.10.0)
51
53
  docile (~> 1.1.0)
52
54
  json (~> 1.8)
53
55
  simplecov-html (~> 0.10.0)
54
56
  simplecov-html (0.10.0)
55
- sinatra (1.4.6)
56
- rack (~> 1.4)
57
+ sinatra (1.4.7)
58
+ rack (~> 1.5)
57
59
  rack-protection (~> 1.4)
58
60
  tilt (>= 1.3, < 3)
59
61
  slop (3.6.0)
60
- tilt (2.0.1)
62
+ tilt (2.0.5)
61
63
  ultrahook (0.1.4)
62
64
  json (>= 1.8.0)
63
65
 
@@ -74,4 +76,4 @@ DEPENDENCIES
74
76
  ultrahook
75
77
 
76
78
  BUNDLED WITH
77
- 1.10.6
79
+ 1.13.6
data/README.md CHANGED
@@ -11,6 +11,7 @@ Handler provides various behaviors.
11
11
  * [prpr-review_label](https://github.com/mzp/prpr-review_label)
12
12
  * [prpr-mention_comment](https://github.com/mzp/prpr-mention_comment)
13
13
  * [prpr-gemfile](https://github.com/mzp/prpr-gemfile)
14
+ * [prpr-trello](https://github.com/mzp/prpr-trello)
14
15
 
15
16
  ### Publisher adapter
16
17
  Publish adapter provides bridge to some chat service.
@@ -36,10 +37,10 @@ Prpr will load them before running.
36
37
 
37
38
  ```ruby
38
39
  # Gemfile
39
- gem "prpr", github: "mzp/prpr"
40
- gem "prpr-slack", github: "mzp/prpr-slack"
41
- gem "prpr-checklist", github: "mzp/prpr-checklist"
42
- gem "prpr-conflict_label", github: "mzp/prpr-conflict_label"
40
+ gem "prpr"
41
+ gem "prpr-slack"
42
+ gem "prpr-checklist"
43
+ gem "prpr-conflict_label"
43
44
  ....
44
45
  ```
45
46
 
@@ -7,6 +7,7 @@ require 'prpr/event/event'
7
7
  require 'prpr/event/commit_comment'
8
8
  require 'prpr/event/issue_comment'
9
9
  require 'prpr/event/pull_request'
10
+ require 'prpr/event/pull_request_review'
10
11
  require 'prpr/event/pull_request_review_comment'
11
12
  require 'prpr/event/push'
12
13
  require 'prpr/action/base'
@@ -18,6 +18,8 @@ module Prpr
18
18
  IssueComment.new(JSON.parse(payload))
19
19
  when 'commit_comment'
20
20
  CommitComment.new(JSON.parse(payload))
21
+ when 'pull_request_review'
22
+ PullRequestReview.new(JSON.parse(payload))
21
23
  when 'pull_request_review_comment'
22
24
  PullRequestReviewComment.new(JSON.parse(payload))
23
25
  else
@@ -0,0 +1,6 @@
1
+ module Prpr
2
+ module Event
3
+ class PullRequestReview < Hashie::Mash
4
+ end
5
+ end
6
+ end
@@ -1,3 +1,3 @@
1
1
  module Prpr
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prpr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - mzp
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-12 00:00:00.000000000 Z
11
+ date: 2016-12-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sinatra
@@ -153,6 +153,7 @@ files:
153
153
  - lib/prpr/event/event.rb
154
154
  - lib/prpr/event/issue_comment.rb
155
155
  - lib/prpr/event/pull_request.rb
156
+ - lib/prpr/event/pull_request_review.rb
156
157
  - lib/prpr/event/pull_request_review_comment.rb
157
158
  - lib/prpr/event/push.rb
158
159
  - lib/prpr/handler/base.rb
@@ -183,7 +184,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
183
184
  version: '0'
184
185
  requirements: []
185
186
  rubyforge_project:
186
- rubygems_version: 2.4.5.1
187
+ rubygems_version: 2.5.2
187
188
  signing_key:
188
189
  specification_version: 4
189
190
  summary: Prpr is pull requests' reaction bot.