enola 0.4.4 → 0.4.4.1

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: 84ee668ecfaed2e6d8ebc55fe5054e1635300502f762887f2d7b96660beb908f
4
+ data.tar.gz: 2905c89cad26afb7f6226515c7b3620ed6e089c16ff5886398f4043deda50360
5
5
  SHA512:
6
- metadata.gz: 252640692ed6d525918737d1ff1d74c3849321f3eac480fe1455aa92823eafba7c4555924f71ac08830c104732af687eebc17a92192b32edc446d5516f154b85
7
- data.tar.gz: 4018811a6cdd5ef38fc5e8703444fba327f761135214ced01f8847f22487edf32dfe3c0c204a5018c250ead313484ae1350059f6e7834a8acc97661a668bd798
6
+ metadata.gz: e8b8a19a54c9f13be8b2dd6a1d62b5cb999d14a7ff959f0771ca25cfc63b6fac3822bc31ccd676cc44c60e4106401c626f9fc1e7b2802a68d3f5f68a0c23c322
7
+ data.tar.gz: 42a9119e1b7d33d1a20b3e3d9f7a79f2c8199de3599365f6d13674db19a968aba0a749180014b061bb413940a17ae8212ebf63181ee40302acdcae20952c1bb5
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/README.md CHANGED
@@ -1,9 +1,14 @@
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
14
  The wrapper of the released enola. Its version is the upstream release it
@@ -78,8 +83,7 @@ gem "munola"
78
83
  ```
79
84
 
80
85
  ```sh
81
- bin/rails generate munola:install --tenant-column company_id
82
- bundle exec munola init .
86
+ bundle exec munola init . --tenant-column company_id
83
87
  bundle exec munola --version
84
88
  ```
85
89
 
@@ -97,7 +101,28 @@ into the binary, and fetches the Rubydex library, a failed fetch reported as a
97
101
  named skip. It never asks a question. `munola --version` names the munola
98
102
  version, the upstream it is built on and which binary answered.
99
103
 
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.
104
+ The binary comes from the fork's releases the way `enola`'s comes from
105
+ upstream's, fetched on first use and verified against the sha256 the release
106
+ publishes; `MUNOLA_BINARY=/path/to/enola` names one to drive instead, and
107
+ every command says which answered. `munola` depends on `enola` at its upstream
108
+ version and on `enola-guides` 0.3.1 or later; requiring it loads no Rails.
109
+
110
+ ## `munola-rb`
111
+
112
+ The Rails layer over `munola`, what `enola-rb` is to `enola`. It depends on
113
+ both at their own versions and adds one generator.
114
+
115
+ ```ruby
116
+ gem "munola-rb"
117
+ ```
118
+
119
+ ```sh
120
+ bin/rails generate munola:install --tenant-column company_id
121
+ bin/rake enola:snapshot
122
+ bin/rake enola:check
123
+ ```
124
+
125
+ The generator runs the same install `munola init` does. The rake tasks are
126
+ enola-rb's and need no munola copy: `munola` installs its own resolver when it
127
+ loads, so `enola:snapshot` and `enola:check` drive the munola binary in an app
128
+ 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 release this wrapper drives. VERSION carries a patch segment for
5
+ # wrapper-only fixes, so what to fetch is stated separately.
6
+ UPSTREAM_VERSION = "0.4.4"
7
+ VERSION = "#{UPSTREAM_VERSION}.1"
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.4.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Muhamed Isabegovic