workspace 1.0.2 → 1.0.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: 4e821d7eb0d6db9f7f7fbc53eccefc869d26ebc6
4
- data.tar.gz: aaf8eac45192f79e60fb3c50f6e65f30aeb41fd7
3
+ metadata.gz: 031f40d31ecd42817ad0dfedd53807b777b5cfc6
4
+ data.tar.gz: 1d999111913f59287850e02e453b93f74e17ecf1
5
5
  SHA512:
6
- metadata.gz: ba0c31d40e477f6efe004a5ecf37fb5ece8d663b75f0a87d7bcfe3eab79003ff78470028f5b8056bc2eace2f9f5eb8b9114004dd9450463b7e94277c68d28c2d
7
- data.tar.gz: e2499ed7222e7a106a950ef11d5dca0d2ee55121ff79cf91bc157af1b1892fc7a24698fd7ed4742e467f02dd94dd7729c79c073ed918dadc4636d67531973b11
6
+ metadata.gz: 2eee7e3e85e281093565194335e9e494823a1b7f7c04c57adeb34277f7b6ec7b0559f51ca8e8e7fb8bc6d32608d4335efb63cc0a7d4d0fd9feeef0261dba5fe1
7
+ data.tar.gz: 6f3f75d9d6693e903b7ee1fbea89caf58165d1c68a7a8d6b67de1a10f3827f54ab0dcf72ba1a6ca341a2dffe341e51420d895d3c6263953bef38b05c23346cd8
@@ -30,6 +30,10 @@ module Workspace
30
30
  type ? type.to_s : nil
31
31
  end
32
32
 
33
+ def size
34
+ ::File.size(to_s)
35
+ end
36
+
33
37
  def relative_path(relative_dir = nil)
34
38
  if relative_dir
35
39
  relative_dir = relative_dir.dir if relative_dir.class == Workspace::File
@@ -1,3 +1,3 @@
1
1
  module Workspace
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: workspace
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tobias Strebitzer