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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: da7d713fca1a0a2164d09c4af9e0e68446f24e3b
4
- data.tar.gz: 5dc258e8d928ba24192294dabc70be2b6555a124
3
+ metadata.gz: c3bc365934685b28dda9d9ee7c621a6eadc02e88
4
+ data.tar.gz: 0b1f92352f4d3e6e1dbf7832210b2eae956c8af5
5
5
  SHA512:
6
- metadata.gz: 9f724bc83773853892f4250f32858751dbc690ff629c0829c18cbb354affa9047557dfbfece6c1c3d39188cd291621c778540940a7629a9a6d4e55b4b20ca908
7
- data.tar.gz: b8da76765605a82e326d2c4722644c49614934cda7a555758d3ff5dcf040e921a14a20250667282d7791fb4d0bafa2742bc1eabd8989c824872a35c1f6b1efa5
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 -v 4.0.0
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 #{environment} -P #{pid_file} -p #{options[:port]} -o #{options[:host]} #{rack_config}"
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,
@@ -1,4 +1,4 @@
1
1
  module Ginatra
2
- VERSION = "4.0.0"
2
+ VERSION = "4.0.1"
3
3
  RELEASE_NAME = "Aurora"
4
4
  end
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.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-07 00:00:00.000000000 Z
13
+ date: 2015-01-08 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: sinatra