lita-imgflip 1.0.2 → 1.1.0

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: c73c8920252da982c92154930e23c3789e0c5cdd
4
- data.tar.gz: 8cef790318ca49e7b82b0eb902343fb056e2e8b1
3
+ metadata.gz: d1834ecefdef1725c937d312ae3a6f594bcb1c71
4
+ data.tar.gz: eeb2d3cf95297326c406e8b924193aecf6afee8f
5
5
  SHA512:
6
- metadata.gz: da92e2ba76adac07d9cbbd1d8854eb502cf80e94b853e171dce92797a57152c2596cf4efabea2a21eaec92603cb8619a22d8b0ae0e6ee1a7562ccb146fa4bee9
7
- data.tar.gz: 444c2f1a35940811b824a0fe1a6e928cbf58d2845d8cbd64a43e686dac79b7c52f5adc85862edb8309f4817b5bbf749d5fe9af832598b33a165abd49a33a3ed0
6
+ metadata.gz: 791b432678f8dbe4744bca7e45a7eaad001d715abb2047edfa16e694849b61618d7b631ebd96619f22bf902ccfb03d5857dc3ecf03dec38ceb4b87fb63ea7d91
7
+ data.tar.gz: 8067cf49e040f5745c71e56cf3fad092b074a7279d30c16fbcc1e0547ce95104883890f3368e951b98b8a202a95baaa3dc832c9c1aff8387c5b24331d9270801
@@ -1 +1 @@
1
- 2.0.0-p353
1
+ 2.1.5
data/README.md CHANGED
@@ -1,6 +1,7 @@
1
1
  # lita-imgflip
2
2
 
3
- [![Build Status](https://travis-ci.org/henrrrik/lita-imgflip.png)](https://travis-ci.org/henrrrik/lita-imgflip)
3
+ [![Build
4
+ Status](https://travis-ci.org/henrrrik/lita-imgflip.svg?branch=master)](https://travis-ci.org/henrrrik/lita-imgflip)
4
5
  [![Code Climate](https://codeclimate.com/github/henrrrik/lita-imgflip.png)](https://codeclimate.com/github/henrrrik/lita-imgflip)
5
6
  [![Coverage Status](https://coveralls.io/repos/henrrrik/lita-imgflip/badge.png)](https://coveralls.io/r/henrrrik/lita-imgflip)
6
7
 
@@ -30,7 +30,7 @@ module Lita
30
30
  route %r{(WHAT IF I TOLD YOU) (.*)}i, :meme_what_if_i, help: { "WHAT IF I TOLD YOU.." => "generates WHAT IF I TOLD YOU.. meme" }
31
31
  route %r{(.*) (BETTER DRINK MY OWN PISS)}i, :meme_better_drink, help: { "..BETTER DRINK MY OWN PISS" => "generates ..BETTER DRINK MY OWN PISS meme" }
32
32
  route %r{^khanify (.*)}i, :meme_khanify, help: { "khanify ..." => "generates khan meme" }
33
- route %r{(.*,) (.* EVERYWHERE)}i, :meme_everywhere, help: { ".., .. EVERYWHERE" => "generates X, X everywhere meme" }
33
+ route %r{(.*,) (.* EVERYWHERE)}i, :meme_everywhere, help: { ".., .. EVERYWHERE" => "generates X, X everywhere meme" }
34
34
  route %r{(.*) (THAT WOULD BE GREAT)}i, :meme_would_be_great, help: { ".. THAT WOULD BE GREAT" => "generates Bill Lumbergh meme" }
35
35
  route %r{(.*) (AIN'?T NOBODY GOT TIME FOR THAT)}i, :meme_time_for_that, help: { ".. AIN'T NOBODY GOT TIME FOR THAT" => "generates Sweet Brown meme." }
36
36
  route %r{(.*) (I TOO LIKE TO LIVE DANGEROUSLY)}i, :meme_live_dangerously, help: { ".. I TOO LIKE TO LIVE DANGEROUSLY" => "generates I Too Like to Live Dangerously meme." }
@@ -88,7 +88,7 @@ module Lita
88
88
  end
89
89
 
90
90
  def meme_grumpy_cat(response)
91
- generate_meme(response, 405658)
91
+ generate_meme(response, 405658, text0:response.matches[0][1], text1:response.matches[0][2])
92
92
  end
93
93
 
94
94
  def meme_looks_like(response)
@@ -143,6 +143,10 @@ module Lita
143
143
  generate_meme(response, 356615)
144
144
  end
145
145
 
146
+ def meme_orly(response)
147
+ generate_meme(response, 12361203)
148
+ end
149
+
146
150
  private
147
151
 
148
152
  def khanify(phrase)
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "lita-imgflip"
3
- spec.version = "1.0.2"
3
+ spec.version = "1.1.0"
4
4
  spec.authors = ["Henrik Sjökvist"]
5
5
  spec.email = ["henrik.sjokvist@gmail.com"]
6
6
  spec.description = %q{A Lita handler for generating meme images using imgflip.com.}
@@ -13,11 +13,11 @@ Gem::Specification.new do |spec|
13
13
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
14
14
  spec.require_paths = ["lib"]
15
15
 
16
- spec.add_runtime_dependency "lita", "~> 3.0"
16
+ spec.add_runtime_dependency "lita", "~> 4.0"
17
17
 
18
18
  spec.add_development_dependency "bundler", "~> 1.3"
19
19
  spec.add_development_dependency "rake"
20
- spec.add_development_dependency "rspec", "~> 2.14"
20
+ spec.add_development_dependency "rspec", ">= 3.0.0.beta1"
21
21
  spec.add_development_dependency "simplecov"
22
22
  spec.add_development_dependency "coveralls"
23
23
  end
@@ -1,14 +1,14 @@
1
1
  require "spec_helper"
2
2
 
3
3
  describe Lita::Handlers::Imgflip, lita_handler: true do
4
- it { routes_command("Y U NO BLAH").to(:meme_y_u_no) }
5
- it { routes_command("i don't always fart but when i do, i do it loud").to(:meme_i_dont_always) }
6
- it { routes_command("blah BETTER DRINK MY OWN PISS").to(:meme_better_drink) }
7
- it { routes_command("khanify blah").to(:meme_khanify) }
8
- it { routes_command("blah AINT NOBODY GOT TIME FOR THAT").to(:meme_time_for_that) }
9
- it { routes_command("blah i too like to live dangerously").to(:meme_live_dangerously) }
10
- it { routes_command("blah shut up and take my money!").to(:meme_take_my_money) }
11
- it { routes_command("you know what really grinds my gears? blah").to(:meme_grinds_my_gears) }
4
+ it { is_expected.to route_command("Y U NO BLAH").to(:meme_y_u_no) }
5
+ it { is_expected.to route_command("i don't always fart but when i do, i do it loud").to(:meme_i_dont_always) }
6
+ it { is_expected.to route_command("blah BETTER DRINK MY OWN PISS").to(:meme_better_drink) }
7
+ it { is_expected.to route_command("khanify blah").to(:meme_khanify) }
8
+ it { is_expected.to route_command("blah AINT NOBODY GOT TIME FOR THAT").to(:meme_time_for_that) }
9
+ it { is_expected.to route_command("blah i too like to live dangerously").to(:meme_live_dangerously) }
10
+ it { is_expected.to route_command("blah shut up and take my money!").to(:meme_take_my_money) }
11
+ it { is_expected.to route_command("you know what really grinds my gears? blah").to(:meme_grinds_my_gears) }
12
12
 
13
13
  it "sets the username and password to nil by default" do
14
14
  expect(Lita.config.handlers.imgflip.username).to be_nil
@@ -8,3 +8,4 @@ SimpleCov.start { add_filter "/spec/" }
8
8
 
9
9
  require "lita-imgflip"
10
10
  require "lita/rspec"
11
+ Lita.version_3_compatibility_mode = false
metadata CHANGED
@@ -1,97 +1,97 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lita-imgflip
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henrik Sjökvist
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-28 00:00:00.000000000 Z
11
+ date: 2014-12-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lita
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '3.0'
19
+ version: '4.0'
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: '3.0'
26
+ version: '4.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: '1.3'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '1.3'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rspec
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ~>
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: '2.14'
61
+ version: 3.0.0.beta1
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ~>
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
- version: '2.14'
68
+ version: 3.0.0.beta1
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: simplecov
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - '>='
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - '>='
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: coveralls
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - '>='
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - '>='
94
+ - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  description: A Lita handler for generating meme images using imgflip.com.
@@ -101,9 +101,9 @@ executables: []
101
101
  extensions: []
102
102
  extra_rdoc_files: []
103
103
  files:
104
- - .gitignore
105
- - .ruby-version
106
- - .travis.yml
104
+ - ".gitignore"
105
+ - ".ruby-version"
106
+ - ".travis.yml"
107
107
  - Gemfile
108
108
  - LICENSE
109
109
  - README.md
@@ -123,17 +123,17 @@ require_paths:
123
123
  - lib
124
124
  required_ruby_version: !ruby/object:Gem::Requirement
125
125
  requirements:
126
- - - '>='
126
+ - - ">="
127
127
  - !ruby/object:Gem::Version
128
128
  version: '0'
129
129
  required_rubygems_version: !ruby/object:Gem::Requirement
130
130
  requirements:
131
- - - '>='
131
+ - - ">="
132
132
  - !ruby/object:Gem::Version
133
133
  version: '0'
134
134
  requirements: []
135
135
  rubyforge_project:
136
- rubygems_version: 2.0.14
136
+ rubygems_version: 2.4.4
137
137
  signing_key:
138
138
  specification_version: 4
139
139
  summary: A Lita handler for generating meme images using imgflip.com.