lita-xkcd 0.0.5 → 0.0.6

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: 49d2bd1b37b9358c715814d481bae33415f41d71
4
- data.tar.gz: 86cdfdcb63cd204c5d02e9156ec7b2c4b336cc02
3
+ metadata.gz: 64ef5c19866de9babfe8f6f515e426b7894e87bd
4
+ data.tar.gz: 632ff27b08fd9af9e2b06a5983d425cbad2d4ea6
5
5
  SHA512:
6
- metadata.gz: 2cd022fefeaba467fd672fe16d43bbb91e0546dbc3205566d6ccf6566c03c2462ba3b06cfe6d9f7cbae069f85d9958c3c97fa5753984e079e1eb3b365c3fa7f1
7
- data.tar.gz: 5f62c06f8212655740af2365e5dbc1e1f536d2030a2539547441015e7eba59aa8c47c3ceafe0ed8b4cbdbd4e71dac09cd98ff7ba6f34ba055156fbccc36133ae
6
+ metadata.gz: 20484d43fdb48641a3253d4b0e9e2abe27c4fa19b85eb427d9f583121574141818017af58f74fedc1bc6bdbb31888e586a20e57e9dd95d8fef6b387ca56b67cc
7
+ data.tar.gz: f60d850852204591ff1588855acd49a3e6a66b059cc9c2e0ecc79780682aa0b81f2b2e67d9abd1f4750786afa41616b425fb76868c0c1485640277dad574ee0c
@@ -10,13 +10,13 @@ module Lita
10
10
 
11
11
 
12
12
  def xkcd_latest(response)
13
- resp = http.get('http://xkcd.com/info.0.json')
13
+ resp = http.get('https://xkcd.com/info.0.json')
14
14
 
15
15
  raise 'Not found' if resp.status == 404
16
16
 
17
17
  response.reply print_comic(MultiJson.load(resp.body))
18
18
  rescue
19
- reponse.reply error
19
+ response.reply error
20
20
  end
21
21
 
22
22
  def xkcd_num(response)
@@ -28,7 +28,7 @@ module Lita
28
28
  end
29
29
 
30
30
  def xkcd_random(response)
31
- resp = http.get('http://xkcd.com/info.0.json')
31
+ resp = http.get('https://xkcd.com/info.0.json')
32
32
 
33
33
  if resp.status == 200
34
34
  obj = MultiJson.load(resp.body)
@@ -40,7 +40,7 @@ module Lita
40
40
 
41
41
  response.reply load_comic(comic_num)
42
42
  rescue
43
- reponse.reply error
43
+ response.reply error
44
44
  end
45
45
 
46
46
  private
@@ -50,7 +50,7 @@ module Lita
50
50
  end
51
51
 
52
52
  def load_comic(comic_num)
53
- resp = http.get("http://xkcd.com/#{comic_num}/info.0.json")
53
+ resp = http.get("https://xkcd.com/#{comic_num}/info.0.json")
54
54
 
55
55
  if resp.status == 404
56
56
  response.reply "Comic ##{comic_num} not found."
@@ -61,7 +61,7 @@ module Lita
61
61
  end
62
62
 
63
63
  def print_comic(comic)
64
- "#{comic['title']}: #{comic['alt']} (#{comic['img']})"
64
+ ["#{comic['title']}: #{comic['alt']}", comic['img']]
65
65
  end
66
66
 
67
67
 
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = "lita-xkcd"
3
- spec.version = "0.0.5"
3
+ spec.version = "0.0.6"
4
4
  spec.authors = ["Mitch Dempsey"]
5
5
  spec.email = ["mrdempsey@gmail.com"]
6
6
  spec.description = %q{Adds a Lita handler to provide access to xkcd comics.}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lita-xkcd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mitch Dempsey
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-28 00:00:00.000000000 Z
11
+ date: 2017-05-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: lita
@@ -133,7 +133,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
133
133
  version: '0'
134
134
  requirements: []
135
135
  rubyforge_project:
136
- rubygems_version: 2.0.14
136
+ rubygems_version: 2.6.10
137
137
  signing_key:
138
138
  specification_version: 4
139
139
  summary: Adds a Lita handler to provide access to xkcd comics.