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.
Files changed (4) hide show
  1. checksums.yaml +8 -8
  2. data/bin/wpa_cli_web +12 -3
  3. data/wpa_cli_web.gemspec +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- OTRkMWRiODEzY2Y2N2M1M2U2YzFjYmUyMDUwNzlkZTc5YmFkNWNhYg==
4
+ YmEyYmYyZGE4ZjFmZDMxODk1YjM2MjJjYzBmNzJkOWMwOGY5OWNhYQ==
5
5
  data.tar.gz: !binary |-
6
- OGE0OWQ3MjlkYzRhMDcwOWQ1NWIwM2FmZjgzYzVkZjdkYWMzODFmZg==
6
+ ZTI3MjQzNGIyODhjMjg1NjFiMDc5OTZjOTAwYmYwNGE5MzQzMGI4ZQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZDRkOTk0N2I4YWNhNWJjMTg5NWJlNDk3NTRkZmQ5YWMwY2NhNDUwMjk4ZTAy
10
- ZGM5ZWJkZmY5MjlhNjhmMmU2ZTBlZTlkMTk2NmU4NmE5NGNiYWNiMzExMGMx
11
- YWU4NGQ5NGYwZGE3ZGY5MGIzM2FlOWMzYWE2NjA5ODczZDYzYjE=
9
+ MmY0MmY5ZjE1ODljZDAzYTMxMGZmOTUwODZlNzljYjM5Yjg5ZmEyZjQ3ZWE0
10
+ MTk4ODFjY2I4YjRiMzkwOWFjMmExMTg3Njc4ODU5M2YzZDVjOTM0ZjUyYjg4
11
+ NDI1OWIxNzJiODQxZjRmYWRmYmQxNThmYjE5MTBhZDYxY2Q1M2I=
12
12
  data.tar.gz: !binary |-
13
- OWI0OWM4MDUxYjI3OTY1YTMyYzY5YzI0NDQ0MWM1YmUwYWJkZmU2ZDQ5OGMx
14
- ZjE0ZmI0YjY1ZmZiYjAzZDI3NDA2N2RhMGYzZDMwODAwZjI4MWE1ZmE2NzI0
15
- N2I0NjhmY2JhNWFlZDI0ZDllNjMzYTUyYTdlNjU3YTdkMmRmNmM=
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.11"
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}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wpa_cli_web
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
4
+ version: 0.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Lowis