ro_thor 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/ro_thor.rb +5 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 116350325fc387640c87e0ecad08e410ae3d58ac
4
- data.tar.gz: 2fcfc5905f9d633cfab0471d5b5cd4027af9daf5
3
+ metadata.gz: f6e9e224f2e4bd14a7d2ed1bb63ad3fd8df560e1
4
+ data.tar.gz: 3cb658abb5fb2fbf67ab7a26f9e1e5429a5beaf1
5
5
  SHA512:
6
- metadata.gz: 332154620e73cd2a1987ae5259950c650759b5e2f73b0f519c1f5c02e194e2fc0886bb4852f7de933ac51448e58a52e272bcc79ece34a5d320a918459241a394
7
- data.tar.gz: 8ba3df2a9c0ac46b810709a369862f31109c3ef9ab0cb0f4013bc1ea28dde3548a46b15738ff089dfe8648220784955434aa525bfaf2a6b953ce3d60b0e1afae
6
+ metadata.gz: 22196a9f962c523b2f1fdb51f9b2d020cd4ce29147d22ff898abee16278c4be92b0a4ab20d04f65d0f4718a0ac784f2d0c7b2b1e61d7c9a4358f289ca1d937b2
7
+ data.tar.gz: 91c1036e856ff1712fb0ea73260e0a730f9876ee5917d79509850bf9718aebdfd57ae42f2ad63bca21426061e6b48a9440903092b9fda49a418d9309749d0d5a
data/lib/ro_thor.rb CHANGED
@@ -33,7 +33,11 @@ class RoThor < Thor
33
33
  end
34
34
 
35
35
  def buffer(*args, &blk)
36
- "/tmp/ro_thor_buffer"
36
+ p = "/tmp/ro_thor_buffer"
37
+ if File.world_writable?(p)
38
+ sys "sudo chmod 770 #{p}"
39
+ end
40
+ p
37
41
  end
38
42
 
39
43
  def write(f, *args, &blk)
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.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - ''