Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add alias gem 'trino-client-ruby' #74

Merged
merged 2 commits into from
Oct 22, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,7 @@ $ git tag "vX.Y.Z"
% git push --tags
```

4. Push package
4. Push package by the following command which will build and push `trino-client-X.Y.Z.gem` and `trino-client-ruby-X.Y.Z.gem` automatically.
```
$ gem build trino-client.gemspec
$ gem push trino-client-X.Y.Z.gem
$ ruby publish.rb
```
14 changes: 14 additions & 0 deletions publish.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/env ruby
require File.expand_path 'lib/trino/client/version', File.dirname(__FILE__)

def run(cmd)
puts cmd
system cmd
end

run("gem build trino-client.gemspec")
run("gem push trino-client-#{Trino::Client::VERSION}.gem")

run("gem build trino-client-ruby/trino-client-ruby.gemspec")
run("gem push trino-client-ruby/trino-client-ruby-#{Trino::Client::VERSION}.gem")

1 change: 1 addition & 0 deletions trino-client-ruby/lib/trino-client-ruby.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
require 'trino-client'
20 changes: 20 additions & 0 deletions trino-client-ruby/trino-client-ruby.gemspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
require File.expand_path '../lib/trino/client/version', File.dirname(__FILE__)

Gem::Specification.new do |gem|
gem.name = "trino-client-ruby"
gem.version = Trino::Client::VERSION

gem.authors = ["Sadayuki Furuhashi"]
gem.email = ["sf@treasure-data.com"]
gem.description = %q{Trino client library}
gem.summary = %q{Trino client library}
gem.homepage = "https://github.com/treasure-data/trino-client-ruby"
gem.license = "Apache-2.0"

gem.files = ['lib/trino-client-ruby.rb']
gem.require_paths = ["lib"]

gem.required_ruby_version = ">= 1.9.1"

gem.add_dependency "trino-client", Trino::Client::VERSION
end