athena-rails 1.0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 38d484c8e19eeaa30f93d502706b3574a9146c28
4
+ data.tar.gz: c55924b8942c9d8db2f97f54f2ddd161d627199a
5
+ SHA512:
6
+ metadata.gz: b119d3c1a76c174cc1b0d15532fcd401cf218c72219d9c4c2bba8ffcd56a33c59c5e0b650e22288839335394f9d72ebc88ec6a9fd8997ecd906077aa007a8268
7
+ data.tar.gz: 3933d0ffc4f5bea61f9125573cdf2817ad122dbd43240f328de4438f0f7a8c42b376acbf4e1a1ab7866e2e1627ac15fea900771e6975d87c854c9c5e2d04c182
data/.gitignore ADDED
@@ -0,0 +1,14 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
10
+ *.bundle
11
+ *.so
12
+ *.o
13
+ *.a
14
+ mkmf.log
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in athena-rails.gemspec
4
+ gemspec
data/LICENSE ADDED
@@ -0,0 +1,380 @@
1
+ # AmazonAthenaJDBCDriverLicense appended LICENSE #
2
+
3
+ Copyright 2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
4
+
5
+ Licensed as AWS Content under the AWS Customer Agreement or other agreement with Amazon Web Services, Inc.
6
+ or its affiliates governing your use of AWS services (“Customer Agreement”). You may not install or use
7
+ the Amazon Athena JDBC Driver unless you have an existing Customer Agreement.
8
+
9
+ * * *
10
+ The Amazon Athena JDBC Driver contains the following third party software/licensing:
11
+ presto-jdbc (https://github.com/prestodb/presto/tree/master/presto-jdbc),
12
+ which is licensed as follows:
13
+
14
+
15
+ Apache License
 Version 2.0, January 2004
16
+
17
+ http://www.apache.org/licenses/
18
+
19
+
20
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
21
+
22
+
23
+ 1. Definitions.
24
+
25
+ "License" shall mean the terms and conditions for use, reproduction,
26
+
27
+ and distribution as defined by Sections 1 through 9 of this document.
28
+
29
+
30
+ "Licensor" shall mean the copyright owner or entity authorized by
31
+
32
+ the copyright owner that is granting the License.
33
+
34
+
35
+ "Legal Entity" shall mean the union of the acting entity and all
36
+
37
+ other entities that control, are controlled by, or are under common
38
+
39
+ control with that entity. For the purposes of this definition,
40
+
41
+ "control" means (i) the power, direct or indirect, to cause the
42
+
43
+ direction or management of such entity, whether by contract or
44
+
45
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
46
+
47
+ outstanding shares, or (iii) beneficial ownership of such entity.
48
+
49
+
50
+ "You" (or "Your") shall mean an individual or Legal Entity
51
+
52
+ exercising permissions granted by this License.
53
+
54
+
55
+ "Source" form shall mean the preferred form for making modifications,
56
+
57
+ including but not limited to software source code, documentation
58
+
59
+ source, and configuration files.
60
+
61
+
62
+ "Object" form shall mean any form resulting from mechanical
63
+
64
+ transformation or translation of a Source form, including but
65
+
66
+ not limited to compiled object code, generated documentation,
67
+
68
+ and conversions to other media types.
69
+
70
+
71
+ "Work" shall mean the work of authorship, whether in Source or
72
+
73
+ Object form, made available under the License, as indicated by a
74
+
75
+ copyright notice that is included in or attached to the work
76
+
77
+ (an example is provided in the Appendix below).
78
+
79
+
80
+ "Derivative Works" shall mean any work, whether in Source or Object
81
+
82
+ form, that is based on (or derived from) the Work and for which the
83
+
84
+ editorial revisions, annotations, elaborations, or other modifications
85
+
86
+ represent, as a whole, an original work of authorship. For the purposes
87
+
88
+ of this License, Derivative Works shall not include works that remain
89
+
90
+ separable from, or merely link (or bind by name) to the interfaces of,
91
+
92
+ the Work and Derivative Works thereof.
93
+
94
+
95
+ "Contribution" shall mean any work of authorship, including
96
+
97
+ the original version of the Work and any modifications or additions
98
+
99
+ to that Work or Derivative Works thereof, that is intentionally
100
+
101
+ submitted to Licensor for inclusion in the Work by the copyright owner
102
+
103
+ or by an individual or Legal Entity authorized to submit on behalf of
104
+
105
+ the copyright owner. For the purposes of this definition, "submitted"
106
+
107
+ means any form of electronic, verbal, or written communication sent
108
+
109
+ to the Licensor or its representatives, including but not limited to
110
+
111
+ communication on electronic mailing lists, source code control systems,
112
+
113
+ and issue tracking systems that are managed by, or on behalf of, the
114
+
115
+ Licensor for the purpose of discussing and improving the Work, but
116
+
117
+ excluding communication that is conspicuously marked or otherwise
118
+
119
+ designated in writing by the copyright owner as "Not a Contribution."
120
+
121
+
122
+ "Contributor" shall mean Licensor and any individual or Legal Entity
123
+
124
+ on behalf of whom a Contribution has been received by Licensor and
125
+
126
+ subsequently incorporated within the Work.
127
+
128
+
129
+ 2. Grant of Copyright License. Subject to the terms and conditions of
130
+
131
+ this License, each Contributor hereby grants to You a perpetual,
132
+
133
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
134
+
135
+ copyright license to reproduce, prepare Derivative Works of,
136
+
137
+ publicly display, publicly perform, sublicense, and distribute the
138
+
139
+ Work and such Derivative Works in Source or Object form.
140
+
141
+
142
+ 3. Grant of Patent License. Subject to the terms and conditions of
143
+
144
+ this License, each Contributor hereby grants to You a perpetual,
145
+
146
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
147
+
148
+ (except as stated in this section) patent license to make, have made,
149
+
150
+ use, offer to sell, sell, import, and otherwise transfer the Work,
151
+
152
+ where such license applies only to those patent claims licensable
153
+
154
+ by such Contributor that are necessarily infringed by their
155
+
156
+ Contribution(s) alone or by combination of their Contribution(s)
157
+
158
+ with the Work to which such Contribution(s) was submitted. If You
159
+
160
+ institute patent litigation against any entity (including a
161
+
162
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
163
+
164
+ or a Contribution incorporated within the Work constitutes direct
165
+
166
+ or contributory patent infringement, then any patent licenses
167
+
168
+ granted to You under this License for that Work shall terminate
169
+
170
+ as of the date such litigation is filed.
171
+
172
+
173
+ 4. Redistribution. You may reproduce and distribute copies of the
174
+
175
+ Work or Derivative Works thereof in any medium, with or without
176
+
177
+ modifications, and in Source or Object form, provided that You
178
+
179
+ meet the following conditions:
180
+
181
+
182
+ (a) You must give any other recipients of the Work or
183
+
184
+ Derivative Works a copy of this License; and
185
+
186
+
187
+ (b) You must cause any modified files to carry prominent notices
188
+
189
+ stating that You changed the files; and
190
+
191
+
192
+ (c) You must retain, in the Source form of any Derivative Works
193
+
194
+ that You distribute, all copyright, patent, trademark, and
195
+
196
+ attribution notices from the Source form of the Work,
197
+
198
+ excluding those notices that do not pertain to any part of
199
+
200
+ the Derivative Works; and
201
+
202
+
203
+ (d) If the Work includes a "NOTICE" text file as part of its
204
+
205
+ distribution, then any Derivative Works that You distribute must
206
+
207
+ include a readable copy of the attribution notices contained
208
+
209
+ within such NOTICE file, excluding those notices that do not
210
+
211
+ pertain to any part of the Derivative Works, in at least one
212
+
213
+ of the following places: within a NOTICE text file distributed
214
+
215
+ as part of the Derivative Works; within the Source form or
216
+
217
+ documentation, if provided along with the Derivative Works; or,
218
+
219
+ within a display generated by the Derivative Works, if and
220
+
221
+ wherever such third-party notices normally appear. The contents
222
+
223
+ of the NOTICE file are for informational purposes only and
224
+
225
+ do not modify the License. You may add Your own attribution
226
+
227
+ notices within Derivative Works that You distribute, alongside
228
+
229
+ or as an addendum to the NOTICE text from the Work, provided
230
+
231
+ that such additional attribution notices cannot be construed
232
+
233
+ as modifying the License.
234
+
235
+
236
+ You may add Your own copyright statement to Your modifications and
237
+
238
+ may provide additional or different license terms and conditions
239
+
240
+ for use, reproduction, or distribution of Your modifications, or
241
+
242
+ for any such Derivative Works as a whole, provided Your use,
243
+
244
+ reproduction, and distribution of the Work otherwise complies with
245
+
246
+ the conditions stated in this License.
247
+
248
+
249
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
250
+
251
+ any Contribution intentionally submitted for inclusion in the Work
252
+
253
+ by You to the Licensor shall be under the terms and conditions of
254
+
255
+ this License, without any additional terms or conditions.
256
+
257
+ Notwithstanding the above, nothing herein shall supersede or modify
258
+
259
+ the terms of any separate license agreement you may have executed
260
+
261
+ with Licensor regarding such Contributions.
262
+
263
+
264
+ 6. Trademarks. This License does not grant permission to use the trade
265
+
266
+ names, trademarks, service marks, or product names of the Licensor,
267
+
268
+ except as required for reasonable and customary use in describing the
269
+
270
+ origin of the Work and reproducing the content of the NOTICE file.
271
+
272
+
273
+ 7. Disclaimer of Warranty. Unless required by applicable law or
274
+
275
+ agreed to in writing, Licensor provides the Work (and each
276
+
277
+ Contributor provides its Contributions) on an "AS IS" BASIS,
278
+
279
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
280
+
281
+ implied, including, without limitation, any warranties or conditions
282
+
283
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
284
+
285
+ PARTICULAR PURPOSE. You are solely responsible for determining the
286
+
287
+ appropriateness of using or redistributing the Work and assume any
288
+
289
+ risks associated with Your exercise of permissions under this License.
290
+
291
+
292
+ 8. Limitation of Liability. In no event and under no legal theory,
293
+
294
+ whether in tort (including negligence), contract, or otherwise,
295
+
296
+ unless required by applicable law (such as deliberate and grossly
297
+
298
+ negligent acts) or agreed to in writing, shall any Contributor be
299
+
300
+ liable to You for damages, including any direct, indirect, special,
301
+
302
+ incidental, or consequential damages of any character arising as a
303
+
304
+ result of this License or out of the use or inability to use the
305
+
306
+ Work (including but not limited to damages for loss of goodwill,
307
+
308
+ work stoppage, computer failure or malfunction, or any and all
309
+
310
+ other commercial damages or losses), even if such Contributor
311
+
312
+ has been advised of the possibility of such damages.
313
+
314
+
315
+ 9. Accepting Warranty or Additional Liability. While redistributing
316
+
317
+ the Work or Derivative Works thereof, You may choose to offer,
318
+
319
+ and charge a fee for, acceptance of support, warranty, indemnity,
320
+
321
+ or other liability obligations and/or rights consistent with this
322
+
323
+ License. However, in accepting such obligations, You may act only
324
+
325
+ on Your own behalf and on Your sole responsibility, not on behalf
326
+
327
+ of any other Contributor, and only if You agree to indemnify,
328
+
329
+ defend, and hold each Contributor harmless for any liability
330
+
331
+ incurred by, or claims asserted against, such Contributor by reason
332
+
333
+ of your accepting any such warranty or additional liability.
334
+
335
+
336
+ END OF TERMS AND CONDITIONS
337
+
338
+
339
+ APPENDIX: How to apply the Apache License to your work.
340
+
341
+
342
+ To apply the Apache License to your work, attach the following
343
+
344
+ boilerplate notice, with the fields enclosed by brackets "[]"
345
+
346
+ replaced with your own identifying information. (Don't include
347
+
348
+ the brackets!) The text should be enclosed in the appropriate
349
+
350
+ comment syntax for the file format. We also recommend that a
351
+
352
+ file or class name and description of purpose be included on the
353
+
354
+ same "printed page" as the copyright notice for easier
355
+
356
+ identification within third-party archives.
357
+
358
+
359
+ Copyright [yyyy] [name of copyright owner]
360
+
361
+
362
+ Licensed under the Apache License, Version 2.0 (the "License");
363
+
364
+ you may not use this file except in compliance with the License.
365
+
366
+ You may obtain a copy of the License at
367
+
368
+
369
+ http://www.apache.org/licenses/LICENSE-2.0
370
+
371
+
372
+ Unless required by applicable law or agreed to in writing, software
373
+
374
+ distributed under the License is distributed on an "AS IS" BASIS,
375
+
376
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
377
+
378
+ See the License for the specific language governing permissions and
379
+
380
+ limitations under the License.
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2015 William Van Etten
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,71 @@
1
+ # athena-rails
2
+
3
+ ## Installation
4
+
5
+ Add this line to the application's Gemfile:
6
+
7
+ ```ruby
8
+ gem 'athena-rails'
9
+ ```
10
+
11
+ And then execute:
12
+
13
+ $ bundle
14
+
15
+ Or install it yourself as:
16
+
17
+ $ gem install athena-rails
18
+
19
+ ## Usage
20
+
21
+ Add athena to the application's Gemfile:
22
+
23
+ ```ruby
24
+ gem 'athena-rails'
25
+ ```
26
+
27
+ ## Contributing
28
+
29
+ 1. Fork it ( https://github.com/[my-github-username]/atheana-rails/fork )
30
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
31
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
32
+ 4. Push to the branch (`git push origin my-new-feature`)
33
+ 5. Create a new Pull Request
34
+
35
+ ## Build Notes
36
+
37
+ This is [athena jdbc adapter](http://docs.aws.amazon.com/athena/latest/ug/connect-with-jdbc.html) GEMified for the Rails asset pipeline through the following:
38
+
39
+ bundle gem athena-rails
40
+ cd athena-rails
41
+ mkdir -p vendor/assets/javascripts
42
+ curl https://s3.amazonaws.com/athena-downloads/drivers/AthenaJDBC41-1.0.0.jar -o vendor/assets/javascripts/athena.js
43
+ git add .
44
+ git commit -am "athena-rails"
45
+ git remote add origin git@github.com:vanetten/athena-rails.git
46
+
47
+ * modify **lib/athena/rails/version.rb** to match AthenaJDBC41-1.0.0.jar version
48
+
49
+ VERSION = "1.0.0.*"
50
+
51
+ * modify **lib/athena/rails.rb** to subclass Rails::Engine
52
+
53
+ class Engine < ::Rails::Engine
54
+ end
55
+
56
+ * modify **athena-rails.gemspec**
57
+
58
+ spec.summary = "AthenaJDBC41-1.0.0.jar for JRuby Rails."
59
+ spec.description = "This gem provides AthenaJDBC41-1.0.0.jar for your JRuby Rails application."
60
+ spec.homepage = "https://github.com/vanetten/athena-rails"
61
+ spec.metadata['allowed_push_host'] = "https://rubygems.org"
62
+ spec.files = `git ls-files -z`.split("\x0") + ["LICENSE", "README.md"]
63
+ spec.add_dependency "railties", "~> 4.1"
64
+
65
+ * build
66
+
67
+ rake build
68
+
69
+ * release
70
+
71
+ rake release
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
@@ -0,0 +1,26 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'athena/rails/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "athena-rails"
8
+ spec.version = Athena::Rails::VERSION
9
+ spec.authors = ["William Van Etten, PhD"]
10
+ spec.email = ["vanetten@bioteam.net"]
11
+ spec.summary = "AthenaJDBC41-1.0.0.jar for JRuby Rails."
12
+ spec.description = "This gem provides AthenaJDBC41-1.0.0.jar for your JRuby Rails application."
13
+ spec.homepage = "https://github.com/vanetten/athena-rails"
14
+ spec.license = "MIT"
15
+
16
+ spec.metadata['allowed_push_host'] = "https://rubygems.org"
17
+
18
+ spec.files = `git ls-files -z`.split("\x0") + ["LICENSE", "README.md"]
19
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
20
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
21
+ spec.require_paths = ["lib"]
22
+
23
+ spec.add_dependency "railties", "~> 4.1"
24
+ spec.add_development_dependency "bundler", "~> 1.7"
25
+ spec.add_development_dependency "rake", "~> 10.0"
26
+ end
@@ -0,0 +1,8 @@
1
+ require "athena/rails/version"
2
+
3
+ module Athena
4
+ module Rails
5
+ class Engine < ::Rails::Engine
6
+ end
7
+ end
8
+ end
@@ -0,0 +1,5 @@
1
+ module Athena
2
+ module Rails
3
+ VERSION = "1.0.0.3"
4
+ end
5
+ end
metadata ADDED
@@ -0,0 +1,97 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: athena-rails
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0.3
5
+ platform: ruby
6
+ authors:
7
+ - William Van Etten, PhD
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2017-03-28 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: railties
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: '4.1'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '4.1'
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ~>
32
+ - !ruby/object:Gem::Version
33
+ version: '1.7'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ~>
39
+ - !ruby/object:Gem::Version
40
+ version: '1.7'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rake
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ~>
46
+ - !ruby/object:Gem::Version
47
+ version: '10.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: '10.0'
55
+ description: This gem provides AthenaJDBC41-1.0.0.jar for your JRuby Rails application.
56
+ email:
57
+ - vanetten@bioteam.net
58
+ executables: []
59
+ extensions: []
60
+ extra_rdoc_files: []
61
+ files:
62
+ - .gitignore
63
+ - Gemfile
64
+ - LICENSE
65
+ - LICENSE.txt
66
+ - README.md
67
+ - Rakefile
68
+ - athena-rails.gemspec
69
+ - lib/athena/rails.rb
70
+ - lib/athena/rails/version.rb
71
+ - vendor/assets/javascripts/AthenaJDBC41-1.0.0.jar
72
+ homepage: https://github.com/vanetten/athena-rails
73
+ licenses:
74
+ - MIT
75
+ metadata:
76
+ allowed_push_host: https://rubygems.org
77
+ post_install_message:
78
+ rdoc_options: []
79
+ require_paths:
80
+ - lib
81
+ required_ruby_version: !ruby/object:Gem::Requirement
82
+ requirements:
83
+ - - '>='
84
+ - !ruby/object:Gem::Version
85
+ version: '0'
86
+ required_rubygems_version: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - '>='
89
+ - !ruby/object:Gem::Version
90
+ version: '0'
91
+ requirements: []
92
+ rubyforge_project:
93
+ rubygems_version: 2.4.8
94
+ signing_key:
95
+ specification_version: 4
96
+ summary: AthenaJDBC41-1.0.0.jar for JRuby Rails.
97
+ test_files: []