Giter VIP home page Giter VIP logo

asciimo.rb's People

Contributors

cowboyd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

r4ygm amlazy 5l1v3r1

asciimo.rb's Issues

Bug when font file can not be found

Hi, this code does not work:

require 'asciimo'

This works, but then:

Asciimo.text("Star_Wars.flf", "Str Wrz", "yellow")

Error I get is:

V8::Error: No such file or directory @ rb_sysopen - /Programs/Ruby/2.2.2/lib/ruby/gems/2.2.0/gems/asciimo-0.2.0/ext/asciimo/./fonts/Star_Wars.flf.flf

I am not sure but it seem that no such font exists; the filename is starwars.flfs

I suggest changing that in the examples. Also, perhaps the last '.flf' should become optional, and append only one more .flf if not:

unless string.end_with? 'flf'

check

Thanks!

Doesn't work with Ruby 3.x?

Tested using Ruby 3.0.0 on Ubuntu:

$ asciimo -m "Hi there"
/home/dan/.rvm/gems/ruby-3.0.0/gems/therubyracer-0.12.3/lib/v8/object.rb:55: warning: respond_to? is defined here
[object global]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.