hotspot-login 0.1.0 → 0.1.1

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/bin/hl.rb +14 -1
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a71203d114609d71636bb4490ccd636d48246745
4
- data.tar.gz: 4fe532f0c83f237f7f639bc3a8a1b68c3a4bcf22
3
+ metadata.gz: 2f2a2bde695dbb39fb36d79720ae546c0221360f
4
+ data.tar.gz: a56bc69056761a9f1fb51fe2ae4cc5ca1e989bde
5
5
  SHA512:
6
- metadata.gz: 27a94406c1129a9f2f5b27d33e0900a597bd301e19a69492b4649d3e7cdccc293b1b5e2dfad270d6deea8344e47f5ee2403eeffdf6a8d5020cf84e01cfbe1b65
7
- data.tar.gz: 0001cc81897e290c609e0328e9ad05b0d12c1cf194392c12d10a5e8548792fe9baf8ca55b9287d4f6bc56f2c789b93586f86efaea899208c4ecce64844c6a5c2
6
+ metadata.gz: 61227fc9a33e69109051fe3349a779076c49f1d56ce05976ae2fdcb26974d5e334a25be84b72ae2a1f1dd97bc08e0121082286d8a11edabf95e0f40eefa49ab7
7
+ data.tar.gz: 42140220a52281f3f37be2461dacf6b5835870fc010416075c1be6b180e00bd38f5d7ffdb9676344eec3f7c1ff475a905afcf4085917566dac77a05328d02a97
data/bin/hl.rb CHANGED
@@ -24,7 +24,7 @@ class Hotspot_Login
24
24
  options[:verbose] = true
25
25
  end
26
26
 
27
- opts.on("-h", "--hotspot HOTSPOT", "Hotspot") do |hotspot|
27
+ opts.on("-h", "--hotspot HOTSPOT", "Hotspot: sfr or free or uppa") do |hotspot|
28
28
  options[:hotspot] = hotspot
29
29
  end
30
30
 
@@ -52,6 +52,19 @@ class Hotspot_Login
52
52
  "free" => {type: "free"}
53
53
  }
54
54
 
55
+ path = Dir.home + "/.config/hl.yml"
56
+
57
+ if not File.exists? path
58
+ open(path, 'w') do |f|
59
+ f.puts "# profile:\n"
60
+ f.puts "# hotspot: sfr or free or uppa\n"
61
+ f.puts "# user:\n"
62
+ f.puts "# password:\n"
63
+ f.puts "profile: null:\n"
64
+ end
65
+ end
66
+
67
+
55
68
  file = File.open(Dir.home + "/.config/hl.yml")
56
69
  config.merge! YAML.load(file)
57
70
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hotspot-login
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adrien Jeser
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-25 00:00:00.000000000 Z
11
+ date: 2013-12-26 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Hotspot Login
14
14
  email: adrien@jeser.me
@@ -19,7 +19,7 @@ extra_rdoc_files: []
19
19
  files:
20
20
  - lib/hl.rb
21
21
  - bin/hl.rb
22
- homepage: http://rubygems.org/gems/hl
22
+ homepage: https://github.com/Izanami/hotspot-login
23
23
  licenses:
24
24
  - GPLv3
25
25
  metadata: {}