nql 0.0.3 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.coveralls.yml +2 -0
- data/.gitignore +18 -18
- data/.ruby-gemset +1 -0
- data/.ruby-version +1 -0
- data/.travis.yml +22 -0
- data/Gemfile +6 -4
- data/LICENSE +21 -21
- data/README.md +74 -54
- data/Rakefile +10 -2
- data/lib/nql.rb +12 -25
- data/lib/nql/error.rb +26 -0
- data/lib/nql/extension/active_record.rb +19 -0
- data/lib/nql/extension/arel.rb +7 -0
- data/lib/nql/extension/hash.rb +9 -0
- data/lib/nql/grammar.rb +842 -760
- data/lib/nql/grammar.treetop +110 -108
- data/lib/nql/query.rb +62 -0
- data/lib/nql/version.rb +3 -3
- data/nql.gemspec +27 -25
- data/spec/comparison_parser_spec.rb +164 -147
- data/spec/coordination_parser_spec.rb +42 -42
- data/spec/coverage_helper.rb +8 -0
- data/spec/migrations/20121108154439_create_countries.rb +9 -9
- data/spec/migrations/20121108154508_create_cities.rb +10 -10
- data/spec/models/city.rb +2 -2
- data/spec/models/country.rb +2 -2
- data/spec/query_spec.rb +48 -0
- data/spec/ransack_spec.rb +163 -134
- data/spec/spec_helper.rb +45 -44
- data/spec/sql_spec.rb +138 -116
- metadata +94 -39
- data/lib/nql/invalid_expression_error.rb +0 -7