Skip to content

Ruby Application following the SOLID principles

Notifications You must be signed in to change notification settings

alXmas/convert-feed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

50 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

convert-feed

Утилита принимает на вход rss или atom, выполняет некоторые манипуляции (если указано) и на выходе выдает также rss или atom. В манипуляции входят следующие задачи:

Usage: /usr/local/bin/convert-feed [options]
    -r, --[no-]reverse               Revers items
    -s, --[no-]sort                  SortForRss items
    -o, --out FORMAT                 Output feed format: atom/rss 
    -h, --help                       Show help message
    

Вывод результата просиходит в STDOUT и в файл output. Исходный input может быть локальным файлом, так и http адресом по которому нужно его забрать.

Пример использования:

bin/convert-feed --out rss feed.xml
bin/convert-feed --out atom https://ru.hexlet.io/lessons.rss

Запуск тестов:

make test

About

Ruby Application following the SOLID principles

Topics

Resources

Stars

Watchers

Forks