ruboty-rss 0.0.4 → 0.0.5

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: 3c2177aa1fa6ecfaf7c38cbf2af1fb53e2087699
4
- data.tar.gz: f392af62b84508abfc84da0fe37928205e822c0e
3
+ metadata.gz: 2e7688e50302747bae4f8e18ffb4ca784d69f9c8
4
+ data.tar.gz: 35990d285fc193e5c9427f5372f52fded6ce0dfb
5
5
  SHA512:
6
- metadata.gz: 1615b7f9faedccaf4b6cdb14d6ad876f31b347317771c2626404d99617a17fe0b2f5e56d34ae944d99b9a26e2d693eb208bddf625f77ab50d380ce6bf94f1259
7
- data.tar.gz: f16fb2cc92bb3cd2b7781eb70b28590ef142f6a50c7c5742d28f396f1d0060543f58ef1c0ea8d5216280d36a6bd716ca15cbe5aa92a4f46e870834ddf3ec3b7c
6
+ metadata.gz: 96dc570294296ba1e56d58fbcde65d887daa21ead12cea498a5919d44504a05835a28614054ee6bb0973e9e3afa5a3402e9a0df7517b0b723be247401d1989fc
7
+ data.tar.gz: b3b467ad519baf1a57577e7d74d7190d2e0c58acd025dc8c1a7a2bb2888ba6ed4e6b115c5fc145ee51faec8dc5721d71c2b086e17ae762a1fdd0f1184876f4e4
@@ -75,7 +75,9 @@ module Ruboty
75
75
  Thread.start do
76
76
  while true
77
77
  feeds.each_pair do |id, feed|
78
+ debug "Fetching RSS feed (#{feed.url})"
78
79
  feed.new_items.each do |item|
80
+ debug "New item found (#{item.title} / #{item.link})"
79
81
  body = "New Entry: #{item.title}\n#{item.link}"
80
82
  Message.new(
81
83
  feed.attributes.symbolize_keys.except(:url, :id).merge(robot: robot)
@@ -93,6 +95,12 @@ module Ruboty
93
95
  end while feeds.has_key?(id)
94
96
  id
95
97
  end
98
+
99
+ private
100
+
101
+ def debug(str)
102
+ Ruboty.logger.debug("[#{Time.now.to_s}] ruboty-rss: #{str}")
103
+ end
96
104
  end
97
105
  end
98
106
  end
@@ -7,3 +7,4 @@ require "ruboty/handlers/rss"
7
7
  require "ruboty/rss/feed"
8
8
  require "ruboty/rss/version"
9
9
 
10
+
@@ -1,5 +1,5 @@
1
1
  module Ruboty
2
2
  module Rss
3
- VERSION = "0.0.4"
3
+ VERSION = "0.0.5"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruboty-rss
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryota Arai
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-03 00:00:00.000000000 Z
11
+ date: 2014-07-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport