Skip to content
This repository was archived by the owner on Aug 4, 2024. It is now read-only.

Commit d804853

Browse files
committed
rename
1 parent 976380a commit d804853

18 files changed

+50
-333
lines changed

.github/dependabot.yml

-4
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,10 @@ updates:
77
time: "06:00"
88
timezone: America/Los_Angeles
99
open-pull-requests-limit: 10
10-
labels:
11-
- "🏠 Housekeeping"
1210
- package-ecosystem: github-actions
1311
directory: "/"
1412
schedule:
1513
interval: monthly
1614
time: "06:00"
1715
timezone: America/Los_Angeles
1816
open-pull-requests-limit: 10
19-
labels:
20-
- "🏠 Housekeeping"

CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Release notes for this project are kept here: https://github.com/mattbrictson/gem/releases
1+
Release notes for this project are kept here: https://github.com/Unsupervisedcom/guideance-rails/releases

CODE_OF_CONDUCT.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ This Code of Conduct applies within all community spaces, and also applies when
3939

4040
## Enforcement
4141

42-
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at owner@example.com. All complaints will be reviewed and investigated promptly and fairly.
42+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at noah@unsupervised.com. All complaints will be reviewed and investigated promptly and fairly.
4343

4444
All community leaders are obligated to respect the privacy and security of the reporter of any incident.
4545

LICENSE.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2023 Example Owner
3+
Copyright (c) 2023 Noah Horton
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

+8-31
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,9 @@
1-
# gem template
1+
# guidance
22

3-
This is a GitHub template for creating Ruby gems. Press [**Use this template**](https://github.com/mattbrictson/gem/generate) to generate a project from this template. In the generated project, run this script to rename the gem to meet your needs:
4-
5-
```
6-
$ ruby rename_template.rb
7-
```
8-
9-
Note that to get the full benefits of the script, you will need the [gh](https://github.com/cli/cli) command installed.
10-
11-
This template is based on `bundle gem` with some notable improvements:
12-
13-
- GitHub Actions configuration
14-
- Minitest, with minitest-reporters for nicely formatted test output
15-
- Rubocop with a good set of configuration
16-
- [release-drafter](https://github.com/apps/release-drafter) GitHub Action for automating release notes
17-
- A `rake bump` task to keep your Ruby and Bundler dependencies up to date
18-
- A nice README with badges ready to go (see below)
19-
20-
---
21-
22-
<!-- END FRONT MATTER -->
23-
24-
# example
25-
26-
[![Gem Version](https://img.shields.io/gem/v/replace_with_gem_name)](https://rubygems.org/gems/replace_with_gem_name)
27-
[![Gem Downloads](https://img.shields.io/gem/dt/replace_with_gem_name)](https://www.ruby-toolbox.com/projects/replace_with_gem_name)
28-
[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/mattbrictson/gem/ci.yml)](https://github.com/mattbrictson/gem/actions/workflows/ci.yml)
29-
[![Code Climate maintainability](https://img.shields.io/codeclimate/maintainability/mattbrictson/gem)](https://codeclimate.com/github/mattbrictson/gem)
3+
[![Gem Version](https://img.shields.io/gem/v/guidance)](https://rubygems.org/gems/guidance)
4+
[![Gem Downloads](https://img.shields.io/gem/dt/guidance)](https://www.ruby-toolbox.com/projects/guidance)
5+
[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/Unsupervisedcom/guideance-rails/ci.yml)](https://github.com/Unsupervisedcom/guideance-rails/actions/workflows/ci.yml)
6+
[![Code Climate maintainability](https://img.shields.io/codeclimate/maintainability/Unsupervisedcom/guideance-rails)](https://codeclimate.com/github/Unsupervisedcom/guideance-rails)
307

318
TODO: Description of this gem goes here.
329

@@ -41,16 +18,16 @@ TODO: Description of this gem goes here.
4118
## Quick start
4219

4320
```
44-
$ gem install example
21+
$ gem install guidance
4522
```
4623

4724
```ruby
48-
require "example"
25+
require "guidance"
4926
```
5027

5128
## Support
5229

53-
If you want to report a bug, or have ideas, feedback or questions about the gem, [let me know via GitHub issues](https://github.com/mattbrictson/gem/issues/new) and I will do my best to provide a helpful answer. Happy hacking!
30+
If you want to report a bug, or have ideas, feedback or questions about the gem, [let me know via GitHub issues](https://github.com/Unsupervisedcom/guideance-rails/issues/new) and I will do my best to provide a helpful answer. Happy hacking!
5431

5532
## License
5633

Rakefile

+4-4
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ task default: %i[test rubocop]
1616

1717
Rake::Task["release"].enhance do
1818
puts "Don't forget to publish the release on GitHub!"
19-
system "open https://github.com/mattbrictson/gem/releases"
19+
system "open https://github.com/Unsupervisedcom/guideance-rails/releases"
2020
end
2121

2222
task :disable_overcommit do
@@ -27,13 +27,13 @@ Rake::Task[:build].enhance [:disable_overcommit]
2727

2828
task :verify_gemspec_files do
2929
git_files = `git ls-files -z`.split("\x0")
30-
gemspec_files = Gem::Specification.load("example.gemspec").files.sort
30+
gemspec_files = Gem::Specification.load("guidance.gemspec").files.sort
3131
ignored_by_git = gemspec_files - git_files
3232
next if ignored_by_git.empty?
3333

3434
raise <<~ERROR
3535
36-
The `spec.files` specified in example.gemspec include the following files
36+
The `spec.files` specified in guidance.gemspec include the following files
3737
that are being ignored by git. Did you forget to add them to the repo? If
3838
not, you may need to delete these files or modify the gemspec to ensure
3939
that they are not included in the gem by mistake:
@@ -56,7 +56,7 @@ namespace :bump do
5656
end
5757

5858
task :ruby do
59-
replace_in_file "example.gemspec", /ruby_version = .*">= (.*)"/ => RubyVersions.lowest
59+
replace_in_file "guidance.gemspec", /ruby_version = .*">= (.*)"/ => RubyVersions.lowest
6060
replace_in_file ".rubocop.yml", /TargetRubyVersion: (.*)/ => RubyVersions.lowest
6161
replace_in_file ".github/workflows/ci.yml", /ruby: (\[.+\])/ => RubyVersions.all.inspect
6262
end

bin/console

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env ruby
22

33
require "bundler/setup"
4-
require "example"
4+
require "guidance"
55

66
# You can add fixtures and/or initialization code here to make experimenting
77
# with your gem easier. You can also use a different console, if you like.

example.gemspec

-27
This file was deleted.

exe/example

-4
This file was deleted.

guidance.gemspec

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
require_relative "lib/guidance/version"
2+
3+
Gem::Specification.new do |spec|
4+
spec.name = "guidance"
5+
spec.version = Guidance::VERSION
6+
spec.authors = ["Noah Horton"]
7+
spec.email = ["noah@unsupervised.com"]
8+
9+
spec.summary = "Microsoft Guidance for Ruby"
10+
spec.homepage = "https://github.com/Unsupervisedcom/guideance-rails"
11+
spec.license = "MIT"
12+
spec.required_ruby_version = ">= 3.0"
13+
14+
spec.metadata = {
15+
"bug_tracker_uri" => "https://github.com/Unsupervisedcom/guideance-rails/issues",
16+
"changelog_uri" => "https://github.com/Unsupervisedcom/guideance-rails/releases",
17+
"source_code_uri" => "https://github.com/Unsupervisedcom/guideance-rails",
18+
"homepage_uri" => spec.homepage,
19+
"rubygems_mfa_required" => "true"
20+
}
21+
22+
# Specify which files should be added to the gem when it is released.
23+
spec.files = Dir.glob(%w[LICENSE.txt README.md {exe,lib}/**/*]).reject { |f| File.directory?(f) }
24+
spec.bindir = "exe"
25+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
26+
spec.require_paths = ["lib"]
27+
end

lib/example.rb

-4
This file was deleted.

lib/example/cli.rb

-6
This file was deleted.

lib/guidance.rb

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module Guidance
2+
autoload :VERSION, "guidance/version"
3+
end
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
module Example
1+
module Guidance
22
VERSION = "0.1.0".freeze
33
end

0 commit comments

Comments
 (0)