rouge-lang 0.0.12 → 0.0.13
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 +7 -5
- 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: 4135ab3ea483fab099f234e7a50e2f6f32d8b737
|
4
|
+
data.tar.gz: d27e165eefe1e7688642443d5c5cf9844b4ef232
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 62cf08d2c73f501b8d0a51a6a912d63c4ad56ab40c1e43aa4fb5b63c92c1e3f23dd8f55a8d81f0eaca8cfd12d1e0b2b8c40362d732c4f60677899efb37b270de
|
7
|
+
data.tar.gz: eb15e0480b8613ddf941533b265433d3ecdf5f3a78a244abbb8cc170d9ed18b752770887b43882f114c0544468e5e93d963769d375ce8abdb980ad7a4c3c30eb
|
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
|
-
|
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,11 +306,13 @@ describe Rouge::Builtins do
|
|
306
306
|
|
307
307
|
describe ":require" do
|
308
308
|
it "should support the option" do
|
309
|
-
|
310
|
-
|
311
|
-
|
312
|
-
(
|
313
|
-
|
309
|
+
pending do
|
310
|
+
Kernel.should_receive(:require).with("blah")
|
311
|
+
context.readeval(<<-ROUGE)
|
312
|
+
(ns user.spec2
|
313
|
+
(:require blah))
|
314
|
+
ROUGE
|
315
|
+
end
|
314
316
|
end
|
315
317
|
|
316
318
|
it "should support it with :as" do
|