Skip to content

Commit 325aaf4

Browse files
committed
move db to logutils-activerecord
1 parent 7654110 commit 325aaf4

23 files changed

+37
-431
lines changed

.gitignore

-10
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,3 @@ tmp
1717
_yardoc
1818
doc/
1919

20-
21-
#############
22-
# ignore komodo project files
23-
24-
*.kpf
25-
26-
###################
27-
# ignore dbs (e.g. log.db, sport.db, football.db, world.db etc.)
28-
29-
*.db

.travis.yml

-16
This file was deleted.

Gemfile

-2
This file was deleted.

Manifest.txt

-9
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,7 @@ Manifest.txt
33
README.md
44
Rakefile
55
lib/logutils.rb
6-
lib/logutils/db.rb
7-
lib/logutils/db/deleter.rb
8-
lib/logutils/db/models.rb
9-
lib/logutils/db/schema.rb
106
lib/logutils/logger.rb
11-
lib/logutils/server.rb
12-
lib/logutils/server/public/style.css
13-
lib/logutils/server/views/_version.erb
14-
lib/logutils/server/views/index.erb
15-
lib/logutils/server/views/layout.erb
167
lib/logutils/version.rb
178
test/helper.rb
189
test/test_logger.rb

README.md

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# logutils - Another Logger in Ruby
22

3-
[![Build Status](https://secure.travis-ci.org/geraldb/logutils.png?branch=master)](http://travis-ci.org/geraldb/logutils)
43

54
* home :: [github.com/rubylibs/logutils](https://github.com/rubylibs/logutils)
65
* bugs :: [github.com/rubylibs/logutils/issues](https://github.com/rubylibs/logutils)

Rakefile

+8-8
Original file line numberDiff line numberDiff line change
@@ -3,26 +3,26 @@ require './lib/logutils/version.rb'
33

44

55
Hoe.spec 'logutils' do
6-
6+
77
self.version = LogKernel::VERSION
8-
8+
99
self.summary = 'Another Logger'
1010
self.description = summary
1111

12-
self.urls = ['https://github.com/geraldb/logutils']
13-
12+
self.urls = ['https://github.com/rubylibs/logutils']
13+
1414
self.author = 'Gerald Bauer'
1515
self.email = '[email protected]'
16-
16+
1717
# switch extension to .markdown for gihub formatting
1818
# -- NB: auto-changed when included in manifest
1919
self.readme_file = 'README.md'
2020
self.history_file = 'History.md'
21-
21+
2222
self.licenses = ['Public Domain']
2323

2424
self.spec_extras = {
25-
:required_ruby_version => '>= 1.9.2'
25+
required_ruby_version: '>= 1.9.2'
2626
}
27-
27+
2828
end

boot.rb

-32
This file was deleted.

config.ru

-2
This file was deleted.

lib/logutils.rb

+5-6
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,12 @@
1515

1616
# our own code
1717

18-
require 'logutils/version'
19-
18+
require 'logutils/version' # NOTE: let version always go first
2019
require 'logutils/logger'
2120

2221

2322
module LogKernel
2423

25-
def self.root
26-
"#{File.expand_path( File.dirname(File.dirname(__FILE__)) )}"
27-
end
28-
2924
=begin # not needed for now; keep it for later
3025
def self.config_path
3126
"#{root}/config"
@@ -81,3 +76,7 @@ def logger
8176
end
8277

8378
end # module LogUtils
79+
80+
81+
## say hello
82+
puts LogKernel.banner if $DEBUG || (defined?($RUBYLIBS_DEBUG) && $RUBYLIBS_DEBUG)

lib/logutils/db.rb

-77
This file was deleted.

lib/logutils/db/deleter.rb

-15
This file was deleted.

lib/logutils/db/models.rb

-13
This file was deleted.

lib/logutils/db/schema.rb

-44
This file was deleted.

lib/logutils/logger.rb

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# encoding: utf-8
12

23
module LogKernel
34

lib/logutils/server.rb

-57
This file was deleted.

0 commit comments

Comments
 (0)