slack-notify 0.3.1 → 0.3.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: a5bab3674aac3d4d7a627bc89f344dc60253c064
4
- data.tar.gz: 3dccd4e68f9f5bf70e757d5a4476cf86c7c88a8b
3
+ metadata.gz: f3aeabc3229c7b0d40604c184e02f5bbf0cf4bfd
4
+ data.tar.gz: 54cfe613f63c08a26336bfa21e09f9c04667e75a
5
5
  SHA512:
6
- metadata.gz: 75d67b94abb259bfb34c446a7e586d442f9e26524f1243e8e1d541e5613226178ede8f3c057a07a84aaa352257b12ad3941adafe797438147460568689329a81
7
- data.tar.gz: 4a889d95e5747b3fe06d4439a5a0e9521aa396e84903de325320d4a4e782f979a22cc7d826df2cd23dc4a0e7089823c6026d3dd77c070010af79ac42374e60e0
6
+ metadata.gz: 8d934f1e989c9f91b38081407bf38cc74f9ff92cb00157995b6ee63a836622679f896c9e318ddb9ec8089f76501e91a32ab99fb01d99a0617b8345a927591491
7
+ data.tar.gz: 8a5088cd804750458979aa8ef953d9cdb6eff73e2879e5f3024cc4ad54677d5d643844e31668060d4a66e3a96e8c33fa8fa448794a7496b4c4fef3cdd7a6e4b2
data/.travis.yml CHANGED
@@ -1,3 +1,3 @@
1
1
  rvm:
2
- - "2.0.0"
3
- - "2.1.1"
2
+ - "2.0"
3
+ - "2.1"
data/README.md CHANGED
@@ -2,8 +2,9 @@
2
2
 
3
3
  Send notifications to [Slack](http://slack.com/)
4
4
 
5
- [![Build Status](https://travis-ci.org/sosedoff/slack-notify.png?branch=master)](https://travis-ci.org/sosedoff/slack-notify)
6
- [![Code Climate](https://codeclimate.com/github/sosedoff/slack-notify.png)](https://codeclimate.com/github/sosedoff/slack-notify)
5
+ [![Build Status](http://img.shields.io/travis/sosedoff/slack-notify/master.svg?style=flat)](https://travis-ci.org/sosedoff/slack-notify)
6
+ [![Code Climate](http://img.shields.io/codeclimate/github/sosedoff/slack-notify.svg?style=flat)](https://codeclimate.com/github/sosedoff/slack-notify)
7
+ [![Gem Version](http://img.shields.io/gem/v/slack-notify.svg?style=flat)](http://rubygems.org/gems/slack-notify)
7
8
 
8
9
  ## Installation
9
10
 
data/Rakefile CHANGED
@@ -2,7 +2,7 @@ require "bundler/gem_tasks"
2
2
  require "rspec/core/rake_task"
3
3
 
4
4
  RSpec::Core::RakeTask.new(:test) do |t|
5
- t.pattern = "spec/*_spec.rb"
5
+ t.pattern = "spec/**/*_spec.rb"
6
6
  t.verbose = false
7
7
  end
8
8
 
@@ -47,7 +47,7 @@ module SlackNotify
47
47
  end
48
48
 
49
49
  def valid_team_name?
50
- @team =~ /^[a-z\d\-]+$/ ? true : false
50
+ @team =~ /^[a-z\d\-]+$/i ? true : false
51
51
  end
52
52
 
53
53
  def delivery_channels(channel)
@@ -1,3 +1,3 @@
1
1
  module SlackNotify
2
- VERSION = "0.3.1"
2
+ VERSION = "0.3.2"
3
3
  end
@@ -20,6 +20,14 @@ describe SlackNotify::Client do
20
20
  to raise_error "Invalid team name"
21
21
  end
22
22
  end
23
+
24
+ it "does not raise error on valid team name" do
25
+ names = ["foo", "Foo", "foo-bar"]
26
+
27
+ names.each do |name|
28
+ expect { described_class.new(name, "token") }.not_to raise_error
29
+ end
30
+ end
23
31
  end
24
32
 
25
33
  describe "#test" do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slack-notify
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dan Sosedoff
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-14 00:00:00.000000000 Z
11
+ date: 2014-09-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler