Skip to content
This repository was archived by the owner on Apr 7, 2019. It is now read-only.

Ducz0r/kenlee

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KenLee

KenLee

What is KenLee?

KenLee is a Ruby Gem that aims to generate random data by using various web service APIs. This is a different strategy than what most random/fake data generators (e.g. Faker) employ.

How to use KenLee?

Firstly, you need to include the Gem in your application. Since the Gem is not yet available on RubyGems, the easiest option is to do the following:

  1. Clone this Git repository somewhere onto your drive.
  2. Navigate to the Gem folder and execute:
gem build kenlee.gemspec
  1. This will build you a kenlee-x.y.z.gem Gem file.
  2. You can now install the Gem:
gem install ./kenlee-x.y.z.gem
  1. Now, you can require the Gem from your application!
require 'kenlee'

KenLee submodules

Currently, only one submodule for KenLee exists.

Submodule Description
WikiLee Fetches random Wikipedia pages data.

WikiLee

First, you need to initialize a WikiLee object with a specific Wikipedia language (it defaults to en):

wl = WikiLee.initialize(:en)

To query random extract/s from Wikipedia pages:

text = wl.extract
texts = wl.extracts(15)

To query random links from Wikipedia pages:

url = wl.link
urls = wl.links(8)

About

KenLee generates fake data from web sources.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages