experiment_arguments_log 0.0.4 → 0.0.5

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: 025aca1062ac32329afdc9fc893a9ff076a10e88
4
- data.tar.gz: 7db47d24cf7a3e75a80ac5c908753049cd751c30
3
+ metadata.gz: c90ff68c44862bf761acc828fb47f451107b19bc
4
+ data.tar.gz: 9f8866fa3c0b236084cb53f785611163d4784588
5
5
  SHA512:
6
- metadata.gz: 290ecb5af6b0b471a38ad35292c38079f95660d549f437db2e50d0a6950a200ab6f5da2a9769e6306e3d818bd052ab24db16729647e6c3f7add46c1b62bbaceb
7
- data.tar.gz: a4ca9559604c74be35d6845155f824a27a8d1f65c0e47328a14333bb368d830f5e045703ee4140c013e65221536469f11627324e4d9dcbf29956cc9b1ef844ec
6
+ metadata.gz: 274c4928394f2a7c4b47c46e925f6a8f172b51b9cceded4863fa60fab25af3f084480ca21d3d69ce45d1fcb4898acc25df86c14e81a4801432f790a809a7d6ee
7
+ data.tar.gz: 3f08e20396452f8cd10197e7b96efb0ec25a0a3bee4428990d35253a38c69af04233e77fccc4b6f8c7d1e8b53a3d473a88826d9b398d166a3e1eb9f31bd092b6
@@ -40,9 +40,11 @@ def experiment_arguments_log
40
40
  output.puts 'File access time: %s' % [argument_file.atime]
41
41
  output.puts 'File modification time: %s' % [argument_file.mtime]
42
42
  output.puts 'File size: %s' % [argument_file.size]
43
- output.puts 'Content:'
44
- 5.times do
45
- output.puts argument_file.gets(1024) || break
43
+ if argument_file.file?
44
+ output.puts 'Content:'
45
+ 5.times do
46
+ output.puts argument_file.gets(1024) || break
47
+ end
46
48
  end
47
49
 
48
50
  output.puts
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: experiment_arguments_log
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Krzysztof Wróbel
@@ -39,7 +39,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
39
39
  version: '0'
40
40
  requirements: []
41
41
  rubyforge_project:
42
- rubygems_version: 2.4.5
42
+ rubygems_version: 2.2.2
43
43
  signing_key:
44
44
  specification_version: 4
45
45
  summary: Logs experiment execution arguments and output.