utopia 1.6.2 → 1.6.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ce081d5385f3729a098a961a9c99989b8c4a1bf3
4
- data.tar.gz: 5d274fcfa32e3c9fc20bc97a0205fb572771f3e3
3
+ metadata.gz: 5b59f98f03b6a86574e68ff02f4e7daca3c2e7fd
4
+ data.tar.gz: fad8b3ee7c44b9cae6425ba9811b9f6fe83f6d7d
5
5
  SHA512:
6
- metadata.gz: c49d04c98f7777bd1b0626da669b406662abdf360ff274a8ca4f5bcd2c9bfc42cd698137b498af63aa80036504309b4751a55cc3f00f18e6ce369dde6cfc6934
7
- data.tar.gz: f6e9f1335e46834dc7206abdcedd717433cd160311b93283045309f19ad111076495c6077967880bbeeffb46c62b7976769df65f407eb2047cc47df87be688db
6
+ metadata.gz: 88c25590f08867c9f2a8dc98d38382cf5071258a672a2855bdf38e74c58b0f2a7a2f8f08822489841e64a47df1d84231a3759d09765c4c1f3383fae4ba737427
7
+ data.tar.gz: 16716382052cdddc4dd16fea58fcb4112f6b4fc63c0e2d58cc44ed89a4c92bf671891d9ab10b41fdc2addc958e8b699fb333e54762a32cf7784dd9172f4faa32
@@ -148,6 +148,11 @@ module Utopia
148
148
  File.size(full_path)
149
149
  end
150
150
 
151
+ # This reflects whether calling each would yield anything.
152
+ def empty?
153
+ bytesize == 0
154
+ end
155
+
151
156
  alias size bytesize
152
157
 
153
158
  def each
@@ -19,5 +19,5 @@
19
19
  # THE SOFTWARE.
20
20
 
21
21
  module Utopia
22
- VERSION = "1.6.2"
22
+ VERSION = "1.6.3"
23
23
  end
@@ -1,4 +1,4 @@
1
1
 
2
- use Utopia::Static, root: File.expand_path('../pages', __FILE__)
2
+ use Utopia::Static, root: File.expand_path('static_spec', __dir__)
3
3
 
4
4
  run lambda {|env| [404, {}, []]}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: utopia
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.2
4
+ version: 1.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-15 00:00:00.000000000 Z
11
+ date: 2016-04-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: trenni
@@ -282,7 +282,6 @@ files:
282
282
  - spec/utopia/content_spec/content/test-partial.xnode
283
283
  - spec/utopia/content_spec/index.xnode
284
284
  - spec/utopia/content_spec/node/index.xnode
285
- - spec/utopia/content_spec/test.txt
286
285
  - spec/utopia/content_spec/test.xnode
287
286
  - spec/utopia/controller/action_spec.rb
288
287
  - spec/utopia/controller/middleware_spec.rb
@@ -338,6 +337,7 @@ files:
338
337
  - spec/utopia/setup_spec.rb
339
338
  - spec/utopia/static_spec.rb
340
339
  - spec/utopia/static_spec.ru
340
+ - spec/utopia/static_spec/test.txt
341
341
  - utopia.gemspec
342
342
  homepage: https://github.com/ioquatix/utopia
343
343
  licenses: []
@@ -397,7 +397,6 @@ test_files:
397
397
  - spec/utopia/content_spec/content/test-partial.xnode
398
398
  - spec/utopia/content_spec/index.xnode
399
399
  - spec/utopia/content_spec/node/index.xnode
400
- - spec/utopia/content_spec/test.txt
401
400
  - spec/utopia/content_spec/test.xnode
402
401
  - spec/utopia/controller/action_spec.rb
403
402
  - spec/utopia/controller/middleware_spec.rb
@@ -453,3 +452,4 @@ test_files:
453
452
  - spec/utopia/setup_spec.rb
454
453
  - spec/utopia/static_spec.rb
455
454
  - spec/utopia/static_spec.ru
455
+ - spec/utopia/static_spec/test.txt