automatic_namespaces 0.1.1 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4127c0936ad000fe4b361c619dbd3d1b78a43d975d3d048432d93fd6d0f9f597
4
- data.tar.gz: 6ad52407e24da1ab14e9264d16c7fd388db5a5eba94935ae8964689ed0280396
3
+ metadata.gz: 472b930f3c812dd6a1cb69710bd15741625eda0632f54f3c124c1a38ac325b1f
4
+ data.tar.gz: c6cd88175022d998eb01bf7ef3194ce79d1f7ce030dee46478c1465503866738
5
5
  SHA512:
6
- metadata.gz: 274f7b77c5340a6be552e7ba39a877336b04c63ff7126e472b2ca5244ca547e4d6ccb622606e44caebf49a707457da87efe0207870febb3f539111b4a716d71e
7
- data.tar.gz: 2309e8898758ccc3d31157b55d035f4091e55b25693a58f72af57b53eba41712801bd07f1e27c727bbcd98083e68e604954cebc628e4857578b0927b3f7473bb
6
+ metadata.gz: f16bfe436cfcd0fdaa4e11a9cb145815c940bfd60533ffc7f4b74f0da8c246a344727ee5b1495b4070ef7dd676c9ba19cb972cc450346391fb6f0cec37985d23
7
+ data.tar.gz: 3d71f3d2938bb795796bc21bae3e6b02009728d325a167685afadeeb3e091236373c21ae65e176311357d0bbfdecba799d1946db14f557284358a10eb586f231
data/README.md CHANGED
@@ -108,7 +108,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
108
108
 
109
109
  Thanks to a handful of individuals who directly contributed to the creation of this gem:
110
110
 
111
- * [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)
111
+ * [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)
112
112
  * [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.
113
113
  * [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.
114
114
 
@@ -33,15 +33,15 @@ class AutomaticNamespaces::Autoloader
33
33
  end
34
34
 
35
35
  def define_namespace(pack, metadata)
36
- namespace = metadata['namespace_override'] || pack.name.camelize
36
+ namespace = metadata['namespace_override'] || pack.last_name.camelize
37
37
  Object.const_set(namespace, Module.new)
38
38
  namespace.constantize
39
39
  end
40
40
 
41
41
  def namespaced_packages
42
- Stimpack::Packs.all
43
- .map {|pack| [pack, package_metadata(pack)] }
44
- .select {|pack, metadata| metadata && metadata["automatic_pack_namespace"] }
42
+ Packs.all
43
+ .map {|pack| [pack, package_metadata(pack)] }
44
+ .select {|_pack, metadata| metadata && metadata["automatic_pack_namespace"] }
45
45
  end
46
46
 
47
47
  def package_metadata(pack)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module AutomaticNamespaces
4
- VERSION = "0.1.1"
4
+ VERSION = "0.2.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: automatic_namespaces
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gary Passero
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-11-05 00:00:00.000000000 Z
11
+ date: 2023-01-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -25,7 +25,7 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
- name: stimpack
28
+ name: packs-rails
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="
@@ -111,8 +111,8 @@ licenses:
111
111
  - MIT
112
112
  metadata:
113
113
  homepage_uri: https://github.com/gap777/automatic_namespaces
114
- source_code_uri: https://github.com/alexevanczuk/my_example_gem
115
- changelog_uri: https://github.com/alexevanczuk/my_example_gem/releases
114
+ source_code_uri: https://github.com/gap777/automatic_namespaces
115
+ changelog_uri: https://github.com/gap777/automatic_namespaces/releases
116
116
  allowed_push_host: https://rubygems.org
117
117
  post_install_message:
118
118
  rdoc_options: []