slackbot-notifier 1.0.0 → 1.0.1

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: 4e281a080d691f56fb16853971c022ca9633b5b4
4
- data.tar.gz: d943ac522d4275a35d3c796f69737f79472626a5
3
+ metadata.gz: 129936b6b78944953206b095d882a796a0c3c249
4
+ data.tar.gz: 8a8adf52ef441363695968b02647d90ab0fcc12e
5
5
  SHA512:
6
- metadata.gz: 7c5d2626436015cd9e2f2aca1d4fedb8400c5bd8cf6d223a7993f4a6d0dad3a0ce9fbe506a2b33b4affcf768bf16a42cdabf9c1a9b1a2bae6a92eb03c8297b43
7
- data.tar.gz: fe457098ec88b2c48532b4e60489dcc2a7c3d5c4f01d89656b9722e9df2827c2bc4eb1968ca81b161e267edb3d0a22f210687e1a07292f9504811d586d76e0f8
6
+ metadata.gz: 1fe9ae64e411c44427f116dc43560b89d291b6d56a8bf9a47f228b7c4bd99d1b4bf9901d67a1feed77fb9b28e3428796bc9eb2fdddf31261f213d6b3ada59f21
7
+ data.tar.gz: 02641d93cbd3d82ad00b2a3c71e1265946cf9da867a059ccdc0152b5e11e4807b687e4e9a4ae60d51bf4529bab364367dcde1703c4da64b3ff69f5688a5eeb47
data/README.md CHANGED
@@ -12,8 +12,12 @@ Create an initializer named `slackbot_notifier` that has the following stuff:
12
12
  require 'slackbot_notifier'
13
13
 
14
14
  SlackbotNotifier.slackbot_url = YOUR_SLACKBOT_URL
15
+ SlackbotNotifier.development_room = DEVELOPMENT_ROOM
16
+ SlackbotNotifier.production = true
15
17
  ```
16
18
 
19
+ If the variable `production` is `true` then it will notify to the room specified, if it\'s `false` it will notify to the room specified in the `dvelopment_room` variable.
20
+
17
21
  Usage
18
22
  -----
19
23
 
@@ -2,7 +2,7 @@ class SlackbotNotifier
2
2
  attr_reader :room, :message
3
3
 
4
4
  def initialize(room = 'general')
5
- @room = room
5
+ @room = SlackbotNotifier.production ? room : SlackbotNotifier.development_room
6
6
  end
7
7
 
8
8
  def notify(message)
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.platform = Gem::Platform::RUBY
3
3
  s.name = 'slackbot-notifier'
4
- s.version = '1.0.0'
4
+ s.version = '1.0.1'
5
5
  s.date = '2015-05-30'
6
6
  s.summary = "Slackbot notifier"
7
7
  s.description = "This gem wraps the notification to a slack's room by through slackbot"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slackbot-notifier
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mariano Matayoshi