jdbc-jt400 9.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 5fcfb0e9a5f01e99c3c994c8962314b1915cd912
4
+ data.tar.gz: 487cdaca8ab29028512819f0e4c4f2955941e95c
5
+ SHA512:
6
+ metadata.gz: 4c2347459820e60ca9500fc42c821f8030273c92d468a2c1d90542fcfa86a0e673a0844b69ab8596dfbcf3d8f43d93b4909ff1202f55f3127b9e2a830c420f76
7
+ data.tar.gz: 94943892a277dc65531a345fada614d905bedf77c9a8533df1255626a685afc03d5cc4fc79258872306b01428136523eeba15fc54e225e6bdeaa7d90dc8e2d1c
@@ -0,0 +1,2 @@
1
+ Gemfile.lock
2
+ jdbc-jt400-9.1.0-java.gem
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
@@ -0,0 +1,27 @@
1
+ Lint/EndAlignment:
2
+ EnforcedStyleAlignWith: variable
3
+
4
+ Metrics/LineLength:
5
+ Max: 132
6
+ Metrics/MethodLength:
7
+ Severity: warning
8
+
9
+ # Rationale: allow Weirich-style blocks
10
+ Style/BlockDelimiters:
11
+ Enabled: false
12
+ Style/Documentation:
13
+ Enabled: false
14
+ Style/Encoding:
15
+ Enabled: false
16
+ Style/FileName:
17
+ Enabled: false
18
+ Style/MultilineMethodCallIndentation:
19
+ EnforcedStyle: indented
20
+ Style/MultilineOperationIndentation:
21
+ EnforcedStyle: indented
22
+ Style/RegexpLiteral:
23
+ Enabled: false
24
+ Style/Alias:
25
+ Enabled: false
26
+ Style/IndentArray:
27
+ EnforcedStyle: consistent
@@ -0,0 +1 @@
1
+ jruby-9.1.7.0
data/Gemfile ADDED
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+ source 'https://rubygems.org'
3
+
4
+ # Specify your gem's dependencies in ecraft-sequel.gemspec
5
+ gemspec
@@ -0,0 +1,213 @@
1
+ # IBM Public License Version 1.0
2
+ THE ACCOMPANYING PROGRAM IS PROVIDED UNDER THE TERMS OF THIS IBM
3
+ PUBLIC LICENSE ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION
4
+ OF THE PROGRAM CONSTITUTES RECIPIENT'S ACCEPTANCE OF THIS AGREEMENT.
5
+
6
+ ### 1\. DEFINITIONS
7
+
8
+ "Contribution" means:
9
+
10
+ 1. in the case of International Business Machines Corporation ("IBM"), the Original Program, and
11
+ 2. in the case of each Contributor,
12
+ 1. changes to the Program, and
13
+ 2. additions to the Program;
14
+ where such changes and/or additions to the Program originate from and
15
+ are distributed by that particular Contributor. A Contribution
16
+ 'originates' from a Contributor if it was added to the Program by
17
+ such Contributor itself or anyone acting on such Contributor's
18
+ behalf. Contributions do not include additions to the Program which:
19
+ (i) are separate modules of software distributed in conjunction with
20
+ the Program under their own license agreement, and (ii) are not
21
+ derivative works of the Program.
22
+
23
+ "Contributor" means IBM and any other entity that distributes the Program.
24
+
25
+ "Licensed Patents " mean patent claims licensable by a
26
+ Contributor which are necessarily infringed by the use or sale of its
27
+ Contribution alone or when combined with the Program.
28
+
29
+ "Original Program" means the original version of the software
30
+ accompanying this Agreement as released by IBM, including source
31
+ code, object code and documentation, if any.
32
+
33
+ "Program" means the Original Program and Contributions.
34
+
35
+ "Recipient" means anyone who receives the Program under this
36
+ Agreement, including all Contributors.
37
+
38
+ ### 2\. GRANT OF RIGHTS
39
+
40
+ 1. Subject to the terms of this Agreement, each Contributor hereby
41
+ grants Recipient a non-exclusive, worldwide, royalty-free copyright
42
+ license to reproduce, prepare derivative works of, publicly display,
43
+ publicly perform, distribute and sublicense the Contribution of such
44
+ Contributor, if any, and such derivative works, in source code and
45
+ object code form.
46
+ 2. Subject to the terms of this Agreement, each Contributor hereby
47
+ grants Recipient a non-exclusive, worldwide, royalty-free patent
48
+ license under Licensed Patents to make, use, sell, offer to sell,
49
+ import and otherwise transfer the Contribution of such Contributor,
50
+ if any, in source code and object code form. This patent license
51
+ shall apply to the combination of the Contribution and the Program
52
+ if, at the time the Contribution is added by the Contributor, such
53
+ addition of the Contribution causes such combination to be covered by
54
+ the Licensed Patents. The patent license shall not apply to any
55
+ other combinations which include the Contribution. No hardware per
56
+ se is licensed hereunder.
57
+ 3. Recipient understands that although each Contributor grants the
58
+ licenses to its Contributions set forth herein, no assurances are
59
+ provided by any Contributor that the Program does not infringe the
60
+ patent or other intellectual property rights of any other entity.
61
+ Each Contributor disclaims any liability to Recipient for claims
62
+ brought by any other entity based on infringement of intellectual
63
+ property rights or otherwise. As a condition to exercising the
64
+ rights and licenses granted hereunder, each Recipient hereby assumes
65
+ sole responsibility to secure any other intellectual property rights
66
+ needed, if any. For example, if a third party patent license is
67
+ required to allow Recipient to distribute the Program, it is
68
+ Recipient's responsibility to acquire that license before
69
+ distributing the Program.
70
+ 4. Each Contributor represents that to its knowledge it has
71
+ sufficient copyright rights in its Contribution, if any, to grant the
72
+ copyright license set forth in this Agreement.
73
+
74
+ ### 3\. REQUIREMENTS
75
+ A Contributor may choose to distribute
76
+ the Program in object code form under its own license agreement,
77
+ provided that:
78
+
79
+ 1. it complies with the terms and conditions of this Agreement; and
80
+ 2. its license agreement:
81
+ 1. effectively disclaims on behalf of all Contributors all warranties
82
+ and conditions, express and implied, including warranties or
83
+ conditions of title and non-infringement, and implied warranties or
84
+ conditions of merchantability and fitness for a particular purpose;
85
+ 2. effectively excludes on behalf of all Contributors all liability
86
+ for damages, including direct, indirect, special, incidental and
87
+ consequential damages, such as lost profits;
88
+ 3. states that any provisions which differ from this Agreement are
89
+ offered by that Contributor alone and not by any other party; and
90
+ 4. states that source code for the Program is available from such
91
+ Contributor, and informs licensees how to obtain it in a reasonable
92
+ manner on or through a medium customarily used for software exchange.
93
+ When the Program is made available in source code form:
94
+
95
+ 1. it must be made available under this Agreement; and
96
+ 2. a copy of this Agreement must be included with each copy of the
97
+ Program.
98
+ Each Contributor must include the following in a conspicuous location in the Program:
99
+
100
+ > Copyright (C) 1996, 1999 International Business Machines Corporation and others. All Rights Reserved.
101
+ >
102
+
103
+ In addition, each Contributor must identify itself as the originator
104
+ of its Contribution, if any, in a manner that reasonably allows
105
+ subsequent Recipients to identify the originator of the Contribution.
106
+
107
+ ### 4\. COMMERCIAL DISTRIBUTION
108
+
109
+ Commercial distributors of software may accept certain
110
+ responsibilities with respect to end users, business partners and the
111
+ like. While this license is intended to facilitate the commercial
112
+ use of the Program, the Contributor who includes the Program in a
113
+ commercial product offering should do so in a manner which does not
114
+ create potential liability for other Contributors. Therefore, if a
115
+ Contributor includes the Program in a commercial product offering,
116
+ such Contributor ("Commercial Contributor") hereby agrees to defend
117
+ and indemnify every other Contributor ("Indemnified Contributor")
118
+ against any losses, damages and costs (collectively "Losses") arising
119
+ from claims, lawsuits and other legal actions brought by a third
120
+ party against the Indemnified Contributor to the extent caused by the
121
+ acts or omissions of such Commercial Contributor in connection with
122
+ its distribution of the Program in a commercial product offering.
123
+ The obligations in this section do not apply to any claims or Losses
124
+ relating to any actual or alleged intellectual property infringement.
125
+ In order to qualify, an Indemnified Contributor must: a) promptly
126
+ notify the Commercial Contributor in writing of such claim, and b)
127
+ allow the Commercial Contributor to control, and cooperate with the
128
+ Commercial Contributor in, the defense and any related settlement
129
+ negotiations. The Indemnified Contributor may participate in any
130
+ such claim at its own expense.
131
+
132
+ For example, a Contributor might include the Program in a commercial
133
+ product offering, Product X. That Contributor is then a Commercial
134
+ Contributor. If that Commercial Contributor then makes performance
135
+ claims, or offers warranties related to Product X, those performance
136
+ claims and warranties are such Commercial Contributor's
137
+ responsibility alone. Under this section, the Commercial Contributor
138
+ would have to defend claims against the other Contributors related to
139
+ those performance claims and warranties, and if a court requires any
140
+ other Contributor to pay any damages as a result, the Commercial
141
+ Contributor must pay those damages.
142
+
143
+ ### 5\. NO WARRANTY
144
+ EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, THE PROGRAM IS
145
+ PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
146
+ KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT LIMITATION, ANY
147
+ WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY
148
+ OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is solely
149
+ responsible for determining the appropriateness of using and
150
+ distributing the Program and assumes all risks associated with its
151
+ exercise of rights under this Agreement, including but not limited to
152
+ the risks and costs of program errors, compliance with applicable
153
+ laws, damage to or loss of data, programs or equipment, and
154
+ unavailability or interruption of operations.
155
+
156
+ ### 6\. DISCLAIMER OF LIABILITY
157
+ EXCEPT AS EXPRESSLY SET FORTH IN THIS AGREEMENT, NEITHER RECIPIENT
158
+ NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY DIRECT,
159
+ INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
160
+ (INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND ON
161
+ ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
162
+ TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
163
+ THE USE OR DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS
164
+ GRANTED HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
165
+
166
+ ### 7\. GENERAL
167
+ If any provision of this Agreement is invalid or unenforceable under
168
+ applicable law, it shall not affect the validity or enforceability of
169
+ the remainder of the terms of this Agreement, and without further
170
+ action by the parties hereto, such provision shall be reformed to the
171
+ minimum extent necessary to make such provision valid and enforceable.
172
+
173
+ If Recipient institutes patent litigation against a Contributor with
174
+ respect to a patent applicable to software (including a cross-claim
175
+ or counterclaim in a lawsuit), then any patent licenses granted by
176
+ that Contributor to such Recipient under this Agreement shall
177
+ terminate as of the date such litigation is filed. In addition, if
178
+ Recipient institutes patent litigation against any entity (including
179
+ a cross-claim or counterclaim in a lawsuit) alleging that the Program
180
+ itself (excluding combinations of the Program with other software or
181
+ hardware) infringes such Recipient's patent(s), then such Recipient's
182
+ rights granted under Section 2(b) shall terminate as of the date such
183
+ litigation is filed.
184
+
185
+ All Recipient's rights under this Agreement shall terminate if it
186
+ fails to comply with any of the material terms or conditions of this
187
+ Agreement and does not cure such failure in a reasonable period of
188
+ time after becoming aware of such noncompliance. If all Recipient's
189
+ rights under this Agreement terminate, Recipient agrees to cease use
190
+ and distribution of the Program as soon as reasonably practicable.
191
+ However, Recipient's obligations under this Agreement and any
192
+ licenses granted by Recipient relating to the Program shall continue
193
+ and survive.
194
+
195
+ IBM may publish new versions (including revisions) of this Agreement
196
+ from time to time. Each new version of the Agreement will be given a
197
+ distinguishing version number. The Program (including Contributions)
198
+ may always be distributed subject to the version of the Agreement
199
+ under which it was received. In addition, after a new version of the
200
+ Agreement is published, Contributor may elect to distribute the
201
+ Program (including its Contributions) under the new version. No one
202
+ other than IBM has the right to modify this Agreement. Except as
203
+ expressly stated in Sections 2(a) and 2(b) above, Recipient receives
204
+ no rights or licenses to the intellectual property of any Contributor
205
+ under this Agreement, whether expressly, by implication, estoppel or
206
+ otherwise. All rights in the Program not expressly granted under
207
+ this Agreement are reserved.
208
+
209
+ This Agreement is governed by the laws of the State of New York and
210
+ the intellectual property laws of the United States of America. No
211
+ party to this Agreement will bring a legal action under this
212
+ Agreement more than one year after the cause of action arose. Each
213
+ party waives its rights to a jury trial in any resulting litigation.
@@ -0,0 +1,23 @@
1
+ # jdbc-jt400
2
+
3
+ A Ruby gem which wraps the IBM Toolbox for Java, which allows Java programs to connect to DB2 on IBM i (or i5/OS or OS/400).
4
+
5
+ For more information see http://jt400.sourceforge.net/
6
+
7
+ ## Usage
8
+
9
+ To make the driver accessible to JDBC and ActiveRecord code running in JRuby :
10
+
11
+ ```ruby
12
+ require 'jdbc/jt400'
13
+ Jdbc::JT400.load_driver
14
+ ```
15
+
16
+ ## Copyright
17
+
18
+ Copyright © 2017 [eCraft](http://apps.ecraft.com)
19
+
20
+ This Rubygem and the JT400 JDBC driver ("IBM Toolbox for Java") is distributed under the IBM public license
21
+ (IPL 1.0)
22
+
23
+ The full details of the IPL 1.0 can be found in the [LICENSE.md](LICENSE.md) file.
@@ -0,0 +1,24 @@
1
+ # frozen_string_literal: true
2
+
3
+ # -*- encoding: utf-8 -*-
4
+ $LOAD_PATH << File.expand_path('../lib', __FILE__)
5
+ require 'jdbc/jt400/version'
6
+
7
+ Gem::Specification.new do |spec|
8
+ spec.name = 'jdbc-jt400'
9
+ spec.version = Jdbc::JT400::VERSION
10
+ spec.authors = ['Tre Kronor']
11
+ spec.email = ['team.trekronor@ecraft.com']
12
+
13
+ spec.summary = 'JDBC driver for IBM DB2 on iSeries/IBM i.'
14
+ spec.description = "Install this gem `require 'jdbc/jt400'` and invoke `Jdbc::JT400.load_driver` within JRuby to load " \
15
+ 'the driver.'
16
+ spec.homepage = 'https://github.com/ecraft/jdbc-jt400'
17
+ spec.licenses = ['IPL-1.0']
18
+
19
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
20
+ spec.require_paths = ['lib']
21
+
22
+ spec.add_development_dependency 'rspec', '~> 3.5'
23
+ spec.add_development_dependency 'rubocop', '~> 0.47'
24
+ end
@@ -0,0 +1,7 @@
1
+ module Jdbc
2
+ module JT400
3
+ def self.load_driver
4
+ load 'jt400.jar'
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Jdbc
4
+ module JT400
5
+ VERSION = '9.1.1'.freeze
6
+ end
7
+ end
Binary file
metadata ADDED
@@ -0,0 +1,83 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: jdbc-jt400
3
+ version: !ruby/object:Gem::Version
4
+ version: 9.1.1
5
+ platform: ruby
6
+ authors:
7
+ - Tre Kronor
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2017-02-02 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ requirement: !ruby/object:Gem::Requirement
15
+ requirements:
16
+ - - "~>"
17
+ - !ruby/object:Gem::Version
18
+ version: '3.5'
19
+ name: rspec
20
+ prerelease: false
21
+ type: :development
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '3.5'
27
+ - !ruby/object:Gem::Dependency
28
+ requirement: !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - - "~>"
31
+ - !ruby/object:Gem::Version
32
+ version: '0.47'
33
+ name: rubocop
34
+ prerelease: false
35
+ type: :development
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '0.47'
41
+ description: Install this gem `require 'jdbc/jt400'` and invoke `Jdbc::JT400.load_driver` within JRuby to load the driver.
42
+ email:
43
+ - team.trekronor@ecraft.com
44
+ executables: []
45
+ extensions: []
46
+ extra_rdoc_files: []
47
+ files:
48
+ - ".gitignore"
49
+ - ".rspec"
50
+ - ".rubocop.yml"
51
+ - ".ruby-version"
52
+ - Gemfile
53
+ - LICENSE.md
54
+ - README.md
55
+ - jdbc-jt400.gemspec
56
+ - lib/jdbc/jt400.rb
57
+ - lib/jdbc/jt400/version.rb
58
+ - lib/jt400.jar
59
+ homepage: https://github.com/ecraft/jdbc-jt400
60
+ licenses:
61
+ - IPL-1.0
62
+ metadata: {}
63
+ post_install_message:
64
+ rdoc_options: []
65
+ require_paths:
66
+ - lib
67
+ required_ruby_version: !ruby/object:Gem::Requirement
68
+ requirements:
69
+ - - ">="
70
+ - !ruby/object:Gem::Version
71
+ version: '0'
72
+ required_rubygems_version: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - ">="
75
+ - !ruby/object:Gem::Version
76
+ version: '0'
77
+ requirements: []
78
+ rubyforge_project:
79
+ rubygems_version: 2.6.8
80
+ signing_key:
81
+ specification_version: 4
82
+ summary: JDBC driver for IBM DB2 on iSeries/IBM i.
83
+ test_files: []