omg_pull_request 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -27,22 +27,18 @@ On running the test suite an animated gif can be generated of the lolcommits tha
27
27
 
28
28
  ### Plugin Support
29
29
 
30
- Omg Pull Request supports integration with third party plugins. Plugins can be developed for project specific features, or features that most implementations won't use.
30
+ Omg Pull Request supports integration with third party plugins, through an event driven architecture. You can subscribe to the following events: `initialize`, `closed`, `merged`, `run`, `execute`.
31
31
 
32
- To create a Plugin, create a class that has the following method signatures.
32
+ The following methods allow you to subscribe to events.
33
33
 
34
34
  ```
35
- initialize(attributes) # Mandatory. The test runner will initialize with a hash containing the key `options` with containing the contents of the parsed configuration yaml file.
36
- test_run(github_pull_request) # Optional. If present, called when the pull request test suite is run
37
- pull_request_closed(github_pull_request) # Optional. If present, called when the pull request is no longer opened, and is not in the merged state
38
- pull_request_merged(github_pull_request) # Optional. If present, called when the pull request is no longer opened, and is in the merged state
35
+ OmgPullRequest::Plugin.subscribe(method, &block)
36
+ OmgPullRequest::Plugin.initialize(&block)
39
37
  ```
40
38
 
41
- In addition, if there is a file located in `[omg_dir]/.omgprrc/initialize.rb` that file will be required when the runner is initialized. This can be used to require files, or define classes that will be plugins.
39
+ To see an example of a plugin [here](https://gist.github.com/4331610).
42
40
 
43
- The plugins the runner uses is defined at the root level of the config.yml file as a comma separated array of plugin class names.
44
41
 
45
- An example of a plugin that you can use can be found [here](https://gist.github.com/4331610).
46
42
 
47
43
  ## Installation
48
44
 
@@ -19,6 +19,7 @@ module OmgPullRequest
19
19
 
20
20
  while(true)
21
21
  begin
22
+ Plugin.instrument("execute", {})
22
23
  pull_requests = github_wrapper.pull_requests
23
24
 
24
25
  CONTEXT.get_recently_closed(pull_requests).each do |closed|
@@ -1,3 +1,3 @@
1
1
  module OmgPullRequest
2
- VERSION = "0.5.0"
2
+ VERSION = "0.5.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omg_pull_request
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -12,11 +12,11 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2012-12-18 00:00:00.000000000 Z
15
+ date: 2012-12-19 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: aws-s3
19
- requirement: &70129346855720 !ruby/object:Gem::Requirement
19
+ requirement: &70347177204760 !ruby/object:Gem::Requirement
20
20
  none: false
21
21
  requirements:
22
22
  - - ! '>='
@@ -24,10 +24,10 @@ dependencies:
24
24
  version: 0.6.3
25
25
  type: :runtime
26
26
  prerelease: false
27
- version_requirements: *70129346855720
27
+ version_requirements: *70347177204760
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: faraday
30
- requirement: &70129346854780 !ruby/object:Gem::Requirement
30
+ requirement: &70347177204020 !ruby/object:Gem::Requirement
31
31
  none: false
32
32
  requirements:
33
33
  - - ! '>='
@@ -35,10 +35,10 @@ dependencies:
35
35
  version: 0.8.4
36
36
  type: :runtime
37
37
  prerelease: false
38
- version_requirements: *70129346854780
38
+ version_requirements: *70347177204020
39
39
  - !ruby/object:Gem::Dependency
40
40
  name: github_api
41
- requirement: &70129346874260 !ruby/object:Gem::Requirement
41
+ requirement: &70347177203380 !ruby/object:Gem::Requirement
42
42
  none: false
43
43
  requirements:
44
44
  - - ! '>='
@@ -46,10 +46,10 @@ dependencies:
46
46
  version: 0.8.2
47
47
  type: :runtime
48
48
  prerelease: false
49
- version_requirements: *70129346874260
49
+ version_requirements: *70347177203380
50
50
  - !ruby/object:Gem::Dependency
51
51
  name: uuid
52
- requirement: &70129346873600 !ruby/object:Gem::Requirement
52
+ requirement: &70347177202860 !ruby/object:Gem::Requirement
53
53
  none: false
54
54
  requirements:
55
55
  - - ! '>='
@@ -57,10 +57,10 @@ dependencies:
57
57
  version: 2.3.5
58
58
  type: :runtime
59
59
  prerelease: false
60
- version_requirements: *70129346873600
60
+ version_requirements: *70347177202860
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: rake
63
- requirement: &70129346872860 !ruby/object:Gem::Requirement
63
+ requirement: &70347177202260 !ruby/object:Gem::Requirement
64
64
  none: false
65
65
  requirements:
66
66
  - - ! '>='
@@ -68,10 +68,10 @@ dependencies:
68
68
  version: 0.9.2.2
69
69
  type: :runtime
70
70
  prerelease: false
71
- version_requirements: *70129346872860
71
+ version_requirements: *70347177202260
72
72
  - !ruby/object:Gem::Dependency
73
73
  name: activesupport
74
- requirement: &70129346872360 !ruby/object:Gem::Requirement
74
+ requirement: &70347177201600 !ruby/object:Gem::Requirement
75
75
  none: false
76
76
  requirements:
77
77
  - - ! '>='
@@ -79,10 +79,10 @@ dependencies:
79
79
  version: 3.1.0
80
80
  type: :runtime
81
81
  prerelease: false
82
- version_requirements: *70129346872360
82
+ version_requirements: *70347177201600
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: i18n
85
- requirement: &70129346871800 !ruby/object:Gem::Requirement
85
+ requirement: &70347177200920 !ruby/object:Gem::Requirement
86
86
  none: false
87
87
  requirements:
88
88
  - - ! '>='
@@ -90,7 +90,7 @@ dependencies:
90
90
  version: 0.6.0
91
91
  type: :runtime
92
92
  prerelease: false
93
- version_requirements: *70129346871800
93
+ version_requirements: *70347177200920
94
94
  description: Have tests run automatically for your Github Pull Request
95
95
  email:
96
96
  - kenmazaika@gmail.com