Skip to content

Commit f105f0c

Browse files
committed
rename the whole project with the git repository name
We lost access to the board-linuxfr gem so we needed a new name to publish new versions. The simplest was to use the name of the repository. To reflect this breaking change, manjor version has been increased too.
1 parent ac0912b commit f105f0c

File tree

11 files changed

+39
-33
lines changed

11 files changed

+39
-33
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ when something is said with Server-Sent Event / EventSource.
99
How to use it?
1010
--------------
1111

12-
You can nstall the gem with `gem install board-linuxfr` [using the linuxfrorg
13-
Github Package Registry](https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-rubygems-registry#installing-a-package).
14-
Then, you can launch it on local with `board-linuxfr -S /tmp/board.sock`
12+
You can nstall the gem with `gem install board-sse-linuxfr.org`.
13+
14+
Then, you can launch it on local with `board-sse-linuxfr.org -S /tmp/board.sock`
1515
and it will listen on a UNIX socket at `/tmp/board.sock`.
1616

1717
Another way is to use a container engine (like Docker or Podman) and a
@@ -23,8 +23,8 @@ See also
2323
--------
2424

2525
* [Git repository](https://github.com/linuxfrorg/board-sse-LinuxFr.org)
26-
* For versions >= 0.1.4: [Github Package repostory](https://github.com/linuxfrorg/board-sse-linuxfr.org/pkgs/rubygems/board-linuxfr)
27-
* For older version: [Rubygems page](https://rubygems.org/gems/board-linuxfr)
26+
* For versions >= 1.0.0: [Rubygems board-sse-linuxfr.org](https://rubygems.org/gems/board-sse-linuxfr.org)
27+
* For older version: [old Rubygems board-linuxfr](https://rubygems.org/gems/board-linuxfr)
2828

2929

3030
Copyright

bin/board-linuxfr

Lines changed: 0 additions & 3 deletions
This file was deleted.

bin/board-sse-linuxfr.org

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/usr/bin/env ruby
2+
3+
require "board-sse-linuxfr.org"

board-linuxfr.gemspec renamed to board-sse-linuxfr.org.gemspec

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,24 @@
11
# encoding: utf-8
22
lib = File.expand_path('../lib', __FILE__)
33
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4-
require './lib/board-linuxfr/version'
4+
require './lib/board-sse-linuxfr.org/version'
55

66
Gem::Specification.new do |s|
77
s.name = "board-sse-linuxfr.org"
8-
s.version = BoardLinuxfr::VERSION
8+
s.version = BoardSseLinuxfrOrg::VERSION
99
s.licenses = ["AGPL-3.0-only"]
1010
s.authors = ["Bruno Michel", "Adrien Dorsaz"]
1111
s.email = "[email protected]"
1212
s.homepage = "https://github.com/linuxfrorg/board-sse-linuxfr.org"
13-
s.summary = "Push notifications for the board of LinuxFr.org"
14-
s.description = "Push notifications for the board of LinuxFr.org via Server-Sent Events"
13+
s.summary = "Board for LinuxFr.org"
14+
s.description = <<~EOD
15+
Users of the LinuxFr.org website can chat on a space called the board (« la tribune » in french).
16+
This Ruby daemon notifies the users when something is said with Server-Sent Event / EventSource.
17+
EOD
1518

1619
s.files = Dir['lib/**/*.rb'] + Dir['bin/*']
1720
s.platform = Gem::Platform::RUBY
18-
s.executables = ["board-linuxfr"]
21+
s.executables = ["board-sse-linuxfr.org"]
1922
s.require_path = 'lib'
2023

2124
s.add_runtime_dependency "goliath", "~>1.0", ">= 1.0.7"

compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
services:
2-
linuxfr-board:
2+
board-sse-linuxfr.og:
33
build:
44
context: .
55
dockerfile: ./deployment/Containerfile

deployment/Containerfile

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1-
FROM ruby:3-slim-bookworm AS build
1+
FROM docker.io/ruby:3-slim-bookworm AS build
22

3-
LABEL org.opencontainers.image.title="LinuxFr.org boards"
43
LABEL org.opencontainers.image.description="Chat rooms for LinuxFr"
4+
5+
LABEL org.opencontainers.image.title="Board for LinuxFr.org"
6+
LABEL org.opencontainers.image.description="Users of the LinuxFr.org website can chat on a space called the board (« la tribune » in french). \
7+
This Ruby daemon notifies the users when something is said with Server-Sent Event / EventSource."
58
LABEL org.opencontainers.image.source="https://github.com/linuxfrorg/board-sse-linuxfr.org"
69
LABEL org.opencontainers.image.url="https://github.com/linuxfrorg/board-sse-linuxfr.org"
710
LABEL org.opencontainers.image.licenses="AGPL-3.0-only"
@@ -19,16 +22,16 @@ RUN \
1922
apt-get clean;
2023

2124
USER ${UID}
22-
WORKDIR /linuxfr-board
23-
ENV HOME=/linuxfr-board
25+
WORKDIR /board-sse-linuxfr.org
26+
ENV HOME=/board-sse-linuxfr.org
2427

25-
# Install board-linuxfr
28+
# Install board-sse-linuxfr.org
2629
COPY --chown=${UID}:0 --chmod=770 . .
27-
RUN gem build board-linuxfr.gemspec
30+
RUN gem build board-sse-linuxfr.org.gemspec
2831

29-
FROM build as productioproduction
32+
FROM build as production
3033

31-
RUN gem install ./board-linuxfr-*.gem
34+
RUN gem install ./board-sse-linuxfr.org-*.gem
3235

3336
# Clean development dependencies
3437
USER 0
@@ -37,5 +40,5 @@ RUN apt purge --autoremove -y build-essential ruby-dev
3740
USER ${UID}
3841
EXPOSE 9000
3942

40-
CMD ["board-linuxfr"]
43+
CMD ["board-sse-linuxfr.org"]
4144

lib/board-linuxfr/version.rb

Lines changed: 0 additions & 3 deletions
This file was deleted.

lib/board-linuxfr.rb renamed to lib/board-sse-linuxfr.org.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
require "yajl"
33

44

5-
class BoardLinuxfr < Goliath::API
6-
autoload :Cache, "board-linuxfr/cache"
7-
autoload :RedisPlugin, "board-linuxfr/redis_plugin"
8-
autoload :VERSION, "board-linuxfr/version"
5+
class BoardSseLinuxfrOrg < Goliath::API
6+
autoload :Cache, "board-sse-linuxfr.org/cache"
7+
autoload :RedisPlugin, "board-sse-linuxfr.org/redis_plugin"
8+
autoload :VERSION, "board-sse-linuxfr.org/version"
99

1010
plugin RedisPlugin
1111

lib/board-linuxfr/cache.rb renamed to lib/board-sse-linuxfr.org/cache.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
class BoardLinuxfr
1+
class BoardSseLinuxfrOrg
22
class Cache
33
CAPACITY = 10
44

lib/board-linuxfr/redis_plugin.rb renamed to lib/board-sse-linuxfr.org/redis_plugin.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
require "em-synchrony"
33
require "redis"
44
require "redis/connection/synchrony"
5-
require "board-linuxfr/cache"
5+
require "board-sse-linuxfr.org/cache"
66

77

8-
class BoardLinuxfr
8+
class BoardSseLinuxfrOrg
99
class RedisPlugin
1010
def initialize(address, port, config, status, logger)
1111
logger.info "Initializing the Redis plugin"

0 commit comments

Comments
 (0)