Skip to content

Commit

Permalink
Merge pull request #7 from basecamp/prepare-gem-release
Browse files Browse the repository at this point in the history
Bump to version 1 and rename to rspamd-ruby
  • Loading branch information
lewispb committed Jul 23, 2023
2 parents 63d635c + 327af63 commit b3acbf3
Show file tree
Hide file tree
Showing 8 changed files with 36 additions and 12 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ jobs:

- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7.8
rubygems: latest

- name: Cache gem dependencies
uses: actions/cache@v1
Expand Down
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.2.0
2.7.8
12 changes: 7 additions & 5 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,17 @@ GIT
PATH
remote: .
specs:
rspamd (0.1.0)
rspamd-ruby (1.0.0)

GEM
remote: https://rubygems.org/
specs:
activesupport (7.0.4.2)
activesupport (6.1.7.4)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 1.6, < 2)
minitest (>= 5.1)
tzinfo (~> 2.0)
zeitwerk (~> 2.3)
addressable (2.8.1)
public_suffix (>= 2.0.2, < 6.0)
ast (2.4.2)
Expand Down Expand Up @@ -67,7 +68,7 @@ GEM
rubocop-performance (1.16.0)
rubocop (>= 1.7.0, < 2.0)
rubocop-ast (>= 0.4.0)
rubocop-rails (2.17.4)
rubocop-rails (2.19.1)
activesupport (>= 4.2.0)
rack (>= 1.1)
rubocop (>= 1.33.0, < 2.0)
Expand All @@ -80,6 +81,7 @@ GEM
addressable (>= 2.3.6)
crack (>= 0.3.2)
hashdiff (>= 0.4.0, < 2.0.0)
zeitwerk (2.6.8)

PLATFORMS
ruby
Expand All @@ -88,9 +90,9 @@ DEPENDENCIES
debug
minitest (> 5.11)
rake (~> 13.0)
rspamd!
rspamd-ruby!
rubocop-37signals!
webmock (~> 3.0)

BUNDLED WITH
2.1.4
2.4.17
14 changes: 14 additions & 0 deletions bin/release
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/usr/bin/env bash

VERSION=$1

printf "module Rspamd\n VERSION = \"$VERSION\"\nend\n" > ./lib/rspamd/version.rb
bundle
git add Gemfile.lock lib/rspamd/version.rb
git commit -m "Bump version for $VERSION"
git push
git tag v$VERSION
git push --tags
gem build rspamd-ruby.gemspec
gem push "rspamd-ruby-$VERSION.gem" --host https://rubygems.org
rm "rspamd-ruby-$VERSION.gem"
File renamed without changes.
3 changes: 3 additions & 0 deletions lib/rspamd/version.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module Rspamd
VERSION = "1.0.0"
end
12 changes: 7 additions & 5 deletions rspamd.gemspec → rspamd-ruby.gemspec
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
require_relative "lib/rspamd/version"

Gem::Specification.new do |s|
s.name = "rspamd"
s.version = "0.1.0"
s.authors = "George Claghorn"
s.email = "george@basecamp.com"
s.name = "rspamd-ruby"
s.version = Rspamd::VERSION
s.authors = [ "George Claghorn", "Lewis Buckley" ]
s.email = "lewis@37signals.com"
s.summary = "Client for Rspamd's HTTP API"
s.homepage = "https://github.com/basecamp/rspamd-ruby"

s.required_ruby_version = ">= 2.6.0"
s.required_ruby_version = ">= 2.7.8"

s.add_development_dependency "rake", "~> 13.0"
s.add_development_dependency "minitest", "> 5.11"
Expand Down
2 changes: 1 addition & 1 deletion test/test_helper.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require "minitest/autorun"
require "webmock/minitest"
require "rspamd"
require "rspamd-ruby"
require "debug"

0 comments on commit b3acbf3

Please sign in to comment.