killbill-currency-plugin-test 1.1.3 → 2.0.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: aaeb943c9da748b7a4a8836e49f56bd5236ae792
4
- data.tar.gz: e53195d1e6b44bafeebbb38ed43903653d2e96d1
3
+ metadata.gz: f7c6cf238ad9e81b4d148c64fa6e111d95b20424
4
+ data.tar.gz: 6cd3ac4cab24143d4b6ce8bfc3156368cf7aa5f4
5
5
  SHA512:
6
- metadata.gz: b7d7207af76b03ef266f77d4e9fbbaea9ef5b37c34a14928468889fe9ee1aaef4085f6c4853939dfcd7581ed323e34c1a90c09184bd1b84b3b77d9c8fce627e7
7
- data.tar.gz: 5b4e4ef151b1d516c777bbf42bcc9c36fa9ab9127afb14ce7160defbc5cdacf9975dbf0a86d29dc7a7a78d2dd72bd8b801b08659922360dab0796155e384b2e0
6
+ metadata.gz: c53545a104663ae3cc98ede208bf46804a940b748266aeb1cb641279dbc8cc7285645538abefa8d0ecb8b4d77d188a7cd401ed6252169593aab24248b447e120
7
+ data.tar.gz: 9217a006c6ff48b2eb66a910a01b7088380fa09fa66ed8e540359c7035f342ced0146a94c961f49d1874050f42764f642b5901c3b2247825e0b3785d1fcd05b2
data/.gitignore CHANGED
@@ -1,5 +1,6 @@
1
1
  *.gem
2
2
  *.rbc
3
+ *.swp
3
4
  .bundle
4
5
  .config
5
6
  coverage
@@ -11,16 +12,22 @@ spec/reports
11
12
  test/tmp
12
13
  test/version_tmp
13
14
  tmp
14
- build
15
- test.db
16
- killbill-currency-plugin*
15
+
17
16
  # YARD artifacts
18
17
  .yardoc
19
18
  _yardoc
20
19
  doc/
20
+
21
21
  .jbundler
22
- Jarfile.lock
23
- Gemfile.lock
24
- *.swp
25
- .idea
22
+
23
+ .DS_Store
24
+
25
+ # Testing database
26
+ test.db
27
+
28
+ target
26
29
  pom.xml.asc
30
+
31
+ .idea/
32
+
33
+ Gemfile.head.lock
data/.travis.yml CHANGED
@@ -1,18 +1,41 @@
1
1
  language: ruby
2
2
 
3
+ sudo: false
4
+ cache: bundler
5
+
6
+ before_script:
7
+ - bundle exec jbundle install
8
+
9
+ script: 'bundle exec rake spec'
10
+
3
11
  notifications:
4
12
  email:
5
- - killbilling-dev@googlegroups.com
13
+ - kill-bill-commits@googlegroups.com
14
+
15
+ env:
16
+ global:
17
+ - JRUBY_OPTS='-J-Xmx1024M'
6
18
 
7
19
  rvm:
8
- - jruby-19mode
20
+ - jruby-1.7.20
21
+ - jruby-20mode # latest 1.7.x
9
22
  - jruby-head
10
23
 
24
+ gemfile:
25
+ - Gemfile
26
+ - Gemfile.head
27
+
11
28
  jdk:
12
29
  - openjdk7
13
30
  - oraclejdk7
14
- - openjdk6
31
+ - oraclejdk8
15
32
 
16
33
  matrix:
17
34
  allow_failures:
18
35
  - rvm: jruby-head
36
+ - jdk: oraclejdk8
37
+ - gemfile: Gemfile.head
38
+ fast_finish: true
39
+
40
+ after_success:
41
+ - '[ "${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.lock ADDED
@@ -0,0 +1,78 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ killbill-currency-plugin-test (2.0.0)
5
+ killbill (~> 7.0)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ axiom-types (0.1.1)
11
+ descendants_tracker (~> 0.0.4)
12
+ ice_nine (~> 0.11.0)
13
+ thread_safe (~> 0.3, >= 0.3.1)
14
+ coercible (1.0.0)
15
+ descendants_tracker (~> 0.0.1)
16
+ descendants_tracker (0.0.4)
17
+ thread_safe (~> 0.3, >= 0.3.1)
18
+ diff-lcs (1.1.3)
19
+ equalizer (0.0.11)
20
+ ethon (0.8.0)
21
+ ffi (>= 1.3.0)
22
+ ffi (1.9.10-java)
23
+ ice_nine (0.11.1)
24
+ jar-dependencies (0.3.1)
25
+ jbundler (0.9.2)
26
+ bundler (~> 1.5)
27
+ jar-dependencies (~> 0.2)
28
+ maven-tools (~> 1.0.10)
29
+ ruby-maven (~> 3.3, >= 3.3.3)
30
+ killbill (7.0.0)
31
+ rack (>= 1.5.2)
32
+ sinatra (~> 1.3.4)
33
+ typhoeus (~> 0.6.9)
34
+ tzinfo (~> 1.2.0)
35
+ maven-tools (1.0.13)
36
+ virtus (~> 1.0)
37
+ rack (1.6.4)
38
+ rack-protection (1.5.3)
39
+ rack
40
+ rake (10.4.2)
41
+ rspec (2.12.0)
42
+ rspec-core (~> 2.12.0)
43
+ rspec-expectations (~> 2.12.0)
44
+ rspec-mocks (~> 2.12.0)
45
+ rspec-core (2.12.2)
46
+ rspec-expectations (2.12.1)
47
+ diff-lcs (~> 1.1.3)
48
+ rspec-mocks (2.12.2)
49
+ ruby-maven (3.3.8)
50
+ ruby-maven-libs (~> 3.3.1)
51
+ ruby-maven-libs (3.3.3)
52
+ sinatra (1.3.6)
53
+ rack (~> 1.4)
54
+ rack-protection (~> 1.3)
55
+ tilt (~> 1.3, >= 1.3.3)
56
+ thread_safe (0.3.5-java)
57
+ tilt (1.4.1)
58
+ typhoeus (0.6.9)
59
+ ethon (>= 0.7.1)
60
+ tzinfo (1.2.2)
61
+ thread_safe (~> 0.1)
62
+ virtus (1.0.5)
63
+ axiom-types (~> 0.1)
64
+ coercible (~> 1.0)
65
+ descendants_tracker (~> 0.0, >= 0.0.3)
66
+ equalizer (~> 0.0, >= 0.0.9)
67
+
68
+ PLATFORMS
69
+ java
70
+
71
+ DEPENDENCIES
72
+ jbundler (~> 0.9.2)
73
+ killbill-currency-plugin-test!
74
+ rake (>= 10.0.0)
75
+ rspec (~> 2.12.0)
76
+
77
+ BUNDLED WITH
78
+ 1.10.6
data/Jarfile CHANGED
@@ -1,8 +1,11 @@
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.32'
2
+ jar 'org.kill-bill.billing.plugin:killbill-plugin-api-currency', '0.18'
3
+ jar 'org.kill-bill.billing.plugin:killbill-plugin-api-invoice', '0.18'
4
+ jar 'org.kill-bill.billing.plugin:killbill-plugin-api-notification', '0.18'
5
+ jar 'org.kill-bill.billing.plugin:killbill-plugin-api-payment', '0.18'
6
+ jar 'org.kill-bill.billing.plugin:killbill-plugin-api-control', '0.18'
7
+ jar 'org.kill-bill.billing.plugin:killbill-plugin-api-catalog', '0.18'
8
+ jar 'org.kill-bill.billing.plugin:killbill-plugin-api-entitlement', '0.18'
9
+ jar 'org.kill-bill.billing:killbill-util:tests', '0.15.10'
10
+ jar 'org.mockito:mockito-all', '1.10.19'
11
+ jar 'javax.servlet:javax.servlet-api', '3.1.0'
data/Jarfile.lock ADDED
@@ -0,0 +1,61 @@
1
+ ---
2
+ :runtime:
3
+ - io.dropwizard.metrics:metrics-core:jar:3.1.1
4
+ - org.kill-bill.billing.plugin:killbill-plugin-api-catalog:jar:0.18
5
+ - com.fasterxml.jackson.core:jackson-core:jar:2.4.3
6
+ - joda-time:joda-time:jar:2.3
7
+ - org.weakref:jmxutils:jar:1.18
8
+ - org.kill-bill.billing.plugin:killbill-plugin-api-notification:jar:0.18
9
+ - commons-beanutils:commons-beanutils:jar:1.8.3
10
+ - org.kill-bill.billing:killbill-internal-api:jar:0.15.10
11
+ - org.kill-bill.commons:killbill-xmlloader:jar:0.11
12
+ - org.kill-bill.billing.plugin:killbill-plugin-api-entitlement:jar:0.18
13
+ - com.google.inject:guice:jar:3.0
14
+ - org.osgi:org.osgi.core:jar:5.0.0
15
+ - org.slf4j:slf4j-api:jar:1.7.12
16
+ - com.samskivert:jmustache:jar:1.5
17
+ - org.kill-bill.billing:killbill-util:jar:tests:0.15.10
18
+ - org.kill-bill.billing.plugin:killbill-plugin-api-currency:jar:0.18
19
+ - org.bgee.log4jdbc-log4j2:log4jdbc-log4j2-jdbc4:jar:1.16
20
+ - com.h2database:h2:jar:1.4.186
21
+ - javax.activation:activation:jar:1.1
22
+ - org.skife.config:config-magic:jar:0.14
23
+ - com.fasterxml.jackson.dataformat:jackson-dataformat-csv:jar:2.4.3
24
+ - org.kill-bill.billing.plugin:killbill-plugin-api-control:jar:0.18
25
+ - org.apache.commons:commons-email:jar:1.2
26
+ - org.mockito:mockito-all:jar:1.10.19
27
+ - antlr:antlr:jar:2.7.7
28
+ - aopalliance:aopalliance:jar:1.0
29
+ - com.fasterxml.jackson.core:jackson-annotations:jar:2.4.3
30
+ - org.antlr:stringtemplate:jar:3.2.1
31
+ - org.kill-bill.commons:killbill-clock:jar:0.11
32
+ - javax.mail:mail:jar:1.4.1
33
+ - org.kill-bill.billing:killbill-platform-base:jar:0.15
34
+ - io.dropwizard.metrics:metrics-ehcache:jar:3.1.1
35
+ - org.slf4j:jcl-over-slf4j:jar:1.7.12
36
+ - org.jdbi:jdbi:jar:2.62
37
+ - org.kill-bill.billing:killbill-platform-api:jar:0.15
38
+ - org.kill-bill.billing:killbill-platform-osgi:jar:0.15
39
+ - org.apache.felix:org.apache.felix.framework:jar:4.4.1
40
+ - org.joda:joda-money:jar:0.9
41
+ - org.kill-bill.commons:killbill-jdbi:jar:0.11
42
+ - org.kill-bill.commons:killbill-embeddeddb-common:jar:0.11
43
+ - org.apache.shiro:shiro-core:jar:1.2.3
44
+ - org.kill-bill.billing:killbill-platform-osgi-api:jar:0.15
45
+ - org.kill-bill.billing.plugin:killbill-plugin-api-payment:jar:0.18
46
+ - com.fasterxml.jackson.core:jackson-databind:jar:2.4.3
47
+ - com.google.guava:guava:jar:r09
48
+ - org.kill-bill.commons:killbill-locker:jar:0.11
49
+ - org.osgi:org.osgi.compendium:jar:5.0.0
50
+ - org.kill-bill.commons:killbill-queue:jar:0.11
51
+ - org.kill-bill.commons:killbill-concurrent:jar:0.11
52
+ - javax.servlet:javax.servlet-api:jar:3.1.0
53
+ - org.apache.shiro:shiro-ehcache:jar:1.2.3
54
+ - javax.inject:javax.inject:jar:1
55
+ - com.fasterxml.jackson.datatype:jackson-datatype-joda:jar:2.4.3
56
+ - com.google.inject.extensions:guice-multibindings:jar:3.0
57
+ - net.sf.ehcache:ehcache:jar:2.9.1
58
+ - org.kill-bill.billing.plugin:killbill-plugin-api-invoice:jar:0.18
59
+ - org.kill-bill.billing:killbill-api:jar:0.32
60
+ - org.apache.shiro:shiro-guice:jar:1.2.3
61
+ - com.google.code.findbugs:annotations:jar:3.0.0
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.3
1
+ 2.0.0
@@ -0,0 +1,30 @@
1
+ version = File.read(File.expand_path('../VERSION', __FILE__)).strip
2
+
3
+ Gem::Specification.new do |s|
4
+ s.name = 'killbill-currency-plugin-test'
5
+ s.version = version
6
+ s.summary = 'Test Currency Plugin.'
7
+ s.description = 'Mock plugin used for integration tests.'
8
+
9
+ s.required_ruby_version = '>= 1.9.3'
10
+
11
+ s.license = 'Apache License (2.0)'
12
+
13
+ s.author = 'Kill Bill core team'
14
+ s.email = 'killbilling-users@googlegroups.com'
15
+ s.homepage = 'http://killbill.io'
16
+
17
+ s.files = `git ls-files`.split("\n")
18
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
19
+ s.bindir = 'bin'
20
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
21
+ s.require_paths = ["lib"]
22
+
23
+ s.rdoc_options << '--exclude' << '.'
24
+
25
+ s.add_dependency 'killbill', '~> 7.0'
26
+
27
+ s.add_development_dependency 'jbundler', '~> 0.9.2'
28
+ s.add_development_dependency 'rake', '>= 10.0.0'
29
+ s.add_development_dependency 'rspec', '~> 2.12.0'
30
+ end
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.ruby</groupId>
28
28
  <artifactId>killbill-currency-plugin-test</artifactId>
29
29
  <packaging>pom</packaging>
30
- <version>1.1.3</version>
30
+ <version>2.0.0</version>
31
31
  <name>killbill-currency-plugin-test</name>
32
32
  <description></description>
33
33
  <scm>
data/release.sh CHANGED
@@ -1,28 +1,61 @@
1
1
  set -e
2
2
 
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'
8
+ exit 1
9
+ fi
10
+
11
+ if $(ruby -e'require "java"'); then
12
+ # Good
13
+ echo 'Detected JRuby'
14
+ else
15
+ echo 'Unable to release: make sure to use JRuby'
16
+ exit 1
17
+ fi
18
+
3
19
  VERSION=`grep -E '<version>([0-9]+\.[0-9]+\.[0-9]+)</version>' pom.xml | sed 's/[\t \n]*<version>\(.*\)<\/version>[\t \n]*/\1/'`
4
- if [ "$VERSION" != "$(cat $PWD/VERSION)" ]; then
5
- 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'
6
22
  exit 1
7
23
  fi
8
24
 
9
- echo "Cleaning up"
10
- rake killbill:clean ; rake build
25
+ echo 'Cleaning up'
26
+ $BUNDLE rake killbill:clean
27
+
28
+ echo 'Building gem'
29
+ $BUNDLE rake build
11
30
 
12
- echo "Pushing the gem to Rubygems"
13
- rake release
31
+ if [[ -z "$NO_RELEASE" ]]; then
32
+ echo 'Pushing the gem to Rubygems'
33
+ $BUNDLE rake release
34
+ fi
14
35
 
15
- echo "Building artifact"
16
- rake killbill:package
36
+ echo 'Building artifact'
37
+ $BUNDLE rake killbill:package
17
38
 
18
39
  ARTIFACT="$PWD/pkg/killbill-currency-plugin-test-$VERSION.tar.gz"
19
40
  echo "Pushing $ARTIFACT to Maven Central"
20
- mvn gpg:sign-and-deploy-file \
21
- -DgroupId=org.kill-bill.billing.plugin.ruby \
22
- -DartifactId=killbill-currency-plugin-test \
23
- -Dversion=$VERSION \
24
- -Dpackaging=tar.gz \
25
- -DrepositoryId=ossrh-releases \
26
- -Durl=https://oss.sonatype.org/service/local/staging/deploy/maven2/ \
27
- -Dfile=$ARTIFACT \
28
- -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=killbill-currency-plugin-test \
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-currency-plugin-test
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.3
4
+ version: 2.0.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-12 00:00:00.000000000 Z
11
+ date: 2015-12-18 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: '7.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: '7.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.9.2
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.9.2
39
39
  prerelease: false
40
40
  type: :development
41
41
  - !ruby/object:Gem::Dependency
@@ -75,7 +75,9 @@ files:
75
75
  - .gitignore
76
76
  - .travis.yml
77
77
  - Gemfile
78
+ - Gemfile.lock
78
79
  - Jarfile
80
+ - Jarfile.lock
79
81
  - README.md
80
82
  - Rakefile
81
83
  - VERSION
@@ -85,7 +87,7 @@ files:
85
87
  - lib/currency_plugin_test/api.rb
86
88
  - pom.xml
87
89
  - release.sh
88
- homepage: http://kill-bill.org
90
+ homepage: http://killbill.io
89
91
  licenses:
90
92
  - Apache License (2.0)
91
93
  metadata: {}
@@ -107,7 +109,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
107
109
  version: '0'
108
110
  requirements: []
109
111
  rubyforge_project:
110
- rubygems_version: 2.2.2
112
+ rubygems_version: 2.1.9
111
113
  signing_key:
112
114
  specification_version: 4
113
115
  summary: Test Currency Plugin.