js_from_routes 2.0.4 → 2.0.5

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: 13b4bc245728511e15d787762ffddbe1bfb3799a7b61f69620a7f617435aed12
4
- data.tar.gz: 1f2f759b537ce46f2628df9c17ea3f8325db4c7fb36e048270babc1a9116e637
3
+ metadata.gz: '00930d579b2a7eaada963f2b8139bf03f850224ca6a93cc4715b938a84e26b58'
4
+ data.tar.gz: 10556d08300abe1e64c0fdfaa35db23099d7915306928a210f48717258fc9762
5
5
  SHA512:
6
- metadata.gz: d5c443ada290e81b71dc6776e02007966471f6c2c188be2fc03f849b1c5f6bf0954fa1e37508f79a2f4ec015bd2e4b582f5ae29ed655843d07a0dd43f9f6d793
7
- data.tar.gz: ee9cfcdf677e351aa7631c34835c9fbac8fd29fbb6d380c9bedb6965435f681c52f6a50c14ec63a8f971bef211b9ebf5e1ef2a243ac72e841f567250056a1b48
6
+ metadata.gz: 0c099a34cc949e8d600c1199f8bcb66228bf0f57c5d17de329c87fefcacdcbe2f465996a1d0111a1b964117977bc311477640508f49d4a33d5107ba03d1e2551
7
+ data.tar.gz: a720dfc8dd9d2c26291c8feb6f8e009e3612612be2db83278c27d632a2c1bbcfe4a7e2bf9f7d63aa68c4418f119693c83cf58229bf21691e9a4492b0f7f48ccd
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
+ ## [2.0.5](https://github.com/ElMassimo/js_from_routes/compare/js_from_routes@2.0.5...js_from_routes@2.0.5) (2021-09-02)
2
+
3
+
4
+
5
+ ## [2.0.5](https://github.com/ElMassimo/js_from_routes/compare/js_from_routes@2.0.4...js_from_routes@2.0.5) (2021-09-02)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * ensure :export is not added as a required default in routes ([40126ac](https://github.com/ElMassimo/js_from_routes/commit/40126ac27caeee33abef1c7067ba1db88ea03660))
11
+
12
+
13
+
1
14
  ## [2.0.4](https://github.com/ElMassimo/js_from_routes/compare/js_from_routes@2.0.3...js_from_routes@2.0.4) (2021-03-16)
2
15
 
16
+ ### Features
17
+
18
+ * Allow importing individual helpers from "~/api" by adding exports ([2dfb8a2](https://github.com/ElMassimo/js_from_routes/commit/2dfb8a27d182376d75f0b037258bc772553e43f3)). Thanks @matias-capeletto!
3
19
 
4
20
 
5
21
  ## [2.0.3](https://github.com/ElMassimo/js_from_routes/compare/js_from_routes@2.0.2...js_from_routes@2.0.3) (2021-03-16)
@@ -24,4 +24,14 @@ class JsFromRoutes::Railtie < Rails::Railtie
24
24
  end
25
25
  end
26
26
  end
27
+
28
+ # Prevents Rails from interpreting the :export option as a required default,
29
+ # which would cause controller tests to fail.
30
+ initializer "js_from_routes.required_defaults" do |app|
31
+ ActionDispatch::Journey::Route.prepend Module.new {
32
+ def required_default?(key)
33
+ key == :export ? false : super
34
+ end
35
+ }
36
+ end
27
37
  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 = "2.0.4"
7
+ VERSION = "2.0.5"
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: 2.0.4
4
+ version: 2.0.5
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: 2021-03-16 00:00:00.000000000 Z
11
+ date: 2021-09-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties