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 +5 -0
- data/lib/ruby_less/info.rb +1 -1
- data/lib/ruby_less/processor.rb +7 -3
- data/rubyless.gemspec +1 -1
- metadata +3 -3
data/History.txt
CHANGED
data/lib/ruby_less/info.rb
CHANGED
data/lib/ruby_less/processor.rb
CHANGED
@@ -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.
|
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.
|
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
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:
|
4
|
+
hash: 59
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 8
|
9
|
-
-
|
10
|
-
version: 0.8.
|
9
|
+
- 2
|
10
|
+
version: 0.8.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Gaspard Bucher
|