Skip to content

Commit 3794068

Browse files
committed
0.1.0
1 parent 8d264e2 commit 3794068

File tree

7 files changed

+40
-11
lines changed

7 files changed

+40
-11
lines changed

client/.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ script:
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

client/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ No description provided (generated by Openapi Generator https://github.com/opena
77
This 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
2424
Then 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

3232
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
3333

3434
Finally 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

client/lib/fastcomments-client/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@
1111
=end
1212

1313
module FastCommentsClient
14-
VERSION = '0.0.1'
14+
VERSION = '0.1.0'
1515
end

config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"gemName": "fastcomments-client",
33
"moduleName": "FastCommentsClient",
4-
"gemVersion": "0.0.1"
4+
"gemVersion": "0.1.0"
55
}

fastcomments-ruby.gemspec

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Gem::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"

lib/fastcomments.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
require_relative 'fastcomments/sso/fastcomments_sso'
66

77
module FastComments
8-
VERSION = '0.0.1'
8+
VERSION = '0.1.0'
99
end

publish.sh

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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"

0 commit comments

Comments
 (0)