campfire-bot-absentee-camper 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +5 -0
- data/README.md +8 -12
- data/campfire-bot-absentee-camper.gemspec +2 -2
- data/lib/campfire_bot/absentee_camper.rb +5 -5
- data/lib/campfire_bot/absentee_camper/version.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +6 -6
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# NOTE
|
2
2
|
|
3
|
-
Currently, this only works with [my fork](https://github.com/hoverlover/campfire-bot). Hopefully,
|
3
|
+
Currently, this only works with [my campfire-bot fork](https://github.com/hoverlover/campfire-bot). Hopefully,
|
4
4
|
the maintainers of the [main repo](https://github.com/joshwand/campfire-bot) will pull in my changes.
|
5
5
|
|
6
6
|
#CampfireBot::AbsenteeCamper [![Build Status](https://secure.travis-ci.org/hoverlover/campfire-bot-absentee-camper.png)](http://travis-ci.org/hoverlover/campfire-bot-absentee-camper)
|
@@ -15,15 +15,12 @@ triggered by the _@mention_.
|
|
15
15
|
|
16
16
|
## Usage
|
17
17
|
|
18
|
-
1.
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
5. Register the plugin to your main _config.yml_ file
|
25
|
-
6. `bundle exec bot <environment>`, where `<environment>` is the
|
26
|
-
matching environment from the config file.
|
18
|
+
1. Install the gems:
|
19
|
+
`gem install campfire-bot campfire-bot-absentee-camper`
|
20
|
+
2. Create your _absentee-camper-config.yml_ file (see below)
|
21
|
+
3. Register the plugin to your main campfire-bot _config.yml_ file
|
22
|
+
4. `campfire-bot <environment>`, where `<environment>` is the
|
23
|
+
matching environment from _config.yml_.
|
27
24
|
|
28
25
|
## Configuration
|
29
26
|
|
@@ -54,7 +51,7 @@ Here is a sample config file:
|
|
54
51
|
# Default email notifier
|
55
52
|
john: 987654
|
56
53
|
|
57
|
-
* `production` - This is the environment for which the
|
54
|
+
* `production` - This is the environment for which the settings apply.
|
58
55
|
You can specify multiple environments (e.g. development, test, etc).
|
59
56
|
* `pony_options` - The configuration options for [Pony](https://github.com/adamwiggins/pony)
|
60
57
|
* `users` - Each user line consists of the name of the mention name and
|
@@ -71,7 +68,6 @@ Here is a sample config file:
|
|
71
68
|
|
72
69
|
## TODO
|
73
70
|
|
74
|
-
* More specs!
|
75
71
|
* Provide context in the notification. For example, in a Campfire
|
76
72
|
session there are two users: John and Steve. Another user, Chad
|
77
73
|
is not present in the room:
|
@@ -16,9 +16,9 @@ Gem::Specification.new do |s|
|
|
16
16
|
s.files = `git ls-files`.split("\n")
|
17
17
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
18
18
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
19
|
-
s.require_paths = ["lib
|
19
|
+
s.require_paths = ["lib"]
|
20
20
|
|
21
|
-
s.add_dependency 'campfire-bot', '~> 0.0
|
21
|
+
s.add_dependency 'campfire-bot', '~> 0.1.0'
|
22
22
|
s.add_dependency 'pony', '~> 1.3'
|
23
23
|
s.add_dependency 'prowl', '~> 0.1.3'
|
24
24
|
end
|
@@ -1,12 +1,12 @@
|
|
1
1
|
module CampfireBot
|
2
2
|
module AbsenteeCamper
|
3
|
-
autoload :Config, "absentee_camper/config"
|
4
|
-
autoload :Logger, "absentee_camper/logger"
|
5
|
-
autoload :NotificationManager, "absentee_camper/notification/notification_manager"
|
3
|
+
autoload :Config, "campfire_bot/absentee_camper/config"
|
4
|
+
autoload :Logger, "campfire_bot/absentee_camper/logger"
|
5
|
+
autoload :NotificationManager, "campfire_bot/absentee_camper/notification/notification_manager"
|
6
6
|
|
7
7
|
module Notification
|
8
|
-
autoload :EmailNotifier, "absentee_camper/notification/email_notifier"
|
9
|
-
autoload :ProwlNotifier, "absentee_camper/notification/prowl_notifier"
|
8
|
+
autoload :EmailNotifier, "campfire_bot/absentee_camper/notification/email_notifier"
|
9
|
+
autoload :ProwlNotifier, "campfire_bot/absentee_camper/notification/prowl_notifier"
|
10
10
|
end
|
11
11
|
|
12
12
|
class Plugin < CampfireBot::Plugin
|
data/spec/spec_helper.rb
CHANGED
@@ -5,7 +5,7 @@ Bundler.require(:default, :test)
|
|
5
5
|
BOT_ROOT = File.join(FileUtils.pwd, 'spec')
|
6
6
|
BOT_ENVIRONMENT = 'test'
|
7
7
|
require 'bot'
|
8
|
-
require 'absentee_camper'
|
8
|
+
require 'campfire_bot/absentee_camper'
|
9
9
|
|
10
10
|
RSpec.configure do |config|
|
11
11
|
config.include CampfireBot::AbsenteeCamper::Notification
|
metadata
CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease: false
|
5
5
|
segments:
|
6
6
|
- 0
|
7
|
-
-
|
7
|
+
- 3
|
8
8
|
- 0
|
9
|
-
version: 0.
|
9
|
+
version: 0.3.0
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- hoverlover
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2011-12-
|
17
|
+
date: 2011-12-08 00:00:00 -06:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
@@ -27,9 +27,9 @@ dependencies:
|
|
27
27
|
- !ruby/object:Gem::Version
|
28
28
|
segments:
|
29
29
|
- 0
|
30
|
-
- 0
|
31
30
|
- 1
|
32
|
-
|
31
|
+
- 0
|
32
|
+
version: 0.1.0
|
33
33
|
type: :runtime
|
34
34
|
version_requirements: *id001
|
35
35
|
- !ruby/object:Gem::Dependency
|
@@ -103,7 +103,7 @@ post_install_message:
|
|
103
103
|
rdoc_options: []
|
104
104
|
|
105
105
|
require_paths:
|
106
|
-
- lib
|
106
|
+
- lib
|
107
107
|
required_ruby_version: !ruby/object:Gem::Requirement
|
108
108
|
none: false
|
109
109
|
requirements:
|