sc2cinch 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.1
@@ -10,15 +10,19 @@ module Cinch
10
10
  def start
11
11
  loop do
12
12
  sleep $config['rss']['interval']
13
- @feeds = Feedzirra::Feed.update(@feeds.values)
14
- @feeds.each do |feed|
15
- feed = feed[1]
16
- nick = User.find_by_username( feed.title.split(" ").last ).nick
17
- entries = feed.new_entries[0..($config['rss']['floodlines']-1)]
18
- entries.each do |entry|
19
- msg = "#{nick} just played #{entry.title}"
20
- @bot.dispatch(:rss_update, nil, {:channels => @channels, :message => msg })
13
+ begin
14
+ @feeds = Feedzirra::Feed.update(@feeds.values)
15
+ @feeds.each do |feed|
16
+ feed = feed[1]
17
+ nick = User.find_by_username( feed.title.split(" ").last ).nick
18
+ entries = feed.new_entries[0..($config['rss']['floodlines']-1)]
19
+ entries.each do |entry|
20
+ msg = "#{nick} just played #{entry.title}"
21
+ @bot.dispatch(:rss_update, nil, {:channels => @channels, :message => msg })
22
+ end
21
23
  end
24
+ rescue Exception => e
25
+ puts e # Probably no feeds to refresh
22
26
  end
23
27
  end
24
28
  end
data/sc2cinch.gemspec ADDED
@@ -0,0 +1,86 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{sc2cinch}
8
+ s.version = "0.1.1"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Logan Koester"]
12
+ s.date = %q{2011-03-14}
13
+ s.default_executable = %q{sc2cinch}
14
+ s.description = %q{Display your current ladder rank, report the outcome of games, and more}
15
+ s.email = %q{logan@logankoester.com}
16
+ s.executables = ["sc2cinch"]
17
+ s.extra_rdoc_files = [
18
+ "LICENSE.txt",
19
+ "README.rdoc"
20
+ ]
21
+ s.files = [
22
+ ".document",
23
+ "Gemfile",
24
+ "Gemfile.lock",
25
+ "LICENSE.txt",
26
+ "README.rdoc",
27
+ "Rakefile",
28
+ "VERSION",
29
+ "bin/sc2cinch",
30
+ "lib/cinch/plugins/starcraft.rb",
31
+ "lib/cinch/plugins/starcraft/feeds.rb",
32
+ "lib/cinch/plugins/starcraft/ranks.rb",
33
+ "lib/cinch/plugins/starcraft/user.rb",
34
+ "lib/sc2cinch.rb",
35
+ "sc2cinch.gemspec"
36
+ ]
37
+ s.homepage = %q{http://github.com/logankoester/sc2cinch}
38
+ s.licenses = ["MIT"]
39
+ s.require_paths = ["lib"]
40
+ s.rubygems_version = %q{1.3.7}
41
+ s.summary = %q{Ruby-based IRC bot for Starcraft II players}
42
+
43
+ if s.respond_to? :specification_version then
44
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
45
+ s.specification_version = 3
46
+
47
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
48
+ s.add_runtime_dependency(%q<cinch>, ["~> 1.1.2"])
49
+ s.add_runtime_dependency(%q<sc2ranks>, ["~> 0.1.0"])
50
+ s.add_runtime_dependency(%q<nokogiri>, ["~> 1.4.4"])
51
+ s.add_runtime_dependency(%q<rails>, ["~> 3.0.3"])
52
+ s.add_runtime_dependency(%q<mongo_mapper>, ["~> 0.8.6"])
53
+ s.add_runtime_dependency(%q<feedzirra>, ["~> 0.0.24"])
54
+ s.add_runtime_dependency(%q<bson_ext>, ["~> 1.2.4"])
55
+ s.add_runtime_dependency(%q<daemons>, ["~> 1.1.0"])
56
+ s.add_runtime_dependency(%q<optiflag>, ["~> 0.7"])
57
+ s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
58
+ s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
59
+ else
60
+ s.add_dependency(%q<cinch>, ["~> 1.1.2"])
61
+ s.add_dependency(%q<sc2ranks>, ["~> 0.1.0"])
62
+ s.add_dependency(%q<nokogiri>, ["~> 1.4.4"])
63
+ s.add_dependency(%q<rails>, ["~> 3.0.3"])
64
+ s.add_dependency(%q<mongo_mapper>, ["~> 0.8.6"])
65
+ s.add_dependency(%q<feedzirra>, ["~> 0.0.24"])
66
+ s.add_dependency(%q<bson_ext>, ["~> 1.2.4"])
67
+ s.add_dependency(%q<daemons>, ["~> 1.1.0"])
68
+ s.add_dependency(%q<optiflag>, ["~> 0.7"])
69
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
70
+ s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
71
+ end
72
+ else
73
+ s.add_dependency(%q<cinch>, ["~> 1.1.2"])
74
+ s.add_dependency(%q<sc2ranks>, ["~> 0.1.0"])
75
+ s.add_dependency(%q<nokogiri>, ["~> 1.4.4"])
76
+ s.add_dependency(%q<rails>, ["~> 3.0.3"])
77
+ s.add_dependency(%q<mongo_mapper>, ["~> 0.8.6"])
78
+ s.add_dependency(%q<feedzirra>, ["~> 0.0.24"])
79
+ s.add_dependency(%q<bson_ext>, ["~> 1.2.4"])
80
+ s.add_dependency(%q<daemons>, ["~> 1.1.0"])
81
+ s.add_dependency(%q<optiflag>, ["~> 0.7"])
82
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
83
+ s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
84
+ end
85
+ end
86
+
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 0
9
- version: 0.1.0
8
+ - 1
9
+ version: 0.1.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Logan Koester
@@ -204,6 +204,7 @@ files:
204
204
  - lib/cinch/plugins/starcraft/ranks.rb
205
205
  - lib/cinch/plugins/starcraft/user.rb
206
206
  - lib/sc2cinch.rb
207
+ - sc2cinch.gemspec
207
208
  has_rdoc: true
208
209
  homepage: http://github.com/logankoester/sc2cinch
209
210
  licenses:
@@ -218,7 +219,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
218
219
  requirements:
219
220
  - - ">="
220
221
  - !ruby/object:Gem::Version
221
- hash: -590535288697464928
222
+ hash: 2233471615304060351
222
223
  segments:
223
224
  - 0
224
225
  version: "0"