Skip to content

Commit 5fa7700

Browse files
tamirdsodabrew
authored andcommitted
Drop 1.9.3 support (#913)
1 parent 245c3d1 commit 5fa7700

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+17
-138
lines changed

.rubocop.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
inherit_from: .rubocop_todo.yml
22

33
AllCops:
4-
TargetRubyVersion: 1.9
4+
TargetRubyVersion: 2.0
55

66
DisplayCopNames: true
77
Exclude:
@@ -21,10 +21,6 @@ Layout/IndentHeredoc:
2121
Lint/EndAlignment:
2222
EnforcedStyleAlignWith: variable
2323

24-
Style/Encoding:
25-
AutoCorrectEncodingComment: '# encoding: UTF-8'
26-
EnforcedStyle: always
27-
2824
Style/TrailingCommaInArguments:
2925
EnforcedStyleForMultiline: consistent_comma
3026

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ rvm:
2323
- 2.2
2424
- 2.1
2525
- 2.0.0
26-
- 1.9.3
2726
- ruby-head
2827
matrix:
2928
include:

Gemfile

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# encoding: UTF-8
2-
31
source 'https://rubygems.org'
42

53
gemspec
@@ -10,9 +8,8 @@ gem 'rake-compiler', '~> 1.0'
108
group :test do
119
gem 'eventmachine' unless RUBY_PLATFORM =~ /mswin|mingw/
1210
gem 'rspec', '~> 3.2'
13-
# https://github.com/bbatsov/rubocop/pull/3328
1411
# https://github.com/bbatsov/rubocop/pull/4789
15-
gem 'rubocop', '~> 0.50.0' unless RUBY_VERSION =~ /1.9/
12+
gem 'rubocop', '~> 0.50.0'
1613
end
1714

1815
group :benchmarks do

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ The Mysql2 gem is meant to serve the extremely common use-case of connecting, qu
77
Some database libraries out there serve as direct 1:1 mappings of the already complex C APIs available.
88
This one is not.
99

10-
It also forces the use of UTF-8 [or binary] for the connection [and all strings in 1.9, unless Encoding.default_internal is set then it'll convert from UTF-8 to that encoding] and uses encoding-aware MySQL API calls where it can.
10+
It also forces the use of UTF-8 [or binary] for the connection and uses encoding-aware MySQL API calls where it can.
1111

1212
The API consists of three classes:
1313

@@ -510,7 +510,7 @@ As for field values themselves, I'm workin on it - but expect that soon.
510510

511511
This gem is tested with the following Ruby versions on Linux and Mac OS X:
512512

513-
* Ruby MRI 1.9.3, 2.0.0, 2.1.x, 2.2.x, 2.3.x, 2.4.x
513+
* Ruby MRI 2.0.0, 2.1.x, 2.2.x, 2.3.x, 2.4.x
514514
* Rubinius 2.x and 3.x do work but may fail under some workloads
515515

516516
This gem is tested with the following MySQL and MariaDB versions:

Rakefile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# encoding: UTF-8
2-
31
require 'rake'
42

53
# Load custom tasks (careful attention to define tasks before prerequisites)
@@ -12,7 +10,7 @@ load 'tasks/benchmarks.rake'
1210
begin
1311
require 'rubocop/rake_task'
1412
RuboCop::RakeTask.new
15-
task default: [:spec, :rubocop]
13+
task default: %i[spec rubocop]
1614
rescue LoadError
1715
warn 'RuboCop is not available'
1816
task default: :spec

benchmark/active_record.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# encoding: UTF-8
2-
31
$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../lib')
42

53
require 'rubygems'

benchmark/active_record_threaded.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# encoding: UTF-8
2-
31
$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../lib')
42

53
require 'rubygems'

benchmark/allocations.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# encoding: UTF-8
2-
31
$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../lib')
42

53
require 'rubygems'

benchmark/escape.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# encoding: UTF-8
2-
31
$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../lib')
42

53
require 'rubygems'

benchmark/query_with_mysql_casting.rb

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
# encoding: UTF-8
2-
31
$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../lib')
42

53
require 'rubygems'

0 commit comments

Comments
 (0)