killbill 1.7.0 → 1.7.1

Sign up to get free protection for your applications and to get access to all the features.
data/NEWS CHANGED
@@ -1,3 +1,7 @@
1
+ 1.7.1
2
+ Bug fix in enumerator_iterator
3
+ Make log level adjustable
4
+
1
5
  1.7.0
2
6
  Update to killbill-api 0.7.1 and killbill-plugin-api 0.5.0 (pagination)
3
7
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.7.0
1
+ 1.7.1
@@ -46,7 +46,7 @@ module Killbill
46
46
  def next
47
47
  prev = @next
48
48
  _next
49
- prev
49
+ prev.to_java
50
50
  end
51
51
 
52
52
  def remove
@@ -73,4 +73,4 @@ module Killbill
73
73
  end
74
74
  end
75
75
  end
76
- end
76
+ end
@@ -4,8 +4,13 @@
4
4
  module Killbill
5
5
  module Plugin
6
6
  class KillbillLogger
7
+
8
+ attr_accessor :log_level
9
+
7
10
  def initialize(delegate)
8
11
  @logger = delegate
12
+ # Match Logger levels
13
+ @log_level = 1 # Logger::INFO
9
14
  end
10
15
 
11
16
  def debug(message, &block)
@@ -47,17 +52,19 @@ module Killbill
47
52
 
48
53
  alias_method :fatal, :error
49
54
 
50
- # XXX TODO
51
55
  def debug?
52
- false
56
+ # Logger::DEBUG
57
+ 0 >= @log_level
53
58
  end
54
59
 
55
60
  def info?
56
- true
61
+ # Logger::INFO
62
+ 1 >= @log_level
57
63
  end
58
64
 
59
65
  def warn?
60
- true
66
+ # Logger::WARN
67
+ 2 >= @log_level
61
68
  end
62
69
 
63
70
  alias_method :error?, :warn?
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: killbill
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.0
4
+ version: 1.7.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: