Permalink
Browse files

Initial checking.

  • Loading branch information...
0 parents commit 74f01216573cb73895c7f2ded9fbf05857ed76c1 @metaskills metaskills committed Sep 19, 2010
Showing with 132 additions and 0 deletions.
  1. 0 CHANGELOG
  2. +12 −0 Gemfile
  3. +18 −0 Gemfile.lock
  4. +22 −0 MIT-LICENSE
  5. +13 −0 README.rdoc
  6. +28 −0 Rakefile
  7. +4 −0 ext/tiny_tds/extconf.rb
  8. +11 −0 ext/tiny_tds/tiny_tds.c
  9. +5 −0 ext/tiny_tds/tiny_tds.h
  10. +5 −0 lib/tiny_tds.rb
  11. +14 −0 tiny_tds.gemspec
0 CHANGELOG
No changes.
12 Gemfile
@@ -0,0 +1,12 @@
+
+source :rubygems
+
+group :development do
+ gem 'rake', '>= 0.8.7'
+ gem 'rake-compiler'
+end
+
+group :test do
+ gem 'mocha', '0.9.8'
+ gem 'shoulda', '2.10.3'
+end
18 Gemfile.lock
@@ -0,0 +1,18 @@
+GEM
+ remote: http://rubygems.org/
+ specs:
+ mocha (0.9.8)
+ rake
+ rake (0.8.7)
+ rake-compiler (0.7.1)
+ rake (>= 0.8.3, < 0.9)
+ shoulda (2.10.3)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ mocha (= 0.9.8)
+ rake (>= 0.8.7)
+ rake-compiler
+ shoulda (= 2.10.3)
22 MIT-LICENSE
@@ -0,0 +1,22 @@
+Copyright (c) 2010 Ken Collins
+
+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
+NONINFRINGEMENT. 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.
13 README.rdoc
@@ -0,0 +1,13 @@
+= TinyTDS
+
+== Tiny Ruby Wrapper For FreeTDS
+
+== Install
+
+Install with Rubygems:
+
+ gem install tiny_tds
+
+== Author
+
+Written by Ken Collins
28 Rakefile
@@ -0,0 +1,28 @@
+require 'rake'
+require 'rake/extensiontask'
+
+
+def test_libs
+ ['lib','test']
+end
+
+def test_files
+ Dir.glob("test/**/*.rb").sort
+end
+
+
+Rake::TestTask.new(profile_case) do |t|
+ t.libs = test_libs
+ t.test_files = test_files
+ t.verbose = true
+end
+
+Rake::ExtensionTask.new('tiny_tds') do |extension|
+ extension.lib_dir = 'lib/tiny_tds'
+end
+
+task :build => [:clean, :compile]
+
+task :default => :test
+
+
4 ext/tiny_tds/extconf.rb
@@ -0,0 +1,4 @@
+require 'mkmf'
+
+create_makefile('tiny_tds/tiny_tds')
+
11 ext/tiny_tds/tiny_tds.c
@@ -0,0 +1,11 @@
+#include <ruby.h>
+#include "tiny_tds.h"
+
+void Init_tiny_tds() {
+ VALUE rb_mTinyTDS = rb_define_module("TinyTDS");
+ rb_define_method(rb_mTinyTDS, "connect", connect, 0);
+}
+
+static void connect() {
+
+}
5 ext/tiny_tds/tiny_tds.h
@@ -0,0 +1,5 @@
+#ifndef __tiny_tds_h__
+#define __tiny_tds_h__
+
+static void connect();
+#endif
5 lib/tiny_tds.rb
@@ -0,0 +1,5 @@
+require 'tiny_tds/tiny_tds'
+
+module TinyTDS
+ VERSION = '0.0.1'
+end
14 tiny_tds.gemspec
@@ -0,0 +1,14 @@
+Gem::Specification.new do |s|
+ s.platform = Gem::Platform::RUBY
+ s.require_paths = ['lib']
+ s.rubygems_version = '1.3.7'
+ s.name = 'tiny_tds'
+ s.summary = 'Tiny Ruby Wrapper For FreeTDS'
+ s.description = 'Tiny ruby wrapper for FreeTDS to use with the ActiveRecord SQLServerAdapter'
+ s.homepage = 'http://github.com/rails-sqlserver/tiny_tds'
+ s.version = '0.0.1'
+ s.authors = ['Ken Collins']
+ s.email = 'ken@metaskills.net'
+ s.extensions = ['ext/tiny_tds/extconf.rb']
+ s.files = Dir['CHANGELOG', 'MIT-LICENSE', 'README.rdoc', 'ext/**/*', 'lib/**/*']
+end

0 comments on commit 74f0121

Please sign in to comment.