Git Product home page Git Product logo

silly's People

Contributors

indolent-gnathostome avatar nquinlan avatar plusjade avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

silly's Issues

ALT_SEPARATOR must be escaped or silly fails in Windows

The tests for silly 0.0.1 run without issue on linux and mac, but fail in Windows (using Ruby 2.0.0p353 with pik). The error is:

  • too short escape sequence (ArgumentError) at lib/silly.rb:17

This error (which can be repeated in irb by running require 'silly') appears to be a recurrence of Ruby bug #2547, "error when interpolating a string containing a single backslash into a regexp."

However, everything works fine if you change line 17 from:

%r{#{ File::SEPARATOR }|#{ File::ALT_SEPARATOR }} :

to:

%r{#{ File::SEPARATOR }|#{ File::ALT_SEPARATOR.sub('\\', '\\\\\\\\') }} 

Full error log:

C:\Users\xxx\Documents\dev\silly>bundle exec cucumber

Your Gemfile lists the gem cucumber (>= 0) more than once.
You should probably keep only one of them.
While it's not a problem now, it could cause errors if you change the version of just one of them later.
Your Gemfile lists the gem capybara (>= 0) more than once.
You should probably keep only one of them.
While it's not a problem now, it could cause errors if you change the version of just one of them later.
Your Gemfile lists the gem rspec (>= 0) more than once.
You should probably keep only one of them.
While it's not a problem now, it could cause errors if you change the version of just one of them later.
*** WARNING: You must use ANSICON 1.31 or higher (https://github.com/adoxa/ansicon/) to get coloured output on Windows
too short escape sequence (ArgumentError)
C:/Users/xxx/Documents/dev/silly/lib/silly.rb:17:in `<module:Silly>'
C:/Users/xxx/Documents/dev/silly/lib/silly.rb:15:in `<top (required)>'
C:/Users/xxx/Documents/dev/silly/features/support/env.rb:9:in `require'
C:/Users/xxx/Documents/dev/silly/features/support/env.rb:9:in `<top (required)>'
C:/Ruby200/lib/ruby/gems/2.0.0/gems/cucumber-1.3.10/lib/cucumber/rb_support/rb_language.rb:122:in `load'
C:/Ruby200/lib/ruby/gems/2.0.0/gems/cucumber-1.3.10/lib/cucumber/rb_support/rb_language.rb:122:in `load_code_file'
C:/Ruby200/lib/ruby/gems/2.0.0/gems/cucumber-1.3.10/lib/cucumber/runtime/support_code.rb:180:in `load_file'
C:/Ruby200/lib/ruby/gems/2.0.0/gems/cucumber-1.3.10/lib/cucumber/runtime/support_code.rb:83:in `block in load_files!'
C:/Ruby200/lib/ruby/gems/2.0.0/gems/cucumber-1.3.10/lib/cucumber/runtime/support_code.rb:82:in `each'
C:/Ruby200/lib/ruby/gems/2.0.0/gems/cucumber-1.3.10/lib/cucumber/runtime/support_code.rb:82:in `load_files!'
C:/Ruby200/lib/ruby/gems/2.0.0/gems/cucumber-1.3.10/lib/cucumber/runtime.rb:184:in `load_step_definitions'
C:/Ruby200/lib/ruby/gems/2.0.0/gems/cucumber-1.3.10/lib/cucumber/runtime.rb:42:in `run!'
C:/Ruby200/lib/ruby/gems/2.0.0/gems/cucumber-1.3.10/lib/cucumber/cli/main.rb:47:in `execute!'
C:/Ruby200/lib/ruby/gems/2.0.0/gems/cucumber-1.3.10/bin/cucumber:13:in `<top (required)>'
C:/Ruby200/bin/cucumber:23:in `load'
C:/Ruby200/bin/cucumber:23:in `<main>'

more complete documentation about to_a behavior

I didn't know what to expect when I called .to_a, beyond the obvious Array. It'd be good to have an example array, and an explanation of the parameters in the resulting Hashes. (What's the Cascade? What's id? How's the id created?)


I recognize these are the early days of silly, so more documentation is probably planned, but I figured there was no harm in saying it. Feel free to close the issue.

add support for parameterization

It would be great to be able to provide silly with raw user input and run a query without fear of a user gaining access to the file system in some way.

Therefor, I believe, silly should have some way to ensure directory traversal (e.g. ../app/controllers) doesn't happen when providing it a query (e.g. path)

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.