foobara-rails-command-connector 0.1.0 → 0.1.2

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: bde36872401e745312b31c25be27ba26af9cd50817c4e01a9fbac4b6a557282c
4
- data.tar.gz: 58444eac91b29bfe332d6e04ed6b4d606d93613bbfb7c269df18415214698fe5
3
+ metadata.gz: ddbd332170de0585e2aba5977500f2b934959cd17b157f237b2ace5693bb1d29
4
+ data.tar.gz: 03f46d1e7f03a7ed47717290068e1d4de1862c1fe13cd5f68cb9772ac5f6e160
5
5
  SHA512:
6
- metadata.gz: 6975fa7814bdc845582bf6af03f6a9b66ae7707cbea1832b4942e999be79d1897f874860c526f083e653bcc343d12547dbb0811fabd6f0a91d7882fbac440862
7
- data.tar.gz: 3533866dc1a68629d556785a39314368e6bc1e5ba6e3b09c95dc983dd244215bbc487b930c2152d658b483029b47a4b1a743f9f335f6472aec6e593eaa8a9985
6
+ metadata.gz: 8bb7043f22ab631c8a34815e9d9126c088c075bdbe91774d9354b5f7a87da7104263935b8c85e2f9665ed018fae63292c91de0740d872b1e6e2196fd58e94148
7
+ data.tar.gz: 8e086607336df8c0327278c8223463c69c9fa41e223d9dbd3a259f396f6a4180c615766bba85922efe0e9d9472cee9bff24064ee453b10c2f9cd2347fbda1ce2
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## [0.1.2] - 2025-10-29
2
+
3
+ - Provide a way to prevent auto-installing a RailsCommandConnector
4
+
5
+ ## [0.1.1] - 2025-10-26
6
+
7
+ - Only install the first RailsCommandConnector to support multiple
8
+
1
9
  ## [0.1.0] - 2025-08-22
2
10
 
3
11
  - Mark as compatible with newer versions of foobara-rack-connector
@@ -9,22 +9,33 @@ module Foobara
9
9
  def supported_actions
10
10
  [:run, :help, :describe, :list, :manifest]
11
11
  end
12
+
13
+ def installed?
14
+ @installed
15
+ end
16
+
17
+ def mark_installed!
18
+ @installed = true
19
+ end
12
20
  end
13
21
 
14
22
  attr_accessor :supported_actions
15
23
 
16
- def initialize(*, supported_actions: self.class.supported_actions, **, &)
24
+ def initialize(*,
25
+ supported_actions: self.class.supported_actions,
26
+ skip_install: false,
27
+ **, &)
17
28
  self.supported_actions = supported_actions
18
29
 
19
30
  super(*, **, &)
20
31
 
21
- install!
32
+ install! unless skip_install
22
33
  end
23
34
 
24
35
  def install!
25
- return if @installed
36
+ return if self.class.installed?
26
37
 
27
- @installed = true
38
+ self.class.mark_installed!
28
39
 
29
40
  attach_to_rails_application_config!
30
41
  install_controller!
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foobara-rails-command-connector
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miles Georgi