nezu 0.5.15 → 0.5.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (5) hide show
  1. data/Gemfile.lock +2 -2
  2. data/README.md +1 -1
  3. data/VERSION +1 -1
  4. data/lib/nezu.rb +6 -5
  5. metadata +2 -8
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- nezu (0.5.15)
4
+ nezu (0.5.17)
5
5
  activerecord (~> 3.2.11)
6
6
  activesupport (~> 3.2.11)
7
7
  amqp
@@ -50,7 +50,7 @@ GEM
50
50
  eventmachine (1.0.3)
51
51
  i18n (0.6.1)
52
52
  json (1.7.7)
53
- multi_json (1.7.1)
53
+ multi_json (1.7.2)
54
54
  mysql2 (0.3.11)
55
55
  rake (10.0.3)
56
56
  rdoc (3.12.2)
data/README.md CHANGED
@@ -22,5 +22,5 @@ It has two major modes of usage:
22
22
  *BIGFATALPHAWARNING:*
23
23
  This hasn`t been fully tested yet. So if your working on a nuclear plant or so, go back to sleep this will be a lower risk
24
24
 
25
- This Software is released under the Terms of General Public License. You can find a copy of it in this project [here](gpl3.txt "GPLv3 Text")
25
+ This Software is released under the Terms of General Public License. You can find a copy of it in this project in the file [gpl3.txt](gpl3.txt "GPLv3 Text")
26
26
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.15
1
+ 0.5.17
data/lib/nezu.rb CHANGED
@@ -125,17 +125,18 @@ module Nezu
125
125
  # e.g. Nezu.logger.info('foobar')
126
126
  def self.logger
127
127
  if @@logger.nil?
128
- log_target = {
128
+ log_target = Hash.new(Nezu.root.join('log/', "nezu_#{Nezu.env}.log")).merge({
129
129
  'development' => STDOUT,
130
- 'test' => nil,
131
- 'production' => File.expand_path(File.join('log/', 'nezu.log'))
132
- }
130
+ 'test' => nil
131
+ })
133
132
  @@logger = Logger.new(log_target[Nezu.env])
134
133
  @@logger.formatter = Nezu::CustomLogFormatter.new
134
+ @@logger.level = Nezu.env.development? ? Logger::DEBUG : Logger::INFO
135
135
  end
136
+ debugger
136
137
  @@logger
137
138
  end
138
139
  end
139
140
 
140
- require 'debugger' unless Nezu.env.production?
141
+ require 'debugger' if Nezu.env.development? || Nezu.env.test?
141
142
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nezu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.15
4
+ version: 0.5.17
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-03-28 00:00:00.000000000 Z
13
+ date: 2013-04-03 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: amqp
@@ -274,18 +274,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
274
274
  - - ! '>='
275
275
  - !ruby/object:Gem::Version
276
276
  version: '0'
277
- segments:
278
- - 0
279
- hash: 3887075112016758564
280
277
  required_rubygems_version: !ruby/object:Gem::Requirement
281
278
  none: false
282
279
  requirements:
283
280
  - - ! '>='
284
281
  - !ruby/object:Gem::Version
285
282
  version: '0'
286
- segments:
287
- - 0
288
- hash: 3887075112016758564
289
283
  requirements: []
290
284
  rubyforge_project:
291
285
  rubygems_version: 1.8.23