rpush_webui 0.1.1 → 0.1.2

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: b5dbefdd1748f572990e810abda51ce769796487
4
- data.tar.gz: 235f094de6d86081fac02163b3480b1827e4a8b0
3
+ metadata.gz: 52a51f42eed25f32a0d7578022c0742053df8dea
4
+ data.tar.gz: ab18326d7ea3df6693300a4e4d3ceff91e8e5a65
5
5
  SHA512:
6
- metadata.gz: eb88088ae36be159e56cff1404d905a10d4e946c385ae66a29ceba51030e0c5630e144eca06a51b1bed16ebf2ff81143ed4b12e423cbc4ad5469e0c963e29691
7
- data.tar.gz: 02b41725aafbc6f437d3443d1cc8cde4057e989d6d7e2f4e0ee5b2af070346b408b0e72b986926d9e7c3132202c4a4301659fb60ff0973d5f1293143e69847a1
6
+ metadata.gz: 5899a9b7dbb103a773230f9e589c2b2f1b9dfb51eecf612e8db788109e47d9dce66c8c71020c4c44308044538786fee58345909cc15684dc598d6ec8dd80b1a0
7
+ data.tar.gz: 5dc04108148121b82cea032b926f804d8ba05d213ea1a4437b60bdc52ecceb24d203043a822a3fc34f8dc839ff60263faad5f0bc8f9e3e3c084ce587b70645b9
@@ -1 +1,3 @@
1
1
  rpush_config_file: './config/rpush.rb'
2
+ webui_host: 'localhost'
3
+ webui_port: 8081
@@ -1,8 +1,8 @@
1
1
  require 'rpush'
2
2
  require 'yaml'
3
3
 
4
- config = YAML.load_file('config/rpush_webui.yml')
5
- require config['rpush_config_file']
4
+ @config = YAML.load_file('config/rpush_webui.yml')
5
+ require @config['rpush_config_file']
6
6
 
7
7
  class Hash
8
8
  def map_value
@@ -1,3 +1,3 @@
1
1
  module RpushWebui
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
data/lib/webui.rb CHANGED
@@ -3,7 +3,8 @@ require 'sinatra'
3
3
  require 'sinatra/json'
4
4
  require_relative 'models/notifications'
5
5
 
6
- set :port, 8080
6
+ set :host, @config['webui_host']
7
+ set :port, @config['webui_port']
7
8
 
8
9
  get '/' do
9
10
  slim :index
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rpush_webui
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nikolay Murzin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-19 00:00:00.000000000 Z
11
+ date: 2015-02-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler