lita-broadcast 0.1.0 → 0.1.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: 07dc19c95a64ff558d38a06d1fc2f3cb4845fd1c
4
- data.tar.gz: f02061e690d59d1f9e3954230331ba7ba167cb6a
3
+ metadata.gz: 710617b0db1df1ccad326af9e28e3554f93270e6
4
+ data.tar.gz: a3af3833421f870604a44fc946e01729903850db
5
5
  SHA512:
6
- metadata.gz: 5e0fa759ae2c9539bca2603b40ccb901a17c0501eef02c82e4ece8dad329a68357d49bfe3e4e75dcccb30fb9ef825ddabb99dd127416d395ef972935a52d4102
7
- data.tar.gz: 91c9e0d316fae995dbcf0fbb5f37f886f183cb058564efba62adc3c2051dd8cae2e2e666437827f213a44f286cf9e5d3ae4de9afc0bf411fc8986e6f7caf91da
6
+ metadata.gz: cb5b1e44d11a286e33852fa51ede4c9791ceffce7b6762d64c40fd634fd17d1860d7250f8eb24ed24031fb311718de189496286247c30a9d74768f46d1b996d8
7
+ data.tar.gz: a1f0272543751e2ce216ae6c8e5a89e85ada70ebd793d19e34d24305e964ebe676fa5a868635fccd05f240a0f269de4bc6cc0e2d53afdf7459fecbc7f8122028
data/Gemfile CHANGED
@@ -1,6 +1,3 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  gemspec
4
-
5
- # This is temporary until https://github.com/litaio/lita/pull/166 is merged
6
- gem 'lita', git: 'git@github.com:tristaneuan/lita', branch: 'room-find-try-strip-hash'
@@ -26,6 +26,7 @@ module Lita
26
26
 
27
27
  def channel_for(identifier)
28
28
  room = Lita::Room.fuzzy_find(identifier)
29
+ room = Lita::Room.find_by_name(identifier.to_s.sub(/^#+/, '')) if room.nil? && robot.config.robot.adapter == :slack
29
30
  Source.new(room: room) if room
30
31
  end
31
32
 
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'lita-broadcast'
3
- spec.version = '0.1.0'
3
+ spec.version = '0.1.2'
4
4
  spec.authors = ['Tristan Chong']
5
5
  spec.email = ['ong@tristaneuan.ch']
6
6
  spec.description = 'A Lita handler to broadcast a message to multiple channels simultaneously.'
@@ -14,7 +14,7 @@ Gem::Specification.new do |spec|
14
14
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
15
15
  spec.require_paths = ['lib']
16
16
 
17
- spec.add_runtime_dependency 'lita', '>= 5.0'
17
+ spec.add_runtime_dependency 'lita', '>= 4.6'
18
18
 
19
19
  spec.add_development_dependency 'bundler', '~> 1.3'
20
20
  spec.add_development_dependency 'pry-byebug'
@@ -8,3 +8,5 @@ SimpleCov.start { add_filter '/spec/' }
8
8
 
9
9
  require 'lita-broadcast'
10
10
  require 'lita/rspec'
11
+
12
+ Lita.version_3_compatibility_mode = false
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lita-broadcast
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tristan Chong
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-14 00:00:00.000000000 Z
11
+ date: 2016-01-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lita
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '5.0'
19
+ version: '4.6'
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
- version: '5.0'
26
+ version: '4.6'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement