jlog-rails 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,4 +1,4 @@
1
1
  source "http://rubygems.org"
2
2
 
3
3
  # Specify your gem's dependencies in jlog-rails.gemspec
4
- gemspec
4
+ gemspec
data/jlog-rails.gemspec CHANGED
@@ -4,7 +4,7 @@ require File.expand_path("lib/jlog/version")
4
4
  Gem::Specification.new do |s|
5
5
  s.name = 'jlog-rails'
6
6
  s.version = Jlog::VERSION
7
- s.date = '2012-10-18'
7
+ s.date = '2012-10-24'
8
8
  s.summary = "Jlog for Rails"
9
9
  s.description = "A lightweight JavaScript logger (for Rails)"
10
10
  s.authors = ["Helios Technologies Ltd."]
data/lib/jlog/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Jlog
2
- VERSION = '0.0.3'
2
+ VERSION = '0.0.4'
3
3
  end
@@ -125,7 +125,6 @@ JLog.ERROR = 4;
125
125
  JLog.FATAL = 5;
126
126
  JLog.NONE = 6;
127
127
 
128
- JLog.VERSION = "0.0.3b3";
129
128
 
130
129
  JLog.prototype.debug = function() {
131
130
  if (this.getLevel() <= JLog.DEBUG) {
@@ -172,22 +171,18 @@ JLog.prototype._log = function() {
172
171
  }
173
172
 
174
173
  msgString += args.join(', ');
175
- for (var i in appenders) {
174
+ for(i = 0; i < appenders.length; ++i) {
176
175
  appenders[i].log(msgString);
177
176
  }
178
177
  }
179
178
  };
180
179
 
181
180
  JLog.ConsoleAppender = function() {
182
- return {
183
- name: 'ConsoleAppender',
181
+ this.name = 'ConsoleAppender';
184
182
 
185
- log: function(msg) {
186
- if (window.console) {
187
- window.console.log(msg);
188
- }
189
- }
190
- }
183
+ if(window.console && window.console.log)
184
+ this.log = function(msg) { window.console.log(msg); }
185
+ else this.log = function(msg) {};
191
186
  };
192
187
 
193
188
  JLog.AjaxAppender = function(url) {
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jlog-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-18 00:00:00.000000000 Z
12
+ date: 2012-10-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: jquery-rails