postrest 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/app.rb +2 -0
- metadata +16 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5bbd3ddb75df5360d27e049bd8c4b5bc67625cce
|
4
|
+
data.tar.gz: 118afd3dd7ef034f9bf22f139fdd2efa3a4b3a80
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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-
|
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
|