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

Commit

Permalink
Renamed
Browse files Browse the repository at this point in the history
  • Loading branch information
nhorton committed Jul 19, 2023
1 parent 5144c41 commit 8b49a12
Show file tree
Hide file tree
Showing 20 changed files with 61 additions and 340 deletions.
4 changes: 0 additions & 4 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,10 @@ updates:
time: "06:00"
timezone: America/Los_Angeles
open-pull-requests-limit: 10
labels:
- "🏠 Housekeeping"
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: monthly
time: "06:00"
timezone: America/Los_Angeles
open-pull-requests-limit: 10
labels:
- "🏠 Housekeeping"
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Release notes for this project are kept here: https://github.com/mattbrictson/gem/releases
Release notes for this project are kept here: https://github.com/Unsupervisedcom/guideance-rails/releases
2 changes: 1 addition & 1 deletion CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ This Code of Conduct applies within all community spaces, and also applies when

## Enforcement

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.
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.

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

Expand Down
2 changes: 1 addition & 1 deletion LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2023 Example Owner
Copyright (c) 2023 Noah Horton

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
39 changes: 8 additions & 31 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,32 +1,9 @@
# gem template
# guideance-rails

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:

```
$ ruby rename_template.rb
```

Note that to get the full benefits of the script, you will need the [gh](https://github.com/cli/cli) command installed.

This template is based on `bundle gem` with some notable improvements:

- GitHub Actions configuration
- Minitest, with minitest-reporters for nicely formatted test output
- Rubocop with a good set of configuration
- [release-drafter](https://github.com/apps/release-drafter) GitHub Action for automating release notes
- A `rake bump` task to keep your Ruby and Bundler dependencies up to date
- A nice README with badges ready to go (see below)

---

<!-- END FRONT MATTER -->

# example

[![Gem Version](https://img.shields.io/gem/v/replace_with_gem_name)](https://rubygems.org/gems/replace_with_gem_name)
[![Gem Downloads](https://img.shields.io/gem/dt/replace_with_gem_name)](https://www.ruby-toolbox.com/projects/replace_with_gem_name)
[![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/mattbrictson/gem/ci.yml)](https://github.com/mattbrictson/gem/actions/workflows/ci.yml)
[![Code Climate maintainability](https://img.shields.io/codeclimate/maintainability/mattbrictson/gem)](https://codeclimate.com/github/mattbrictson/gem)
[![Gem Version](https://img.shields.io/gem/v/guideance-rails)](https://rubygems.org/gems/guideance-rails)
[![Gem Downloads](https://img.shields.io/gem/dt/guideance-rails)](https://www.ruby-toolbox.com/projects/guideance-rails)
[![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)
[![Code Climate maintainability](https://img.shields.io/codeclimate/maintainability/Unsupervisedcom/guideance-rails)](https://codeclimate.com/github/Unsupervisedcom/guideance-rails)

TODO: Description of this gem goes here.

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

```
$ gem install example
$ gem install guideance-rails
```

```ruby
require "example"
require "guideance/rails"
```

## Support

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!
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!

## License

Expand Down
8 changes: 4 additions & 4 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ task default: %i[test rubocop]

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

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

task :verify_gemspec_files do
git_files = `git ls-files -z`.split("\x0")
gemspec_files = Gem::Specification.load("example.gemspec").files.sort
gemspec_files = Gem::Specification.load("guideance-rails.gemspec").files.sort
ignored_by_git = gemspec_files - git_files
next if ignored_by_git.empty?

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

task :ruby do
replace_in_file "example.gemspec", /ruby_version = .*">= (.*)"/ => RubyVersions.lowest
replace_in_file "guideance-rails.gemspec", /ruby_version = .*">= (.*)"/ => RubyVersions.lowest
replace_in_file ".rubocop.yml", /TargetRubyVersion: (.*)/ => RubyVersions.lowest
replace_in_file ".github/workflows/ci.yml", /ruby: (\[.+\])/ => RubyVersions.all.inspect
end
Expand Down
2 changes: 1 addition & 1 deletion bin/console
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env ruby

require "bundler/setup"
require "example"
require "guideance/rails"

# 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.
Expand Down
27 changes: 0 additions & 27 deletions example.gemspec

This file was deleted.

4 changes: 0 additions & 4 deletions exe/example

This file was deleted.

27 changes: 27 additions & 0 deletions guideance-rails.gemspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
require_relative "lib/guideance/rails/version"

Gem::Specification.new do |spec|
spec.name = "guideance-rails"
spec.version = Guideance::Rails::VERSION
spec.authors = ["Noah Horton"]
spec.email = ["[email protected]"]

spec.summary = "Write Microsoft Guidance programs in Rails"
spec.homepage = "https://github.com/Unsupervisedcom/guideance-rails"
spec.license = "MIT"
spec.required_ruby_version = ">= 3.0"

spec.metadata = {
"bug_tracker_uri" => "https://github.com/Unsupervisedcom/guideance-rails/issues",
"changelog_uri" => "https://github.com/Unsupervisedcom/guideance-rails/releases",
"source_code_uri" => "https://github.com/Unsupervisedcom/guideance-rails",
"homepage_uri" => spec.homepage,
"rubygems_mfa_required" => "true"
}

# Specify which files should be added to the gem when it is released.
spec.files = Dir.glob(%w[LICENSE.txt README.md {exe,lib}/**/*]).reject { |f| File.directory?(f) }
spec.bindir = "exe"
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = ["lib"]
end
4 changes: 0 additions & 4 deletions lib/example.rb

This file was deleted.

6 changes: 0 additions & 6 deletions lib/example/cli.rb

This file was deleted.

3 changes: 0 additions & 3 deletions lib/example/version.rb

This file was deleted.

5 changes: 5 additions & 0 deletions lib/guideance/rails.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module Guideance
module Rails
autoload :VERSION, "guideance/rails/version"
end
end
5 changes: 5 additions & 0 deletions lib/guideance/rails/version.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module Guideance
module Rails
VERSION = "0.1.0".freeze
end
end
Loading

0 comments on commit 8b49a12

Please sign in to comment.