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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3ac3d7e64106fc22cd4e38a3bfbd85888c834cf1
4
- data.tar.gz: c62cbdccc760e67b318ca898658c33a5292a7b2f
3
+ metadata.gz: e1e6c86983b022ba0cb44f08f012804a716d9540
4
+ data.tar.gz: 129126c28fe6d0110f86b56b2b1442fb2b2ebd0f
5
5
  SHA512:
6
- metadata.gz: 044e9fc84e4e7988c0f95c0c2b20c50ad075a76e26139cf9c550878615e35a327820dd1968a09f99251011ab24bce72bed07354b4c88424ededf2425abcb6045
7
- data.tar.gz: 909fa6164d9f4f7584a04ab41c70c80b4d9f067156f0889c96b8a2250d3c7bc8eecd3f29a9f363fa11c320697ae908a3065634d8bfb9538e49bc5dbc9daf4de5
6
+ metadata.gz: 9d17ccf8f43ab3ded86ad37a81ca22ba10b403b5bb94f302845de8a9cc69902bdb3888d3dcbc4d90432ac9b024265adb7a9b396a0273a679a70111b879f9c835
7
+ data.tar.gz: b74f84b2aef3a1b433fa8f2940c62e7cf09a48b0a4ed53f3ca632aa31e4f2f9c2f0d846365628e1056ba88bad8dca4d5dee0eadd4f2afccaba92fafb6a665d20
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.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
- if block_given?
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 "IS_DEV" do
3
+ describe "it runs" do
4
4
 
5
- before {
6
- @orig = ENV['IS_DEV']
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
- }.message.should.match /non-DEV/i
10
+ }.render.should == "<div>test</div>"
20
11
  end
21
12
 
22
13
  end # === describe IS_DEV ===
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: www_app
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - da99