jubilee 1.1.0.rc2 → 1.1.0.rc3

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: 38c7ff14a0556dd319caf62874e40fc69a1380c2
4
- data.tar.gz: 3022b1786dda6ac2a2cef500e5f128996225159c
3
+ metadata.gz: 0e9b77c1f5776bb0e4251bac15ce5b1f6b060243
4
+ data.tar.gz: e350f837ea9dee79c3101935acf149b2ef5dc392
5
5
  SHA512:
6
- metadata.gz: ccf4e457c07dd123ed41aed249cb3a8c632b789dfeb5c9a937fc52274dc8b857cba2e89e05dee742e0937cf312ef019dba25d6ba931675dc98c8baaf7c8aa82d
7
- data.tar.gz: 2dffccc0cd663b3254123e7b3b0f81c89acea0e1ffbd0c9a9af2335218f768ab4688c1835a22d480319f747d4900285d4b44050ef5c5581c55e9750e7860344e
6
+ metadata.gz: a986fa3f445e47f1c60aee63e735068e874fd822217e7f20a0fce8384ed64caac236fe683ae6ed1be4dae4cb9f2512ebd241d0a858f60459179369daec34ad71
7
+ data.tar.gz: ac3b291314c9a0d74a0bbb51690661a01a627a6751fe72fd7d5aeb33cb24a08313e02345b71aac40c98241a02d142fb0a68de5ad8842d36f3d67d49d64e1a0aa
@@ -2,4 +2,4 @@ source "https://rubygems.org"
2
2
  gem 'sinatra'
3
3
  gem 'haml'
4
4
 
5
- gem 'jubilee', '~> 1.0.2'
5
+ gem 'jubilee', '1.1.0.rc2'
@@ -1,11 +1,10 @@
1
1
  GEM
2
2
  remote: https://rubygems.org/
3
3
  specs:
4
- ffi (1.9.3)
5
4
  ffi (1.9.3-java)
6
5
  haml (4.0.4)
7
6
  tilt
8
- jubilee (1.0.2)
7
+ jubilee (1.1.0.rc2)
9
8
  rack (>= 1.4.1)
10
9
  spoon (~> 0.0.4)
11
10
  rack (1.5.2)
@@ -24,5 +23,5 @@ PLATFORMS
24
23
 
25
24
  DEPENDENCIES
26
25
  haml
27
- jubilee (~> 1.0.2)
26
+ jubilee (= 1.1.0.rc2)
28
27
  sinatra
data/lib/jubilee/cli.rb CHANGED
@@ -2,6 +2,8 @@ require 'optparse'
2
2
  require 'jubilee'
3
3
  require 'java'
4
4
 
5
+ java_import java.lang.System
6
+
5
7
  module Jubilee
6
8
  class CLI
7
9
  # Parsed options
@@ -11,6 +13,13 @@ module Jubilee
11
13
  setup_options
12
14
  end
13
15
 
16
+ def test_java_version!(version)
17
+ if version[0..2] < "1.7"
18
+ puts("Error: Jubilee requires JDK 1.7.0 or later. You can use the official Oracle distribution or the OpenJDK version.")
19
+ exit 1
20
+ end
21
+ end
22
+
14
23
  def parse_options
15
24
  argv = @argv.dup
16
25
  @parser.parse! argv
@@ -20,6 +29,7 @@ module Jubilee
20
29
  end
21
30
 
22
31
  def run
32
+ test_java_version!(System.getProperties["java.runtime.version"])
23
33
  parse_options
24
34
 
25
35
  ENV["RACK_ENV"] = @options[:environment]
Binary file
@@ -3,7 +3,7 @@ module Jubilee
3
3
  MAJOR = 1
4
4
  MINOR = 1
5
5
  PATCH = 0
6
- BUILD = 'rc2'
6
+ BUILD = 'rc3'
7
7
 
8
8
  STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join('.')
9
9
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jubilee
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0.rc2
4
+ version: 1.1.0.rc3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Isaiah Peng
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-31 00:00:00.000000000 Z
11
+ date: 2014-01-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack