···11+The zlib License
22+33+Copyright (c) 2023 Jakub Suder
44+55+This software is provided 'as-is', without any express or implied
66+warranty. In no event will the authors be held liable for any damages
77+arising from the use of this software.
88+99+Permission is granted to anyone to use this software for any purpose,
1010+including commercial applications, and to alter it and redistribute it
1111+freely, subject to the following restrictions:
1212+1313+1. The origin of this software must not be misrepresented; you must not
1414+ claim that you wrote the original software. If you use this software
1515+ in a product, an acknowledgment in the product documentation would be
1616+ appreciated but is not required.
1717+1818+2. Altered source versions must be plainly marked as such, and must not be
1919+ misrepresented as being the original software.
2020+2121+3. This notice may not be removed or altered from any source distribution.
2222+
+13-23
didkit.gemspec
···4455Gem::Specification.new do |spec|
66 spec.name = "didkit"
77- spec.version = Didkit::VERSION
77+ spec.version = DIDKit::VERSION
88 spec.authors = ["Kuba Suder"]
99 spec.email = ["jakub.suder@gmail.com"]
10101111- spec.summary = "TODO: Write a short summary, because RubyGems requires one."
1212- spec.description = "TODO: Write a longer description or delete this line."
1313- spec.homepage = "TODO: Put your gem's website or public repo URL here."
1414- spec.required_ruby_version = ">= 2.6.0"
1111+ spec.summary = "A library for handling Distributed ID (DID) identifiers used in Bluesky AT Protocol"
1212+ # spec.description = "Write a longer description or delete this line."
1313+ spec.homepage = "https://github.com/mackuba/didkit"
15141616- spec.metadata["allowed_push_host"] = "TODO: Set to your gem server 'https://example.com'"
1515+ spec.license = "Zlib"
1616+ spec.required_ruby_version = ">= 2.6.0"
17171818- spec.metadata["homepage_uri"] = spec.homepage
1919- spec.metadata["source_code_uri"] = "TODO: Put your gem's public repo URL here."
2020- spec.metadata["changelog_uri"] = "TODO: Put your gem's CHANGELOG.md URL here."
1818+ spec.metadata = {
1919+ "bug_tracker_uri" => "https://github.com/mackuba/didkit/issues",
2020+ "changelog_uri" => "https://github.com/mackuba/didkit/blob/master/CHANGELOG.md",
2121+ "source_code_uri" => "https://github.com/mackuba/didkit",
2222+ }
21232222- # Specify which files should be added to the gem when it is released.
2323- # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
2424 spec.files = Dir.chdir(__dir__) do
2525- `git ls-files -z`.split("\x0").reject do |f|
2626- (File.expand_path(f) == __FILE__) ||
2727- f.start_with?(*%w[bin/ test/ spec/ features/ .git .circleci appveyor Gemfile])
2828- end
2525+ Dir['*.md'] + Dir['*.txt'] + Dir['lib/**/*'] + Dir['sig/**/*']
2926 end
3030- spec.bindir = "exe"
3131- spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
2727+3228 spec.require_paths = ["lib"]
3333-3434- # Uncomment to register a new dependency of your gem
3535- # spec.add_dependency "example-gem", "~> 1.0"
3636-3737- # For more information and examples about making a new gem, check out our
3838- # guide at: https://bundler.io/guides/creating_gem.html
3929end
+1-3
lib/didkit.rb
···2233require_relative "didkit/version"
4455-module Didkit
66- class Error < StandardError; end
77- # Your code goes here...
55+module DIDKit
86end
+2-2
lib/didkit/version.rb
···11# frozen_string_literal: true
2233-module Didkit
44- VERSION = "0.1.0"
33+module DIDKit
44+ VERSION = "0.0.1"
55end
-4
spec/didkit_spec.rb
···44 it "has a version number" do
55 expect(Didkit::VERSION).not_to be nil
66 end
77-88- it "does something useful" do
99- expect(false).to eq(true)
1010- end
117end