js_from_routes 4.0.0 → 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: d025db2a61cac22a1639c8164379135ecc21495cf9088e100c3301af27836bc3
4
- data.tar.gz: f2480ec441295677d3289269225052b99c91a8a7ba5ef554f6bc63a6eedf0fa2
3
+ metadata.gz: 13b5b3af46d9a41f4ae0628b9d615fed9e17d564be52db3feabd3d72746cdc8d
4
+ data.tar.gz: 509f343953d3b610ce0d5ee41558ad92464cbb28866f49cbb5589112b1638220
5
5
  SHA512:
6
- metadata.gz: 2cd07f08b897c978aaa8d38ddee26298ab9f0202f57cbad37cecaf4cd86694a7700f2b0980ca8e8f8821d9379bdf70db88f301ff3e67c5086e3c6e388909060d
7
- data.tar.gz: a121e858da619a7b1843d708cb1b564aff0f2aca3762384361e4d02179e2bb58f4b65029bd09bf7ec4d4064a6d6da25b2a3099fe1e001a58891f5d245c4a29d3
6
+ metadata.gz: b71c17a8b7023eff5918bd35eea370e15cd141db8bc07a196e7b093c048208848cf6df117d04d084e21adb882e7077e283255c02ab162c2169c2ffa18eeadb07
7
+ data.tar.gz: 53288df1b91c1bbc2562cb249e659cfb8e4117223e0503eb3db1e79d3b6376d31da161875b884b64ef484aba17c3253cfc3a298bbd09193f1eb9cecf909235cf
data/CHANGELOG.md CHANGED
@@ -1,3 +1,21 @@
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
+
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)
11
+
12
+
13
+ ### Features
14
+
15
+ * allow using with rails 8 ([ffcefb9](https://github.com/ElMassimo/js_from_routes/commit/ffcefb9c4eda530cec107b0e74e71d318f6e76a0)), closes [#53](https://github.com/ElMassimo/js_from_routes/issues/53)
16
+
17
+
18
+
1
19
  # [4.0.0](https://github.com/ElMassimo/js_from_routes/compare/js_from_routes@3.0.2...js_from_routes@4.0.0) (2024-10-11)
2
20
 
3
21
 
@@ -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.0"
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.0
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-10-11 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
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '5.1'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '8'
22
+ version: '9'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '5.1'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '8'
32
+ version: '9'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: bundler
35
35
  requirement: !ruby/object:Gem::Requirement