lita-github-commits 0.0.1 → 0.0.2

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: 6d9df5fc85994d6f7fec81c93c4d85c53ef74bc9
4
- data.tar.gz: e15c9f03f760d278e0024fef164cfc383d9eb3c3
3
+ metadata.gz: db21716b69044be4479bcd4828a7d8fad5171e52
4
+ data.tar.gz: bbcdc2cc6c93ade267e0ffa571af9163384b32dc
5
5
  SHA512:
6
- metadata.gz: d059244c6e0ee4b312c20e75ee0206ecae25dcd0745ac69f3b35065b0049abe962a4c206524a90d2c77da80c0e75832c6a2ec31dde4253b8c7655fc2ff71903d
7
- data.tar.gz: 88d533d04f7373cae20fcbe5ca0c77d49b535de25cbaae5d57a2ccf2e1d83e972bb6fb4fd932aa8ca194c9a02f2b556353548a9bd416eec101ab3290fe2ade05
6
+ metadata.gz: 1c8c4e7e5f795389b025c654248bd592eb3fcf40475657f46ada0d44e62aba1b4cbcfadedebb2dc6786ca08246e1d1e94dbedaa1f882872bf0bbb8c5b8a02771
7
+ data.tar.gz: cf296f96de3b45aa94b0a0704afa5738bb94213b7dbafdc8c133dca4165958b98198c608802d5fcc019327f778e3e39d969b13e6008aece89679cb10233379c0
data/.travis.yml CHANGED
@@ -4,3 +4,5 @@ rvm:
4
4
  script: bundle exec rake
5
5
  before_install:
6
6
  - gem update --system
7
+ services:
8
+ - redis-server
data/README.md CHANGED
@@ -16,11 +16,24 @@ gem "lita-github-commits"
16
16
 
17
17
  ## Configuration
18
18
 
19
- TODO: Describe any configuration attributes the plugin exposes.
19
+ ### Required attributes
20
+
21
+ * `repos` (Hash) - A map of repositories to allow notifications for and the chat rooms to post them in. The keys should be strings in the format "github_username/repository_name" and the values should be either a string room name or an array of string room names. Default: `{}`.
22
+
23
+ ### Example
24
+
25
+ ``` ruby
26
+ Lita.configure do |config|
27
+ config.handlers.github_commits.repos = {
28
+ "username/repo1" => "#someroom",
29
+ "username/repo2" => ["#someroom", "#someotherroom"]
30
+ }
31
+ end
32
+ ```
20
33
 
21
34
  ## Usage
22
35
 
23
- TODO: Describe the plugin's features and how to use them.
36
+ You will need to add a GitHub Webhook url that points to: `http://address.of.lita/github-commits`
24
37
 
25
38
  ## License
26
39
 
@@ -30,7 +30,7 @@ module Lita
30
30
  message = format_message(payload)
31
31
 
32
32
  rooms.each do |room|
33
- target = Source.new(nil, room)
33
+ target = Source.new(room: room)
34
34
  robot.send_message(target, message)
35
35
  end
36
36
  end
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "lita-github-commits"
3
- spec.version = "0.0.1"
3
+ spec.version = "0.0.2"
4
4
  spec.authors = ["Mitch Dempsey"]
5
5
  spec.email = ["mrdempsey@gmail.com"]
6
6
  spec.description = %q{A Lita handler that will display GitHub commit messages in the channel}
@@ -13,11 +13,13 @@ Gem::Specification.new do |spec|
13
13
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
14
14
  spec.require_paths = ["lib"]
15
15
 
16
- spec.add_runtime_dependency "lita", "~> 2.3"
16
+ spec.add_runtime_dependency "lita", ">= 2.3"
17
17
 
18
18
  spec.add_development_dependency "bundler", "~> 1.3"
19
19
  spec.add_development_dependency "rake"
20
- spec.add_development_dependency "rspec", ">= 2.14"
20
+ spec.add_development_dependency "rspec", ">= 3.0.0.beta2"
21
21
  spec.add_development_dependency "simplecov"
22
22
  spec.add_development_dependency "coveralls"
23
+
24
+ spec.metadata = { "lita_plugin_type" => "handler" }
23
25
  end
metadata CHANGED
@@ -1,27 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lita-github-commits
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mitch Dempsey
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-28 00:00:00.000000000 Z
11
+ date: 2014-03-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lita
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - '>='
18
18
  - !ruby/object:Gem::Version
19
19
  version: '2.3'
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
26
  version: '2.3'
27
27
  - !ruby/object:Gem::Dependency
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - '>='
60
60
  - !ruby/object:Gem::Version
61
- version: '2.14'
61
+ version: 3.0.0.beta2
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - '>='
67
67
  - !ruby/object:Gem::Version
68
- version: '2.14'
68
+ version: 3.0.0.beta2
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: simplecov
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -115,7 +115,8 @@ files:
115
115
  homepage: https://github.com/webdestroya/lita-github-commits
116
116
  licenses:
117
117
  - MIT
118
- metadata: {}
118
+ metadata:
119
+ lita_plugin_type: handler
119
120
  post_install_message:
120
121
  rdoc_options: []
121
122
  require_paths:
@@ -132,7 +133,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
132
133
  version: '0'
133
134
  requirements: []
134
135
  rubyforge_project:
135
- rubygems_version: 2.0.7
136
+ rubygems_version: 2.0.14
136
137
  signing_key:
137
138
  specification_version: 4
138
139
  summary: A Lita handler that will display GitHub commit messages in the channel