rubyless 0.8.1 → 0.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/History.txt CHANGED
@@ -1,3 +1,8 @@
1
+ == 0.8.2 2011-01-15
2
+
3
+ * Minor enhancements
4
+ * Fixed a bug with literal value pre-processing.
5
+
1
6
  == 0.8.1 2011-01-15
2
7
 
3
8
  * Major enhancements
@@ -1,3 +1,3 @@
1
1
  module RubyLess
2
- VERSION = '0.8.1'
2
+ VERSION = '0.8.2'
3
3
  end
@@ -303,12 +303,16 @@ module RubyLess
303
303
  res = receiver.literal.send(*([method] + arg_list.map(&:literal)))
304
304
  end
305
305
  if res
306
- if res.opts.nil?
306
+ if res.kind_of?(TypedString)
307
307
  # This can happen if we use native methods on TypedString (like gsub) that return a new
308
308
  # typedstring without calling initialize....
309
- res.instance_variable_set(:@opts, :class => String, :literal => res)
309
+ if res.opts.nil?
310
+ res.instance_variable_set(:@opts, :class => String, :literal => res)
311
+ end
312
+ return res
313
+ else
314
+ return t(res.inspect, :class => String, :literal => res)
310
315
  end
311
- return res.kind_of?(TypedString) ? res : t(res.inspect, :class => String, :literal => res)
312
316
  end
313
317
  end
314
318
 
data/rubyless.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{rubyless}
8
- s.version = "0.8.1"
8
+ s.version = "0.8.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Gaspard Bucher"]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubyless
3
3
  version: !ruby/object:Gem::Version
4
- hash: 61
4
+ hash: 59
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 8
9
- - 1
10
- version: 0.8.1
9
+ - 2
10
+ version: 0.8.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Gaspard Bucher