ruhoh / silly Goto Github PK
View Code? Open in Web Editor NEWSilly is a filesystem based Object Document Mapper.
Silly is a filesystem based Object Document Mapper.
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:17This 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>'
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.
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
)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.