From 0838b6f6f8df70e5756d6140f844c72349ff2f2a Mon Sep 17 00:00:00 2001 From: Gary Passero Date: Wed, 9 Nov 2022 11:33:30 -0500 Subject: [PATCH] Update metadata. (#4) * Bump version to 0.1.2. Add test. Update metadata. * Fix README links * Move change log to releases link --- CHANGELOG.md | 6 +----- Gemfile.lock | 2 +- README.md | 2 +- automatic_namespaces.gemspec | 8 ++------ lib/automatic_namespaces/version.rb | 2 +- spec/automatic_namespaces_spec.rb | 2 ++ spec/fixtures/rails-7.0/packs/hats/package.yml | 0 .../packs/jackets/app/models/price_strategy/sale_price.rb | 3 +++ .../jackets/app/models/price_strategy/volume_price.rb | 3 +++ .../fixtures/rails-7.0/packs/jackets/app/models/winter.rb | 4 +--- 10 files changed, 15 insertions(+), 17 deletions(-) create mode 100644 spec/fixtures/rails-7.0/packs/hats/package.yml create mode 100644 spec/fixtures/rails-7.0/packs/jackets/app/models/price_strategy/sale_price.rb create mode 100644 spec/fixtures/rails-7.0/packs/jackets/app/models/price_strategy/volume_price.rb diff --git a/CHANGELOG.md b/CHANGELOG.md index 6c32220..9bfa82f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/Gemfile.lock b/Gemfile.lock index 73bbf74..b9e56c1 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - automatic_namespaces (0.1.1) + automatic_namespaces (0.1.2) activesupport stimpack diff --git a/README.md b/README.md index d41cd15..47879aa 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/automatic_namespaces.gemspec b/automatic_namespaces.gemspec index 3797eb0..ada4f87 100644 --- a/automatic_namespaces.gemspec +++ b/automatic_namespaces.gemspec @@ -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 " \ @@ -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" diff --git a/lib/automatic_namespaces/version.rb b/lib/automatic_namespaces/version.rb index 181bb7c..f0dbb74 100644 --- a/lib/automatic_namespaces/version.rb +++ b/lib/automatic_namespaces/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module AutomaticNamespaces - VERSION = "0.1.1" + VERSION = "0.1.2" end diff --git a/spec/automatic_namespaces_spec.rb b/spec/automatic_namespaces_spec.rb index cd4f9ae..bbb4bfe 100644 --- a/spec/automatic_namespaces_spec.rb +++ b/spec/automatic_namespaces_spec.rb @@ -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 diff --git a/spec/fixtures/rails-7.0/packs/hats/package.yml b/spec/fixtures/rails-7.0/packs/hats/package.yml new file mode 100644 index 0000000..e69de29 diff --git a/spec/fixtures/rails-7.0/packs/jackets/app/models/price_strategy/sale_price.rb b/spec/fixtures/rails-7.0/packs/jackets/app/models/price_strategy/sale_price.rb new file mode 100644 index 0000000..752c72d --- /dev/null +++ b/spec/fixtures/rails-7.0/packs/jackets/app/models/price_strategy/sale_price.rb @@ -0,0 +1,3 @@ +module Jackets::PriceStrategy + class SalePrice < ApplicationRecord; end +end \ No newline at end of file diff --git a/spec/fixtures/rails-7.0/packs/jackets/app/models/price_strategy/volume_price.rb b/spec/fixtures/rails-7.0/packs/jackets/app/models/price_strategy/volume_price.rb new file mode 100644 index 0000000..f130c8a --- /dev/null +++ b/spec/fixtures/rails-7.0/packs/jackets/app/models/price_strategy/volume_price.rb @@ -0,0 +1,3 @@ +module Jackets::PriceStrategy + class VolumePrice < ApplicationRecord; end +end \ No newline at end of file diff --git a/spec/fixtures/rails-7.0/packs/jackets/app/models/winter.rb b/spec/fixtures/rails-7.0/packs/jackets/app/models/winter.rb index f73eaa4..6ac07f7 100644 --- a/spec/fixtures/rails-7.0/packs/jackets/app/models/winter.rb +++ b/spec/fixtures/rails-7.0/packs/jackets/app/models/winter.rb @@ -1,5 +1,3 @@ module Jackets - class Winter < ApplicationRecord - - end + class Winter < ApplicationRecord; end end \ No newline at end of file