berlin-ai 0.0.21 → 0.0.22
Sign up to get free protection for your applications and to get access to all the features.
- data/berlin-ai.gemspec +2 -0
- data/lib/berlin-ai.rb +4 -2
- data/lib/version.rb +1 -1
- metadata +18 -2
data/berlin-ai.gemspec
CHANGED
data/lib/berlin-ai.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
require 'pry'
|
2
1
|
require 'optparse'
|
3
2
|
require 'sinatra'
|
3
|
+
require 'logger'
|
4
4
|
require 'yajl/json_gem'
|
5
5
|
|
6
6
|
puts " __ __ __ _______ _______ "
|
@@ -13,6 +13,9 @@ puts
|
|
13
13
|
require File.expand_path( File.dirname( __FILE__ ) ) + "/ai/#{file}"
|
14
14
|
end
|
15
15
|
|
16
|
+
set :verbose, true
|
17
|
+
set :logger, Logger.new('berlin.log')
|
18
|
+
|
16
19
|
# Parse options
|
17
20
|
OptionParser.new do |opts|
|
18
21
|
opts.on("-h", "--help", "Display this screen" ) do
|
@@ -33,7 +36,6 @@ OptionParser.new do |opts|
|
|
33
36
|
end
|
34
37
|
|
35
38
|
opts.on("-l", "--log [LOGFILE]", "Create a log file for incoming requests (defaults to 'berlin.log')") do |l|
|
36
|
-
require 'logger'
|
37
39
|
|
38
40
|
set :logger, Logger.new( l || 'berlin.log' )
|
39
41
|
end
|
data/lib/version.rb
CHANGED
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: berlin-ai
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.0.
|
5
|
+
version: 0.0.22
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Christian Blais
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2013-07-
|
14
|
+
date: 2013-07-22 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -61,6 +61,22 @@ dependencies:
|
|
61
61
|
- !ruby/object:Gem::Version
|
62
62
|
version: 0.5.0
|
63
63
|
none: false
|
64
|
+
- !ruby/object:Gem::Dependency
|
65
|
+
version_requirements: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - ! '>='
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
70
|
+
none: false
|
71
|
+
name: thin
|
72
|
+
type: :runtime
|
73
|
+
prerelease: false
|
74
|
+
requirement: !ruby/object:Gem::Requirement
|
75
|
+
requirements:
|
76
|
+
- - ! '>='
|
77
|
+
- !ruby/object:Gem::Version
|
78
|
+
version: '0'
|
79
|
+
none: false
|
64
80
|
description: Berlin Artificial Intelligence
|
65
81
|
email:
|
66
82
|
- christ.blais@gmail.com
|