Coder Social home page Coder Social logo

dare's Issues

rake build returns error

Running rake build without bundler will throw an error - Can bundler be installed as part of gem install dare, or give the user some helpful text intead of a ENOENT?

stacktrack below

rake build
rake aborted!
Errno::ENOENT: No such file or directory - bundle show dare
*/gamename/Rakefile:15:in ``'
*
/Rakefile:15:in `block in <top (required)>'
Tasks: TOP => build
(See full trace by running task with --trace)

caption breaks app

If I try to set a caption (or title) the app breaks, giving me only a box with a border

  def initialize
    super width: 640, height: 480, border: true
    self.title = "Pong"  # FAIL! THIS BREAKS THE WHOLE APP!
    @x = 0
  end

`rake build` creates .js file with HTML content

This gem looks really cool, and I'm thinking of using it for the upcoming Ludum Dare. But at the moment, someting seems broken:

$ gem install dare
Fetching: dare-0.2.0.gem (100%)
Successfully installed dare-0.2.0
Parsing documentation for dare-0.2.0
Installing ri documentation for dare-0.2.0
Done installing documentation for dare after 0 seconds
1 gem installed
$ dare new game
      create  game/Gemfile
      create  game/Rakefile
      create  game/game.rb
      create  game/game.html
$ cd game/
$ rake build
$ cat game.js
<!DOCTYPE html>
<html>
  <head>
    <title id="pageTitle"></title>
    <script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
    <!-- Will add this back when 0.7.0 is released -->
    <!-- <script src="http://cdn.opalrb.org/opal/0.7.0/opal.min.js"></script> -->
  </head>
  <body>
    <script src="game.js"></script>
  </body>
</html>

Also, Opal 0.7.0 has been released! :-)

without bundle install, sometimes js is same as html

I would like to not have to do a bundle install at the get go, for simplicity, but if you don't, under some conditions (new opal install maybe?) the rake build will generate a javascript file with its contents just being the html file.

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.