js_from_routes 4.0.1 → 4.0.2

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: '0638fb2569cd2fb42213161ed2ac0f850edf79a3d383b067fbfef9ba28c91635'
4
- data.tar.gz: 5dc8afb64a0ba08b94ac23f253c7934e485690d67af2811a0aff123ff97acb3e
3
+ metadata.gz: 13b5b3af46d9a41f4ae0628b9d615fed9e17d564be52db3feabd3d72746cdc8d
4
+ data.tar.gz: 509f343953d3b610ce0d5ee41558ad92464cbb28866f49cbb5589112b1638220
5
5
  SHA512:
6
- metadata.gz: 7df240239621acee87a8c216218dbd6aa138cf49b117929930da3153da651b4d242ec4cc27c2e0a734fee796fb632e5005a60f56848de807a8dd93faf84d0636
7
- data.tar.gz: 4e179ae1663a0e77f300e7f6875246e58ad120f1d2fb9b4620a1f148621d9489d2f2897982e792a1f904b896650d7537caf6763ce363390e51b7a94533004053
6
+ metadata.gz: b71c17a8b7023eff5918bd35eea370e15cd141db8bc07a196e7b093c048208848cf6df117d04d084e21adb882e7077e283255c02ab162c2169c2ffa18eeadb07
7
+ data.tar.gz: 53288df1b91c1bbc2562cb249e659cfb8e4117223e0503eb3db1e79d3b6376d31da161875b884b64ef484aba17c3253cfc3a298bbd09193f1eb9cecf909235cf
data/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## [4.0.2](https://github.com/ElMassimo/js_from_routes/compare/js_from_routes@4.0.1...js_from_routes@4.0.2) (2025-01-15)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * `output_dir` check fails for empty directories in some environments ([#55](https://github.com/ElMassimo/js_from_routes/issues/55)) ([f2ec889](https://github.com/ElMassimo/js_from_routes/commit/f2ec889bcbadad2d15864ab130ff4a118d99f1da))
7
+
8
+
9
+
1
10
  ## [4.0.1](https://github.com/ElMassimo/js_from_routes/compare/js_from_routes@4.0.0...js_from_routes@4.0.1) (2024-11-08)
2
11
 
3
12
 
@@ -174,7 +174,7 @@ module JsFromRoutes
174
174
 
175
175
  # Public: Generates code for the specified routes with { export: true }.
176
176
  def generate!(app_or_routes = Rails.application)
177
- raise ArgumentError, "A Rails app must be defined, or you must specify a custom `output_folder`" if config.output_folder.blank?
177
+ raise ArgumentError, "A Rails app must be defined, or you must specify a custom `output_folder`" if config.output_folder.to_s.blank?
178
178
  rails_routes = app_or_routes.is_a?(::Rails::Engine) ? app_or_routes.routes.routes : app_or_routes
179
179
  generate_files exported_routes_by_controller(rails_routes)
180
180
  end
@@ -4,5 +4,5 @@
4
4
  # Generates one file per controller, and one function per route.
5
5
  module JsFromRoutes
6
6
  # Public: This library adheres to semantic versioning.
7
- VERSION = "4.0.1"
7
+ VERSION = "4.0.2"
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: js_from_routes
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.1
4
+ version: 4.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Máximo Mussini
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-11-08 00:00:00.000000000 Z
11
+ date: 2025-01-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties