killbill 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.3
1
+ 1.0.4
data/lib/killbill.rb CHANGED
@@ -42,6 +42,6 @@ rescue LoadError => e
42
42
  end
43
43
 
44
44
 
45
- require 'killbill/http_servlet'
46
45
  require 'killbill/notification'
47
46
  require 'killbill/payment'
47
+ require 'killbill/jplugin'
@@ -1,5 +1,8 @@
1
+ require 'pathname'
2
+
1
3
  require 'killbill/http_servlet'
2
4
  require 'killbill/logger'
5
+ require 'killbill/creator'
3
6
 
4
7
  module Killbill
5
8
  # There are various types of plugins one can write for Killbill:
@@ -21,6 +24,10 @@ module Killbill
21
24
  @delegate_plugin.stop_plugin
22
25
  end
23
26
 
27
+ def is_active
28
+ @delegate_plugin.active
29
+ end
30
+
24
31
  # Called by the Killbill lifecycle when instantiating the plugin
25
32
  def initialize(plugin_class_name, services = {})
26
33
  @delegate_plugin = Creator.new(plugin_class_name).create(services)
data/spec/spec_helper.rb CHANGED
@@ -2,6 +2,8 @@ require 'java'
2
2
 
3
3
  require 'bundler'
4
4
  require 'killbill'
5
+ # JRuby specific, not required by default
6
+ require 'killbill/http_servlet'
5
7
 
6
8
  require 'killbill/payment_test'
7
9
 
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: killbill
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.0.3
5
+ version: 1.0.4
6
6
  platform: ruby
7
7
  authors:
8
8
  - Killbill core team