gifbot 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/gifbot.rb +2 -1
  2. data/lib/gifbot/version.rb +1 -1
  3. metadata +61 -37
@@ -1,4 +1,5 @@
1
1
  require 'cgi'
2
+ require 'uri'
2
3
  require 'open-uri'
3
4
  require 'cinch'
4
5
  require 'nokogiri'
@@ -43,7 +44,7 @@ module GifBot
43
44
  end
44
45
 
45
46
  def image_url_from_page(page)
46
- GIFBIN_URL + page.xpath('//div[@class="box"]//img[@class="gif"]').first['src']
47
+ URI.escape(GIFBIN_URL + page.xpath('//div[@class="box"]//img[@class="gif"]').first['src'])
47
48
  end
48
49
  end
49
50
 
@@ -1,3 +1,3 @@
1
1
  module GifBot
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,46 +1,60 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: gifbot
3
- version: !ruby/object:Gem::Version
4
- version: 0.0.1
3
+ version: !ruby/object:Gem::Version
4
+ hash: 27
5
5
  prerelease:
6
+ segments:
7
+ - 0
8
+ - 0
9
+ - 2
10
+ version: 0.0.2
6
11
  platform: ruby
7
- authors:
12
+ authors:
8
13
  - blahed
9
14
  autorequire:
10
15
  bindir: bin
11
16
  cert_chain: []
12
- date: 2011-08-19 00:00:00.000000000Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
17
+
18
+ date: 2011-08-23 00:00:00 Z
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
15
21
  name: cinch
16
- requirement: &70109800921920 !ruby/object:Gem::Requirement
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
17
24
  none: false
18
- requirements:
19
- - - ! '>='
20
- - !ruby/object:Gem::Version
21
- version: '0'
25
+ requirements:
26
+ - - ">="
27
+ - !ruby/object:Gem::Version
28
+ hash: 3
29
+ segments:
30
+ - 0
31
+ version: "0"
22
32
  type: :runtime
23
- prerelease: false
24
- version_requirements: *70109800921920
25
- - !ruby/object:Gem::Dependency
33
+ version_requirements: *id001
34
+ - !ruby/object:Gem::Dependency
26
35
  name: nokogiri
27
- requirement: &70109800921400 !ruby/object:Gem::Requirement
36
+ prerelease: false
37
+ requirement: &id002 !ruby/object:Gem::Requirement
28
38
  none: false
29
- requirements:
30
- - - ! '>='
31
- - !ruby/object:Gem::Version
32
- version: '0'
39
+ requirements:
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ hash: 3
43
+ segments:
44
+ - 0
45
+ version: "0"
33
46
  type: :runtime
34
- prerelease: false
35
- version_requirements: *70109800921400
47
+ version_requirements: *id002
36
48
  description: Gif slinging IRC bot
37
- email:
49
+ email:
38
50
  - tdunn13@gmail.com
39
- executables:
51
+ executables:
40
52
  - gifbot
41
53
  extensions: []
54
+
42
55
  extra_rdoc_files: []
43
- files:
56
+
57
+ files:
44
58
  - .gitignore
45
59
  - Gemfile
46
60
  - LICENSE
@@ -51,28 +65,38 @@ files:
51
65
  - lib/gifbot.rb
52
66
  - lib/gifbot/cli.rb
53
67
  - lib/gifbot/version.rb
54
- homepage: ''
68
+ homepage: ""
55
69
  licenses: []
70
+
56
71
  post_install_message:
57
72
  rdoc_options: []
58
- require_paths:
73
+
74
+ require_paths:
59
75
  - lib
60
- required_ruby_version: !ruby/object:Gem::Requirement
76
+ required_ruby_version: !ruby/object:Gem::Requirement
61
77
  none: false
62
- requirements:
63
- - - ! '>='
64
- - !ruby/object:Gem::Version
65
- version: '0'
66
- required_rubygems_version: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - ">="
80
+ - !ruby/object:Gem::Version
81
+ hash: 3
82
+ segments:
83
+ - 0
84
+ version: "0"
85
+ required_rubygems_version: !ruby/object:Gem::Requirement
67
86
  none: false
68
- requirements:
69
- - - ! '>='
70
- - !ruby/object:Gem::Version
71
- version: '0'
87
+ requirements:
88
+ - - ">="
89
+ - !ruby/object:Gem::Version
90
+ hash: 3
91
+ segments:
92
+ - 0
93
+ version: "0"
72
94
  requirements: []
95
+
73
96
  rubyforge_project: gifbot
74
97
  rubygems_version: 1.8.6
75
98
  signing_key:
76
99
  specification_version: 3
77
100
  summary: Gif slinging IRC bot
78
101
  test_files: []
102
+