turn into ruby gem
Showing
- .gitignore 8 additions, 0 deletions.gitignore
- .gitlab-ci.yml 10 additions, 0 deletions.gitlab-ci.yml
- .rubocop.yml 8 additions, 0 deletions.rubocop.yml
- Gemfile 8 additions, 1 deletionGemfile
- Gemfile.lock 37 additions, 0 deletionsGemfile.lock
- LICENSE.txt 21 additions, 0 deletionsLICENSE.txt
- README.md 39 additions, 0 deletionsREADME.md
- Rakefile 12 additions, 0 deletionsRakefile
- bin/console 11 additions, 0 deletionsbin/console
- bin/setup 8 additions, 0 deletionsbin/setup
- lib/rubic.rb 206 additions, 0 deletionslib/rubic.rb
- lib/rubic/version.rb 5 additions, 0 deletionslib/rubic/version.rb
- main.rb 0 additions, 197 deletionsmain.rb
- rubic.gemspec 41 additions, 0 deletionsrubic.gemspec
- sig/rubic.rbs 4 additions, 0 deletionssig/rubic.rbs
- test/test_helper.rb 6 additions, 0 deletionstest/test_helper.rb
- test/test_rubic.rb 13 additions, 0 deletionstest/test_rubic.rb
.gitignore
0 → 100644
.gitlab-ci.yml
0 → 100644
.rubocop.yml
0 → 100644
... | ... | @@ -2,6 +2,13 @@ |
source "https://rubygems.org" | ||
# gem "rails" | ||
# Specify your gem's dependencies in rubic.gemspec | ||
gemspec | ||
gem "rake", "~> 13.0" | ||
gem "minitest", "~> 5.16" | ||
gem "rubocop", "~> 1.21" | ||
gem "rb-readline", "~> 0.5.5" |
LICENSE.txt
0 → 100644
README.md
0 → 100644
Rakefile
0 → 100644
bin/console
0 → 100755
bin/setup
0 → 100755
lib/rubic.rb
0 → 100644
lib/rubic/version.rb
0 → 100644
main.rb
deleted
100644 → 0
rubic.gemspec
0 → 100644
# frozen_string_literal: true | ||
require_relative "lib/rubic/version" | ||
Gem::Specification.new do |spec| | ||
spec.name = "rubic" | ||
spec.version = Rubic::VERSION | ||
spec.authors = ["Stephen D"] | ||
spec.email = ["webmaster@scd31.com"] | ||
spec.summary = "TODO: Write a short summary, because RubyGems requires one." | ||
spec.description = "TODO: Write a longer description or delete this line." | ||
spec.homepage = "TODO: Put your gem's website or public repo URL here." | ||
spec.license = "MIT" | ||
spec.required_ruby_version = ">= 3.0.0" | ||
spec.metadata["allowed_push_host"] = "TODO: Set to your gem server 'https://example.com'" | ||
spec.metadata["homepage_uri"] = spec.homepage | ||
spec.metadata["source_code_uri"] = "TODO: Put your gem's public repo URL here." | ||
spec.metadata["changelog_uri"] = "TODO: Put your gem's CHANGELOG.md URL here." | ||
# Specify which files should be added to the gem when it is released. | ||
# The `git ls-files -z` loads the files in the RubyGem that have been added into git. | ||
gemspec = File.basename(__FILE__) | ||
spec.files = IO.popen(%w[git ls-files -z], chdir: __dir__, err: IO::NULL) do |ls| | ||
ls.readlines("\x0", chomp: true).reject do |f| | ||
(f == gemspec) || | ||
f.start_with?(*%w[bin/ test/ spec/ features/ .git .gitlab-ci.yml appveyor Gemfile]) | ||
end | ||
end | ||
spec.bindir = "exe" | ||
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) } | ||
spec.require_paths = ["lib"] | ||
# Uncomment to register a new dependency of your gem | ||
# spec.add_dependency "example-gem", "~> 1.0" | ||
# For more information and examples about making a new gem, check out our | ||
# guide at: https://bundler.io/guides/creating_gem.html | ||
end |
sig/rubic.rbs
0 → 100644
test/test_helper.rb
0 → 100644
test/test_rubic.rb
0 → 100644
Please register or sign in to comment