log4ever 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -41,6 +41,8 @@ First release.
41
41
  Remove unnecessary processing.
42
42
  * 0.0.3
43
43
  If tag, notebook does not exist, it will be created.
44
+ * 0.0.4
45
+ Add dependency gem.
44
46
 
45
47
  ##License
46
48
  Licensed under the MIT
Binary file
@@ -15,7 +15,7 @@ require "Evernote/EDAM/note_store"
15
15
  require "Evernote/EDAM/limits_constants.rb"
16
16
 
17
17
  module Log4ever
18
- VERSION = '0.0.3'
18
+ VERSION = '0.0.4'
19
19
  class TypeError < StandardError; end
20
20
  module ShiftAge
21
21
  DAILY = 1
@@ -108,7 +108,7 @@ module Log4r
108
108
  break
109
109
  end
110
110
  end
111
- return @notebook
111
+ @notebook
112
112
  end
113
113
 
114
114
  # create notebook
@@ -76,12 +76,12 @@ module Log4r
76
76
  @note.size == 0 || (@maxsize > 0 && @note.size >= @maxsize)
77
77
  end
78
78
 
79
- # whether or not to rotate rolling
79
+ # whether or not to rotate rolling
80
80
  def time_requires_roll?
81
81
  !@endTime.nil? && Time.now.to_i >= @endTime
82
82
  end
83
83
 
84
- # max amount of log in note
84
+ # max amount of log in note
85
85
  def set_maxsize(options)
86
86
  if options.has_key?(:maxsize) || options.has_key?('maxsize')
87
87
  maxsize = options[:maxsize] || options['maxsize']
@@ -109,7 +109,7 @@ module Log4r
109
109
  end
110
110
  end
111
111
 
112
- # rolling interval
112
+ # rolling interval
113
113
  def set_shift_age(options)
114
114
  if options.has_key?(:shift_age) || options.has_key?('shift_age')
115
115
  _shift_age = (options[:shift_age] or options['shift_age']).to_i
@@ -10,6 +10,7 @@ Gem::Specification.new do |gem|
10
10
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
11
11
  gem.name = "log4ever"
12
12
  gem.require_paths = ["lib"]
13
- gem.version = '0.0.3'
13
+ gem.add_dependency('log4r', '>= 1.1.10')
14
+ gem.version = '0.0.4'
14
15
  end
15
16
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: log4ever
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,9 +9,20 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-08-14 00:00:00.000000000 +09:00
12
+ date: 2012-08-20 00:00:00.000000000 +09:00
13
13
  default_executable:
14
- dependencies: []
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: log4r
17
+ requirement: &2153493140 !ruby/object:Gem::Requirement
18
+ none: false
19
+ requirements:
20
+ - - ! '>='
21
+ - !ruby/object:Gem::Version
22
+ version: 1.1.10
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: *2153493140
15
26
  description: log4ever is simple logger for evernote. It is available as an extension
16
27
  of log4r.
17
28
  email:
@@ -30,6 +41,7 @@ files:
30
41
  - config/log4r.xml
31
42
  - gem/log4ever-0.0.1.gem
32
43
  - gem/log4ever-0.0.2.gem
44
+ - gem/log4ever-0.0.3.gem
33
45
  - lib/log4r/evernote.rb
34
46
  - lib/log4r/evernote/lib/Evernote/EDAM/errors_constants.rb
35
47
  - lib/log4r/evernote/lib/Evernote/EDAM/errors_types.rb