rouge-lang 0.0.13 → 0.0.14
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.
- checksums.yaml +4 -4
- data/lib/rouge/builtins.rb +1 -1
- data/lib/rouge/version.rb +1 -1
- data/spec/builtins_spec.rb +5 -7
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 823e12474a0d12aed822f77f9da8d9306a2c7ee9
|
4
|
+
data.tar.gz: 70eca77008e31e4b50fa7fd2202bf76ecd75a139
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1976df597a89d27c63046220237ef40eec6b0125c06464ea6be67f7830dc0b24bde2352e5ab0d93534fc781abefd4d17c364231ceeec8dcf1345dd7ea14ea84d
|
7
|
+
data.tar.gz: 2fd2557b35aca137ac9cd6b9fee02c31d31a5de03087d0f28a38fbfd62a8e055488236f7b0a5cec4a71e832f20006f0da36e0f81e50b5e79c866fd163df048e1
|
data/lib/rouge/builtins.rb
CHANGED
@@ -263,7 +263,7 @@ class << Rouge::Builtins
|
|
263
263
|
when :require
|
264
264
|
params.each do |param|
|
265
265
|
if param.is_a? Rouge::Symbol
|
266
|
-
Object.send
|
266
|
+
Object.send :require, param.name.to_s
|
267
267
|
elsif param.is_a? Array and
|
268
268
|
param.length == 3 and
|
269
269
|
param[0].is_a? Rouge::Symbol and
|
data/lib/rouge/version.rb
CHANGED
data/spec/builtins_spec.rb
CHANGED
@@ -306,13 +306,11 @@ describe Rouge::Builtins do
|
|
306
306
|
|
307
307
|
describe ":require" do
|
308
308
|
it "should support the option" do
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
(
|
313
|
-
|
314
|
-
ROUGE
|
315
|
-
end
|
309
|
+
Object.should_receive(:require).with("blah")
|
310
|
+
context.readeval(<<-ROUGE)
|
311
|
+
(ns user.spec2
|
312
|
+
(:require blah))
|
313
|
+
ROUGE
|
316
314
|
end
|
317
315
|
|
318
316
|
it "should support it with :as" do
|