Skip to content

Commit

Permalink
prepare 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tmtm committed Nov 12, 2021
1 parent 9cc4dd5 commit 7e728f7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/mysql.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class Mysql
require "mysql/protocol"
require "mysql/packet.rb"

VERSION = 21101 # Version number of this library
VERSION = '3.0.0' # Version number of this library
MYSQL_UNIX_PORT = "/tmp/mysql.sock" # UNIX domain socket filename
MYSQL_TCP_PORT = 3306 # TCP socket port number

Expand Down
9 changes: 6 additions & 3 deletions ruby-mysql.gemspec
Original file line number Diff line number Diff line change
@@ -1,15 +1,18 @@
require_relative 'lib/mysql'

Gem::Specification.new do |s|
s.name = 'ruby-mysql'
s.version = '2.11.1'
s.version = Mysql::VERSION
s.summary = 'MySQL connector'
s.authors = ['Tomita Masahiro']
s.date = '2021-11-13'
s.description = 'This is MySQL connector. pure Ruby version'
s.email = '[email protected]'
s.homepage = 'http://github.com/tmtm/ruby-mysql'
s.files = ['README.rdoc', 'lib/mysql.rb', 'lib/mysql/constants.rb', 'lib/mysql/protocol.rb', 'lib/mysql/charset.rb', 'lib/mysql/error.rb', 'lib/mysql/packet.rb', 'lib/mysql/authenticator.rb'] + Dir.glob('lib/mysql/authenticator/*.rb')
s.extra_rdoc_files = ['README.rdoc']
s.test_files = Dir.glob('test/**/*.rb')
s.has_rdoc = true
s.license = 'Ruby'
s.metadata['homepage_uri'] = 'http://github.com/tmtm/ruby-mysql'
s.metadata['documentation_uri'] = 'https://www.rubydoc.info/github/tmtm/ruby-mysql/'
s.metadata['source_code_uri'] = 'http://github.com/tmtm/ruby-mysql'
end
2 changes: 1 addition & 1 deletion test/test_mysql.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
class TestMysql < Test::Unit::TestCase
sub_test_case 'Mysql::VERSION' do
test 'returns client version' do
assert{ Mysql::VERSION == 21101 }
assert{ Mysql::VERSION == '3.0.0' }
end
end

Expand Down

0 comments on commit 7e728f7

Please sign in to comment.