+8
-1
.github/workflows/main.yml
+8
-1
.github/workflows/main.yml
+2
-10
.gitignore
+2
-10
.gitignore
+4
-5
Gemfile
+4
-5
Gemfile
···
1
1
# frozen_string_literal: true
2
2
3
-
source "https://rubygems.org"
3
+
source 'https://rubygems.org'
4
4
5
5
# Specify your gem's dependencies in ratproto.gemspec
6
6
gemspec
7
7
8
-
gem "irb"
9
-
gem "rake", "~> 13.0"
10
-
11
-
gem "rspec", "~> 3.0"
8
+
gem 'irb'
9
+
gem 'rake', '~> 13.0'
10
+
gem 'rspec', '~> 3.0'
+21
LICENSE.txt
+21
LICENSE.txt
···
1
+
The zlib License
2
+
3
+
Copyright (c) 2026 Jakub Suder
4
+
5
+
This software is provided 'as-is', without any express or implied
6
+
warranty. In no event will the authors be held liable for any damages
7
+
arising from the use of this software.
8
+
9
+
Permission is granted to anyone to use this software for any purpose,
10
+
including commercial applications, and to alter it and redistribute it
11
+
freely, subject to the following restrictions:
12
+
13
+
1. The origin of this software must not be misrepresented; you must not
14
+
claim that you wrote the original software. If you use this software
15
+
in a product, an acknowledgment in the product documentation would be
16
+
appreciated but is not required.
17
+
18
+
2. Altered source versions must be plainly marked as such, and must not be
19
+
misrepresented as being the original software.
20
+
21
+
3. This notice may not be removed or altered from any source distribution.
+2
-4
lib/ratproto.rb
+2
-4
lib/ratproto.rb
+2
-2
lib/ratproto/version.rb
+2
-2
lib/ratproto/version.rb
+9
-20
ratproto.gemspec
+9
-20
ratproto.gemspec
···
1
1
# frozen_string_literal: true
2
2
3
-
require_relative "lib/ratproto/version"
3
+
require_relative 'lib/ratproto/version'
4
4
5
5
Gem::Specification.new do |spec|
6
6
spec.name = "ratproto"
7
-
spec.version = Ratproto::VERSION
7
+
spec.version = RatProto::VERSION
8
8
spec.authors = ["Kuba Suder"]
9
9
spec.email = ["jakub.suder@gmail.com"]
10
10
11
11
spec.summary = "TODO: Write a short summary, because RubyGems requires one."
12
12
spec.description = "TODO: Write a longer description or delete this line."
13
13
spec.homepage = "TODO: Put your gem's website or public repo URL here."
14
-
spec.required_ruby_version = ">= 3.2.0"
14
+
15
+
spec.license = "Zlib"
16
+
spec.required_ruby_version = ">= 2.6.0"
15
17
16
-
spec.metadata["allowed_push_host"] = "TODO: Set to your gem server 'https://example.com'"
17
18
spec.metadata["homepage_uri"] = spec.homepage
18
19
spec.metadata["source_code_uri"] = "TODO: Put your gem's public repo URL here."
19
20
spec.metadata["changelog_uri"] = "TODO: Put your gem's CHANGELOG.md URL here."
20
21
21
-
# Specify which files should be added to the gem when it is released.
22
-
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
23
-
gemspec = File.basename(__FILE__)
24
-
spec.files = IO.popen(%w[git ls-files -z], chdir: __dir__, err: IO::NULL) do |ls|
25
-
ls.readlines("\x0", chomp: true).reject do |f|
26
-
(f == gemspec) ||
27
-
f.start_with?(*%w[bin/ Gemfile .gitignore .rspec spec/ .github/])
28
-
end
22
+
spec.files = Dir.chdir(__dir__) do
23
+
Dir['*.md'] + Dir['*.txt'] + Dir['exe/*'] + Dir['lib/**/*'] + Dir['sig/**/*']
29
24
end
30
-
spec.bindir = "exe"
31
-
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
32
-
spec.require_paths = ["lib"]
33
25
34
-
# Uncomment to register a new dependency of your gem
35
-
# spec.add_dependency "example-gem", "~> 1.0"
36
-
37
-
# For more information and examples about making a new gem, check out our
38
-
# guide at: https://bundler.io/guides/creating_gem.html
26
+
spec.bindir = 'exe'
27
+
spec.require_paths = ['lib']
39
28
end
+2
-6
spec/ratproto_spec.rb
+2
-6
spec/ratproto_spec.rb
···
1
1
# frozen_string_literal: true
2
2
3
-
RSpec.describe Ratproto do
3
+
RSpec.describe RatProto do
4
4
it "has a version number" do
5
-
expect(Ratproto::VERSION).not_to be nil
6
-
end
7
-
8
-
it "does something useful" do
9
-
expect(false).to eq(true)
5
+
expect(RatProto::VERSION).not_to be nil
10
6
end
11
7
end