Skip to content

Commit e599266

Browse files
committed
Merge pull request #337 from sodabrew/travis_ruby_2.0.0
Travis Ruby 2.0.0
2 parents f0970d7 + 991ca44 commit e599266

File tree

7 files changed

+25
-20
lines changed

7 files changed

+25
-20
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ rvm:
66
- ree
77
- rbx-18mode
88
- rbx-19mode
9+
- ruby-head
10+
bundler_args: --without benchmarks
911
script:
1012
- bundle exec rake
1113
- bundle exec rspec

Gemfile

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
11
source :rubygems
22

3-
gemspec
3+
gemspec
4+
5+
# benchmarks
6+
group :benchmarks do
7+
gem 'activerecord'
8+
gem 'mysql'
9+
gem 'do_mysql'
10+
gem 'sequel'
11+
gem 'faker'
12+
end

Gemfile.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ GEM
3131
i18n (0.6.0)
3232
multi_json (1.0.4)
3333
mysql (2.8.1)
34-
rake (0.8.7)
35-
rake-compiler (0.7.9)
34+
rake (0.9.4)
35+
rake-compiler (0.8.1)
3636
rake
3737
rspec (2.8.0)
3838
rspec-core (~> 2.8.0)
@@ -55,7 +55,7 @@ DEPENDENCIES
5555
faker
5656
mysql
5757
mysql2!
58-
rake (= 0.8.7)
59-
rake-compiler (~> 0.7.7)
60-
rspec
58+
rake (~> 0.9.3)
59+
rake-compiler (~> 0.8.1)
60+
rspec (~> 2.8.0)
6161
sequel

mysql2.gemspec

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,7 @@ Gem::Specification.new do |s|
1717

1818
# tests
1919
s.add_development_dependency 'eventmachine'
20-
s.add_development_dependency 'rake-compiler', "~> 0.7.7"
21-
s.add_development_dependency 'rake', '0.8.7' # NB: 0.8.7 required by rake-compiler 0.7.9
22-
s.add_development_dependency 'rspec'
23-
# benchmarks
24-
s.add_development_dependency 'activerecord'
25-
s.add_development_dependency 'mysql'
26-
s.add_development_dependency 'do_mysql'
27-
s.add_development_dependency 'sequel'
28-
s.add_development_dependency 'faker'
20+
s.add_development_dependency 'rake-compiler', "~> 0.8.1"
21+
s.add_development_dependency 'rake', '~> 0.9.3'
22+
s.add_development_dependency 'rspec', '~> 2.8.0'
2923
end

spec/mysql2/client_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ def connect *args
421421
}.should_not raise_error(SystemStackError)
422422
end
423423

424-
if RUBY_VERSION =~ /1.9/
424+
unless RUBY_VERSION =~ /1.8/
425425
it "should carry over the original string's encoding" do
426426
str = "abc'def\"ghi\0jkl%mno"
427427
escaped = Mysql2::Client.escape(str)
@@ -638,7 +638,7 @@ def connect *args
638638
@client.ping.should eql(false)
639639
end
640640

641-
if RUBY_VERSION =~ /1.9/
641+
unless RUBY_VERSION =~ /1.8/
642642
it "should respond to #encoding" do
643643
@client.should respond_to(:encoding)
644644
end

spec/mysql2/error_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
@error.should respond_to(:error)
3636
end
3737

38-
if RUBY_VERSION =~ /1.9/
38+
unless RUBY_VERSION =~ /1.8/
3939
it "#message encoding should match the connection's encoding, or Encoding.default_internal if set" do
4040
if Encoding.default_internal.nil?
4141
@error.message.encoding.should eql(@client.encoding)

spec/mysql2/result_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@
234234
end
235235

236236
if 1.size == 4 # 32bit
237-
if RUBY_VERSION =~ /1.9/
237+
unless RUBY_VERSION =~ /1.8/
238238
klass = Time
239239
else
240240
klass = DateTime
@@ -252,7 +252,7 @@
252252
r.first['test'].class.should eql(klass)
253253
end
254254
elsif 1.size == 8 # 64bit
255-
if RUBY_VERSION =~ /1.9/
255+
unless RUBY_VERSION =~ /1.8/
256256
it "should return Time when timestamp is < 1901-12-13 20:45:52" do
257257
r = @client.query("SELECT CAST('1901-12-13 20:45:51' AS DATETIME) as test")
258258
r.first['test'].class.should eql(Time)

0 commit comments

Comments
 (0)