GithubHelp home page GithubHelp logo

fastball's People

Contributors

jbgo avatar jkappers avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

fastball's Issues

more intelligent error message when fail to parse app_config.yml

This is not helpful.

[17:00:37] ../clarity (ke-config *+) $ fastball config
/Users/jbach/.rbenv/versions/2.0.0-p481/lib/ruby/2.0.0/psych.rb:205:in `parse': (<unknown>): could not find expected ':' while scanning a simple key at line 14 column 1 (Psych::SyntaxError)
        from /Users/jbach/.rbenv/versions/2.0.0-p481/lib/ruby/2.0.0/psych.rb:205:in `parse_stream'
        from /Users/jbach/.rbenv/versions/2.0.0-p481/lib/ruby/2.0.0/psych.rb:153:in `parse'
        from /Users/jbach/.rbenv/versions/2.0.0-p481/lib/ruby/2.0.0/psych.rb:129:in `load'
        from /Users/jbach/.rbenv/versions/2.0.0-p481/lib/ruby/gems/2.0.0/gems/fastball-0.4.1/lib/fastball/config.rb:121:in `load_config_hash'
        from /Users/jbach/.rbenv/versions/2.0.0-p481/lib/ruby/gems/2.0.0/gems/fastball-0.4.1/lib/fastball/config.rb:116:in `load_config_values'
        from /Users/jbach/.rbenv/versions/2.0.0-p481/lib/ruby/gems/2.0.0/gems/fastball-0.4.1/lib/fastball/config.rb:96:in `generate'
        from /Users/jbach/.rbenv/versions/2.0.0-p481/lib/ruby/gems/2.0.0/gems/fastball-0.4.1/lib/fastball/config.rb:90:in `generate'
        from /Users/jbach/.rbenv/versions/2.0.0-p481/lib/ruby/gems/2.0.0/gems/fastball-0.4.1/lib/fastball/cli.rb:35:in `run'
        from /Users/jbach/.rbenv/versions/2.0.0-p481/lib/ruby/gems/2.0.0/gems/fastball-0.4.1/bin/fastball:6:in `<top (required)>'
        from /Users/jbach/.rbenv/versions/2.0.0-p481/bin/fastball:23:in `load'
        from /Users/jbach/.rbenv/versions/2.0.0-p481/bin/fastball:23:in `<main>'

Expose template files that Fastball would act on

If I'm programmatically driving Fastball, I'd like to know which templates are found and will be acted upon.

It would also be nice to know the paths of what the results would be, but there are good reasons why you wouldn't want that.

Clearer Error Message on HashDot method_missing

This error message could be improved:

 .../fastball/hash_dot.rb:31:in `method_missing': undefined local variable or method
  'foo' for #<Fastball::HashDot:0x007fe8591500d8> (NameError)

The error message is pretty clear, if you understand that it's trying to call a value that wasn't declared in your app_config.yml.

If you don't understand that then it's a little more confusing on what is going on, and how to fix it.

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.