Skip to content
Snippets Groups Projects
Commit 80fb0542 authored by Stephen D's avatar Stephen D
Browse files

fixes

parent f66e4808
No related branches found
No related tags found
No related merge requests found
Pipeline #8158 failed
......@@ -2,7 +2,7 @@
source "https://rubygems.org"
# Specify your gem's dependencies in rubic.gemspec
# Specify your gem's dependencies in rubic-repl.gemspec
gemspec
gem "rake", "~> 13.0"
......
PATH
remote: .
specs:
rubic (0.1.0)
rubic-repl (0.1.0)
GEM
remote: https://rubygems.org/
......@@ -51,7 +51,7 @@ DEPENDENCIES
minitest (~> 5.16)
rake (~> 13.0)
reline (~> 0.6.0)
rubic!
rubic-repl!
rubocop (~> 1.21)
rubocop-minitest (~> 0.36.0)
rubocop-rake (~> 0.6.0)
......
......@@ -66,23 +66,21 @@ nice to meet you, stephen!
## Installation
TODO: Replace `UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG` with your gem name right after releasing it to RubyGems.org. Please do not do it earlier due to security reasons. Alternatively, replace this section with instructions to install your gem from git if you don't plan to release to RubyGems.org.
Install the gem and add to the application's Gemfile by executing:
```bash
bundle add UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
bundle add rubic-repl
```
If bundler is not being used to manage dependencies, install the gem by executing:
```bash
gem install UPDATE_WITH_YOUR_GEM_NAME_IMMEDIATELY_AFTER_RELEASE_TO_RUBYGEMS_ORG
gem install rubic-repl
```
## Usage
In your REPL or Ruby file, run `Rubic::run` to start Rubic.
In your REPL or Ruby file, run `Rubic::run` to start Rubic. Alternatively, run the CLI from your terminal with the `rubic` command.
## Development
......
......@@ -4,8 +4,4 @@
require "bundler/setup"
require "rubic"
# You can add fixtures and/or initialization code here to make experimenting
# with your gem easier. You can also use a different console, if you like.
require "irb"
IRB.start(__FILE__)
Rubic::run
#!/usr/bin/env ruby
# frozen_string_literal: true
require "rubic"
Rubic::run
\ No newline at end of file
# frozen_string_literal: true
module Rubic
VERSION = "0.1.0"
VERSION = "0.1.1"
end
......@@ -3,22 +3,17 @@
require_relative "lib/rubic/version"
Gem::Specification.new do |spec|
spec.name = "rubic"
spec.name = "rubic-repl"
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.summary = "BASIC-inspired Ruby REPL"
spec.homepage = "https://gitlab.scd31.com/stephen/rubic"
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.
......@@ -30,7 +25,7 @@ Gem::Specification.new do |spec|
end
end
spec.bindir = "exe"
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
spec.executables = ["rubic"]
spec.require_paths = ["lib"]
# Uncomment to register a new dependency of your gem
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment