wpa_cli_web 0.0.11 → 0.0.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/bin/wpa_cli_web +12 -3
- data/wpa_cli_web.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YmEyYmYyZGE4ZjFmZDMxODk1YjM2MjJjYzBmNzJkOWMwOGY5OWNhYQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZTI3MjQzNGIyODhjMjg1NjFiMDc5OTZjOTAwYmYwNGE5MzQzMGI4ZQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MmY0MmY5ZjE1ODljZDAzYTMxMGZmOTUwODZlNzljYjM5Yjg5ZmEyZjQ3ZWE0
|
10
|
+
MTk4ODFjY2I4YjRiMzkwOWFjMmExMTg3Njc4ODU5M2YzZDVjOTM0ZjUyYjg4
|
11
|
+
NDI1OWIxNzJiODQxZjRmYWRmYmQxNThmYjE5MTBhZDYxY2Q1M2I=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NDUxYjMzMWExNjY5ZTE0ZjgyN2FjYmEyZTNkZWFmZTVkMTJhZjFjNDU4NDgx
|
14
|
+
YmI1OWY3NTU2NzJiZWFlZTY1YTk2NDg5ZjRlNjhmMmRmNzQ3NWY4Mzg1Yzcx
|
15
|
+
YzM1ZGYxYzIyZjg4ZThhMWJhMWY0ZDU0MTVmNjNhYjAwN2U0MWY=
|
data/bin/wpa_cli_web
CHANGED
@@ -2,13 +2,22 @@
|
|
2
2
|
|
3
3
|
require 'thin'
|
4
4
|
|
5
|
+
argv = ARGV
|
6
|
+
argv << ["-p", "3000"] unless ARGV.include?("-p")
|
7
|
+
|
8
|
+
# Set RACK_ENV based on command line parameters
|
9
|
+
# so it's available for Sinatra application
|
10
|
+
if ARGV.include?("-e")
|
11
|
+
ENV['RACK_ENV'] = ARGV[ ARGV.index('-e') + 1 ]
|
12
|
+
else
|
13
|
+
argv << ["-e", "production"]
|
14
|
+
ENV['RACK_ENV'] = "production"
|
15
|
+
end
|
16
|
+
|
5
17
|
# WpaCliWeb daemon command line interface script.
|
6
18
|
# Run wpa_cli_web -h to get more usage.
|
7
19
|
require File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib', 'wpa_cli_web.rb'))
|
8
20
|
rackup_file = File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib', 'wpa_cli_web', 'config.ru'))
|
9
21
|
|
10
|
-
argv = ARGV
|
11
22
|
argv << ["-R", rackup_file] unless ARGV.include?("-R")
|
12
|
-
argv << ["-p", "3000"] unless ARGV.include?("-p")
|
13
|
-
argv << ["-e", "production"] unless ARGV.include?("-e")
|
14
23
|
Thin::Runner.new(argv.flatten).run!
|
data/wpa_cli_web.gemspec
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = "wpa_cli_web"
|
7
|
-
spec.version = "0.0.
|
7
|
+
spec.version = "0.0.12"
|
8
8
|
spec.authors = ["Chris Lowis", "Andrew Nicolaou"]
|
9
9
|
spec.email = ["chris.lowis@gmail.com"]
|
10
10
|
spec.description = %q{Web interface for configuring wifi using wpa_cli}
|