Skip to content

Commit 73ec51c

Browse files
author
Roman Lemekha
authored
Rails 5.2 compatibility (#10)
Rails 5.2 compatibility
2 parents fac7f50 + edf682e commit 73ec51c

File tree

5 files changed

+11
-6
lines changed

5 files changed

+11
-6
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ mysql_blob_streaming-*.gem
77
/ext/mysql_blob_streaming/mysql_blob_streaming.bundle
88
/ext/mysql_blob_streaming/mysql_blob_streaming.so
99
/ext/mysql_blob_streaming/mysql_blob_streaming.o
10-
/lib/mysql_blob_streaming/
10+
/lib/mysql_blob_streaming/*.bundle
11+
/lib/mysql_blob_streaming/*.so

Gemfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,4 @@ gemspec
66
# Dependencies for test environment
77
gem "rake"
88
gem "test-unit"
9-
gem "pry"
10-
gem "activerecord", "~> 4.2"
9+
gem "activerecord", "~> 5.2"

lib/mysql_blob_streaming/version.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
class MysqlBlobStreaming
2+
VERSION = "2.3.0"
3+
end

mysql_blob_streaming.gemspec

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1+
require File.expand_path('lib/mysql_blob_streaming/version', __dir__)
2+
13
Gem::Specification.new do |spec|
24
spec.name = 'mysql_blob_streaming'
3-
spec.version = %x(git describe --always).chomp.gsub(/-([0-9]+)-g/, '.\\1.')
5+
spec.version = MysqlBlobStreaming::VERSION
46
spec.summary = 'A blob streaming extension for the native Ruby-MySQL2 adapter'
57
spec.author = 'Infopark AG'
68
spec.homepage = 'http://www.infopark.de/'
@@ -11,7 +13,7 @@ Gem::Specification.new do |spec|
1113
EOF
1214
spec.license = 'MIT'
1315

14-
spec.add_dependency 'mysql2', '>= 0.3.16', '< 0.4.0'
16+
spec.add_dependency 'mysql2', ">= 0.4.4", "< 0.6.0"
1517
spec.required_ruby_version = '>=2.0.0'
1618

1719
spec.files = Dir["lib/**/*.rb", "ext/**/*.{c,h,rb}", "README.markdown"]

test/fixtures.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ module Fixtures
1010

1111
class Blob < ActiveRecord::Base; end
1212

13-
class FixtureMigration < ActiveRecord::Migration
13+
class FixtureMigration < ActiveRecord::Migration[5.2]
1414
def self.up
1515
create_table :blobs do |t|
1616
t.column :name, :string

0 commit comments

Comments
 (0)