File tree Expand file tree Collapse file tree 7 files changed +40
-11
lines changed
Expand file tree Collapse file tree 7 files changed +40
-11
lines changed Original file line number Diff line number Diff line change 88 - bundle install --path vendor/bundle
99 - bundle exec rspec
1010 - gem build fastcomments-client.gemspec
11- - gem install ./fastcomments-client-0.0.1 .gem
11+ - gem install ./fastcomments-client-0.1.0 .gem
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ No description provided (generated by Openapi Generator https://github.com/opena
77This SDK is automatically generated by the [ OpenAPI Generator] ( https://openapi-generator.tech ) project:
88
99- API version: 0.0.0
10- - Package version: 0.0.1
10+ - Package version: 0.1.0
1111- Generator version: 7.14.0
1212- Build package: org.openapitools.codegen.languages.RubyClientCodegen
1313
@@ -24,16 +24,16 @@ gem build fastcomments-client.gemspec
2424Then either install the gem locally:
2525
2626``` shell
27- gem install ./fastcomments-client-0.0.1 .gem
27+ gem install ./fastcomments-client-0.1.0 .gem
2828```
2929
30- (for development, run ` gem install --dev ./fastcomments-client-0.0.1 .gem ` to install the development dependencies)
30+ (for development, run ` gem install --dev ./fastcomments-client-0.1.0 .gem ` to install the development dependencies)
3131
3232or publish the gem to a gem hosting service, e.g. [ RubyGems] ( https://rubygems.org/ ) .
3333
3434Finally add this to the Gemfile:
3535
36- gem 'fastcomments-client', '~> 0.0.1 '
36+ gem 'fastcomments-client', '~> 0.1.0 '
3737
3838### Install from Git
3939
Original file line number Diff line number Diff line change 1111=end
1212
1313module FastCommentsClient
14- VERSION = '0.0.1 '
14+ VERSION = '0.1.0 '
1515end
Original file line number Diff line number Diff line change 11{
22 "gemName" : " fastcomments-client" ,
33 "moduleName" : " FastCommentsClient" ,
4- "gemVersion" : " 0.0.1 "
4+ "gemVersion" : " 0.1.0 "
55}
Original file line number Diff line number Diff line change 11Gem ::Specification . new do |spec |
22 spec . name = "fastcomments-ruby"
3- spec . version = "0.0.1 "
3+ spec . version = "0.1.0 "
44 spec . authors = [ "FastComments" ]
55 spec . email = [ "[email protected] " ] 66
@@ -10,8 +10,17 @@ Gem::Specification.new do |spec|
1010 spec . license = "MIT"
1111 spec . required_ruby_version = ">= 2.7.0"
1212
13- spec . files = Dir . glob ( "{lib}/**/*" ) + %w[ README.md LICENSE ]
14- spec . require_paths = [ "lib" ]
13+ spec . metadata = {
14+ "bug_tracker_uri" => "https://github.com/fastcomments/fastcomments-ruby/issues" ,
15+ "changelog_uri" => "https://github.com/fastcomments/fastcomments-ruby/blob/master/CHANGELOG.md" ,
16+ "source_code_uri" => "https://github.com/fastcomments/fastcomments-ruby" ,
17+ "documentation_uri" => "https://github.com/fastcomments/fastcomments-ruby/blob/master/README.md"
18+ }
19+
20+ spec . files = Dir . glob ( "{lib,client}/**/*" ) + %w[ README.md LICENSE ]
21+ spec . require_paths = [ "lib" , "client/lib" ]
22+
23+ spec . add_runtime_dependency "typhoeus" , "~> 1.0" , ">= 1.0.1"
1524
1625 spec . add_development_dependency "rspec" , "~> 3.12"
1726 spec . add_development_dependency "rake" , "~> 13.0"
Original file line number Diff line number Diff line change 55require_relative 'fastcomments/sso/fastcomments_sso'
66
77module FastComments
8- VERSION = '0.0.1 '
8+ VERSION = '0.1.0 '
99end
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ set -e
3+
4+ echo " Building fastcomments-ruby gem..."
5+ gem build fastcomments-ruby.gemspec
6+
7+ # Get the version from the gemspec
8+ VERSION=$( ruby -r ./lib/fastcomments.rb -e " puts FastComments::VERSION" )
9+ GEM_FILE=" fastcomments-ruby-${VERSION} .gem"
10+
11+ if [ ! -f " $GEM_FILE " ]; then
12+ echo " Error: Gem file $GEM_FILE not found!"
13+ exit 1
14+ fi
15+
16+ echo " Publishing $GEM_FILE to RubyGems..."
17+ gem push " $GEM_FILE "
18+
19+ echo " Successfully published fastcomments-ruby v${VERSION} !"
20+ echo " Users can now install it with: gem install fastcomments-ruby"
You can’t perform that action at this time.
0 commit comments