Skip to content

Commit

Permalink
Update metadata. (#4)
Browse files Browse the repository at this point in the history
* Bump version to 0.1.2. Add test. Update metadata.

* Fix README links

* Move change log to releases link
  • Loading branch information
gap777 authored Nov 9, 2022
1 parent 5a60958 commit 0838b6f
Show file tree
Hide file tree
Showing 10 changed files with 15 additions and 17 deletions.
6 changes: 1 addition & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
## [Unreleased]

## [0.1.0] - 2022-11-01

- Initial release
Changes are captured in GitHub [releases](https://github.com/gap777/automatic_namespaces/releases)
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
automatic_namespaces (0.1.1)
automatic_namespaces (0.1.2)
activesupport
stimpack

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To

Thanks to a handful of individuals who directly contributed to the creation of this gem:

* [Caleb Woods](https://github.com/alexevanczuk) - For feeling the pain and helping to spike an approach during a project kickoff at [RoleModel Software](www.rolemodelsoftware.com)
* [Caleb Woods](https://github.com/calebwoods) - For feeling the pain and helping to spike an approach during a project kickoff at [RoleModel Software](https://www.rolemodelsoftware.com)
* [Alex Evanczuk](https://github.com/alexevanczuk) - For being willing to collaborate on the project, helping to refine the approach, and even mentoring me on how to create my first gem for sharing with others.
* [Xavier Noria](https://github.com/fxn) - For his suggestions on how to patch Zeitwerk to make this work at all, and for suggestions on how to keep hot reloading working after Rails autopaths were missing all pack directories.

Expand Down
8 changes: 2 additions & 6 deletions automatic_namespaces.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ Gem::Specification.new do |spec|

if spec.respond_to?(:metadata)
spec.metadata["homepage_uri"] = spec.homepage
spec.metadata["source_code_uri"] = "https://github.com/alexevanczuk/my_example_gem"
spec.metadata["changelog_uri"] = "https://github.com/alexevanczuk/my_example_gem/releases"
spec.metadata["source_code_uri"] = "https://github.com/gap777/automatic_namespaces"
spec.metadata["changelog_uri"] = "https://github.com/gap777/automatic_namespaces/releases"
spec.metadata["allowed_push_host"] = "https://rubygems.org"
else
raise "RubyGems 2.0 or newer is required to protect against " \
Expand All @@ -25,13 +25,9 @@ Gem::Specification.new do |spec|
# Specify which files should be added to the gem when it is released.
spec.files = Dir["README.md", "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

# spec.add_dependency "railties"
spec.add_dependency "activesupport"
spec.add_dependency "stimpack"

Expand Down
2 changes: 1 addition & 1 deletion lib/automatic_namespaces/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module AutomaticNamespaces
VERSION = "0.1.1"
VERSION = "0.1.2"
end
2 changes: 2 additions & 0 deletions spec/automatic_namespaces_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
expect(defined?(Jackets::ClothingController)).to eq("constant")
expect(defined?(Jackets::Summer)).to eq("constant")
expect(defined?(Jackets::Winter)).to eq("constant")
expect(defined?(Jackets::PriceStrategy::SalePrice)).to eq("constant")
expect(defined?(Jackets::PriceStrategy::VolumePrice)).to eq("constant")
end

it 'can find classes that are NOT in an automatic namespace pack' do
Expand Down
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module Jackets::PriceStrategy
class SalePrice < ApplicationRecord; end
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module Jackets::PriceStrategy
class VolumePrice < ApplicationRecord; end
end
4 changes: 1 addition & 3 deletions spec/fixtures/rails-7.0/packs/jackets/app/models/winter.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
module Jackets
class Winter < ApplicationRecord

end
class Winter < ApplicationRecord; end
end

0 comments on commit 0838b6f

Please sign in to comment.