Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Removing unused test/fixture/db_definitions. Getting gemspec in order.

  • Loading branch information...
commit e4de153132f3b64dcf30cd878a9946d3debe4b1a 1 parent 17bac26
@metaskills metaskills authored
View
20 MIT-LICENSE
@@ -0,0 +1,20 @@
+Copyright (c) 2008
+
+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.
View
0  README → README.textile
File renamed without changes
View
3  Rakefile
@@ -48,9 +48,6 @@ task :release => :package do
rubyforge.add_release(PKG_NAME, PKG_NAME, "REL #{PKG_VERSION}", *packages)
end
-
-SCHEMA_PATH = File.join(File.dirname(__FILE__), *%w(test fixtures db_definitions))
-
desc 'Create the SQL Server test databases'
task :create_databases do
# Define a user named 'rails' in SQL Server with all privileges granted
View
16 rails-sqlserver-adapter.gemspec
@@ -1,16 +0,0 @@
-Gem::Specification.new do |s|
- s.name = "sqlserver-05-adapter"
- s.version = "2.2.1"
- s.specification_version = 2 if s.respond_to? :specification_version=
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
- s.authors = ['Ken Collins','Murray Steele','Shawn Balestracci','Tom Ward']
- s.date = "2008-09-27"
- s.email = "ken@metaskills.net"
- s.files = ["lib/active_record/connection_adapters/sqlserver_adapter.rb"]
- s.homepage = %q{http://vegantech.lighthouseapp.com/projects/17542-activerecord-sqlserver-adapter}
- s.require_paths = ["lib"]
- s.rubyforge_project = %q{activerecord}
- s.rubygems_version = %q{1.1.1}
- s.summary = "SQL Server 2000 & 2005 Adapter For Rails"
- s.add_dependency(%q<activerecord>, [">= 2.2.1"])
-end
View
47 sqlserver-05-adapter.gemspec
@@ -0,0 +1,47 @@
+Gem::Specification.new do |s|
+ s.name = "sqlserver-05-adapter"
+ s.version = "1.0.0"
+ s.date = "2008-11-19"
+ s.summary = "SQL Server 2000 & 2005 Adapter For Rails."
+ s.email = "ken@metaskills.net"
+ s.homepage = "http://github.com/rails-sqlserver/sqlserver-05-adapter/"
+ s.description = "SQL Server 2000 & 2005 Adapter For Rails."
+ s.has_rdoc = true
+ s.authors = ["Ken Collins","Murray Steele","Shawn Balestracci","Tom Ward"]
+ s.files = [
+ "CHANGELOG",
+ "MIT-LICENSE",
+ "Rakefile",
+ "README.textile",
+ "RUNNING_UNIT_TESTS",
+ "autotest",
+ "autotest/discover.rb",
+ "autotest/railssqlserver.rb",
+ "autotest/sqlserver.rb",
+ "lib/active_record/connection_adapters/sqlserver_adapter.rb",
+ "lib/core_ext/active_record.rb",
+ "lib/core_ext/dbi.rb" ]
+ s.test_files = [
+ "test/cases/aaaa_create_tables_test_sqlserver.rb",
+ "test/cases/adapter_test_sqlserver.rb",
+ "test/cases/basics_test_sqlserver.rb",
+ "test/cases/calculations_test_sqlserver.rb",
+ "test/cases/column_test_sqlserver.rb",
+ "test/cases/connection_test_sqlserver.rb",
+ "test/cases/eager_association_test_sqlserver.rb",
+ "test/cases/inheritance_test_sqlserver.rb",
+ "test/cases/migration_test_sqlserver.rb",
+ "test/cases/offset_and_limit_test_sqlserver.rb",
+ "test/cases/pessimistic_locking_test_sqlserver.rb",
+ "test/cases/query_cache_test_sqlserver.rb",
+ "test/cases/schema_dumper_test_sqlserver.rb",
+ "test/cases/specific_schema_test_sqlserver.rb",
+ "test/cases/sqlserver_helper.rb",
+ "test/connections/native_sqlserver/connection.rb",
+ "test/connections/native_sqlserver_odbc/connection.rb",
+ "test/migrations/transaction_table/1_table_will_never_be_created.rb",
+ "test/schema/sqlserver_specific_schema.rb" ]
+ s.rdoc_options = ["--line-numbers", "--inline-source", "--main", "README.textile"]
+ s.extra_rdoc_files = ["README.textile"]
+ s.add_dependency("activerecord", [">= 2.2.0"])
+end
View
35 test/fixtures/db_definitions/sqlserver.drop.sql
@@ -1,35 +0,0 @@
-DROP TABLE accounts;
-DROP TABLE funny_jokes;
-DROP TABLE companies;
-DROP TABLE topics;
-DROP TABLE developers;
-DROP TABLE projects;
-DROP TABLE developers_projects;
-DROP TABLE customers;
-DROP TABLE orders;
-DROP TABLE movies;
-DROP TABLE subscribers;
-DROP TABLE booleantests;
-DROP TABLE defaults;
-DROP TABLE auto_id_tests;
-DROP TABLE entrants;
-DROP TABLE colnametests;
-DROP TABLE mixins;
-DROP TABLE people;
-DROP TABLE readers;
-DROP TABLE binaries;
-DROP TABLE computers;
-DROP TABLE posts;
-DROP TABLE comments;
-DROP TABLE authors;
-DROP TABLE tasks;
-DROP TABLE categories;
-DROP TABLE categories_posts;
-DROP TABLE fk_test_has_fk;
-DROP TABLE fk_test_has_pk;
-DROP TABLE keyboards;
-DROP TABLE legacy_things;
-DROP TABLE numeric_data;
-DROP TABLE [order];
-DROP TABLE mixed_case_monkeys;
-DROP TABLE minimalistics;
View
247 test/fixtures/db_definitions/sqlserver.sql
@@ -1,247 +0,0 @@
-CREATE TABLE accounts (
- id int NOT NULL IDENTITY(1, 1) PRIMARY KEY,
- firm_id int default NULL,
- credit_limit int default NULL
-);
-
-CREATE TABLE funny_jokes (
- id int NOT NULL IDENTITY(1, 1) PRIMARY KEY,
- name varchar(50) default NULL
-);
-
-CREATE TABLE companies (
- id int NOT NULL IDENTITY(1, 1) PRIMARY KEY,
- type varchar(50) default NULL,
- ruby_type varchar(50) default NULL,
- firm_id int default NULL,
- name varchar(50) default NULL,
- client_of int default NULL,
- rating int default 1
-);
-
-CREATE TABLE topics (
- id int NOT NULL IDENTITY(1, 1) PRIMARY KEY,
- title varchar(255) default NULL,
- author_name varchar(255) default NULL,
- author_email_address varchar(255) default NULL,
- written_on datetime default NULL,
- bonus_time datetime default NULL,
- last_read datetime default NULL,
- content varchar(255) default NULL,
- approved bit default 1,
- replies_count int default 0,
- parent_id int default NULL,
- type varchar(50) default NULL
-);
-
-CREATE TABLE developers (
- id int NOT NULL IDENTITY(1, 1) PRIMARY KEY,
- name varchar(100) default NULL,
- salary int default 70000,
- created_at datetime default NULL,
- updated_at datetime default NULL
-);
-
-CREATE TABLE projects (
- id int NOT NULL IDENTITY(1, 1) PRIMARY KEY,
- name varchar(100) default NULL,
- type varchar(255) default NULL
-);
-
-CREATE TABLE developers_projects (
- developer_id int NOT NULL,
- project_id int NOT NULL,
- joined_on datetime default NULL,
- access_level int default 1
-);
-
-CREATE TABLE orders (
- id int NOT NULL IDENTITY(1, 1) PRIMARY KEY,
- name varchar(100) default NULL,
- billing_customer_id int default NULL,
- shipping_customer_id int default NULL
-);
-
-
-CREATE TABLE customers (
- id int NOT NULL IDENTITY(1, 1) PRIMARY KEY,
- name varchar(100) default NULL,
- balance int default 0,
- address_street varchar(100) default NULL,
- address_city varchar(100) default NULL,
- address_country varchar(100) default NULL,
- gps_location varchar(100) default NULL
-);
-
-CREATE TABLE movies (
- movieid int NOT NULL IDENTITY(1, 1) PRIMARY KEY,
- name varchar(100) default NULL
-);
-
-CREATE TABLE subscribers (
- nick varchar(100) NOT NULL PRIMARY KEY,
- name varchar(100) default NULL
-);
-
-CREATE TABLE booleantests (
- id int NOT NULL IDENTITY(1, 1) PRIMARY KEY,
- value bit default NULL
-);
-
-CREATE TABLE defaults (
- id int NOT NULL IDENTITY(1, 1) PRIMARY KEY,
--- these brought from the PostgreSQL defaults_test.rb but
--- tests only exist for integers and decimals, currently
--- modified_date date default CURRENT_DATE,
--- modified_date_function date default now(),
--- fixed_date date default '2004-01-01',
--- modified_time timestamp default CURRENT_TIMESTAMP,
--- modified_time_function timestamp default now(),
--- fixed_time timestamp default '2004-01-01 00:00:00.000000-00',
--- char1 char(1) default 'Y',
--- char2 character varying(50) default 'a varchar field',
--- char3 text default 'a text field',
- positive_integer integer default 1,
- negative_integer integer default -1,
- decimal_number decimal(3,2) default 2.78
-);
-
-CREATE TABLE auto_id_tests (
- auto_id int NOT NULL IDENTITY(1, 1) PRIMARY KEY,
- value int default NULL
-);
-
-CREATE TABLE entrants (
- id int NOT NULL PRIMARY KEY,
- name varchar(255) NOT NULL,
- course_id int NOT NULL
-);
-
-CREATE TABLE colnametests (
- id int NOT NULL IDENTITY(1, 1) PRIMARY KEY,
- [references] int NOT NULL
-);
-
-CREATE TABLE mixins (
- id int NOT NULL IDENTITY(1, 1) PRIMARY KEY,
- parent_id int default NULL,
- pos int default NULL,
- created_at datetime default NULL,
- updated_at datetime default NULL,
- lft int default NULL,
- rgt int default NULL,
- root_id int default NULL,
- type varchar(40) default NULL
-);
-
-CREATE TABLE people (
- id int NOT NULL IDENTITY(1, 1),
- first_name varchar(40) NULL,
- lock_version int default 0,
- PRIMARY KEY (id)
-);
-
-CREATE TABLE readers (
- id int NOT NULL IDENTITY(1, 1),
- post_id int NOT NULL,
- person_id int NOT NULL,
- primary key (id)
-);
-
-CREATE TABLE binaries (
- id int NOT NULL IDENTITY(1, 1) PRIMARY KEY,
- data image NULL
-);
-
-CREATE TABLE computers (
- id int NOT NULL IDENTITY(1, 1) PRIMARY KEY,
- developer int NOT NULL,
- extendedWarranty int NOT NULL
-);
-
-CREATE TABLE posts (
- id int NOT NULL IDENTITY(1, 1) PRIMARY KEY,
- author_id int default NULL,
- title varchar(255) default NULL,
- type varchar(255) default NULL,
- body varchar(4096) default NULL
-);
-
-CREATE TABLE comments (
- id int NOT NULL IDENTITY(1, 1) PRIMARY KEY,
- post_id int default NULL,
- type varchar(255) default NULL,
- body varchar(4096) default NULL
-);
-
-CREATE TABLE authors (
- id int NOT NULL IDENTITY(1, 1) PRIMARY KEY,
- name varchar(255) default NULL
-);
-
-CREATE TABLE tasks (
- id int NOT NULL IDENTITY(1, 1) PRIMARY KEY,
- starting datetime default NULL,
- ending datetime default NULL
-);
-
-CREATE TABLE categories (
- id int NOT NULL IDENTITY(1, 1) PRIMARY KEY,
- name varchar(255),
- type varchar(255) default NULL
-);
-
-CREATE TABLE categories_posts (
- category_id int NOT NULL,
- post_id int NOT NULL
-);
-
-CREATE TABLE fk_test_has_pk (
- id INTEGER NOT NULL PRIMARY KEY
-);
-
-CREATE TABLE fk_test_has_fk (
- id INTEGER NOT NULL PRIMARY KEY,
- fk_id INTEGER NOT NULL,
-
- FOREIGN KEY (fk_id) REFERENCES fk_test_has_pk(id)
-);
-
-CREATE TABLE keyboards (
- key_number int NOT NULL IDENTITY(1, 1) PRIMARY KEY,
- name varchar(50) default NULL
-);
-
---This table has an altered lock_version column name.
-CREATE TABLE legacy_things (
- id int NOT NULL IDENTITY(1, 1),
- tps_report_number int default NULL,
- version int default 0,
- PRIMARY KEY (id)
-);
-
-CREATE TABLE numeric_data (
- id int NOT NULL IDENTITY(1, 1),
- bank_balance decimal(10,2),
- big_bank_balance decimal(15,2),
- world_population decimal(10),
- my_house_population decimal(2),
- decimal_number_with_default decimal(3,2) DEFAULT 2.78
-);
-
-CREATE TABLE [order] (
- id int NOT NULL IDENTITY(1, 1) PRIMARY KEY,
- color varchar(255),
- fruit_size varchar(255),
- texture varchar(255),
- flavor varchar(255)
-);
-
-CREATE TABLE mixed_case_monkeys (
- [monkeyID] int NOT NULL IDENTITY(1, 1),
- [fleaCount] int default NULL
-);
-
-CREATE TABLE minimalistics (
- id int NOT NULL IDENTITY(1, 1) PRIMARY KEY
-);
View
1  test/fixtures/db_definitions/sqlserver2.drop.sql
@@ -1 +0,0 @@
-DROP TABLE courses;
View
4 test/fixtures/db_definitions/sqlserver2.sql
@@ -1,4 +0,0 @@
-CREATE TABLE courses (
- id int NOT NULL PRIMARY KEY,
- name varchar(255) NOT NULL
-);
Please sign in to comment.
Something went wrong with that request. Please try again.