ghedsh 1.1.4 → 1.1.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: 0aaa03a8f282329e069f71fbdec259e9aa385957
4
- data.tar.gz: c4514a161b8901749c0265399b05d47916abf97a
3
+ metadata.gz: deab6f32fa8ff39e7b786b897f22e47fc8b4e9f0
4
+ data.tar.gz: 905380e7e87790474322a6aeadba70e4bccc8150
5
5
  SHA512:
6
- metadata.gz: bb123a0e77127e55f256134d75e500bdd4d96b7871904dc9992ecb0a20d70f7078319c1821bd457a8422b81b82917c151c09755e03cd9eb4dddb292ab01664d8
7
- data.tar.gz: 94970e89e0e57507a6507e4170a2f4167b5bee3b5f84fa63d16f01518cdaab15e041919038432b300ae78d4d376a7b80c7e7488288db921bebaa6b7f40d327d0
6
+ metadata.gz: 3a41b20aa4a25970dd3938b188e453a92de39b3d9f3e65c1a83240e6eca514e800bd2366ddf2db9ed12c68648e852b35fdb133e8794520e4f3811f95858bbbb3
7
+ data.tar.gz: d49ca3bd6f7c97a1f195ced5e7964d3fa4b23008f9c0546e977f4748b6c2f560acb8bf7744c463d0f987c6383505bdece6e33e7407db7b7da6e32a83644a349b
@@ -21,6 +21,9 @@ class Sys
21
21
  if token!=""
22
22
  @client=self.login(token)
23
23
  config["User"]=@client.login
24
+ if argv_token!=nil
25
+ self.save_token(configure_path,argv_token)
26
+ end
24
27
  return config
25
28
  else
26
29
  return self.set_loguin_data_sh(config,configure_path)
@@ -32,7 +35,7 @@ class Sys
32
35
  end
33
36
 
34
37
  def save_token(path,token)
35
- File.write(path,token)
38
+ File.write("#{path}/ghedsh-token",token)
36
39
  end
37
40
 
38
41
  def login(token)
data/lib/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Ghedsh
2
- VERSION='1.1.4'
2
+ VERSION='1.1.5'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ghedsh
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.4
4
+ version: 1.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Javier Clemente