-
Notifications
You must be signed in to change notification settings - Fork 6
/
Rakefile
90 lines (83 loc) · 2.89 KB
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# Copyright (c) 2017 Vantiv eCommerce.
#
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation
# files (the "Software"), to deal in the Software without
# restriction, including without limitation the rights to use,
# copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the
# Software is furnished to do so, subject to the following
# conditions:
#
# The above copyright notice and this permission notice shall be
# included in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
# OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
# NON-INFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
# HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
# OTHER DEALINGS IN THE SOFTWARE.
require 'rubygems'
require 'rubygems/package_task'
require 'rake/testtask'
require 'rake/clean'
spec = Gem::Specification.new do |s|
FileUtils.rm_rf('pkg')
s.name = 'CnpOnline'
s.summary = 'Ruby SDK produced by Vantiv eCommerce for transaction processing using Vantiv eCommerce XML format v12.3'
s.description = File.read(File.join(File.dirname(__FILE__), 'DESCRIPTION'))
s.requirements =
['Contact [email protected] for more information']
s.version = '12.8.0'
s.author = 'Vantiv - eCommerce'
s.email = '[email protected]'
s.homepage = 'https://developer.vantiv.com/community/ecommerce/pages/sdks#jive_content_id_Ruby_SDK'
s.platform = Gem::Platform::RUBY
s.required_ruby_version = '>=2.2.0'
s.files = Dir['**/**']
s.executables = ['sample_driver.rb', 'Setup.rb']
s.test_files = Dir['test/unit/ts_unit.rb']
s.has_rdoc = true
s.add_dependency('xml-object')
s.add_dependency('xml-mapping')
s.add_dependency('net-sftp')
s.add_dependency('libxml-ruby')
s.add_dependency('crack')
s.add_dependency('iostreams')
s.add_development_dependency('mocha')
end
Gem::PackageTask.new(spec) do |pkg|
pkg.gem_spec = spec
pkg.need_zip = true
pkg.need_tar = true
end
namespace :test do
Rake::TestTask.new do |t|
t.libs << '.'
t.name = 'unit'
t.test_files = FileList['test/unit/ts_unit.rb']
t.verbose = true
end
Rake::TestTask.new do |t|
t.libs << '.'
t.name = 'functional'
t.test_files = FileList['test/functional/ts_all.rb']
t.verbose = true
end
Rake::TestTask.new do |t|
t.libs << '.'
t.name = 'certification'
t.test_files = FileList['test/certification/certTest*.rb']
t.verbose = true
end
Rake::TestTask.new do |t|
t.libs << '.'
t.name = 'all'
t.test_files = FileList['test/**/*.rb']
t.verbose = true
end
end
task default: 'gem'