zetabot 2.0.9 → 2.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
  SHA256:
3
- metadata.gz: 5ca813b62e8520169331f3e978e82d7ae782c96727362bc21125cd973e164b8a
4
- data.tar.gz: f34bf6917e3015268b7dfd16684731a79ba27f987810b1fcd2ad59a9d4609071
3
+ metadata.gz: e3cf112f4395bf4c81f0738640cd8b31bed1ad8749e52cb8fe1a985386bc1b59
4
+ data.tar.gz: a184fedf9faab0a30c2be0af85845825f11f7b6ff1150534c7c0e0ed9a562fe0
5
5
  SHA512:
6
- metadata.gz: 2965b9a7c3858b703d606cb444bf76ce707a105dda0c2a51335d255b209264cf94abe44e626658d55baab6da14e4274764edda230da117c2a7a60dedd6ab67fb
7
- data.tar.gz: b632e398611d098b88ac692f88c0c7833900a1117e773685c8c869926b0c4832c14b1052904a235677b65aea85131851d1b9b85ab224d12fab62f6c1c1e8d86b
6
+ metadata.gz: 04f5b194486be8bcf98da12942e7c065acaa2bcb3c8a37c0cc6ed984699a3423f9cfc46a50b81509f8b91b3006e42bdf1f1d44a696e0be56fb44d5b6203ba5b9
7
+ data.tar.gz: fa58eb2c5284d4926290a37fe8eecdf23237752d03e7c047804f52722b3c7ed1f825e82fdaad938b6669960e93b81e2cee0ed4ae9e5562af929e00ddc6ad4714
@@ -22,8 +22,10 @@ module Plugins
22
22
  private
23
23
  def fetch_random_fml
24
24
  url = 'http://www.fmylife.com/random'
25
- # fml_story = Nokogiri.HTML(RestClient.get(url)).at('div.article').text.strip
26
- fml_story = Nokogiri.HTML(RestClient.get(url).body).at('div.article').text.strip
25
+
26
+ html_body = RestClient.get(url).body
27
+
28
+ fml_story = Nokogiri.HTML(html_body).at('article').text.strip
27
29
  fml_story[/^Today, (.+) FML/]
28
30
  rescue => e
29
31
  e.message
@@ -9,7 +9,7 @@ module Plugins
9
9
 
10
10
  set(
11
11
  plugin_name: 'UrbanDictionary',
12
- help: "Urban Dictionary -- Grabs a term from urbandictionary.com.\nUsage: `?urban <term>`; `?wotd`; `!?woty`"
12
+ help: "Urban Dictionary -- Grabs a term from urbandictionary.com.\nUsage: `?ud <term>`; `?wotd`;"
13
13
  )
14
14
 
15
15
  match /urban (.*)/, method: :query
data/lib/Zeta/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Zeta
2
- VERSION = '2.0.9'
2
+ VERSION = '2.1.0'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zetabot
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.9
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Liothen