enola 0.4.4 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b1c9e53fd33fd57e5764c1e4e3e2e6b71ac74145a5fd15aeac99d0efe896e21e
4
- data.tar.gz: ab03a293ad4cb939351e4dcbed5680c84959e8797834bde3db9e45eb6c500746
3
+ metadata.gz: 689fed2c591f5809d780118557d16abb71dd2c16ae81e71382fbeee1cb70001e
4
+ data.tar.gz: c7c4671e4d4c153f8f0f6db9f9395a6670681a1006581c5faecf2b196170cc30
5
5
  SHA512:
6
- metadata.gz: 252640692ed6d525918737d1ff1d74c3849321f3eac480fe1455aa92823eafba7c4555924f71ac08830c104732af687eebc17a92192b32edc446d5516f154b85
7
- data.tar.gz: 4018811a6cdd5ef38fc5e8703444fba327f761135214ced01f8847f22487edf32dfe3c0c204a5018c250ead313484ae1350059f6e7834a8acc97661a668bd798
6
+ metadata.gz: b4a72e0931b1f110f482062fa8e2627f59adfac7add1592ea1c8ef22e5bc4f6f7fc5c4ae851cf7534c50997ec8fc3cd2928e3e84a0e3bc841f9f22ee87933d85
7
+ data.tar.gz: 7f5cd2dc8f9b69897c095c54e95d4c9d58913607de47ca71789fa3eb8d419811d5d2c5393cc6abed7630e2f35314b6c76b61836beff63fa012761eaa0f27c4e7
data/CHANGELOG.md CHANGED
@@ -1,3 +1,34 @@
1
+ ## munola 0.4.4.2 and munola-rb 0.4.4.2 (2026-08-23)
2
+
3
+ munola follows the channel it drives. Its binary is now cut from the stable
4
+ channel after it took eight changes measured against a Ruby architecture
5
+ linter, so the gem's version moves with the release it fetches. The Rails
6
+ layer is its own gem, `munola-rb`, the way `enola-rb` is for the upstream
7
+ channel; `require "munola"` loads no Rails. A catalogue recipe the binary
8
+ already binds is no longer bound a second time.
9
+
10
+ ## enola 0.4.4.1 and enola-rb 0.4.4.1 (2026-08-23)
11
+
12
+ Wrapper fixes on the same upstream release. A test that set the channel put
13
+ back upstream rather than what it found, so on some orderings a channel gem's
14
+ own installation read as upstream. The Rails layer packaged its generator
15
+ through a glob wide enough to take another channel's; it now packages its own.
16
+ Both gems still drive upstream v0.4.4.
17
+
18
+ ## munola-rb 0.4.4.1 (2026-08-23)
19
+
20
+ The Rails layer over munola, what enola-rb is to enola: `rails generate
21
+ munola:install [--tenant-column COLUMN]` writes the starter laws, the
22
+ bindings the binary's own init picks and the munola catalogue, and the
23
+ enola:init, enola:snapshot and enola:check tasks drive munola's binary
24
+ because munola installs its own resolver. The generator and the railtie
25
+ move here out of the munola gem, so `require "munola"` loads no Rails and a
26
+ project that only drives the binary carries no Rails machinery. The recipe
27
+ catalogue, the detection and the tenant-column argument stay munola's.
28
+
29
+ `Enola.resolver_factory` is readable as well as writable, so whoever
30
+ replaces it can put back what was installed rather than what it assumed.
31
+
1
32
  ## munola 0.4.4.1 (2026-08-23)
2
33
 
3
34
  The wrapper over the munola channel, first release with an implementation.
data/LICENSE CHANGED
@@ -187,7 +187,7 @@ APPENDIX: How to apply the Apache License to your work.
187
187
  same "printed page" as the copyright notice for easier
188
188
  identification within third-party archives.
189
189
 
190
- Copyright (c) 2026 Dejan Menges
190
+ Copyright (c) 2026 Muhamed Isabegovic
191
191
 
192
192
  Licensed under the Apache License, Version 2.0 (the "License");
193
193
  you may not use this file except in compliance with the License.
data/README.md CHANGED
@@ -1,13 +1,19 @@
1
1
  # enola-rb
2
2
 
3
- Three pure-Ruby gems, one repository, for running
3
+ Four pure-Ruby gems, one repository, for running
4
4
  [enola](https://github.com/enola-labs/enola), the architecture-graph tool,
5
5
  from Ruby. None of them carries a binary or compiles anything.
6
6
 
7
+ Two channels, the same layering on both: `enola` wraps the released upstream
8
+ binary and `enola-rb` adds the Rails layer on it; `munola` wraps the munola
9
+ binary and `munola-rb` adds the Rails layer on that. The Rails code is written
10
+ once, in `enola-rb`, and the munola gems add only what is munola's own.
11
+
7
12
  ## `enola`
8
13
 
9
- The wrapper of the released enola. Its version is the upstream release it
10
- drives: `enola 0.4.4` runs enola-labs' v0.4.4.
14
+ The wrapper of the released enola. The gem versions itself; the release it
15
+ drives is `Enola::UPSTREAM_VERSION`, v0.4.4 as of `enola 0.5.0`, and every
16
+ gemspec summary names it.
11
17
 
12
18
  ```ruby
13
19
  gem "enola"
@@ -39,7 +45,7 @@ This gem is not an enola-labs release; it runs theirs.
39
45
 
40
46
  ## `enola-rb`
41
47
 
42
- The Rails layer over `enola`. It depends on `enola` at the same version and on
48
+ The Rails layer over `enola`. It depends on `enola` at the same minor and on
43
49
  [enola-guides](https://github.com/misabegovic/enola-guides), and adds nothing
44
50
  to the binary's surface.
45
51
 
@@ -68,18 +74,17 @@ remedy.
68
74
 
69
75
  One person's taste on top of enola: the same wrapper over another channel,
70
76
  the builds cut from [a fork of enola](https://github.com/misabegovic/enola),
71
- versioned as the upstream they are built on plus a fourth segment
72
- (`0.4.4.1` drives a build on v0.4.4), each release naming what differs from
73
- that upstream. It is offered upstream where it fits and is not positioned
74
- against it. What it adds is the channel and the catalogue.
77
+ each release naming what differs from that upstream. The gem versions itself;
78
+ the channel release it fetches is `Munola::CHANNEL_VERSION`, which carries the
79
+ upstream it is built on plus a segment of its own (`0.4.4.2` on v0.4.4). It is
80
+ offered upstream where it fits and is not positioned against it. What it adds is the channel and the catalogue.
75
81
 
76
82
  ```ruby
77
83
  gem "munola"
78
84
  ```
79
85
 
80
86
  ```sh
81
- bin/rails generate munola:install --tenant-column company_id
82
- bundle exec munola init .
87
+ bundle exec munola init . --tenant-column company_id
83
88
  bundle exec munola --version
84
89
  ```
85
90
 
@@ -95,9 +100,31 @@ inflection table; it writes `mcp-arch.yaml` with both Ruby providers on by
95
100
  default, Prism through the script the `enola` gem carries and Rubydex built
96
101
  into the binary, and fetches the Rubydex library, a failed fetch reported as a
97
102
  named skip. It never asks a question. `munola --version` names the munola
98
- version, the upstream it is built on and which binary answered.
103
+ version, the channel release and upstream it is built on, and which binary
104
+ answered.
105
+
106
+ The binary comes from the fork's releases the way `enola`'s comes from
107
+ upstream's, fetched on first use and verified against the sha256 the release
108
+ publishes; `MUNOLA_BINARY=/path/to/enola` names one to drive instead, and
109
+ every command says which answered. `munola` depends on `enola` at the same
110
+ minor and on `enola-guides` 0.3.1 or later; requiring it loads no Rails.
111
+
112
+ ## `munola-rb`
113
+
114
+ The Rails layer over `munola`, what `enola-rb` is to `enola`. It depends on
115
+ both at the same minor and adds one generator.
116
+
117
+ ```ruby
118
+ gem "munola-rb"
119
+ ```
120
+
121
+ ```sh
122
+ bin/rails generate munola:install --tenant-column company_id
123
+ bin/rake enola:snapshot
124
+ bin/rake enola:check
125
+ ```
99
126
 
100
- The first munola release is what makes the channel real; until it is cut,
101
- `MUNOLA_BINARY=/path/to/enola` names the binary to drive, and every command
102
- says so. `munola` depends on `enola` and `enola-rb` at its upstream version
103
- and on `enola-guides` 0.3.1 or later.
127
+ The generator runs the same install `munola init` does. The rake tasks are
128
+ enola-rb's and need no munola copy: `munola` installs its own resolver when it
129
+ loads, so `enola:snapshot` and `enola:check` drive the munola binary in an app
130
+ that has this gem, and the upstream binary in one that does not.
data/lib/enola/channel.rb CHANGED
@@ -30,7 +30,7 @@ module Enola
30
30
  Channel::UPSTREAM = Channel.new(
31
31
  name: "upstream",
32
32
  release_base: "https://github.com/enola-labs/enola/releases/download",
33
- version: VERSION,
33
+ version: UPSTREAM_VERSION,
34
34
  asset_prefix: "enola"
35
35
  ).freeze
36
36
  end
data/lib/enola/version.rb CHANGED
@@ -1,5 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Enola
4
- VERSION = "0.4.4"
4
+ # The gem versions itself. UPSTREAM_VERSION names the enola release it
5
+ # fetches and drives.
6
+ UPSTREAM_VERSION = "0.4.4"
7
+ VERSION = "0.5.0"
5
8
  end
data/lib/enola.rb CHANGED
@@ -14,10 +14,14 @@ require_relative "enola/cli"
14
14
 
15
15
  module Enola
16
16
  class << self
17
- attr_writer :channel, :resolver_factory
17
+ attr_writer :channel
18
18
 
19
19
  # Another channel's gem installs its own resolver here, so every rake
20
20
  # task and wrapped command built on Runner drives that channel's binary.
21
+ # Readable as well as writable: whoever replaces it can put back what was
22
+ # installed rather than what it assumed.
23
+ attr_accessor :resolver_factory
24
+
21
25
  def resolver
22
26
  (@resolver_factory || -> { Resolver.new(channel: channel) }).call
23
27
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enola
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.4
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Muhamed Isabegovic
@@ -26,8 +26,9 @@ dependencies:
26
26
  version: '1.3'
27
27
  description: |
28
28
  A pure-Ruby wrapper around enola, the architecture-graph tool by enola-labs.
29
- The gem's version is the upstream release it drives. The binary is not in
30
- the gem: the first command that needs it downloads the release for your
29
+ The gem versions itself; the enola release it drives is named in its
30
+ UPSTREAM_VERSION, 0.4.4 here. The binary is not in the
31
+ gem: the first command that needs it downloads the release for your
31
32
  platform, verifies it against the checksum the release publishes, and keeps
32
33
  it in a per-user cache. Every command and exit code is forwarded unchanged.
33
34
  This gem is not an enola-labs release.
@@ -79,6 +80,6 @@ requirements: []
79
80
  rubygems_version: 3.5.22
80
81
  signing_key:
81
82
  specification_version: 4
82
- summary: 'Runs the released enola from Ruby: fetched on first use, verified, pinned
83
- to this gem''s version.'
83
+ summary: 'Runs the released enola from Ruby: fetched on first use, verified, cached.
84
+ This release drives enola 0.4.4.'
84
85
  test_files: []