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 CHANGED
@@ -18,6 +18,8 @@ Gem::Specification.new do |s|
18
18
  s.add_dependency 'yajl-ruby', '>=0.8.2'
19
19
  s.add_dependency 'sinatra-reloader', '>=0.5.0'
20
20
 
21
+ s.add_dependency 'thin'
22
+
21
23
  s.files = `git ls-files`.split("\n")
22
24
 
23
25
  s.require_paths = ['lib', 'test']
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
@@ -2,7 +2,7 @@ module Berlin
2
2
  module AI
3
3
  MAJOR = 0
4
4
  MINOR = 0
5
- BUILD = 21
5
+ BUILD = 22
6
6
 
7
7
  VERSION = "#{MAJOR}.#{MINOR}.#{BUILD}"
8
8
  end
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.21
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-20 00:00:00.000000000 Z
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