killbill-payment-test 1.8.7 → 2.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a4e152f45cc65e268078c3176c8aa93f5247a5b4
4
- data.tar.gz: 3f7d6280af52ba4134009be6ab45f9964b87eb5d
3
+ metadata.gz: 260a38a05ed7ce1f88f391d6c4c1e0b50bf2bee1
4
+ data.tar.gz: e5ddb5661d2cd658cd3c7006f7948ff120bd9d61
5
5
  SHA512:
6
- metadata.gz: c7dd414eded9269705158b4fe82fcbf3179c8edf5463554357ede5592e9d0cc2e5f2943b576832eb8d524177fb1d4f03b81253dd874e07c4f52305875428f91a
7
- data.tar.gz: 286ce62a386c8ca5d06bf8eb95827ac49c1c0cd26cf8a9db0a325bf151c0852464c74567b7c4c31e6f1ef130249f424a490fe4286f3f7fd4dc069a9cd2c05b1a
6
+ metadata.gz: d83baeecedeef2b4f9b1a313c7445754317572e28a834f56b450d1890818666070de787363fb33e9969789261488c3168218276206576fe9a2e5afcbd40bdb7e
7
+ data.tar.gz: b224e3a3629ffe7453440f3192eb9ae769227cf1f7d5c514abada3849df3a6ba5ea2e757ad372a720f06e8cc19fa9ba443380900639115eb1f444a639e519d49
data/.gitignore CHANGED
@@ -1,8 +1,8 @@
1
1
  *.gem
2
2
  *.rbc
3
+ *.swp
3
4
  .bundle
4
5
  .config
5
- .idea
6
6
  coverage
7
7
  InstalledFiles
8
8
  lib/bundler/man
@@ -12,17 +12,22 @@ spec/reports
12
12
  test/tmp
13
13
  test/version_tmp
14
14
  tmp
15
- build
15
+
16
16
  # YARD artifacts
17
17
  .yardoc
18
18
  _yardoc
19
19
  doc/
20
20
 
21
21
  .jbundler
22
- Jarfile.lock
23
- Gemfile.lock
24
- *.swp
25
- killbill-payment-test
26
22
 
27
23
  .DS_Store
24
+
25
+ # Testing database
26
+ test.db
27
+
28
+ target
28
29
  pom.xml.asc
30
+
31
+ .idea/
32
+
33
+ Gemfile.head.lock
data/.travis.yml CHANGED
@@ -1,19 +1,38 @@
1
1
  language: ruby
2
2
 
3
+ sudo: false
4
+ cache: bundler
5
+
6
+ script: 'bundle exec rake 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'
data/Gemfile CHANGED
@@ -1,5 +1,3 @@
1
- source "http://rubygems.org"
1
+ source 'https://rubygems.org'
2
2
 
3
3
  gemspec
4
-
5
- #gem 'killbill', :path => '../killbill-plugin-framework-ruby'
data/Gemfile.head ADDED
@@ -0,0 +1,5 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
4
+
5
+ gem 'killbill', :github => 'killbill/killbill-plugin-framework-ruby', :ref => 'HEAD'
data/Gemfile.lock ADDED
@@ -0,0 +1,61 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ killbill-payment-test (2.1.0)
5
+ killbill (~> 6.5.0)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ diff-lcs (1.1.3)
11
+ ethon (0.8.0)
12
+ ffi (>= 1.3.0)
13
+ ffi (1.9.10-java)
14
+ jbundler (0.4.3)
15
+ maven-tools (~> 0.32.1)
16
+ ruby-maven (~> 3.0.4)
17
+ killbill (6.5.0)
18
+ rack (>= 1.5.2)
19
+ sinatra (~> 1.3.4)
20
+ typhoeus (~> 0.6.9)
21
+ tzinfo (~> 1.2.0)
22
+ maven-tools (0.32.5)
23
+ rack (1.6.4)
24
+ rack-protection (1.5.3)
25
+ rack
26
+ rake (10.4.2)
27
+ rspec (2.12.0)
28
+ rspec-core (~> 2.12.0)
29
+ rspec-expectations (~> 2.12.0)
30
+ rspec-mocks (~> 2.12.0)
31
+ rspec-core (2.12.2)
32
+ rspec-expectations (2.12.1)
33
+ diff-lcs (~> 1.1.3)
34
+ rspec-mocks (2.12.2)
35
+ ruby-maven (3.0.4.1.4)
36
+ maven-tools (~> 0.32.3)
37
+ thor (>= 0.14.6, < 2.0)
38
+ sinatra (1.3.6)
39
+ rack (~> 1.4)
40
+ rack-protection (~> 1.3)
41
+ tilt (~> 1.3, >= 1.3.3)
42
+ thor (0.19.1)
43
+ thread_safe (0.3.5-java)
44
+ tilt (1.4.1)
45
+ typhoeus (0.6.9)
46
+ ethon (>= 0.7.1)
47
+ tzinfo (1.2.2)
48
+ thread_safe (~> 0.1)
49
+
50
+ PLATFORMS
51
+ java
52
+ ruby
53
+
54
+ DEPENDENCIES
55
+ jbundler (~> 0.4.3)
56
+ killbill-payment-test!
57
+ rake (>= 10.0.0)
58
+ rspec (~> 2.12.0)
59
+
60
+ BUNDLED WITH
61
+ 1.10.6
data/Jarfile CHANGED
@@ -1,8 +1,9 @@
1
- jar 'org.kill-bill.billing:killbill-api', '0.9.7'
2
- jar 'org.kill-bill.billing.plugin:killbill-plugin-api-notification', '0.7.4'
3
- jar 'org.kill-bill.billing.plugin:killbill-plugin-api-payment', '0.7.4'
4
- jar 'org.kill-bill.billing.plugin:killbill-plugin-api-currency', '0.7.4'
5
- jar 'org.kill-bill.billing.plugin:killbill-plugin-api-retry', '0.7.4'
6
- jar 'org.kill-bill.billing.plugin:killbill-plugin-api-invoice', '0.7.4'
7
- jar 'org.kill-bill.billing:killbill-util:tests', '0.11.3'
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'
data/Jarfile.lock ADDED
@@ -0,0 +1,56 @@
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
+ commons-logging:commons-logging:jar:1.1.1
26
+ org.apache.shiro:shiro-ehcache:jar:1.2.3
27
+ net.sf.ehcache:ehcache-core:jar:2.5.0
28
+ org.apache.shiro:shiro-guice:jar:1.2.3
29
+ com.google.guava:guava:jar:r09
30
+ com.google.inject:guice:jar:3.0
31
+ aopalliance:aopalliance:jar:1.0
32
+ com.google.inject.extensions:guice-multibindings:jar:3.0
33
+ org.jdbi:jdbi:jar:2.62
34
+ org.joda:joda-money:jar:0.9
35
+ org.kill-bill.billing:killbill-internal-api:jar:0.13.7
36
+ org.kill-bill.billing:killbill-platform-api:jar:0.2
37
+ org.kill-bill.billing:killbill-platform-base:jar:0.2
38
+ com.google.code.findbugs:annotations:jar:3.0.0
39
+ org.bgee.log4jdbc-log4j2:log4jdbc-log4j2-jdbc4:jar:1.16
40
+ org.kill-bill.billing:killbill-platform-osgi-api:jar:0.2
41
+ org.osgi:org.osgi.core:jar:5.0.0
42
+ org.kill-bill.commons:killbill-clock:jar:0.3
43
+ org.kill-bill.commons:killbill-concurrent:jar:0.3
44
+ org.kill-bill.commons:killbill-embeddeddb-common:jar:0.3
45
+ org.kill-bill.commons:killbill-jdbi:jar:0.3
46
+ com.h2database:h2:jar:1.4.186
47
+ javax.inject:javax.inject:jar:1
48
+ org.kill-bill.commons:killbill-locker:jar:0.3
49
+ org.kill-bill.commons:killbill-queue:jar:0.3
50
+ org.kill-bill.commons:killbill-xmlloader:jar:0.3
51
+ org.skife.config:config-magic:jar:0.14
52
+ org.slf4j:jcl-over-slf4j:jar:1.7.12
53
+ org.slf4j:slf4j-api:jar:1.7.12
54
+ org.weakref:jmxutils:jar:1.12
55
+ org.mockito:mockito-all:jar:1.10.19
56
+ javax.servlet:javax.servlet-api:jar:3.1.0
data/README.md CHANGED
@@ -1,5 +1,5 @@
1
1
  killbill-payment-test-plugin
2
- ==============================
2
+ ============================
3
3
 
4
4
  Plugin to test the Kill Bill PaymentPlugin API.
5
5
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.8.7
1
+ 2.1.0
@@ -12,7 +12,7 @@ Gem::Specification.new do |s|
12
12
 
13
13
  s.author = 'Kill Bill core team'
14
14
  s.email = 'killbilling-users@googlegroups.com'
15
- s.homepage = 'http://kill-bill.org'
15
+ s.homepage = 'http://killbill.io'
16
16
 
17
17
  s.files = `git ls-files`.split("\n")
18
18
  s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
@@ -22,10 +22,9 @@ Gem::Specification.new do |s|
22
22
 
23
23
  s.rdoc_options << '--exclude' << '.'
24
24
 
25
+ s.add_dependency 'killbill', '~> 6.5.0'
25
26
 
26
- s.add_dependency 'killbill', '~> 3.1.5'
27
-
28
- s.add_development_dependency 'jbundler', '~> 0.4.1'
27
+ s.add_development_dependency 'jbundler', '~> 0.4.3'
29
28
  s.add_development_dependency 'rake', '>= 10.0.0'
30
29
  s.add_development_dependency 'rspec', '~> 2.12.0'
31
30
  end
@@ -38,7 +38,7 @@ module PaymentTest
38
38
  end
39
39
 
40
40
  def void_payment(kb_account_id, kb_payment_id, kb_transaction_id, kb_payment_method_id, properties, context)
41
- add_transaction(kb_account_id, kb_payment_id, kb_transaction_id, :VOID, amount, currency, properties)
41
+ add_transaction(kb_account_id, kb_payment_id, kb_transaction_id, :VOID, nil, nil, properties)
42
42
  end
43
43
 
44
44
  def credit_payment(kb_account_id, kb_payment_id, kb_transaction_id, kb_payment_method_id, amount, currency, properties, context)
@@ -99,7 +99,7 @@ module PaymentTest
99
99
  def throw_exception_if_required(properties)
100
100
  exception = PluginPropertyUtils::get_property_or_nil(properties, 'THROW_EXCEPTION')
101
101
  if exception
102
- raise RuntimeError.new("throwing cause #{exception}")
102
+ raise RuntimeError.new("throwing cause #{exception.value}")
103
103
  end
104
104
  end
105
105
 
data/pom.xml CHANGED
@@ -1,10 +1,10 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <!--
3
3
  ~ Copyright 2010-2013 Ning, Inc.
4
- ~ Copyright 2014 Groupon, Inc
5
- ~ Copyright 2014 The Billing Project, LLC
4
+ ~ Copyright 2014-2015 Groupon, Inc
5
+ ~ Copyright 2014-2015 The Billing Project, LLC
6
6
  ~
7
- ~ Ning licenses this file to you under the Apache License, version 2.0
7
+ ~ The Billing Project licenses this file to you under the Apache License, version 2.0
8
8
  ~ (the "License"); you may not use this file except in compliance with the
9
9
  ~ License. You may obtain a copy of the License at:
10
10
  ~
@@ -27,7 +27,7 @@
27
27
  <groupId>org.kill-bill.billing.plugin.ruby</groupId>
28
28
  <artifactId>payment-test-plugin</artifactId>
29
29
  <packaging>pom</packaging>
30
- <version>1.8.7</version>
30
+ <version>2.1.0</version>
31
31
  <name>payment-test-plugin</name>
32
32
  <description></description>
33
33
  <scm>
data/release.sh CHANGED
@@ -1,41 +1,61 @@
1
1
  set -e
2
2
 
3
- if [ "GNU" != "$(tar --help | grep GNU | head -1 | awk '{print $1}')" ]; then
4
- echo "Unable to release: make sure to use GNU tar"
3
+ BUNDLE=${BUNDLE-"bundle exec"}
4
+ MVN=${MVN-"mvn"}
5
+
6
+ if [ 'GNU' != "$(tar --help | grep GNU | head -1 | awk '{print $1}')" ]; then
7
+ echo 'Unable to release: make sure to use GNU tar'
5
8
  exit 1
6
9
  fi
7
10
 
8
11
  if $(ruby -e'require "java"'); then
9
12
  # Good
10
- echo "Detected JRuby"
13
+ echo 'Detected JRuby'
11
14
  else
12
- echo "Unable to release: make sure to use JRuby"
15
+ echo 'Unable to release: make sure to use JRuby'
13
16
  exit 1
14
17
  fi
15
18
 
16
19
  VERSION=`grep -E '<version>([0-9]+\.[0-9]+\.[0-9]+)</version>' pom.xml | sed 's/[\t \n]*<version>\(.*\)<\/version>[\t \n]*/\1/'`
17
- if [ "$VERSION" != "$(cat $PWD/VERSION)" ]; then
18
- echo "Unable to release: make sure the versions in pom.xml and VERSION match"
20
+ if [[ -z "$NO_RELEASE" && "$VERSION" != "$(cat $PWD/VERSION)" ]]; then
21
+ echo 'Unable to release: make sure the versions in pom.xml and VERSION match'
19
22
  exit 1
20
23
  fi
21
24
 
22
- echo "Cleaning up"
23
- rake killbill:clean ; rake build
25
+ echo 'Cleaning up'
26
+ $BUNDLE rake killbill:clean
27
+
28
+ echo 'Building gem'
29
+ $BUNDLE rake build
24
30
 
25
- echo "Pushing the gem to Rubygems"
26
- rake release
31
+ if [[ -z "$NO_RELEASE" ]]; then
32
+ echo 'Pushing the gem to Rubygems'
33
+ $BUNDLE rake release
34
+ fi
27
35
 
28
- echo "Building artifact"
29
- rake killbill:package
36
+ echo 'Building artifact'
37
+ $BUNDLE rake killbill:package
30
38
 
31
39
  ARTIFACT="$PWD/pkg/killbill-payment-test-$VERSION.tar.gz"
32
40
  echo "Pushing $ARTIFACT to Maven Central"
33
- mvn gpg:sign-and-deploy-file \
34
- -DgroupId=org.kill-bill.billing.plugin.ruby \
35
- -DartifactId=payment-test-plugin \
36
- -Dversion=$VERSION \
37
- -Dpackaging=tar.gz \
38
- -DrepositoryId=ossrh-releases \
39
- -Durl=https://oss.sonatype.org/service/local/staging/deploy/maven2/ \
40
- -Dfile=$ARTIFACT \
41
- -DpomFile=pom.xml
41
+
42
+ if [[ -z "$NO_RELEASE" ]]; then
43
+ GOAL=gpg:sign-and-deploy-file
44
+ REPOSITORY_ID=ossrh-releases
45
+ URL=https://oss.sonatype.org/service/local/staging/deploy/maven2/
46
+ else
47
+ GOAL=deploy:deploy-file
48
+ REPOSITORY_ID=sonatype-nexus-snapshots
49
+ URL=https://oss.sonatype.org/content/repositories/snapshots/
50
+ VERSION="$VERSION-SNAPSHOT"
51
+ fi
52
+
53
+ $MVN $GOAL \
54
+ -DgroupId=org.kill-bill.billing.plugin.ruby \
55
+ -DartifactId=payment-test-plugin \
56
+ -Dversion=$VERSION \
57
+ -Dpackaging=tar.gz \
58
+ -DrepositoryId=$REPOSITORY_ID \
59
+ -Durl=$URL \
60
+ -Dfile=$ARTIFACT \
61
+ -DpomFile=pom.xml
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: killbill-payment-test
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.7
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kill Bill core team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-21 00:00:00.000000000 Z
11
+ date: 2015-12-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: killbill
@@ -16,12 +16,12 @@ dependencies:
16
16
  requirements:
17
17
  - - ~>
18
18
  - !ruby/object:Gem::Version
19
- version: 3.1.5
19
+ version: 6.5.0
20
20
  requirement: !ruby/object:Gem::Requirement
21
21
  requirements:
22
22
  - - ~>
23
23
  - !ruby/object:Gem::Version
24
- version: 3.1.5
24
+ version: 6.5.0
25
25
  prerelease: false
26
26
  type: :runtime
27
27
  - !ruby/object:Gem::Dependency
@@ -30,12 +30,12 @@ dependencies:
30
30
  requirements:
31
31
  - - ~>
32
32
  - !ruby/object:Gem::Version
33
- version: 0.4.1
33
+ version: 0.4.3
34
34
  requirement: !ruby/object:Gem::Requirement
35
35
  requirements:
36
36
  - - ~>
37
37
  - !ruby/object:Gem::Version
38
- version: 0.4.1
38
+ version: 0.4.3
39
39
  prerelease: false
40
40
  type: :development
41
41
  - !ruby/object:Gem::Dependency
@@ -75,7 +75,10 @@ files:
75
75
  - .gitignore
76
76
  - .travis.yml
77
77
  - Gemfile
78
+ - Gemfile.head
79
+ - Gemfile.lock
78
80
  - Jarfile
81
+ - Jarfile.lock
79
82
  - README.md
80
83
  - Rakefile
81
84
  - VERSION
@@ -90,7 +93,7 @@ files:
90
93
  - release.sh
91
94
  - spec/payment_test/base_plugin_spec.rb
92
95
  - spec/spec_helper.rb
93
- homepage: http://kill-bill.org
96
+ homepage: http://killbill.io
94
97
  licenses:
95
98
  - Apache License (2.0)
96
99
  metadata: {}
@@ -112,7 +115,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
112
115
  version: '0'
113
116
  requirements: []
114
117
  rubyforge_project:
115
- rubygems_version: 2.2.2
118
+ rubygems_version: 2.4.6
116
119
  signing_key:
117
120
  specification_version: 4
118
121
  summary: Plugin to test the payment plugin api.