ginatra 4.0.0 → 4.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/bin/ginatra +3 -2
- data/lib/ginatra/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c3bc365934685b28dda9d9ee7c621a6eadc02e88
|
|
4
|
+
data.tar.gz: 0b1f92352f4d3e6e1dbf7832210b2eae956c8af5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 08220b1c55263a025ee864ae5eb211b152b5d849d9c34ba17185c9fbf90f9ddb6e334af9690323ea2f6dd805e55159ca33579bd28835ff2a6f7ea47fa1361fc4
|
|
7
|
+
data.tar.gz: 672b6f04f194a11aeb6fdd05a885803ecd3f3c2caf056d6966d584f80c6ca70a253dc8ce3d864dda9d2181666c6e313822ce2d8ac7747ad63182341a981119b7
|
data/README.md
CHANGED
|
@@ -32,7 +32,7 @@ It's recommended to install it as a ruby gem, unless you know what you're doing.
|
|
|
32
32
|
Run the following command to install Ginatra from RubyGems:
|
|
33
33
|
|
|
34
34
|
```sh
|
|
35
|
-
gem install ginatra
|
|
35
|
+
gem install ginatra
|
|
36
36
|
```
|
|
37
37
|
|
|
38
38
|
Create config file (see [Configuration](#configuration) section in README).
|
data/bin/ginatra
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
$:.unshift File.expand_path('../../lib', __FILE__)
|
|
4
4
|
|
|
5
|
+
ENV['RACK_ENV'] ||= 'production'
|
|
6
|
+
|
|
5
7
|
require 'ginatra'
|
|
6
8
|
require 'optparse'
|
|
7
9
|
|
|
@@ -44,11 +46,10 @@ server_opts = {
|
|
|
44
46
|
end
|
|
45
47
|
|
|
46
48
|
opts.on 'Start Ginatra web server' do
|
|
47
|
-
environment = ENV['RACK_ENV'] || 'production'
|
|
48
49
|
rack_config = File.expand_path("#{__FILE__}/../../config.ru")
|
|
49
50
|
pid_file = File.expand_path("#{__FILE__}/../../ginatra.pid")
|
|
50
51
|
|
|
51
|
-
system "rackup -D -E #{
|
|
52
|
+
system "rackup -D -E #{ENV['RACK_ENV']} -P #{pid_file} -p #{options[:port]} -o #{options[:host]} #{rack_config}"
|
|
52
53
|
puts "Ginatra runs on #{options[:host]}:#{options[:port]}"
|
|
53
54
|
end
|
|
54
55
|
end,
|
data/lib/ginatra/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ginatra
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 4.0.
|
|
4
|
+
version: 4.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Nihad Abbasov
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date: 2015-01-
|
|
13
|
+
date: 2015-01-08 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: sinatra
|