www_app 1.2.1 → 1.3.0
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/VERSION +1 -1
- data/lib/www_app.rb +1 -8
- data/specs/server-side/0000-new.rb +6 -15
- 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: e1e6c86983b022ba0cb44f08f012804a716d9540
|
4
|
+
data.tar.gz: 129126c28fe6d0110f86b56b2b1442fb2b2ebd0f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9d17ccf8f43ab3ded86ad37a81ca22ba10b403b5bb94f302845de8a9cc69902bdb3888d3dcbc4d90432ac9b024265adb7a9b396a0273a679a70111b879f9c835
|
7
|
+
data.tar.gz: b74f84b2aef3a1b433fa8f2940c62e7cf09a48b0a4ed53f3ca632aa31e4f2f9c2f0d846365628e1056ba88bad8dca4d5dee0eadd4f2afccaba92fafb6a665d20
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.3.0
|
data/lib/www_app.rb
CHANGED
@@ -284,14 +284,7 @@ class WWW_App < BasicObject
|
|
284
284
|
eval ::File.read(file_name), nil, file_name
|
285
285
|
}
|
286
286
|
|
287
|
-
|
288
|
-
case
|
289
|
-
when !::ENV['IS_DEV']
|
290
|
-
fail "Blocks not allowed during non-dev."
|
291
|
-
when ::ENV['IS_DEV']
|
292
|
-
instance_eval(&(::Proc.new))
|
293
|
-
end # === case
|
294
|
-
end
|
287
|
+
instance_eval(&(::Proc.new))
|
295
288
|
}
|
296
289
|
|
297
290
|
@mustache = ::Mustache.new
|
@@ -1,22 +1,13 @@
|
|
1
1
|
|
2
2
|
|
3
|
-
describe "
|
3
|
+
describe "it runs" do
|
4
4
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
after {
|
10
|
-
ENV['IS_DEV'] = @orig
|
11
|
-
}
|
12
|
-
|
13
|
-
it "raises RuntimeError if passed a block and non-IS_DEV" do
|
14
|
-
should.raise(RuntimeError) {
|
15
|
-
ENV['IS_DEV'] = nil
|
16
|
-
WWW_App.new {
|
17
|
-
div {}
|
5
|
+
it "runs" do
|
6
|
+
WWW_App.new {
|
7
|
+
div {
|
8
|
+
"test"
|
18
9
|
}
|
19
|
-
}.
|
10
|
+
}.render.should == "<div>test</div>"
|
20
11
|
end
|
21
12
|
|
22
13
|
end # === describe IS_DEV ===
|