sql_server 0.0.2 → 0.1.0
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.
- data/CHANGELOG.textile +10 -6
- data/README.textile +0 -0
- data/lib/SqlServer/version.rb +2 -2
- data/lib/SqlServer.rb +10 -0
- metadata +11 -4
data/CHANGELOG.textile
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
h1. 0.0
|
|
2
|
-
|
|
3
|
-
*
|
|
4
|
-
|
|
5
|
-
h1. 0.0.
|
|
6
|
-
|
|
1
|
+
h1. 0.1.0 - 2010-10-04
|
|
2
|
+
|
|
3
|
+
* Added the ability to execute SQL Server Command Statements.
|
|
4
|
+
|
|
5
|
+
h1. 0.0.2 - 2010-04-22
|
|
6
|
+
|
|
7
|
+
* Fixed the homepage for the gem.
|
|
8
|
+
|
|
9
|
+
h1. 0.0.1 - 2010-04-22
|
|
10
|
+
|
|
7
11
|
* Created the initial class and gem.
|
data/README.textile
CHANGED
|
File without changes
|
data/lib/SqlServer/version.rb
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
module SqlServer
|
|
2
|
-
VERSION = "0.0
|
|
1
|
+
module SqlServer
|
|
2
|
+
VERSION = "0.1.0"
|
|
3
3
|
end
|
data/lib/SqlServer.rb
CHANGED
|
@@ -53,6 +53,16 @@ class SqlServer
|
|
|
53
53
|
|
|
54
54
|
return result_set
|
|
55
55
|
end
|
|
56
|
+
|
|
57
|
+
def execute_command(sql_statement)
|
|
58
|
+
# Create an instance of an ADO COmmand
|
|
59
|
+
command = WIN32OLE.new('ADODB.Command')
|
|
60
|
+
|
|
61
|
+
# Execute the SQL statement using the existing ADO connection
|
|
62
|
+
command.ActiveConnection = @connection
|
|
63
|
+
command.CommandText=sql_statement
|
|
64
|
+
command.Execute
|
|
65
|
+
end
|
|
56
66
|
|
|
57
67
|
def close
|
|
58
68
|
@connection.Close
|
metadata
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sql_server
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
+
hash: 27
|
|
4
5
|
prerelease: false
|
|
5
6
|
segments:
|
|
6
7
|
- 0
|
|
8
|
+
- 1
|
|
7
9
|
- 0
|
|
8
|
-
|
|
9
|
-
version: 0.0.2
|
|
10
|
+
version: 0.1.0
|
|
10
11
|
platform: ruby
|
|
11
12
|
authors:
|
|
12
13
|
- Ed Botzum
|
|
@@ -14,16 +15,18 @@ autorequire:
|
|
|
14
15
|
bindir: bin
|
|
15
16
|
cert_chain: []
|
|
16
17
|
|
|
17
|
-
date: 2010-04
|
|
18
|
+
date: 2010-10-04 00:00:00 -04:00
|
|
18
19
|
default_executable:
|
|
19
20
|
dependencies:
|
|
20
21
|
- !ruby/object:Gem::Dependency
|
|
21
22
|
name: win32ole-pp
|
|
22
23
|
prerelease: false
|
|
23
24
|
requirement: &id001 !ruby/object:Gem::Requirement
|
|
25
|
+
none: false
|
|
24
26
|
requirements:
|
|
25
27
|
- - ">="
|
|
26
28
|
- !ruby/object:Gem::Version
|
|
29
|
+
hash: 3
|
|
27
30
|
segments:
|
|
28
31
|
- 0
|
|
29
32
|
version: "0"
|
|
@@ -52,23 +55,27 @@ rdoc_options: []
|
|
|
52
55
|
require_paths:
|
|
53
56
|
- lib
|
|
54
57
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
58
|
+
none: false
|
|
55
59
|
requirements:
|
|
56
60
|
- - ">="
|
|
57
61
|
- !ruby/object:Gem::Version
|
|
62
|
+
hash: 3
|
|
58
63
|
segments:
|
|
59
64
|
- 0
|
|
60
65
|
version: "0"
|
|
61
66
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
67
|
+
none: false
|
|
62
68
|
requirements:
|
|
63
69
|
- - ">="
|
|
64
70
|
- !ruby/object:Gem::Version
|
|
71
|
+
hash: 3
|
|
65
72
|
segments:
|
|
66
73
|
- 0
|
|
67
74
|
version: "0"
|
|
68
75
|
requirements: []
|
|
69
76
|
|
|
70
77
|
rubyforge_project:
|
|
71
|
-
rubygems_version: 1.3.
|
|
78
|
+
rubygems_version: 1.3.7
|
|
72
79
|
signing_key:
|
|
73
80
|
specification_version: 3
|
|
74
81
|
summary: Fast and easy Microsoft Sql Server querying.
|