ro_thor 0.1.1 → 0.1.2

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/ro_thor.rb +4 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 90449870dd785b21f40d1977ec848d1437577618
4
- data.tar.gz: 53045cfa397bd0b59d653404471ced3efe375fbf
3
+ metadata.gz: d71a297f288cc1afea834db424dbe0e309baf109
4
+ data.tar.gz: 27e84a3cb811314cb918fb7aefde6f2a65dc2045
5
5
  SHA512:
6
- metadata.gz: edffca509c053c703af4693f23ebb4ccacbfd9cb215c44d886290be65d8f294d1a95f91bfdef3129dd2638be8bc2f90d2650b625414a989139e8d808b71d223c
7
- data.tar.gz: a5d773949c71147837ee781cfd7e49c3c9f19fa5fae0181025bf8c43a4148d5dce367506c7fed5954f32384b1c15a86fa0befcc57444a828307f8dda474bb54e
6
+ metadata.gz: 0a906b9d77ac7ab7bab99b6895a5c32fdb40947864cf893b23656b4bd94ba4c8ab8fd42a4b69382e1d7a0c902cd900e7c41a8927d5ec756cae0f09ff2b92907f
7
+ data.tar.gz: bc47e4696d0b73ba5eac2f0e17d2ad578c8a6b4a300d9ab6d8609463ed3a4e0313370e5c403357447da86bb85ab6f651aab381ce9a4735d2566ca8c3b5dabf2d
data/lib/ro_thor.rb CHANGED
@@ -34,8 +34,10 @@ class RoThor < Thor
34
34
 
35
35
  def buffer(*args, &blk)
36
36
  p = "/tmp/ro_thor_buffer"
37
- unless File.world_writable?(p)
38
- sys "sudo chmod 777 #{p}"
37
+ if test(?f, p)
38
+ unless File.world_writable?(p)
39
+ sys "sudo chmod 777 #{p}"
40
+ end
39
41
  end
40
42
  p
41
43
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ro_thor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - ''