mccloud 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mccloud (0.0.5)
4
+ mccloud (0.0.6)
5
5
  fog
6
6
  highline (~> 1.6.1)
7
7
  json
@@ -367,8 +367,9 @@ module Mccloud
367
367
  puts
368
368
 
369
369
  if (confirmed)
370
- fogfile=File.new("#{File.join(ENV['HOME'],".fog")}","w")
371
- FileUtils.chmod(0600,fogfile)
370
+ fogfilename="#{File.join(ENV['HOME'],".fog")}"
371
+ fogfile=File.new(fogfilename,"w")
372
+ FileUtils.chmod(0600,fogfilename)
372
373
  fogfile.puts "#{snippet}"
373
374
  fogfile.close
374
375
  else
@@ -117,10 +117,11 @@ module Mccloud
117
117
  confirmed=agree("Do you wan to save this?: ")
118
118
 
119
119
  if (confirmed)
120
- fogfile=File.new("#{File.join(ENV['HOME'],".fog")}","w")
120
+ fogfilename="#{File.join(ENV['HOME'],".fog")}"
121
+ fogfile=File.new(fogfilename,"w")
121
122
  fogfile.puts "#{snippet}"
122
123
  fogfile.close
123
- FileUtils.chmod(0600,fogfile)
124
+ FileUtils.chmod(0600,fogfilename)
124
125
  else
125
126
  puts "Ok, we won't write it, but we continue with your credentials in memory"
126
127
  exit -1
@@ -1,3 +1,3 @@
1
1
  module Mccloud
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mccloud
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 5
10
- version: 0.0.5
9
+ - 6
10
+ version: 0.0.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Patrick Debois