killbill 1.0.6 → 1.0.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,7 +5,6 @@ notifications:
5
5
  - killbilling-dev@googlegroups.com
6
6
 
7
7
  rvm:
8
- - jruby-18mode
9
8
  - jruby-19mode
10
9
  - jruby-head
11
10
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.6
1
+ 1.0.7
@@ -1,7 +1,5 @@
1
1
  begin
2
-
3
2
  require 'java'
4
- require 'killbill/jplugin'
5
3
 
6
4
  KILLBILL_APIS = %w(
7
5
  com.ning.billing.account.api.AccountUserApi
@@ -23,6 +21,7 @@ begin
23
21
  com.ning.billing.util.api.CustomFieldUserApi
24
22
  com.ning.billing.util.api.ExportUserApi
25
23
  com.ning.billing.util.api.TagUserApi
24
+ javax.servlet.http.HttpServlet
26
25
  )
27
26
 
28
27
  begin
@@ -38,11 +37,11 @@ begin
38
37
  end
39
38
  end
40
39
 
40
+ # jbundler needs to be loaded first!
41
+ require 'killbill/jplugin'
41
42
  rescue LoadError => e
42
43
  warn 'You need JRuby to run Killbill plugins'
43
- #raise e
44
44
  end
45
45
 
46
-
47
46
  require 'killbill/notification'
48
47
  require 'killbill/payment'
@@ -17,7 +17,7 @@ module Killbill
17
17
  end
18
18
 
19
19
  def to_joda_date_time(time)
20
- time.nil? ? nil : org.joda.time.DateTime.new(time.to_s)
20
+ time.nil? ? nil : org.joda.time.DateTime.new(time.to_s, org.joda.time.DateTimeZone::UTC)
21
21
  end
22
22
 
23
23
  def to_string(str)
@@ -22,7 +22,7 @@ describe Killbill::Plugin::JConverter do
22
22
 
23
23
  it "should_test_joda_date_time_converter" do
24
24
  input_str = '2013-03-11T16:05:11-07:00'
25
- expected_output_str = '2013-03-11T16:05:11.000-07:00'
25
+ expected_output_str = '2013-03-11T23:05:11.000Z'
26
26
  input = org.joda.time.DateTime.parse(input_str)
27
27
  output = Killbill::Plugin::JConverter.to_joda_date_time(input)
28
28
  output.should be_an_instance_of org.joda.time.DateTime
@@ -132,7 +132,7 @@ describe Killbill::Plugin::JConverter do
132
132
 
133
133
 
134
134
  it "should_test_joda_time_from_converter" do
135
- input = org.joda.time.DateTime.new
135
+ input = org.joda.time.DateTime.new(org.joda.time.DateTimeZone::UTC)
136
136
  input = input.minus_millis(input.millis_of_second)
137
137
  output = Killbill::Plugin::JConverter.from_joda_date_time(input)
138
138
  output.should be_an_instance_of DateTime
metadata CHANGED
@@ -1,104 +1,104 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: killbill
3
3
  version: !ruby/object:Gem::Version
4
- prerelease:
5
- version: 1.0.6
4
+ version: 1.0.7
5
+ prerelease:
6
6
  platform: ruby
7
7
  authors:
8
8
  - Killbill core team
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
  date: 2013-03-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: jbundler
16
- version_requirements: !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
17
18
  requirements:
18
- - - "~>"
19
+ - - ~>
19
20
  - !ruby/object:Gem::Version
20
21
  version: 0.4.1
22
+ type: :development
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
21
25
  none: false
22
- requirement: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ~>
25
28
  - !ruby/object:Gem::Version
26
29
  version: 0.4.1
27
- none: false
28
- prerelease: false
29
- type: :development
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: rack
32
- version_requirements: !ruby/object:Gem::Requirement
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
33
34
  requirements:
34
- - - ">="
35
+ - - ! '>='
35
36
  - !ruby/object:Gem::Version
36
37
  version: 1.5.2
38
+ type: :development
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
37
41
  none: false
38
- requirement: !ruby/object:Gem::Requirement
39
42
  requirements:
40
- - - ">="
43
+ - - ! '>='
41
44
  - !ruby/object:Gem::Version
42
45
  version: 1.5.2
43
- none: false
44
- prerelease: false
45
- type: :development
46
46
  - !ruby/object:Gem::Dependency
47
47
  name: rake
48
- version_requirements: !ruby/object:Gem::Requirement
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
49
50
  requirements:
50
- - - ">="
51
+ - - ! '>='
51
52
  - !ruby/object:Gem::Version
52
53
  version: 0.8.7
54
+ type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
53
57
  none: false
54
- requirement: !ruby/object:Gem::Requirement
55
58
  requirements:
56
- - - ">="
59
+ - - ! '>='
57
60
  - !ruby/object:Gem::Version
58
61
  version: 0.8.7
59
- none: false
60
- prerelease: false
61
- type: :development
62
62
  - !ruby/object:Gem::Dependency
63
63
  name: rspec
64
- version_requirements: !ruby/object:Gem::Requirement
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
65
66
  requirements:
66
- - - "~>"
67
+ - - ~>
67
68
  - !ruby/object:Gem::Version
68
69
  version: 2.12.0
70
+ type: :development
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
69
73
  none: false
70
- requirement: !ruby/object:Gem::Requirement
71
74
  requirements:
72
- - - "~>"
75
+ - - ~>
73
76
  - !ruby/object:Gem::Version
74
77
  version: 2.12.0
75
- none: false
76
- prerelease: false
77
- type: :development
78
78
  - !ruby/object:Gem::Dependency
79
79
  name: sinatra
80
- version_requirements: !ruby/object:Gem::Requirement
80
+ requirement: !ruby/object:Gem::Requirement
81
+ none: false
81
82
  requirements:
82
- - - "~>"
83
+ - - ~>
83
84
  - !ruby/object:Gem::Version
84
85
  version: 1.3.4
86
+ type: :development
87
+ prerelease: false
88
+ version_requirements: !ruby/object:Gem::Requirement
85
89
  none: false
86
- requirement: !ruby/object:Gem::Requirement
87
90
  requirements:
88
- - - "~>"
91
+ - - ~>
89
92
  - !ruby/object:Gem::Version
90
93
  version: 1.3.4
91
- none: false
92
- prerelease: false
93
- type: :development
94
94
  description: Base classes to write plugins.
95
95
  email: killbilling-users@googlegroups.com
96
96
  executables: []
97
97
  extensions: []
98
98
  extra_rdoc_files: []
99
99
  files:
100
- - ".gitignore"
101
- - ".travis.yml"
100
+ - .gitignore
101
+ - .travis.yml
102
102
  - Gemfile
103
103
  - Jarfile
104
104
  - README.md
@@ -142,34 +142,33 @@ files:
142
142
  homepage: http://www.killbilling.org
143
143
  licenses:
144
144
  - Apache License (2.0)
145
- post_install_message:
145
+ post_install_message:
146
146
  rdoc_options:
147
- - "--exclude"
148
- - "."
147
+ - --exclude
148
+ - .
149
149
  require_paths:
150
150
  - lib
151
151
  required_ruby_version: !ruby/object:Gem::Requirement
152
+ none: false
152
153
  requirements:
153
- - - ">="
154
+ - - ! '>='
154
155
  - !ruby/object:Gem::Version
155
156
  version: 1.9.3
156
- none: false
157
157
  required_rubygems_version: !ruby/object:Gem::Requirement
158
+ none: false
158
159
  requirements:
159
- - - ">="
160
+ - - ! '>='
160
161
  - !ruby/object:Gem::Version
162
+ version: '0'
161
163
  segments:
162
164
  - 0
163
- hash: 2
164
- version: !binary |-
165
- MA==
166
- none: false
165
+ hash: -1416984242568449650
167
166
  requirements:
168
167
  - jar 'com.ning.billing:killbill-api'
169
168
  - jar 'com.ning.billing:killbill-util:tests'
170
- rubyforge_project:
169
+ rubyforge_project:
171
170
  rubygems_version: 1.8.24
172
- signing_key:
171
+ signing_key:
173
172
  specification_version: 3
174
173
  summary: Framework to write Killbill plugins in Ruby.
175
174
  test_files: