do_mysql 0.9.12 → 0.10.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.
@@ -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 => [:package] do |t|
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.rdoc")
30
- r.split(/^(=+ .*)/)[1..4].join.strip
29
+ r = File.read("README.markdown")
30
+ r.split(/^(.*\n\-+)/)[1..4].join.strip
31
31
  rescue
32
- warn "Missing README.rdoc"
32
+ warn "Missing README.markdown"
33
33
  ''
34
34
  end
35
35
 
36
36
  # read changes
37
37
  changes = begin
38
- h = File.read("History.txt")
39
- h.split(/^(==+ .*)/)[1..2].join.strip
38
+ h = File.read("HISTORY.markdown")
39
+ h.split(/^(##+ .*)/)[1..2].join.strip
40
40
  rescue
41
- warn "Missing History.txt"
41
+ warn "Missing HISTORY.markdown"
42
42
  ''
43
43
  end
44
44
 
@@ -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
@@ -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
@@ -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.9.12
4
+ version: 0.10.0
5
5
  platform: ruby
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-05-17 00:00:00 +02:00
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.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.9.12
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,14 +91,16 @@ 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
- - History.txt
100
+ - HISTORY.markdown
101
+ - README.markdown
98
102
  - Manifest.txt
99
- - README.txt
100
- has_rdoc: true
103
+ has_rdoc: false
101
104
  homepage: http://github.com/datamapper/do
102
105
  licenses: []
103
106
 
@@ -121,7 +124,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
121
124
  requirements: []
122
125
 
123
126
  rubyforge_project: dorb
124
- rubygems_version: 1.3.3
127
+ rubygems_version: 1.3.5
125
128
  signing_key:
126
129
  specification_version: 3
127
130
  summary: DataObjects MySQL Driver
@@ -1,9 +0,0 @@
1
- == 0.9.11 2009-01-19
2
- * Improvements
3
- * Ruby 1.9 support
4
- * Fixes
5
- * Reconnecting now works properly
6
-
7
- == 0.9.9 2008-11-27
8
- * Improvements
9
- * Added initial support for Ruby 1.9 [John Harrison]