lita-baby_elephant 0.0.4 → 0.0.5

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: 7cf85d8cb9d3d958fa448307aa5021ceb0696695
4
- data.tar.gz: f29116eaa7a24328fc3b68289fa5bb3248e16f37
3
+ metadata.gz: 334eb172bcb7cae8fae403928e5e904ac2c3361f
4
+ data.tar.gz: 4eb299e182410f0fa6d7b62b2747ba987f443b92
5
5
  SHA512:
6
- metadata.gz: 704be39d0f230554e52cbcee693215e400724fb99cb81f9604780969ae9b6060aa512d28735cb7e2209f07155bcb5ab8203cb0833971b2ae83e486ce154006c5
7
- data.tar.gz: 88168efc62d19d6a748faa9c0580a39d934f64b6450fbcea6ed63da42f71c2fbc7e59543889095754988a342b5e3b79ae848cde629eef20cd42f0e137d2f280d
6
+ metadata.gz: 7832b577924c8eb06a2ffbf8674befa0a76b9baf1774291a5b714db163c3e61aa000fa24fe6adb9faccf7d7017cfb1935172cb31ecf370fab5de3a0c51f3dd91
7
+ data.tar.gz: 7d6a0d4ad789a7b7189291daaf0e20ccede7d3620d544898066a3b3faa5c1c18c026b6a18f336a6b3b3dbad5761b2efd805d21d03d3ce200c366ff45fbcce0d0
@@ -4,8 +4,9 @@ module Lita
4
4
  route /\bbaby? ?e(lephant)?s?( me)?\b/i, :baby_elephant
5
5
 
6
6
  def baby_elephant response
7
- ele = ReadIt.sub('babyelephants').recent.select(&:image?).sample
8
- response.reply ele.image
7
+ elepics = ReadIt.sub('babyelephants').recent_images
8
+ elegifs = ReadIt.sub('babyelephantgifs').recent_images
9
+ response.reply (elepics + elegifs).sample.image
9
10
  end
10
11
  end
11
12
 
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "lita-baby_elephant"
3
- spec.version = "0.0.4"
3
+ spec.version = "0.0.5"
4
4
  spec.authors = ["Adam Zaninovich"]
5
5
  spec.email = ["adam.zaninovich@activenetwork.com"]
6
6
  spec.description = %q{Get a baby elephant gif from /r/babyelephants'}
@@ -15,7 +15,7 @@ Gem::Specification.new do |spec|
15
15
  spec.require_paths = ["lib"]
16
16
 
17
17
  spec.add_runtime_dependency "lita", ">= 3.3"
18
- spec.add_runtime_dependency "read_it"
18
+ spec.add_runtime_dependency "read_it", "0.0.2"
19
19
 
20
20
  spec.add_development_dependency "bundler", "~> 1.3"
21
21
  spec.add_development_dependency "rake"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lita-baby_elephant
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Zaninovich
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-23 00:00:00.000000000 Z
11
+ date: 2014-08-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lita
@@ -28,16 +28,16 @@ dependencies:
28
28
  name: read_it
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: '0'
33
+ version: 0.0.2
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">="
38
+ - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: '0'
40
+ version: 0.0.2
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement