do_mysql 0.9.12-x86-mingw32 → 0.10.0-x86-mingw32
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/HISTORY.markdown +17 -0
- data/Manifest.txt +2 -2
- data/{README.txt → README.markdown} +2 -1
- data/Rakefile +3 -3
- data/ext/do_mysql_ext/do_mysql_ext.c +255 -106
- data/ext/do_mysql_ext/error.h +527 -0
- data/ext/do_mysql_ext/extconf.rb +1 -6
- data/lib/do_mysql.rb +20 -17
- data/lib/do_mysql/encoding.rb +38 -0
- data/lib/do_mysql/transaction.rb +9 -13
- data/lib/do_mysql/version.rb +1 -1
- data/lib/do_mysql_ext.so +0 -0
- data/spec/connection_spec.rb +43 -1
- data/spec/result_spec.rb +7 -0
- data/spec/spec_helper.rb +107 -11
- data/tasks/gem.rake +1 -53
- data/tasks/release.rake +7 -7
- data/tasks/retrieve.rake +1 -1
- data/tasks/spec.rake +1 -0
- data/tasks/ssl.rake +29 -0
- metadata +13 -10
- data/History.txt +0 -9
data/tasks/release.rake
CHANGED
@@ -8,7 +8,7 @@ end
|
|
8
8
|
if defined?(RubyForge) then
|
9
9
|
if defined?(GEM_SPEC) then
|
10
10
|
desc 'Package and upload to RubyForge'
|
11
|
-
task :release
|
11
|
+
task :release do |t|
|
12
12
|
ver = ENV['VERSION'] or fail "Must supply VERSION (rake release VERSION=x.y.z)."
|
13
13
|
|
14
14
|
# compare versions to avoid mistakes
|
@@ -26,19 +26,19 @@ if defined?(RubyForge) then
|
|
26
26
|
|
27
27
|
# read project info and overview
|
28
28
|
notes = begin
|
29
|
-
r = File.read("README.
|
30
|
-
r.split(/^(
|
29
|
+
r = File.read("README.markdown")
|
30
|
+
r.split(/^(.*\n\-+)/)[1..4].join.strip
|
31
31
|
rescue
|
32
|
-
warn "Missing README.
|
32
|
+
warn "Missing README.markdown"
|
33
33
|
''
|
34
34
|
end
|
35
35
|
|
36
36
|
# read changes
|
37
37
|
changes = begin
|
38
|
-
h = File.read("
|
39
|
-
h.split(/^(
|
38
|
+
h = File.read("HISTORY.markdown")
|
39
|
+
h.split(/^(##+ .*)/)[1..2].join.strip
|
40
40
|
rescue
|
41
|
-
warn "Missing
|
41
|
+
warn "Missing HISTORY.markdown"
|
42
42
|
''
|
43
43
|
end
|
44
44
|
|
data/tasks/retrieve.rake
CHANGED
@@ -33,7 +33,7 @@ begin
|
|
33
33
|
url = "http://mysql.proserve.nl/Downloads/MySQL-#{base_version}/#{File.basename(t.name)}"
|
34
34
|
when_writing "downloading #{t.name}" do
|
35
35
|
cd File.dirname(t.name) do
|
36
|
-
sh "wget -c #{url} || curl -C - -O #{url}"
|
36
|
+
sh "wget -c #{url} || curl -L -C - -O #{url}"
|
37
37
|
end
|
38
38
|
end
|
39
39
|
end
|
data/tasks/spec.rake
CHANGED
@@ -5,6 +5,7 @@ desc 'Run specifications'
|
|
5
5
|
Spec::Rake::SpecTask.new(:spec => [ :clean, :compile ]) do |t|
|
6
6
|
t.spec_opts << '--options' << ROOT + 'spec/spec.opts'
|
7
7
|
t.spec_files = Pathname.glob(ENV['FILES'] || 'spec/**/*_spec.rb').map { |f| f.to_s }
|
8
|
+
t.libs << 'lib'
|
8
9
|
|
9
10
|
begin
|
10
11
|
# RCov is run by default, except on the JRuby platform
|
data/tasks/ssl.rake
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
namespace :ssl do
|
2
|
+
|
3
|
+
task :env do
|
4
|
+
require ROOT.join('spec', 'spec_helper')
|
5
|
+
end
|
6
|
+
|
7
|
+
desc "Check test environment for SSL support."
|
8
|
+
task :check => :env do
|
9
|
+
ssl_supported, messages = DataObjectsSpecHelpers.test_environment_supports_ssl?
|
10
|
+
|
11
|
+
if DataObjectsSpecHelpers.test_environment_supports_ssl?
|
12
|
+
puts
|
13
|
+
puts "** SSL successfully configured for the test environment **"
|
14
|
+
else
|
15
|
+
puts
|
16
|
+
puts "** SSL is not configured for the test environment **"
|
17
|
+
puts
|
18
|
+
puts DataObjectsSpecHelpers.test_environment_ssl_config_errors.join("\n")
|
19
|
+
puts
|
20
|
+
fail "Run rake ssl:config for instructions on how to configure the test environment."
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
desc "Provide instructions on how to configure SSL in your test environment."
|
25
|
+
task :config => :env do
|
26
|
+
puts DataObjectsSpecHelpers.test_environment_ssl_config
|
27
|
+
end
|
28
|
+
|
29
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: do_mysql
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.10.0
|
5
5
|
platform: x86-mingw32
|
6
6
|
authors:
|
7
7
|
- Dirkjan Bussink
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-09-15 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -20,7 +20,7 @@ dependencies:
|
|
20
20
|
requirements:
|
21
21
|
- - ~>
|
22
22
|
- !ruby/object:Gem::Version
|
23
|
-
version: 2.0
|
23
|
+
version: "2.0"
|
24
24
|
version:
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: extlib
|
@@ -40,7 +40,7 @@ dependencies:
|
|
40
40
|
requirements:
|
41
41
|
- - "="
|
42
42
|
- !ruby/object:Gem::Version
|
43
|
-
version: 0.
|
43
|
+
version: 0.10.0
|
44
44
|
version:
|
45
45
|
- !ruby/object:Gem::Dependency
|
46
46
|
name: rspec
|
@@ -61,6 +61,7 @@ extensions: []
|
|
61
61
|
extra_rdoc_files: []
|
62
62
|
|
63
63
|
files:
|
64
|
+
- lib/do_mysql/encoding.rb
|
64
65
|
- lib/do_mysql/transaction.rb
|
65
66
|
- lib/do_mysql/version.rb
|
66
67
|
- lib/do_mysql.rb
|
@@ -90,15 +91,17 @@ files:
|
|
90
91
|
- tasks/release.rake
|
91
92
|
- tasks/retrieve.rake
|
92
93
|
- tasks/spec.rake
|
94
|
+
- tasks/ssl.rake
|
93
95
|
- ext/do_mysql_ext/extconf.rb
|
94
96
|
- ext/do_mysql_ext/do_mysql_ext.c
|
97
|
+
- ext/do_mysql_ext/error.h
|
95
98
|
- LICENSE
|
96
99
|
- Rakefile
|
97
|
-
-
|
100
|
+
- HISTORY.markdown
|
101
|
+
- README.markdown
|
98
102
|
- Manifest.txt
|
99
|
-
- README.txt
|
100
103
|
- lib/do_mysql_ext.so
|
101
|
-
has_rdoc:
|
104
|
+
has_rdoc: false
|
102
105
|
homepage: http://github.com/datamapper/do
|
103
106
|
licenses: []
|
104
107
|
|
@@ -109,9 +112,9 @@ require_paths:
|
|
109
112
|
- lib
|
110
113
|
required_ruby_version: !ruby/object:Gem::Requirement
|
111
114
|
requirements:
|
112
|
-
- -
|
115
|
+
- - ">="
|
113
116
|
- !ruby/object:Gem::Version
|
114
|
-
version:
|
117
|
+
version: "0"
|
115
118
|
version:
|
116
119
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
117
120
|
requirements:
|
@@ -122,7 +125,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
122
125
|
requirements: []
|
123
126
|
|
124
127
|
rubyforge_project: dorb
|
125
|
-
rubygems_version: 1.3.
|
128
|
+
rubygems_version: 1.3.5
|
126
129
|
signing_key:
|
127
130
|
specification_version: 3
|
128
131
|
summary: DataObjects MySQL Driver
|