foobify-rails-app 0.0.10 → 0.0.12

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: 8fb838bbb9b103725a209a2c26481bb14c3a6f341926ed044e61d40071ec69d3
4
- data.tar.gz: 38c79ebebcb351e96aa346749f2f81526b228594512af55ba64aae18758e2c76
3
+ metadata.gz: e7f706c1ae0cdf96745dd968f1d3816277876f6bdd8a272265f97867ad4ebac8
4
+ data.tar.gz: 2fc0355651f1c9b16bb547046e371bfb1df1cd88ad7d0ed59cc57cbdc369fcb8
5
5
  SHA512:
6
- metadata.gz: b66699f8a696c787c9cc9aa42f9603c75282be2c7e237b6e49b205c2b4ece66857485245c47eace940649e9ab048ae6ef4e666bba709d33227f75414a749f9de
7
- data.tar.gz: 3bab73f898b4d016255384782bbb8bd81d73752443479965d4f473f97ab58cf01d74e7cc0cd3fd305974cb6cb31be21ed7f072db83e0bcc94c771932cb60d60b
6
+ metadata.gz: 2849053bff9b011d4745c4e14bf2c2d228df22d3e6d3f925157d69e9b7869adca3712919c4de1415295d7245b90b1ec0fda8fc473459a4197642d1ad183ae8f0
7
+ data.tar.gz: f131bc7d9d8ebad9244b866fdd1d4c7019ed90b4398274fb3d58a17590890648a79d820a9bb6732062c5c85ec851ab669b070a180a7c885ee875b3b25bf05c2d
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ ## [0.0.12] - 2026-02-02
2
+
3
+ - Add a foobify-rails-app executable
4
+
5
+ ## [0.0.11] - 2026-02-02
6
+
7
+ - Add code comments to generated foobara.rb initializer
8
+
1
9
  ## [0.0.10] - 2025-12-21
2
10
 
3
11
  - Rename gem from foobara-foobify-rails-app to foobify-rails-app
@@ -0,0 +1,17 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ gemfile_path = File.expand_path("../Gemfile", __dir__)
4
+
5
+ if File.exist?(gemfile_path)
6
+ # Seems we are not being ran as a gem executable. Let's bundle since we might be in a test or
7
+ # we might be pointed at via path: or some other similar situation.
8
+ ENV["BUNDLE_GEMFILE"] ||= gemfile_path
9
+ require "bundler/setup"
10
+ end
11
+
12
+ require "foobara/sh_cli_connector"
13
+ require "foobara/foobify_rails_app"
14
+
15
+ Foobara::CommandConnectors::ShCliConnector.new(
16
+ single_command_mode: Foobara::Generators::FoobifyRailsApp::WriteFoobifiedRailsFilesToDisk
17
+ ).run
@@ -1,8 +1,11 @@
1
- Rails.application.reloader.to_prepare do
2
- env = Rails.env
1
+ # We need to make sure Foobara is reset whenever we're reloading classes via Zeitwerk
2
+ # or really strange stuff happens with stale Foobara types, etc.
3
+ rails_env = Rails.env
4
+ ENV["FOOBARA_ENV"] ||= rails_env
3
5
 
4
- if env != "test" && env != "development"
5
- raise "Not going to attempt to reload classes in Rails.env: #{env}"
6
+ Rails.application.reloader.to_prepare do
7
+ if rails_env != "test" && rails_env != "development"
8
+ raise "Not going to attempt to reload classes in Rails.env: #{rails_env}"
6
9
  end
7
10
 
8
11
  Foobara.reset_alls
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foobify-rails-app
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miles Georgi
@@ -29,9 +29,38 @@ dependencies:
29
29
  - - "<"
30
30
  - !ruby/object:Gem::Version
31
31
  version: 2.0.0
32
+ - !ruby/object:Gem::Dependency
33
+ name: foobara-files-generator
34
+ requirement: !ruby/object:Gem::Requirement
35
+ requirements:
36
+ - - "<"
37
+ - !ruby/object:Gem::Version
38
+ version: 2.0.0
39
+ type: :runtime
40
+ prerelease: false
41
+ version_requirements: !ruby/object:Gem::Requirement
42
+ requirements:
43
+ - - "<"
44
+ - !ruby/object:Gem::Version
45
+ version: 2.0.0
46
+ - !ruby/object:Gem::Dependency
47
+ name: foobara-sh-cli-connector
48
+ requirement: !ruby/object:Gem::Requirement
49
+ requirements:
50
+ - - "<"
51
+ - !ruby/object:Gem::Version
52
+ version: 2.0.0
53
+ type: :runtime
54
+ prerelease: false
55
+ version_requirements: !ruby/object:Gem::Requirement
56
+ requirements:
57
+ - - "<"
58
+ - !ruby/object:Gem::Version
59
+ version: 2.0.0
32
60
  email:
33
61
  - azimux@gmail.com
34
- executables: []
62
+ executables:
63
+ - foobify-rails-app
35
64
  extensions: []
36
65
  extra_rdoc_files: []
37
66
  files:
@@ -39,6 +68,7 @@ files:
39
68
  - LICENSE-MPL-2.0.txt
40
69
  - LICENSE.txt
41
70
  - README.md
71
+ - bin/foobify-rails-app
42
72
  - lib/foobara/foobify_rails_app.rb
43
73
  - src/foobify_rails_app_config.rb
44
74
  - src/generate_foobified_rails_files.rb