Skip to content

Commit

Permalink
Fixed Range handling.
Browse files Browse the repository at this point in the history
  • Loading branch information
gaspard committed Jun 13, 2013
1 parent b0f3c49 commit 3161540
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
5 changes: 5 additions & 0 deletions History.txt
@@ -1,3 +1,8 @@
== 0.8.10 2013-06-13

* Minor enhancement
* Fixed Range handling

== 0.8.9 2013-04-16

* Minor enhancement
Expand Down
2 changes: 1 addition & 1 deletion lib/ruby_less/info.rb
@@ -1,3 +1,3 @@
module RubyLess
VERSION = '0.8.9'
VERSION = '0.8.10'
end
6 changes: 5 additions & 1 deletion lib/ruby_less/processor.rb
Expand Up @@ -415,7 +415,11 @@ def get_lit_class(lit)
unless lit_class = RubyLess::SafeClass.literal_class_for(lit.class)
raise RubyLess::SyntaxError.new("#{klass} literal not supported by RubyLess.")
end
{:class => lit_class, :literal => lit}
if lit_class == Range
{:class => lit_class, :literal => lit, :raw => "(#{lit.inspect})"}
else
{:class => lit_class, :literal => lit}
end
end

def args_with_prepend(args, opts)
Expand Down
4 changes: 2 additions & 2 deletions rubyless.gemspec
Expand Up @@ -5,11 +5,11 @@

Gem::Specification.new do |s|
s.name = %q{rubyless}
s.version = "0.8.9"
s.version = "0.8.10"

s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Gaspard Bucher"]
s.date = %q{2013-04-16}
s.date = %q{2013-05-07}
s.description = %q{RubyLess is an interpreter for "safe ruby". The idea is to transform some "unsafe" ruby code into safe, type checked ruby, eventually rewriting some variables or methods.}
s.email = %q{gaspard@teti.ch}
s.extra_rdoc_files = [
Expand Down

0 comments on commit 3161540

Please sign in to comment.