postrest 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/app.rb +2 -0
  3. metadata +16 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a0ad7a6802b67d90ce1e2fc3a418bc429a7b9328
4
- data.tar.gz: 4534477db59ea29d996c88b19c8a45c1b492b49c
3
+ metadata.gz: 5bbd3ddb75df5360d27e049bd8c4b5bc67625cce
4
+ data.tar.gz: 118afd3dd7ef034f9bf22f139fdd2efa3a4b3a80
5
5
  SHA512:
6
- metadata.gz: bed3b471866d0dfc919e06ac22a2ca74f19a8951be5af12dd036bb04254723fba3b89d04574cec3f7004dfecaa362f3b650f86b3ecede47064d2676221bb8eb6
7
- data.tar.gz: f2ab8d1625f1b6109ca3c8b349a19c2f69581848c263ee9e61a71b6a84a00f74ec4b416db8f1ffb2eb99c4288133bf92fb2fb1ad7da2834c9c2cf6cc617dd124
6
+ metadata.gz: 9084502a5ae1c5ff0385b57fc549f6520f62c15a1eb3659135886630b986f07d37733858e0063d611671097a89fa239e33c60f66df7fddc86513cb173bb69cc2
7
+ data.tar.gz: 98fb08f157b0315ddc64ea70849dfeb6e34f815b361165073f848858025f93237eab9e11a786939bd744b8338db587a6b238483ba0dddb5d33b9c68d9a8d8363
data/lib/app.rb CHANGED
@@ -7,6 +7,8 @@ require 'json'
7
7
  class PostRest < Sinatra::Base
8
8
  set :static, true
9
9
  set :public_folder, "#{File.expand_path('..', __FILE__)}/../public"
10
+ set :bind, ENV['BIND'] || '0.0.0.0'
11
+ set :port, ENV['PORT'] || 4567
10
12
 
11
13
  get '/' do
12
14
  send_file settings.public_folder + '/index.htm'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: postrest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Guy Irvine
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-04 00:00:00.000000000 Z
11
+ date: 2016-05-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - '>='
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: pg
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - '>='
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: sinatra
43
57
  requirement: !ruby/object:Gem::Requirement