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 +4 -4
- data/VERSION +2 -1
- data/content/public/css/styles.css +1 -1
- data/lib/teamster-cli.rb +13 -0
- data/lib/teamster.rb +3 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 38b798f8b57a2391be2ce3588c257209a7161fd0
|
4
|
+
data.tar.gz: dd6722aebe67f52210b84cac3739cf91b156a69b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d1256ef9ea0ca19ff6015d10179ceb6dcd3aa3271fd1bdcf3022a78d201ca02a895c8dc22576463758a21a38fecfe2df794c92150fb3febe444a28545e9d3258
|
7
|
+
data.tar.gz: 437dc59fa9b18722ca1593b022ee35e6baf03406a5e148cac30c8033d062d4c4fd29621a34219db2249fece8e1f446107c2db0b74ce89aa7f3dd0137c2042cba
|
data/VERSION
CHANGED
@@ -1 +1,2 @@
|
|
1
|
-
0.6.
|
1
|
+
0.6.1
|
2
|
+
|
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
|
-
|
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.
|
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-
|
11
|
+
date: 2014-06-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: puma
|