File tree Expand file tree Collapse file tree 7 files changed +25
-20
lines changed Expand file tree Collapse file tree 7 files changed +25
-20
lines changed Original file line number Diff line number Diff line change 6
6
- ree
7
7
- rbx-18mode
8
8
- rbx-19mode
9
+ - ruby-head
10
+ bundler_args : --without benchmarks
9
11
script :
10
12
- bundle exec rake
11
13
- bundle exec rspec
Original file line number Diff line number Diff line change 1
1
source :rubygems
2
2
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
Original file line number Diff line number Diff line change 31
31
i18n (0.6.0 )
32
32
multi_json (1.0.4 )
33
33
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 )
36
36
rake
37
37
rspec (2.8.0 )
38
38
rspec-core (~> 2.8.0 )
@@ -55,7 +55,7 @@ DEPENDENCIES
55
55
faker
56
56
mysql
57
57
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 )
61
61
sequel
Original file line number Diff line number Diff line change @@ -17,13 +17,7 @@ Gem::Specification.new do |s|
17
17
18
18
# tests
19
19
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'
29
23
end
Original file line number Diff line number Diff line change @@ -421,7 +421,7 @@ def connect *args
421
421
} . should_not raise_error ( SystemStackError )
422
422
end
423
423
424
- if RUBY_VERSION =~ /1.9 /
424
+ unless RUBY_VERSION =~ /1.8 /
425
425
it "should carry over the original string's encoding" do
426
426
str = "abc'def\" ghi\0 jkl%mno"
427
427
escaped = Mysql2 ::Client . escape ( str )
@@ -638,7 +638,7 @@ def connect *args
638
638
@client . ping . should eql ( false )
639
639
end
640
640
641
- if RUBY_VERSION =~ /1.9 /
641
+ unless RUBY_VERSION =~ /1.8 /
642
642
it "should respond to #encoding" do
643
643
@client . should respond_to ( :encoding )
644
644
end
Original file line number Diff line number Diff line change 35
35
@error . should respond_to ( :error )
36
36
end
37
37
38
- if RUBY_VERSION =~ /1.9 /
38
+ unless RUBY_VERSION =~ /1.8 /
39
39
it "#message encoding should match the connection's encoding, or Encoding.default_internal if set" do
40
40
if Encoding . default_internal . nil?
41
41
@error . message . encoding . should eql ( @client . encoding )
Original file line number Diff line number Diff line change 234
234
end
235
235
236
236
if 1 . size == 4 # 32bit
237
- if RUBY_VERSION =~ /1.9 /
237
+ unless RUBY_VERSION =~ /1.8 /
238
238
klass = Time
239
239
else
240
240
klass = DateTime
252
252
r . first [ 'test' ] . class . should eql ( klass )
253
253
end
254
254
elsif 1 . size == 8 # 64bit
255
- if RUBY_VERSION =~ /1.9 /
255
+ unless RUBY_VERSION =~ /1.8 /
256
256
it "should return Time when timestamp is < 1901-12-13 20:45:52" do
257
257
r = @client . query ( "SELECT CAST('1901-12-13 20:45:51' AS DATETIME) as test" )
258
258
r . first [ 'test' ] . class . should eql ( Time )
You can’t perform that action at this time.
0 commit comments