killbill-notification-test 3.0.0 → 3.0.1

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: 2ffadb72d5d2bf9dd2dbfa9eebc93073812c2d26
4
- data.tar.gz: ec37b8042fbf809482c89e814ac87ef051f71e26
3
+ metadata.gz: 35e4a68db451d723a1046c106d3d947b53bec58a
4
+ data.tar.gz: 9f4dc779c1479216188e6b3ab9c731dca3a68d74
5
5
  SHA512:
6
- metadata.gz: d69c227b752faf863fbbdf516b2bc4891856e0809f65016a81fed4cc2eaa05a965ddf4da2198783249206eff814d58738f8d3aa526fe97f65d205f82afb49dd3
7
- data.tar.gz: 8dddc818bd6af0458847f989946591a0a0c46954f6104ca60c7d72da85368db60cd219eabb7899e97c1421d5c01bcd786f70df512a6a9e035a968c6974ca08f0
6
+ metadata.gz: f66274cfb1321b70319a74ac45863460f3157fa154dbf30a0879c84dcbb867b3a0639aeb69ea967adcb2d3ef85c3defada569690facba2d174fa4625e9ec72ad
7
+ data.tar.gz: 2dddc3495b59fc67c6b89c10269e654a5b675c44c94bfb0f523191b17356e2b486f25e7c44937b9a5833c1b8badc0f12f6575174994f666b8a85a0efe07e4304
metadata CHANGED
@@ -1,118 +1,102 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: killbill-notification-test
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.0.1
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: 2016-11-21 00:00:00.000000000 Z
11
+ date: 2017-05-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: killbill
15
- version_requirements: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - ~>
18
- - !ruby/object:Gem::Version
19
- version: '8.0'
20
14
  requirement: !ruby/object:Gem::Requirement
21
15
  requirements:
22
- - - ~>
16
+ - - "~>"
23
17
  - !ruby/object:Gem::Version
24
18
  version: '8.0'
19
+ name: killbill
25
20
  prerelease: false
26
21
  type: :runtime
27
- - !ruby/object:Gem::Dependency
28
- name: jbundler
29
22
  version_requirements: !ruby/object:Gem::Requirement
30
23
  requirements:
31
- - - ~>
24
+ - - "~>"
32
25
  - !ruby/object:Gem::Version
33
- version: 0.9.2
26
+ version: '8.0'
27
+ - !ruby/object:Gem::Dependency
34
28
  requirement: !ruby/object:Gem::Requirement
35
29
  requirements:
36
- - - ~>
30
+ - - "~>"
37
31
  - !ruby/object:Gem::Version
38
32
  version: 0.9.2
33
+ name: jbundler
39
34
  prerelease: false
40
35
  type: :development
41
- - !ruby/object:Gem::Dependency
42
- name: rake
43
36
  version_requirements: !ruby/object:Gem::Requirement
44
37
  requirements:
45
- - - '>='
38
+ - - "~>"
46
39
  - !ruby/object:Gem::Version
47
- version: 10.0.0
40
+ version: 0.9.2
41
+ - !ruby/object:Gem::Dependency
48
42
  requirement: !ruby/object:Gem::Requirement
49
43
  requirements:
50
- - - '>='
44
+ - - ">="
51
45
  - !ruby/object:Gem::Version
52
46
  version: 10.0.0
47
+ name: rake
53
48
  prerelease: false
54
49
  type: :development
55
- - !ruby/object:Gem::Dependency
56
- name: rspec
57
50
  version_requirements: !ruby/object:Gem::Requirement
58
51
  requirements:
59
- - - ~>
52
+ - - ">="
60
53
  - !ruby/object:Gem::Version
61
- version: 2.12.0
54
+ version: 10.0.0
55
+ - !ruby/object:Gem::Dependency
62
56
  requirement: !ruby/object:Gem::Requirement
63
57
  requirements:
64
- - - ~>
58
+ - - "~>"
65
59
  - !ruby/object:Gem::Version
66
60
  version: 2.12.0
61
+ name: rspec
67
62
  prerelease: false
68
63
  type: :development
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 2.12.0
69
69
  description: Killbill Plugin to test notification plugin api
70
70
  email: killbilling-users@googlegroups.com
71
71
  executables: []
72
72
  extensions: []
73
73
  extra_rdoc_files: []
74
74
  files:
75
- - .gitignore
76
- - .travis.yml
77
- - Gemfile
78
- - Gemfile.head
79
- - Gemfile.lock
80
- - Jarfile
81
- - Jarfile.lock
82
- - README.md
83
- - Rakefile
84
- - VERSION
85
- - killbill-notification-test.gemspec
86
- - killbill.properties
87
75
  - lib/notification_test.rb
88
76
  - lib/notification_test/api.rb
89
- - pom.xml
90
- - release.sh
91
- - spec/notification_test/base_plugin_spec.rb
92
- - spec/spec_helper.rb
93
77
  homepage: http://killbill.io
94
78
  licenses:
95
79
  - Apache License (2.0)
96
80
  metadata: {}
97
81
  post_install_message:
98
82
  rdoc_options:
99
- - --exclude
100
- - .
83
+ - "--exclude"
84
+ - "."
101
85
  require_paths:
102
86
  - lib
103
87
  required_ruby_version: !ruby/object:Gem::Requirement
104
88
  requirements:
105
- - - '>='
89
+ - - ">="
106
90
  - !ruby/object:Gem::Version
107
91
  version: 1.9.3
108
92
  required_rubygems_version: !ruby/object:Gem::Requirement
109
93
  requirements:
110
- - - '>='
94
+ - - ">="
111
95
  - !ruby/object:Gem::Version
112
96
  version: '0'
113
97
  requirements: []
114
98
  rubyforge_project:
115
- rubygems_version: 2.4.6
99
+ rubygems_version: 2.4.8
116
100
  signing_key:
117
101
  specification_version: 4
118
102
  summary: Plugin to test notification plugin api
data/.gitignore DELETED
@@ -1,33 +0,0 @@
1
- *.gem
2
- *.rbc
3
- *.swp
4
- .bundle
5
- .config
6
- coverage
7
- InstalledFiles
8
- lib/bundler/man
9
- pkg
10
- rdoc
11
- spec/reports
12
- test/tmp
13
- test/version_tmp
14
- tmp
15
-
16
- # YARD artifacts
17
- .yardoc
18
- _yardoc
19
- doc/
20
-
21
- .jbundler
22
-
23
- .DS_Store
24
-
25
- # Testing database
26
- test.db
27
-
28
- target
29
- pom.xml.asc
30
-
31
- .idea/
32
-
33
- Gemfile.head.lock
data/.travis.yml DELETED
@@ -1,41 +0,0 @@
1
- language: ruby
2
-
3
- sudo: false
4
- cache: bundler
5
-
6
- before_script:
7
- - bundle exec jbundle install
8
-
9
- script: 'bundle exec rake spec'
10
-
11
- notifications:
12
- email:
13
- - kill-bill-commits@googlegroups.com
14
-
15
- env:
16
- global:
17
- - JRUBY_OPTS='-J-Xmx1024M'
18
-
19
- rvm:
20
- - jruby-1.7.20
21
- - jruby-20mode # latest 1.7.x
22
- - jruby-head
23
-
24
- gemfile:
25
- - Gemfile
26
- - Gemfile.head
27
-
28
- jdk:
29
- - openjdk7
30
- - oraclejdk7
31
- - oraclejdk8
32
-
33
- matrix:
34
- allow_failures:
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 DELETED
@@ -1,3 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- gemspec
data/Gemfile.head DELETED
@@ -1,5 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- gemspec
4
-
5
- gem 'killbill', :github => 'killbill/killbill-plugin-framework-ruby', :ref => 'HEAD'
data/Gemfile.lock DELETED
@@ -1,78 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- killbill-notification-test (3.0.0)
5
- killbill (~> 8.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.9.1)
21
- ffi (>= 1.3.0)
22
- ffi (1.9.14-java)
23
- ice_nine (0.11.2)
24
- jar-dependencies (0.3.5)
25
- jbundler (0.9.3)
26
- bundler (~> 1.5)
27
- jar-dependencies (~> 0.3)
28
- maven-tools (~> 1.1)
29
- ruby-maven (~> 3.3, >= 3.3.8)
30
- killbill (8.3.1)
31
- rack (>= 1.5.2)
32
- sinatra (~> 1.3.4)
33
- typhoeus (~> 0.6.9)
34
- tzinfo (~> 1.2.0)
35
- maven-tools (1.1.6)
36
- virtus (~> 1.0)
37
- rack (1.6.5)
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.12)
50
- ruby-maven-libs (~> 3.3.9)
51
- ruby-maven-libs (3.3.9)
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-notification-test!
74
- rake (>= 10.0.0)
75
- rspec (~> 2.12.0)
76
-
77
- BUNDLED WITH
78
- 1.11.2
data/Jarfile DELETED
@@ -1,12 +0,0 @@
1
- jar 'org.kill-bill.billing:killbill-api', '0.50'
2
- jar 'org.kill-bill.billing.plugin:killbill-plugin-api-currency', '0.23'
3
- jar 'org.kill-bill.billing.plugin:killbill-plugin-api-invoice', '0.23'
4
- jar 'org.kill-bill.billing.plugin:killbill-plugin-api-notification', '0.23'
5
- jar 'org.kill-bill.billing.plugin:killbill-plugin-api-payment', '0.23'
6
- jar 'org.kill-bill.billing.plugin:killbill-plugin-api-control', '0.23'
7
- jar 'org.kill-bill.billing.plugin:killbill-plugin-api-catalog', '0.23'
8
- jar 'org.kill-bill.billing.plugin:killbill-plugin-api-entitlement', '0.23'
9
- jar 'org.kill-bill.billing:killbill-util:tests', '0.18.0'
10
- jar 'org.kill-bill.billing:killbill-util', '0.18.0'
11
- jar 'org.mockito:mockito-all', '1.10.19'
12
- jar 'javax.servlet:javax.servlet-api', '3.1.0'
data/Jarfile.lock DELETED
@@ -1,66 +0,0 @@
1
- ---
2
- :runtime:
3
- - io.dropwizard.metrics:metrics-core:jar:3.1.1
4
- - joda-time:joda-time:jar:2.3
5
- - org.weakref:jmxutils:jar:1.18
6
- - commons-beanutils:commons-beanutils:jar:1.8.3
7
- - com.google.inject:guice:jar:3.0
8
- - org.osgi:org.osgi.core:jar:5.0.0
9
- - com.fasterxml.jackson.core:jackson-databind:jar:2.4.5
10
- - org.kill-bill.billing.plugin:killbill-plugin-api-currency:jar:0.23
11
- - org.kill-bill.billing:killbill-platform-api:jar:0.36.1
12
- - com.samskivert:jmustache:jar:1.5
13
- - org.kill-bill.commons:killbill-clock:jar:0.20
14
- - org.kill-bill.billing:killbill-util:jar:0.18.0
15
- - com.fasterxml.jackson.dataformat:jackson-dataformat-csv:jar:2.4.5
16
- - org.bouncycastle:bcpkix-jdk15on:jar:1.55
17
- - org.bouncycastle:bcprov-jdk15on:jar:1.55
18
- - org.kill-bill.billing.plugin:killbill-plugin-api-entitlement:jar:0.23
19
- - org.bgee.log4jdbc-log4j2:log4jdbc-log4j2-jdbc4:jar:1.16
20
- - com.h2database:h2:jar:1.4.186
21
- - com.fasterxml.jackson.datatype:jackson-datatype-joda:jar:2.4.5
22
- - javax.activation:activation:jar:1.1
23
- - org.skife.config:config-magic:jar:0.14
24
- - org.javassist:javassist:jar:3.19.0-GA
25
- - org.mockito:mockito-all:jar:1.10.19
26
- - org.apache.commons:commons-email:jar:1.2
27
- - antlr:antlr:jar:2.7.7
28
- - aopalliance:aopalliance:jar:1.0
29
- - com.zaxxer:HikariCP-java6:jar:2.3.7
30
- - org.slf4j:slf4j-api:jar:1.7.21
31
- - com.fasterxml.jackson.core:jackson-annotations:jar:2.4.3
32
- - org.antlr:stringtemplate:jar:3.2.1
33
- - org.slf4j:jcl-over-slf4j:jar:1.7.21
34
- - javax.mail:mail:jar:1.4.1
35
- - io.dropwizard.metrics:metrics-ehcache:jar:3.1.1
36
- - org.jdbi:jdbi:jar:2.62
37
- - com.fasterxml.jackson.core:jackson-core:jar:2.4.5
38
- - org.apache.felix:org.apache.felix.framework:jar:4.4.1
39
- - org.joda:joda-money:jar:0.9
40
- - org.kill-bill.billing.plugin:killbill-plugin-api-payment:jar:0.23
41
- - org.apache.shiro:shiro-core:jar:1.2.3
42
- - org.kill-bill.billing:killbill-internal-api:jar:0.18.0
43
- - org.kill-bill.billing:killbill-util:jar:tests:0.18.0
44
- - org.kill-bill.billing.plugin:killbill-plugin-api-control:jar:0.23
45
- - org.kill-bill.commons:killbill-jdbi:jar:0.20
46
- - com.google.guava:guava:jar:r09
47
- - org.kill-bill.commons:killbill-queue:jar:0.20
48
- - org.osgi:org.osgi.compendium:jar:5.0.0
49
- - org.kill-bill.commons:killbill-xmlloader:jar:0.20
50
- - javax.servlet:javax.servlet-api:jar:3.1.0
51
- - org.kill-bill.billing:killbill-platform-osgi:jar:0.36.1
52
- - org.apache.shiro:shiro-ehcache:jar:1.2.3
53
- - org.kill-bill.billing:killbill-platform-base:jar:0.36.1
54
- - javax.inject:javax.inject:jar:1
55
- - org.kill-bill.billing.plugin:killbill-plugin-api-invoice:jar:0.23
56
- - org.kill-bill.billing:killbill-api:jar:0.50
57
- - com.google.inject.extensions:guice-multibindings:jar:3.0
58
- - org.kill-bill.billing:killbill-platform-osgi-api:jar:0.36.1
59
- - net.sf.ehcache:ehcache:jar:2.9.1
60
- - org.kill-bill.commons:killbill-locker:jar:0.20
61
- - org.kill-bill.commons:killbill-embeddeddb-common:jar:0.20
62
- - org.apache.shiro:shiro-guice:jar:1.2.3
63
- - com.google.code.findbugs:annotations:jar:3.0.0
64
- - org.kill-bill.billing.plugin:killbill-plugin-api-notification:jar:0.23
65
- - org.kill-bill.billing.plugin:killbill-plugin-api-catalog:jar:0.23
66
- - org.kill-bill.commons:killbill-concurrent:jar:0.20
data/README.md DELETED
@@ -1,14 +0,0 @@
1
- killbill-notification-test-plugin
2
- =================================
3
-
4
- Plugin to test the Kill Bill NotificationPlugin API.
5
-
6
- Release builds are available on [Maven Central](http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22org.kill-bill.billing.plugin.ruby%22%20AND%20a%3A%22notification-test-plugin%22) with coordinates `org.kill-bill.billing.plugin.ruby:notification-test-plugin`.
7
-
8
- Kill Bill compatibility
9
- -----------------------
10
-
11
- | Plugin version | Kill Bill version |
12
- | -------------: | ----------------: |
13
- | 2.0.y | 0.16.z |
14
- | 3.0.y | 0.18.z |
data/Rakefile DELETED
@@ -1,17 +0,0 @@
1
- #!/usr/bin/env rake
2
-
3
- # Install tasks to build and release the plugin
4
- require 'bundler/setup'
5
- Bundler::GemHelper.install_tasks
6
-
7
- # Install test tasks
8
- require 'rspec/core/rake_task'
9
- desc "Run RSpec"
10
- RSpec::Core::RakeTask.new
11
-
12
- # Install tasks to package the plugin for Killbill
13
- require 'killbill/rake_task'
14
- Killbill::PluginHelper.install_tasks
15
-
16
- # Run tests by default
17
- task :default => :spec
data/VERSION DELETED
@@ -1 +0,0 @@
1
- 3.0.0
@@ -1,30 +0,0 @@
1
- version = File.read(File.expand_path('../VERSION', __FILE__)).strip
2
-
3
- Gem::Specification.new do |s|
4
- s.name = 'killbill-notification-test'
5
- s.version = version
6
- s.summary = 'Plugin to test notification plugin api'
7
- s.description = 'Killbill Plugin to test notification plugin api'
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', '~> 8.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/killbill.properties DELETED
@@ -1,3 +0,0 @@
1
- mainClass=NotificationTest::NotificationPlugin
2
- require=notification_test
3
- pluginType=NOTIFICATION
data/pom.xml DELETED
@@ -1,38 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <!--
3
- ~ Copyright 2010-2013 Ning, Inc.
4
- ~ Copyright 2014-2015 Groupon, Inc
5
- ~ Copyright 2014-2015 The Billing Project, LLC
6
- ~
7
- ~ The Billing Project licenses this file to you under the Apache License, version 2.0
8
- ~ (the "License"); you may not use this file except in compliance with the
9
- ~ License. You may obtain a copy of the License at:
10
- ~
11
- ~ http://www.apache.org/licenses/LICENSE-2.0
12
- ~
13
- ~ Unless required by applicable law or agreed to in writing, software
14
- ~ distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
15
- ~ WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
16
- ~ License for the specific language governing permissions and limitations
17
- ~ under the License.
18
- -->
19
-
20
- <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
21
- <parent>
22
- <groupId>org.sonatype.oss</groupId>
23
- <artifactId>oss-parent</artifactId>
24
- <version>5</version>
25
- </parent>
26
- <modelVersion>4.0.0</modelVersion>
27
- <groupId>org.kill-bill.billing.plugin.ruby</groupId>
28
- <artifactId>notification-test-plugin</artifactId>
29
- <packaging>pom</packaging>
30
- <version>3.0.0</version>
31
- <name>notification-test-plugin</name>
32
- <description></description>
33
- <scm>
34
- <connection>scm:git:git://github.com/killbill/killbill-notification-test-plugin.git</connection>
35
- <url>https://github.com/killbill/killbill-notification-test-plugin/</url>
36
- <developerConnection>scm:git:git@github.com:killbill/killbill-notification-test-plugin.git</developerConnection>
37
- </scm>
38
- </project>
data/release.sh DELETED
@@ -1,61 +0,0 @@
1
- set -e
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
-
19
- VERSION=`grep -E '<version>([0-9]+\.[0-9]+\.[0-9]+)</version>' pom.xml | sed 's/[\t \n]*<version>\(.*\)<\/version>[\t \n]*/\1/'`
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'
22
- exit 1
23
- fi
24
-
25
- echo 'Cleaning up'
26
- $BUNDLE rake killbill:clean
27
-
28
- echo 'Building gem'
29
- $BUNDLE rake build
30
-
31
- if [[ -z "$NO_RELEASE" ]]; then
32
- echo 'Pushing the gem to Rubygems'
33
- $BUNDLE rake release
34
- fi
35
-
36
- echo 'Building artifact'
37
- $BUNDLE rake killbill:package
38
-
39
- ARTIFACT="$PWD/pkg/killbill-notification-test-$VERSION.tar.gz"
40
- echo "Pushing $ARTIFACT to Maven Central"
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=notification-test-plugin \
56
- -Dversion=$VERSION \
57
- -Dpackaging=tar.gz \
58
- -DrepositoryId=$REPOSITORY_ID \
59
- -Durl=$URL \
60
- -Dfile=$ARTIFACT \
61
- -DpomFile=pom.xml
@@ -1,37 +0,0 @@
1
- require 'spec_helper'
2
- require 'logger'
3
-
4
- require 'notification_test'
5
-
6
- describe NotificationTest::NotificationPlugin do
7
-
8
- before(:each) do
9
- kb_apis = Killbill::Plugin::KillbillApi.new("killbill-notification-test", {})
10
-
11
- @plugin = NotificationTest::NotificationPlugin.new
12
- @plugin.logger = Logger.new(STDOUT)
13
- @plugin.kb_apis = kb_apis
14
-
15
- @kb_event = Killbill::Plugin::Model::ExtBusEvent.new
16
- @kb_event.event_type = :INVOICE_CREATION
17
- @kb_event.object_type = :INVOICE
18
- @kb_event.object_id = "9f73c8e9-188a-4603-a3ba-2ce684411fb9"
19
- @kb_event.account_id = "a86ed6d4-c0bd-4a44-b49a-5ec29c3b314a"
20
- @kb_event.tenant_id = "b86fd6d4-c0bd-4a44-b49a-5ec29c3b3765"
21
- end
22
-
23
- it "should start and stop correctly" do
24
- @plugin.start_plugin
25
- @plugin.stop_plugin
26
- end
27
-
28
- it "should should test receiving an event" do
29
- file_name = '/var/tmp/killbill-notification-test.txt'
30
-
31
- output = @plugin.on_event(@kb_event)
32
- output.should be_nil
33
-
34
- File.file?(file_name).should be_true
35
- File.delete file_name
36
- end
37
- end
data/spec/spec_helper.rb DELETED
@@ -1,10 +0,0 @@
1
- require 'bundler'
2
-
3
- require 'killbill'
4
- require 'rspec'
5
-
6
- RSpec.configure do |config|
7
- config.color_enabled = true
8
- config.tty = true
9
- config.formatter = 'documentation'
10
- end