jdbc-sqlserver 0.0.1

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: 6d735fe1ae8b7639285e897a03134e05dedad326
4
+ data.tar.gz: c485f8e1b28643fdfae3f8ad9886a7c590b4696e
5
+ SHA512:
6
+ metadata.gz: 191483425c4a61cfa496d31cdae57e6774d3327d29ec713dd02b91c0cddcb948aa9b24a9b97ea7746429b4e61687c9441fa8fe4ec7a1c408cf4244ab4672286d
7
+ data.tar.gz: 33b7f7098adce013215b8c19031d06ebe62f3b65ab2d46e37d9af8c4e15645fcde797988680642d30437ff44065e62bd90bbc730b7e9458d360cacc9fe639429
data/.gitignore ADDED
@@ -0,0 +1,22 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
18
+ *.bundle
19
+ *.so
20
+ *.o
21
+ *.a
22
+ mkmf.log
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in jdbc-sqlserver.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,72 @@
1
+ MICROSOFT SOFTWARE LICENSE TERMS
2
+
3
+ MICROSOFT JDBC DRIVER 4.0 FOR SQL SERVER
4
+
5
+ These license terms are an agreement between Microsoft Corporation (or based on where you live, one of its affiliates) and you. Please read them. They apply to the software named above, which includes the media on which you received it, if any. The terms also apply to any Microsoft
6
+ � updates,
7
+ � supplements,
8
+ � Internet-based services, and
9
+ � support services
10
+ for this software, unless other terms accompany those items. If so, those terms apply.
11
+ BY USING THE SOFTWARE, YOU ACCEPT THESE TERMS. IF YOU DO NOT ACCEPT THEM, DO NOT USE THE SOFTWARE.
12
+ If you comply with these license terms, you have the rights below.
13
+
14
+ 1. INSTALLATION AND USE RIGHTS. You may install and use any number of copies of the software on your devices to design, develop and test your programs.
15
+
16
+ 2. SCOPE OF LICENSE. The software is licensed, not sold. This agreement only gives you some rights to use the software. Microsoft reserves all other rights. Unless applicable law gives you more rights despite this limitation, you may use the software only as expressly permitted in this agreement. In doing so, you must comply with any technical limitations in the software that only allow you to use it in certain ways. You may not
17
+ � disclose the results of any benchmark tests of the software to any third party without Microsoft�s prior written approval;
18
+ � work around any technical limitations in the software;
19
+ � reverse engineer, decompile or disassemble the software, except and only to the extent that applicable law expressly permits, despite this limitation;
20
+ � make more copies of the software than specified in this agreement or allowed by applicable law, despite this limitation;
21
+ � publish the software for others to copy;
22
+ � rent, lease or lend the software;
23
+ � transfer the software or this agreement to any third party; or
24
+ � use the software for commercial software hosting services.
25
+
26
+ 3. BACKUP COPY. You may make one backup copy of the software. You may use it only to reinstall the software.
27
+
28
+ 4. DOCUMENTATION. Any person that has valid access to your computer or internal network may copy and use the documentation for your internal, reference purposes.
29
+
30
+ 5. EXPORT RESTRICTIONS. The software is subject to United States export laws and regulations. You must comply with all domestic and international export laws and regulations that apply to the software. These laws include restrictions on destinations, end users and end use. For additional information, see www.microsoft.com/exporting.
31
+
32
+ 6. SUPPORT SERVICES. Because this software is �as is,� we may not provide support services for it.
33
+
34
+ 7. ENTIRE AGREEMENT. This agreement, and the terms for supplements, updates, Internet-based services and support services that you use, are the entire agreement for the software and support services.
35
+
36
+ 8. APPLICABLE LAW.
37
+ a. United States. If you acquired the software in the United States, Washington state law governs the interpretation of this agreement and applies to claims for breach of it, regardless of conflict of laws principles. The laws of the state where you live govern all other claims, including claims under state consumer protection laws, unfair competition laws, and in tort.
38
+ b. Outside the United States. If you acquired the software in any other country, the laws of that country apply.
39
+
40
+ 9. LEGAL EFFECT. This agreement describes certain legal rights. You may have other rights under the laws of your country. You may also have rights with respect to the party from whom you acquired the software. This agreement does not change your rights under the laws of your country if the laws of your country do not permit it to do so.
41
+
42
+ 10. DISCLAIMER OF WARRANTY. THE SOFTWARE IS LICENSED �AS-IS.� YOU BEAR THE RISK OF USING IT. MICROSOFT GIVES NO EXPRESS WARRANTIES, GUARANTEES OR CONDITIONS. YOU MAY HAVE ADDITIONAL CONSUMER RIGHTS UNDER YOUR LOCAL LAWS WHICH THIS AGREEMENT CANNOT CHANGE. TO THE EXTENT PERMITTED UNDER YOUR LOCAL LAWS, MICROSOFT EXCLUDES THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
43
+
44
+ 11. LIMITATION ON AND EXCLUSION OF REMEDIES AND DAMAGES. YOU CAN RECOVER FROM MICROSOFT AND ITS SUPPLIERS ONLY DIRECT DAMAGES UP TO U.S. $5.00. YOU CANNOT RECOVER ANY OTHER DAMAGES, INCLUDING CONSEQUENTIAL, LOST PROFITS, SPECIAL, INDIRECT OR INCIDENTAL DAMAGES.
45
+ This limitation applies to
46
+ � anything related to the software, services, content (including code) on third party Internet sites, or third party programs; and
47
+ � claims for breach of contract, breach of warranty, guarantee or condition, strict liability, negligence, or other tort to the extent permitted by applicable law.
48
+ It also applies even if Microsoft knew or should have known about the possibility of the damages. The above limitation or exclusion may not apply to you because your country may not allow the exclusion or limitation of incidental, consequential or other damages.
49
+ Please note: As this software is distributed in Quebec, Canada, some of the clauses in this agreement are provided below in French.
50
+ Remarque : Ce logiciel �tant distribu� au Qu�bec, Canada, certaines des clauses dans ce contrat sont fournies ci-dessous en fran�ais.
51
+ EXON�RATION DE GARANTIE. Le logiciel vis� par une licence est offert � tel quel �. Toute utilisation de ce logiciel est � votre seule risque et p�ril. Microsoft n�accorde aucune autre garantie expresse. Vous pouvez b�n�ficier de droits additionnels en vertu du droit local sur la protection des consommateurs, que ce contrat ne peut modifier. La ou elles sont permises par le droit locale, les garanties implicites de qualit� marchande, d�ad�quation � un usage particulier et d�absence de contrefa�on sont exclues.
52
+ LIMITATION DES DOMMAGES-INT�R�TS ET EXCLUSION DE RESPONSABILIT� POUR LES DOMMAGES. Vous pouvez obtenir de Microsoft et de ses fournisseurs une indemnisation en cas de dommages directs uniquement � hauteur de 5,00 $ US. Vous ne pouvez pr�tendre � aucune indemnisation pour les autres dommages, y compris les dommages sp�ciaux, indirects ou accessoires et pertes de b�n�fices.
53
+ Cette limitation concerne :
54
+ � tout ce qui est reli� au logiciel, aux services ou au contenu (y compris le code) figurant sur des sites Internet tiers ou dans des programmes tiers ; et
55
+ � les r�clamations au titre de violation de contrat ou de garantie, ou au titre de responsabilit� stricte, de n�gligence ou d�une autre faute dans la limite autoris�e par la loi en vigueur.
56
+ Elle s�applique �galement, m�me si Microsoft connaissait ou devrait conna�tre l��ventualit� d�un tel dommage. Si votre pays n�autorise pas l�exclusion ou la limitation de responsabilit� pour les dommages indirects, accessoires ou de quelque nature que ce soit, il se peut que la limitation ou l�exclusion ci-dessus ne s�appliquera pas � votre �gard.
57
+ EFFET JURIDIQUE. Le pr�sent contrat d�crit certains droits juridiques. Vous pourriez avoir d�autres droits pr�vus par les lois de votre pays. Le pr�sent contrat ne modifie pas les droits que vous conf�rent les lois de votre pays si celles-ci ne le permettent pas.
58
+
59
+
60
+
61
+
62
+
63
+
64
+
65
+
66
+
67
+
68
+
69
+
70
+
71
+
72
+
data/README.md ADDED
@@ -0,0 +1,27 @@
1
+ # Jdbc::Sqlserver
2
+
3
+ A wrapper of SQL Server driver 'sqljdbc4.jar' for JRuby.
4
+
5
+ For more information see http://www.microsoft.com/en-us/download/details.aspx?displaylang=en&id=11774
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ gem 'jdbc-sqlserver'
12
+
13
+ And then execute:
14
+
15
+ $ bundle
16
+
17
+ Or install it yourself as:
18
+
19
+ $ gem install jdbc-sqlserver
20
+
21
+ ## Contributing
22
+
23
+ 1. Fork it ( https://github.com/camsong/jdbc-sqlserver/fork )
24
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
25
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
26
+ 4. Push to the branch (`git push origin my-new-feature`)
27
+ 5. Create a new Pull Request
data/Rakefile ADDED
@@ -0,0 +1,2 @@
1
+ require "bundler/gem_tasks"
2
+
@@ -0,0 +1,23 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'jdbc/sqlserver/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "jdbc-sqlserver"
8
+ spec.version = Jdbc::Sqlserver::VERSION
9
+ spec.authors = ["Cam Song"]
10
+ spec.email = ["neosoyn@gmail.com"]
11
+ spec.summary = %q{A wrapper of SQL Server driver 'sqljdbc4.jar' for JRuby.}
12
+ spec.description = %q{A wrapper of SQL Server driver 'sqljdbc4.jar' for JRuby.}
13
+ spec.homepage = ""
14
+ spec.license = "MICROSOFT SOFTWARE LICENSE"
15
+
16
+ spec.files = `git ls-files -z`.split("\x0")
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.require_paths = ["lib"]
20
+
21
+ spec.add_development_dependency "bundler", "~> 1.6"
22
+ spec.add_development_dependency "rake"
23
+ end
@@ -0,0 +1,5 @@
1
+ module Jdbc
2
+ module Sqlserver
3
+ VERSION = "0.0.1"
4
+ end
5
+ end
@@ -0,0 +1,25 @@
1
+ warn "Jdbc-sqlserver is only for use with JRuby" if (JRUBY_VERSION.nil? rescue true)
2
+ require "jdbc/sqlserver/version"
3
+
4
+ module Jdbc
5
+ module Sqlserver
6
+ def self.driver_jar
7
+ "sqljdbc4.jar"
8
+ end
9
+
10
+ def self.load_driver(method = :load)
11
+ send method, driver_jar
12
+ end
13
+
14
+ def self.driver_name
15
+ 'com.microsoft.sqlserver.jdbc.SQLServerDriver'
16
+ end
17
+
18
+ if defined?(JRUBY_VERSION) && # enable backwards-compat behavior :
19
+ ( Java::JavaLang::Boolean.get_boolean("jdbc.driver.autoload") ||
20
+ Java::JavaLang::Boolean.get_boolean("jdbc.sqlserver.autoload") )
21
+ warn "autoloading JDBC driver on require 'jdbc/sqlserver'" if $VERBOSE
22
+ load_driver :require
23
+ end
24
+ end
25
+ end
metadata ADDED
@@ -0,0 +1,80 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: jdbc-sqlserver
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Cam Song
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-04-30 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ version_requirements: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: '1.6'
20
+ requirement: !ruby/object:Gem::Requirement
21
+ requirements:
22
+ - - ~>
23
+ - !ruby/object:Gem::Version
24
+ version: '1.6'
25
+ prerelease: false
26
+ type: :development
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ version_requirements: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ requirement: !ruby/object:Gem::Requirement
35
+ requirements:
36
+ - - '>='
37
+ - !ruby/object:Gem::Version
38
+ version: '0'
39
+ prerelease: false
40
+ type: :development
41
+ description: A wrapper of SQL Server driver 'sqljdbc4.jar' for JRuby.
42
+ email:
43
+ - neosoyn@gmail.com
44
+ executables: []
45
+ extensions: []
46
+ extra_rdoc_files: []
47
+ files:
48
+ - .gitignore
49
+ - Gemfile
50
+ - LICENSE.txt
51
+ - README.md
52
+ - Rakefile
53
+ - jdbc-sqlserver.gemspec
54
+ - lib/jdbc/sqlserver.rb
55
+ - lib/jdbc/sqlserver/version.rb
56
+ homepage: ''
57
+ licenses:
58
+ - MICROSOFT SOFTWARE LICENSE
59
+ metadata: {}
60
+ post_install_message:
61
+ rdoc_options: []
62
+ require_paths:
63
+ - lib
64
+ required_ruby_version: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - '>='
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ required_rubygems_version: !ruby/object:Gem::Requirement
70
+ requirements:
71
+ - - '>='
72
+ - !ruby/object:Gem::Version
73
+ version: '0'
74
+ requirements: []
75
+ rubyforge_project:
76
+ rubygems_version: 2.1.9
77
+ signing_key:
78
+ specification_version: 4
79
+ summary: A wrapper of SQL Server driver 'sqljdbc4.jar' for JRuby.
80
+ test_files: []