Project

zettacode

0.0
No release in over a year
Magage files from Rosetta Code web site.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 0.8
~> 0.20
~> 1.13
~> 0.2
 Project Readme
 _____    _   _           ____          _      
|__  /___| |_| |_ __ _   / ___|___   __| | ___
  / // _ \ __| __/ _` | | |   / _ \ / _` |/ _ \
 / /|  __/ |_| || (_| | | |__| (_) | (_| |  __/
/____\___|\__|\__\__,_|  \____\___/ \__,_|\___|

Zettacode

This repository has two sections:

  1. zettacode app source code
  2. Repository of processed files usign zettacode. Every time, I use it, I will save outputs into files.zettacode folder.

1. Application

zettacode is an application that helps us perform various tasks with files from the rosettacode.org website.

Features:

  • Free license
  • Multiplatform
  • Command Application

1.1 Installation

  • Install Ruby on your host.
  • ruby -v, check current Ruby version. Version >= 2.7.0 required.
  • gem install zettacode, to install "zettacode" gem.
  • zettacode -v, show current version.

1.2 Usage

Parse local XML files:

  • Goto RosettaCode export page.
  • Add 1 page manually and export.
  • zettacode --parse PATH/TO/XML/FILE, execute Zettacode to parse XML file into code files.
  • The files are created in the files.zettacode folder.

1.3 Functions

Command Description
zettacode --help show command help.
zcode Is an alias of zettacode command
zettacode --parse FILE Parse local XML file

zettacode --scrap, Remote web page will be scrapped directly on future versions

1.4 Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/dvarrui/zettacode.