Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
37 lines (34 loc) · 1.08 KB

File metadata and controls

37 lines (34 loc) · 1.08 KB
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# -*- coding: utf-8 -*-
# Name:: Automatic::Plugin::Filter::GithubFeed
# Author:: Kohei Hasegawa <http://github.com/banyan>
# 774 <http://id774.net>
# Created:: Jun 6, 2013
# Updated:: Feb 21, 2014
# Copyright:: Copyright (c) 2012-2014 Automatic Ruby Developers.
# License:: Licensed under the GNU GENERAL PUBLIC LICENSE, Version 3.0.
module Automatic::Plugin
class FilterGithubFeed
def initialize(config, pipeline=[])
@config = config
@pipeline = pipeline
end
def run
@return_feeds = []
@pipeline.each {|feeds|
new_feeds = []
unless feeds.nil?
feeds.items.each {|feed|
Automatic::Log.puts("info", "Invoked: FilterGithubFeed")
hashie = Hashie::Mash.new
hashie.title = feed.title.content
hashie.link = feed.id.content
hashie.description = feed.content.content
new_feeds << hashie
}
end
@return_feeds << Automatic::FeedMaker.create_pipeline(new_feeds)
}
@return_feeds
end
end
end
Morty Proxy This is a proxified and sanitized view of the page, visit original site.