killbill 3.2.4 → 4.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (117) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +0 -2
  3. data/.travis.yml +26 -5
  4. data/Gemfile +1 -1
  5. data/Gemfile.head +5 -0
  6. data/Gemfile.lock +125 -0
  7. data/Jarfile +9 -9
  8. data/Jarfile.lock +54 -0
  9. data/NEWS +3 -0
  10. data/README.md +13 -0
  11. data/VERSION +1 -1
  12. data/generators/active_merchant/templates/.gitignore.rb +2 -3
  13. data/generators/active_merchant/templates/.travis.yml.rb +22 -3
  14. data/generators/active_merchant/templates/Gemfile.head.rb +5 -0
  15. data/generators/active_merchant/templates/Gemfile.rb +1 -1
  16. data/generators/active_merchant/templates/Jarfile.rb +9 -8
  17. data/generators/active_merchant/templates/LICENSE.rb +2 -2
  18. data/generators/active_merchant/templates/config.yml.rb +16 -6
  19. data/generators/active_merchant/templates/lib/plugin.rb +0 -1
  20. data/generators/active_merchant/templates/plugin.gemspec.rb +17 -15
  21. data/generators/active_merchant/templates/pom.xml.rb +1 -1
  22. data/generators/active_merchant/templates/release.sh.rb +34 -14
  23. data/generators/active_merchant/templates/spec/base_plugin_spec.rb +5 -7
  24. data/generators/active_merchant/templates/spec/integration_spec.rb +7 -18
  25. data/killbill.gemspec +21 -15
  26. data/lib/killbill/ext/active_merchant/typhoeus_connection.rb +3 -4
  27. data/lib/killbill/gen/api/account.rb +1 -1
  28. data/lib/killbill/gen/api/account_data.rb +1 -1
  29. data/lib/killbill/gen/api/audit_log.rb +2 -2
  30. data/lib/killbill/gen/api/audit_user_api.rb +3 -3
  31. data/lib/killbill/gen/api/block.rb +1 -1
  32. data/lib/killbill/gen/api/blocking_state.rb +1 -1
  33. data/lib/killbill/gen/api/call_context.rb +2 -2
  34. data/lib/killbill/gen/api/control_tag.rb +2 -2
  35. data/lib/killbill/gen/api/currency_conversion.rb +1 -1
  36. data/lib/killbill/gen/api/currency_conversion_api.rb +2 -2
  37. data/lib/killbill/gen/api/custom_field.rb +1 -1
  38. data/lib/killbill/gen/api/custom_field_user_api.rb +2 -2
  39. data/lib/killbill/gen/api/dry_run_arguments.rb +22 -3
  40. data/lib/killbill/gen/api/duration.rb +1 -1
  41. data/lib/killbill/gen/api/entitlement.rb +3 -3
  42. data/lib/killbill/gen/api/entitlement_ao_status_dry_run.rb +3 -3
  43. data/lib/killbill/gen/api/entitlement_api.rb +25 -7
  44. data/lib/killbill/gen/api/fixed.rb +1 -1
  45. data/lib/killbill/gen/api/invoice.rb +1 -1
  46. data/lib/killbill/gen/api/invoice_formatter.rb +2 -2
  47. data/lib/killbill/gen/api/invoice_item.rb +2 -2
  48. data/lib/killbill/gen/api/invoice_item_formatter.rb +2 -2
  49. data/lib/killbill/gen/api/invoice_payment.rb +3 -3
  50. data/lib/killbill/gen/api/invoice_user_api.rb +2 -2
  51. data/lib/killbill/gen/api/migration_plan.rb +1 -1
  52. data/lib/killbill/gen/api/mutable_account_data.rb +1 -1
  53. data/lib/killbill/gen/api/payment.rb +1 -1
  54. data/lib/killbill/gen/api/payment_api.rb +11 -11
  55. data/lib/killbill/gen/api/payment_transaction.rb +4 -4
  56. data/lib/killbill/gen/api/plan.rb +1 -1
  57. data/lib/killbill/gen/api/plan_change_result.rb +2 -2
  58. data/lib/killbill/gen/api/plan_phase.rb +1 -1
  59. data/lib/killbill/gen/api/plan_phase_price_override.rb +93 -0
  60. data/lib/killbill/gen/api/plan_phase_price_overrides_with_call_context.rb +77 -0
  61. data/lib/killbill/gen/api/plan_phase_specifier.rb +3 -3
  62. data/lib/killbill/gen/api/plan_specifier.rb +2 -2
  63. data/lib/killbill/gen/api/price.rb +1 -1
  64. data/lib/killbill/gen/api/product.rb +1 -1
  65. data/lib/killbill/gen/api/rate.rb +2 -2
  66. data/lib/killbill/gen/api/record_id_api.rb +1 -1
  67. data/lib/killbill/gen/api/recurring.rb +1 -1
  68. data/lib/killbill/gen/api/refund.rb +2 -2
  69. data/lib/killbill/gen/api/require_gen.rb +2 -0
  70. data/lib/killbill/gen/api/static_catalog.rb +2 -2
  71. data/lib/killbill/gen/api/subscription.rb +3 -3
  72. data/lib/killbill/gen/api/subscription_event.rb +3 -3
  73. data/lib/killbill/gen/api/tag.rb +1 -1
  74. data/lib/killbill/gen/api/tag_definition.rb +1 -1
  75. data/lib/killbill/gen/api/tag_user_api.rb +6 -6
  76. data/lib/killbill/gen/api/tiered_block.rb +1 -1
  77. data/lib/killbill/gen/api/usage.rb +3 -3
  78. data/lib/killbill/gen/plugin-api/currency_plugin_api.rb +1 -1
  79. data/lib/killbill/gen/plugin-api/ext_bus_event.rb +2 -2
  80. data/lib/killbill/gen/plugin-api/payment_transaction_info_plugin.rb +3 -3
  81. data/lib/killbill/helpers/active_merchant.rb +2 -2
  82. data/lib/killbill/helpers/active_merchant/active_record.rb +1 -1
  83. data/lib/killbill/helpers/active_merchant/active_record/active_record_helper.rb +14 -0
  84. data/lib/killbill/helpers/active_merchant/active_record/models/helpers.rb +8 -0
  85. data/lib/killbill/helpers/active_merchant/active_record/models/payment_method.rb +10 -8
  86. data/lib/killbill/helpers/active_merchant/active_record/models/response.rb +16 -3
  87. data/lib/killbill/helpers/active_merchant/active_record/models/streamy_result_set.rb +1 -3
  88. data/lib/killbill/helpers/active_merchant/active_record/models/transaction.rb +2 -0
  89. data/lib/killbill/helpers/active_merchant/configuration.rb +119 -27
  90. data/lib/killbill/helpers/active_merchant/gateway.rb +40 -27
  91. data/lib/killbill/helpers/active_merchant/killbill_spec_helper.rb +63 -45
  92. data/lib/killbill/helpers/active_merchant/payment_plugin.rb +121 -95
  93. data/lib/killbill/helpers/active_merchant/private_payment_plugin.rb +1 -1
  94. data/lib/killbill/helpers/active_merchant/properties.rb +9 -2
  95. data/lib/killbill/helpers/active_merchant/sinatra.rb +4 -8
  96. data/lib/killbill/helpers/active_merchant/utils.rb +44 -0
  97. data/lib/killbill/helpers/properties_helper.rb +41 -0
  98. data/lib/killbill/http_servlet.rb +11 -4
  99. data/lib/killbill/killbill_api.rb +6 -4
  100. data/lib/killbill/rake_task.rb +542 -102
  101. data/spec/killbill/helpers/configuration_spec.rb +117 -33
  102. data/spec/killbill/helpers/payment_method_spec.rb +20 -17
  103. data/spec/killbill/helpers/payment_plugin_spec.rb +401 -201
  104. data/spec/killbill/helpers/private_payment_plugin_spec.rb +3 -16
  105. data/spec/killbill/helpers/response_spec.rb +92 -22
  106. data/spec/killbill/helpers/streamy_result_set_spec.rb +3 -2
  107. data/spec/killbill/helpers/test_payment_method.rb +9 -0
  108. data/spec/killbill/helpers/test_response.rb +11 -0
  109. data/spec/killbill/helpers/test_schema.rb +6 -6
  110. data/spec/killbill/helpers/test_transaction.rb +11 -0
  111. data/spec/killbill/helpers/transaction_spec.rb +3 -13
  112. data/spec/killbill/helpers/utils_spec.rb +127 -69
  113. data/spec/spec_helper.rb +69 -18
  114. metadata +77 -71
  115. data/lib/killbill/ext/active_merchant/jdbc_connection.rb +0 -92
  116. data/lib/killbill/ext/active_merchant/proxy_support.rb +0 -58
  117. data/spec/killbill/helpers/gateway_spec.rb +0 -36
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5d80b160cae829b2ae91a6b4f855c1c9ba32c245
4
- data.tar.gz: 82d8f22ef535dc276de788d2cd1824855ea8d394
3
+ metadata.gz: 2b31bab8d27ebb9b8c3db3a90679c41bdccc8503
4
+ data.tar.gz: 69c4ff0995b68063b3cd424c19ead1c5a918bf26
5
5
  SHA512:
6
- metadata.gz: 657b255d6384163a553f11fbd08587c30e32f4c661d2b825ffa343d00cb9ef2cf032803a074c7462c6fb39ec75ce508eb4ae9d74fcbafb4a5de7eea9a94296e2
7
- data.tar.gz: f03c8efa2fceb92d1f27eba7b9fca205549ec7e2b00b483e75288938d75c4ab1bb92533ddd5889e0f11fa2b7af83b47b4ac3bd0ca0d8c5e833efdcc8c4d2dbff
6
+ metadata.gz: e11d3d7fa11e6c45f8b5c7d325f55f891dcac8ba71dbff26e1a3fab7c2d7313e9982478917675929eb20d4f83a66ecd1cab3bc6ac9a7c3ccef1c68ffe0758e59
7
+ data.tar.gz: 25274635b4306545df67c42a63245e31d15de9fa77c4261359ddcc1df23d3c1b025bb87e4a23648048888020099c018e087d36b312b35c9c56c959679ac4fb8b
data/.gitignore CHANGED
@@ -18,8 +18,6 @@ _yardoc
18
18
  doc/
19
19
 
20
20
  .jbundler
21
- Jarfile.lock
22
- Gemfile.lock
23
21
  *.swp
24
22
  .idea
25
23
  test.db
data/.travis.yml CHANGED
@@ -1,22 +1,43 @@
1
1
  language: ruby
2
2
 
3
+ sudo: false
4
+ cache:
5
+ bundler: true
6
+ directories:
7
+ - $HOME/.m2
8
+
9
+ before_script:
10
+ - mysql -uroot -e 'create database killbill_test;'
11
+
3
12
  notifications:
4
13
  email:
5
14
  - kill-bill-commits@googlegroups.com
6
15
 
16
+ env:
17
+ global:
18
+ - JRUBY_OPTS='-J-Xmx1024M'
19
+ matrix:
20
+ # Need MySQL 5.6 - see https://github.com/travis-ci/travis-ci/issues/1986
21
+ #- AR_ADAPTER='mariadb' AR_USERNAME='root' AR_PASSWORD='' AR_DATABASE='killbill_test'
22
+ - AR_ADAPTER='sqlite3' AR_DATABASE='test.db'
23
+
7
24
  rvm:
8
- - jruby-1.7.16
25
+ - jruby-1.7.20
9
26
  - jruby-20mode # latest 1.7.x
10
27
  - jruby-head
11
28
 
29
+ gemfile:
30
+ - Gemfile
31
+ - Gemfile.head
32
+
12
33
  jdk:
13
- - openjdk6
14
34
  - openjdk7
15
35
  - oraclejdk7
36
+ - oraclejdk8
16
37
 
17
38
  matrix:
18
39
  allow_failures:
19
40
  - rvm: jruby-head
20
- exclude:
21
- - rvm: jruby-head
22
- jdk: openjdk6
41
+ - jdk: oraclejdk8
42
+ - gemfile: Gemfile.head
43
+ fast_finish: true
data/Gemfile CHANGED
@@ -1,3 +1,3 @@
1
- source "http://rubygems.org"
1
+ source "https://rubygems.org"
2
2
 
3
3
  gemspec
data/Gemfile.head ADDED
@@ -0,0 +1,5 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
4
+
5
+ gem 'activemerchant', :github => 'Shopify/active_merchant', :ref => 'HEAD'
data/Gemfile.lock ADDED
@@ -0,0 +1,125 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ killbill (4.0.0)
5
+ rack (>= 1.5.2)
6
+ sinatra (~> 1.3.4)
7
+ typhoeus (~> 0.6.9)
8
+ tzinfo (~> 1.2.0)
9
+
10
+ GEM
11
+ remote: https://rubygems.org/
12
+ specs:
13
+ actionpack (4.1.10)
14
+ actionview (= 4.1.10)
15
+ activesupport (= 4.1.10)
16
+ rack (~> 1.5.2)
17
+ rack-test (~> 0.6.2)
18
+ actionview (4.1.10)
19
+ activesupport (= 4.1.10)
20
+ builder (~> 3.1)
21
+ erubis (~> 2.7.0)
22
+ active_utils (3.0.0)
23
+ activesupport (>= 3.2)
24
+ i18n
25
+ activemerchant (1.48.0)
26
+ activesupport (>= 3.2.14, < 5.0.0)
27
+ builder (>= 2.1.2, < 4.0.0)
28
+ i18n (>= 0.6.9)
29
+ nokogiri (~> 1.4)
30
+ activemodel (4.1.10)
31
+ activesupport (= 4.1.10)
32
+ builder (~> 3.1)
33
+ activerecord (4.1.10)
34
+ activemodel (= 4.1.10)
35
+ activesupport (= 4.1.10)
36
+ arel (~> 5.0.0)
37
+ activerecord-bogacs (0.3.0)
38
+ thread_safe (~> 0.3)
39
+ activerecord-jdbc-adapter (1.3.16)
40
+ activerecord (>= 2.2)
41
+ activesupport (4.1.10)
42
+ i18n (~> 0.6, >= 0.6.9)
43
+ json (~> 1.7, >= 1.7.7)
44
+ minitest (~> 5.1)
45
+ thread_safe (~> 0.1)
46
+ tzinfo (~> 1.1)
47
+ arel (5.0.1.20140414130214)
48
+ builder (3.2.2)
49
+ diff-lcs (1.1.3)
50
+ erubis (2.7.0)
51
+ ethon (0.7.3)
52
+ ffi (>= 1.3.0)
53
+ ffi (1.9.8-java)
54
+ i18n (0.7.0)
55
+ jbundler (0.4.3)
56
+ maven-tools (~> 0.32.1)
57
+ ruby-maven (~> 3.0.4)
58
+ jdbc-mariadb (1.1.8)
59
+ jdbc-sqlite3 (3.8.7)
60
+ json (1.8.2-java)
61
+ maven-tools (0.32.5)
62
+ minitest (5.6.1)
63
+ monetize (1.1.0)
64
+ money (~> 6.5.0)
65
+ money (6.5.1)
66
+ i18n (>= 0.6.4, <= 0.7.0)
67
+ nokogiri (1.6.6.2-java)
68
+ offsite_payments (2.1.0)
69
+ actionpack (>= 3.2.20, < 5.0.0)
70
+ active_utils (~> 3.0.0)
71
+ activesupport (>= 3.2.14, < 5.0.0)
72
+ builder (>= 2.1.2, < 4.0.0)
73
+ i18n (~> 0.5)
74
+ money (>= 5.0.0, < 7.0.0)
75
+ nokogiri (~> 1.4)
76
+ rack (1.5.3)
77
+ rack-protection (1.5.3)
78
+ rack
79
+ rack-test (0.6.3)
80
+ rack (>= 1.0)
81
+ rake (10.4.2)
82
+ rspec (2.12.0)
83
+ rspec-core (~> 2.12.0)
84
+ rspec-expectations (~> 2.12.0)
85
+ rspec-mocks (~> 2.12.0)
86
+ rspec-core (2.12.2)
87
+ rspec-expectations (2.12.1)
88
+ diff-lcs (~> 1.1.3)
89
+ rspec-mocks (2.12.2)
90
+ ruby-maven (3.0.4.1.4)
91
+ maven-tools (~> 0.32.3)
92
+ thor (>= 0.14.6, < 2.0)
93
+ sinatra (1.3.6)
94
+ rack (~> 1.4)
95
+ rack-protection (~> 1.3)
96
+ tilt (~> 1.3, >= 1.3.3)
97
+ thor (0.19.1)
98
+ thread_safe (0.3.5-java)
99
+ tilt (1.4.1)
100
+ typhoeus (0.6.9)
101
+ ethon (>= 0.7.1)
102
+ tzinfo (1.2.2)
103
+ thread_safe (~> 0.1)
104
+
105
+ PLATFORMS
106
+ java
107
+
108
+ DEPENDENCIES
109
+ actionpack (~> 4.1.0)
110
+ actionview (~> 4.1.0)
111
+ activemerchant (~> 1.48.0)
112
+ activerecord (~> 4.1.0)
113
+ activerecord-bogacs (~> 0.3)
114
+ activerecord-jdbc-adapter (~> 1.3)
115
+ jbundler (~> 0.4.3)
116
+ jdbc-mariadb (~> 1.1.8)
117
+ jdbc-sqlite3 (~> 3.7)
118
+ killbill!
119
+ monetize (~> 1.1.0)
120
+ money (~> 6.5.1)
121
+ offsite_payments (~> 2.1.0)
122
+ rake (>= 10.0.0)
123
+ rspec (~> 2.12.0)
124
+ thor (~> 0.19.1)
125
+ thread_safe (~> 0.3.4)
data/Jarfile CHANGED
@@ -1,9 +1,9 @@
1
- jar 'org.kill-bill.billing:killbill-api', '0.12.4'
2
- jar 'org.kill-bill.billing.plugin:killbill-plugin-api-notification', '0.8.3'
3
- jar 'org.kill-bill.billing.plugin:killbill-plugin-api-payment', '0.8.3'
4
- jar 'org.kill-bill.billing.plugin:killbill-plugin-api-currency', '0.8.3'
5
- jar 'org.kill-bill.billing.plugin:killbill-plugin-api-retry', '0.8.3'
6
- jar 'org.kill-bill.billing.plugin:killbill-plugin-api-invoice', '0.8.3'
7
- jar 'org.kill-bill.billing:killbill-util:tests', '0.13.4'
8
- jar 'org.mockito:mockito-all', '1.9.0'
9
- jar 'javax.servlet:javax.servlet-api', '3.0.1'
1
+ jar 'org.kill-bill.billing:killbill-api', '0.14'
2
+ jar 'org.kill-bill.billing.plugin:killbill-plugin-api-currency', '0.9'
3
+ jar 'org.kill-bill.billing.plugin:killbill-plugin-api-invoice', '0.9'
4
+ jar 'org.kill-bill.billing.plugin:killbill-plugin-api-notification', '0.9'
5
+ jar 'org.kill-bill.billing.plugin:killbill-plugin-api-payment', '0.9'
6
+ jar 'org.kill-bill.billing.plugin:killbill-plugin-api-routing', '0.9'
7
+ jar 'org.kill-bill.billing:killbill-util:tests', '0.13.7'
8
+ jar 'org.mockito:mockito-all', '1.10.19'
9
+ jar 'javax.servlet:javax.servlet-api', '3.1.0'
data/Jarfile.lock ADDED
@@ -0,0 +1,54 @@
1
+ org.kill-bill.billing:killbill-api:jar:0.14
2
+ com.fasterxml.jackson.core:jackson-annotations:jar:2.4.3
3
+ joda-time:joda-time:jar:2.3
4
+ org.kill-bill.billing.plugin:killbill-plugin-api-currency:jar:0.9
5
+ org.kill-bill.billing.plugin:killbill-plugin-api-invoice:jar:0.9
6
+ org.kill-bill.billing.plugin:killbill-plugin-api-notification:jar:0.9
7
+ org.kill-bill.billing.plugin:killbill-plugin-api-payment:jar:0.9
8
+ org.kill-bill.billing.plugin:killbill-plugin-api-routing:jar:0.9
9
+ org.kill-bill.billing:killbill-util:jar:tests:0.13.7
10
+ com.fasterxml.jackson.core:jackson-databind:jar:2.4.3
11
+ com.fasterxml.jackson.core:jackson-core:jar:2.4.3
12
+ com.fasterxml.jackson.dataformat:jackson-dataformat-csv:jar:2.4.3
13
+ com.fasterxml.jackson.datatype:jackson-datatype-joda:jar:2.4.3
14
+ com.samskivert:jmustache:jar:1.5
15
+ io.dropwizard.metrics:metrics-core:jar:3.1.1
16
+ io.dropwizard.metrics:metrics-ehcache:jar:3.1.1
17
+ net.sf.ehcache:ehcache:jar:2.9.1
18
+ org.antlr:stringtemplate:jar:3.2.1
19
+ antlr:antlr:jar:2.7.7
20
+ org.apache.commons:commons-email:jar:1.2
21
+ javax.mail:mail:jar:1.4.1
22
+ javax.activation:activation:jar:1.1
23
+ org.apache.shiro:shiro-core:jar:1.2.3
24
+ commons-beanutils:commons-beanutils:jar:1.8.3
25
+ org.apache.shiro:shiro-ehcache:jar:1.2.3
26
+ org.apache.shiro:shiro-guice:jar:1.2.3
27
+ com.google.guava:guava:jar:r09
28
+ com.google.inject:guice:jar:3.0
29
+ aopalliance:aopalliance:jar:1.0
30
+ com.google.inject.extensions:guice-multibindings:jar:3.0
31
+ org.jdbi:jdbi:jar:2.62
32
+ org.joda:joda-money:jar:0.9
33
+ org.kill-bill.billing:killbill-internal-api:jar:0.13.7
34
+ org.kill-bill.billing:killbill-platform-api:jar:0.2
35
+ org.kill-bill.billing:killbill-platform-base:jar:0.2
36
+ com.google.code.findbugs:annotations:jar:3.0.0
37
+ org.bgee.log4jdbc-log4j2:log4jdbc-log4j2-jdbc4:jar:1.16
38
+ org.kill-bill.billing:killbill-platform-osgi-api:jar:0.2
39
+ org.osgi:org.osgi.core:jar:5.0.0
40
+ org.kill-bill.commons:killbill-clock:jar:0.3
41
+ org.kill-bill.commons:killbill-concurrent:jar:0.3
42
+ org.kill-bill.commons:killbill-embeddeddb-common:jar:0.3
43
+ org.kill-bill.commons:killbill-jdbi:jar:0.3
44
+ com.h2database:h2:jar:1.4.186
45
+ javax.inject:javax.inject:jar:1
46
+ org.kill-bill.commons:killbill-locker:jar:0.3
47
+ org.kill-bill.commons:killbill-queue:jar:0.3
48
+ org.kill-bill.commons:killbill-xmlloader:jar:0.3
49
+ org.skife.config:config-magic:jar:0.14
50
+ org.slf4j:jcl-over-slf4j:jar:1.7.12
51
+ org.slf4j:slf4j-api:jar:1.7.12
52
+ org.weakref:jmxutils:jar:1.12
53
+ org.mockito:mockito-all:jar:1.10.19
54
+ javax.servlet:javax.servlet-api:jar:3.1.0
data/NEWS CHANGED
@@ -1,3 +1,6 @@
1
+ 4.0.0
2
+ Initial release for Kill Bill 0.14.x
3
+
1
4
  3.2.2
2
5
  Logger performance improvement
3
6
  Initial support for invoice plugins
data/README.md CHANGED
@@ -208,3 +208,16 @@ For quick testing of your plugin, you can use the `deploy` task:
208
208
  To debug packaging issues, pass `true` as the third (optional) parameter:
209
209
 
210
210
  rake killbill:deploy[false,/path/to/bundles,true]
211
+
212
+
213
+ Development
214
+ -----------
215
+
216
+ To run unit and remote tests:
217
+
218
+ rake
219
+ rake test:remote:spec
220
+
221
+ To change the database driver:
222
+
223
+ AR_ADAPTER=mariadb AR_USERNAME=root AR_PASSWORD=root AR_DATABASE=kbtest rake
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.2.4
1
+ 4.0.0
@@ -22,9 +22,6 @@ doc/
22
22
 
23
23
  .DS_Store
24
24
 
25
- # Build directory
26
- killbill-<%= identifier %>/
27
-
28
25
  # Testing database
29
26
  test.db
30
27
 
@@ -34,3 +31,5 @@ target
34
31
  pom.xml.asc
35
32
 
36
33
  .idea/
34
+
35
+ Gemfile.head.lock
@@ -1,19 +1,38 @@
1
1
  language: ruby
2
2
 
3
+ sudo: false
4
+ cache: bundler
5
+
6
+ script: 'bundle exec rake test:spec test:remote:spec'
7
+
3
8
  notifications:
4
9
  email:
5
10
  - kill-bill-commits@googlegroups.com
6
11
 
12
+ env:
13
+ global:
14
+ - JRUBY_OPTS='-J-Xmx1024M'
15
+
7
16
  rvm:
8
- - jruby-19mode
9
- - jruby-20mode
17
+ - jruby-1.7.20
18
+ - jruby-20mode # latest 1.7.x
10
19
  - jruby-head
11
20
 
21
+ gemfile:
22
+ - Gemfile
23
+ - Gemfile.head
24
+
12
25
  jdk:
13
- - openjdk6
14
26
  - openjdk7
15
27
  - oraclejdk7
28
+ - oraclejdk8
16
29
 
17
30
  matrix:
18
31
  allow_failures:
19
32
  - rvm: jruby-head
33
+ - jdk: oraclejdk8
34
+ - gemfile: Gemfile.head
35
+ fast_finish: true
36
+
37
+ after_success:
38
+ - '[ "${TRAVIS_PULL_REQUEST}" = "false" ] && echo "<settings><servers><server><id>sonatype-nexus-snapshots</id><username>\${env.OSSRH_USER}</username><password>\${env.OSSRH_PASS}</password></server></servers></settings>" > ~/settings.xml && MVN="mvn --settings $HOME/settings.xml" NO_RELEASE=1 travis_retry travis_wait bash release.sh | egrep -v "Download|Install|Upload" ; rm -f ~/settings.xml'
@@ -0,0 +1,5 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
4
+
5
+ gem 'killbill', :github => 'killbill/killbill-plugin-framework-ruby', :ref => 'HEAD'
@@ -1,3 +1,3 @@
1
- source 'http://rubygems.org'
1
+ source 'https://rubygems.org'
2
2
 
3
3
  gemspec
@@ -1,8 +1,9 @@
1
- jar 'org.kill-bill.billing:killbill-api', '0.10.2'
2
- jar 'org.kill-bill.billing.plugin:killbill-plugin-api-notification', '0.8.2'
3
- jar 'org.kill-bill.billing.plugin:killbill-plugin-api-payment', '0.8.2'
4
- jar 'org.kill-bill.billing.plugin:killbill-plugin-api-currency', '0.8.2'
5
- jar 'org.kill-bill.billing.plugin:killbill-plugin-api-retry', '0.8.1'
6
- jar 'org.kill-bill.billing.plugin:killbill-plugin-api-invoice', '0.8.2'
7
- jar 'org.kill-bill.billing:killbill-util:tests', '0.12.1'
8
- jar 'javax.servlet:javax.servlet-api', '3.0.1'
1
+ jar 'org.kill-bill.billing:killbill-api', '0.14'
2
+ jar 'org.kill-bill.billing.plugin:killbill-plugin-api-currency', '0.9'
3
+ jar 'org.kill-bill.billing.plugin:killbill-plugin-api-invoice', '0.9'
4
+ jar 'org.kill-bill.billing.plugin:killbill-plugin-api-notification', '0.9'
5
+ jar 'org.kill-bill.billing.plugin:killbill-plugin-api-payment', '0.9'
6
+ jar 'org.kill-bill.billing.plugin:killbill-plugin-api-routing', '0.9'
7
+ jar 'org.kill-bill.billing:killbill-util:tests', '0.13.7'
8
+ jar 'org.mockito:mockito-all', '1.10.19'
9
+ jar 'javax.servlet:javax.servlet-api', '3.1.0'
@@ -186,7 +186,7 @@ Apache License
186
186
  same "printed page" as the copyright notice for easier
187
187
  identification within third-party archives.
188
188
 
189
- Copyright 2014 The Billing Project, LLC
189
+ Copyright 2015 The Billing Project, LLC
190
190
 
191
191
  Licensed under the Apache License, Version 2.0 (the "License");
192
192
  you may not use this file except in compliance with the License.
@@ -198,4 +198,4 @@ Apache License
198
198
  distributed under the License is distributed on an "AS IS" BASIS,
199
199
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
200
  See the License for the specific language governing permissions and
201
- limitations under the License.
201
+ limitations under the License.
@@ -2,16 +2,26 @@
2
2
  :test: true
3
3
 
4
4
  :database:
5
+ # SQLite (development)
5
6
  :adapter: sqlite3
6
7
  :database: test.db
7
8
  # For MySQL
8
- # :adapter: 'jdbcmysql'
9
+ # :adapter: mysql
9
10
  # :username: 'killbill'
10
11
  # :password: 'killbill'
11
- # :driver: 'com.mysql.jdbc.Driver'
12
- # :url: 'jdbc:mysql://127.0.0.1:3306/killbill'
12
+ # :database: 'killbill' # or set the URL :
13
+ # #:url: jdbc:mysql://127.0.0.1:3306/killbill
14
+ # :driver: org.mariadb.jdbc.Driver # as in KB
15
+ # :pool: 30 # AR's default is max 5 connections
13
16
  # In Kill Bill
14
- # :adapter: 'jdbcmysql'
17
+ # :adapter: mysql
15
18
  # :jndi: 'killbill/osgi/jdbc'
16
- # :connection_alive_sql: 'select 1'
17
- # :pool: 250
19
+ # :pool: false # false-pool (JNDI pool's max)
20
+ # # uncomment if pool does not support JDBC4 :
21
+ # #:connection_alive_sql: 'select 1'
22
+ # # MySQL adapter #configure_connection defaults :
23
+ # # @@SESSION.sql_auto_is_null = 0,
24
+ # # @@SESSION.wait_timeout = 2147483,
25
+ # # @@SESSION.sql_mode = 'STRICT_ALL_TABLES'
26
+ # # ... can be disabled (on AR-JDBC 1.4) using :
27
+ # :configure_connection: false