cinch-urbandictionary 0.9.0 → 0.9.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,16 +1,16 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "cinch-urbandictionary"
3
- s.version = "0.9.0"
3
+ s.version = "0.9.1"
4
4
  s.platform = Gem::Platform::RUBY
5
5
  s.authors = ["Lee Jarvis"]
6
6
  s.email = ["lee@jarvis.co"]
7
- s.homepage = "http://github.com/injekt/cinch-urbandictionary"
7
+ s.homepage = "http://github.com/cinchrb/cinch-urbandictionary"
8
8
  s.summary = %q{A Cinch plugin for fetching the top result of an Urban Dictionary query}
9
9
  s.description = s.summary
10
10
 
11
11
  s.files = `git ls-files`.split("\n")
12
12
  s.require_paths = ["lib"]
13
13
 
14
- s.add_dependency(%q<cinch>, ["= 1.1.2"])
14
+ s.add_dependency(%q<cinch>, [">= 1.1.2"])
15
15
  s.add_dependency(%q<nokogiri>, [">= 1.4.4"])
16
16
  end
@@ -12,6 +12,7 @@ module Cinch::Plugins
12
12
  m.reply search(query)
13
13
  end
14
14
 
15
+ private
15
16
  def search(query)
16
17
  url = URI.encode "http://www.urbandictionary.com/define.php?term=#{query}"
17
18
  Nokogiri.HTML(open url).at_css('.definition').text.strip
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: cinch-urbandictionary
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.9.0
5
+ version: 0.9.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - Lee Jarvis
@@ -19,7 +19,7 @@ dependencies:
19
19
  requirement: &id001 !ruby/object:Gem::Requirement
20
20
  none: false
21
21
  requirements:
22
- - - "="
22
+ - - ">="
23
23
  - !ruby/object:Gem::Version
24
24
  version: 1.1.2
25
25
  type: :runtime
@@ -50,7 +50,7 @@ files:
50
50
  - cinch-urbandictionary.gemspec
51
51
  - lib/cinch/plugins/urbandictionary.rb
52
52
  has_rdoc: true
53
- homepage: http://github.com/injekt/cinch-urbandictionary
53
+ homepage: http://github.com/cinchrb/cinch-urbandictionary
54
54
  licenses: []
55
55
 
56
56
  post_install_message: