teamster 0.6.0 → 0.6.1

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: 4e736afb7a2726e1fb47099a1f973798daf15dea
4
- data.tar.gz: 1c0f8d0134cfacb9277385158b1b4fe10d678e40
3
+ metadata.gz: 38b798f8b57a2391be2ce3588c257209a7161fd0
4
+ data.tar.gz: dd6722aebe67f52210b84cac3739cf91b156a69b
5
5
  SHA512:
6
- metadata.gz: 6fc3f93e01b8ec2ed889a6f7c685e8dad3e77f9815618885b818a3ab93208ba01fc5c628500aef548027099e31a2418713a65a30504c36c423d4fc8d0145fe45
7
- data.tar.gz: 658ce956cf16dcfcd1d9379b9f5185ae83d9a265468860984812abf5bf9288da8da07ed38f4262f2295e4bcfab6e012cab349a8b867e739bbdef4d1f19f21dd5
6
+ metadata.gz: d1256ef9ea0ca19ff6015d10179ceb6dcd3aa3271fd1bdcf3022a78d201ca02a895c8dc22576463758a21a38fecfe2df794c92150fb3febe444a28545e9d3258
7
+ data.tar.gz: 437dc59fa9b18722ca1593b022ee35e6baf03406a5e148cac30c8033d062d4c4fd29621a34219db2249fece8e1f446107c2db0b74ce89aa7f3dd0137c2042cba
data/VERSION CHANGED
@@ -1 +1,2 @@
1
- 0.6.0
1
+ 0.6.1
2
+
@@ -1,6 +1,6 @@
1
1
  body {
2
2
  max-width: 1000px;
3
- overflow : hidden;
3
+ overflow-x : hidden;
4
4
  margin: 0 auto;
5
5
  }
6
6
 
data/lib/teamster-cli.rb CHANGED
@@ -160,6 +160,14 @@ Options used with \"restart\":
160
160
  <<-CODE
161
161
  require 'teamster'
162
162
  Dir.glob("lib/*.rb").each {|file| require File.absolute_path(file)}
163
+
164
+ Dir.mkdir("log") unless Dir.exists?("log")
165
+ log_file = File.new("log/teamster-#{Time.now.strftime("%Y%m%d-%H%M")}.log", "a+")
166
+ $stdout.reopen(log_file)
167
+ $stderr.reopen(log_file)
168
+ $stdout.sync=true
169
+ $stderr.sync=true
170
+
163
171
  run Teamster::Core::App
164
172
  CODE
165
173
  end
@@ -193,6 +201,11 @@ module Teamster
193
201
  \# Register this class so it can be used.
194
202
  register self
195
203
 
204
+ configure do
205
+ enable :logging \# To log, use \"logger.info <MSG>\". Log messages are captured
206
+ \# in the file specified in config.ru.
207
+ end
208
+
196
209
  get '/#{name}/?' do
197
210
  erb :#{name}
198
211
  end
data/lib/teamster.rb CHANGED
@@ -9,7 +9,7 @@ require_relative 'teamster/login'
9
9
  module Teamster
10
10
  module Core
11
11
  class App < Sinatra::Base
12
- @@adapters = []
12
+ @@adapters = []
13
13
  @@views = []
14
14
  @@title = 'TEAMSTER'
15
15
  @@root = Dir.pwd
@@ -25,7 +25,7 @@ module Teamster
25
25
  set :root, @@root
26
26
  set :referrer, nil
27
27
  @@views << "#{settings.root}/views"
28
- enable :sessions
28
+ enable :sessions, :logging
29
29
  set :session_secret, 'THIS IS MY SESSION SECRET KEY'
30
30
  set :core_opts, YAML.load_file("#{settings.root}/#{CORE_CONFIG}")
31
31
  set_default_options_from settings.core_opts
@@ -56,7 +56,7 @@ module Teamster
56
56
 
57
57
  def self.use_adapter(teamster_adapter)
58
58
  if @@adapters.include? teamster_adapter
59
- puts "Adapter #{teamster_adapter} already registered!"
59
+ warn "Adapter #{teamster_adapter} already registered!"
60
60
  else
61
61
  @@adapters << teamster_adapter
62
62
  @@views << teamster_adapter.views
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: teamster
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nur Muhammad Bin Sirat
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-05 00:00:00.000000000 Z
11
+ date: 2014-06-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: puma