js-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: 36f0c94e92ba86ebe6ba251255f56188798b0e3617f4327f1b378178af064ceb
4
- data.tar.gz: 22ad68234c70b70a0ec9053427eb1f84a3d940262259662f04b574c22e269c7d
3
+ metadata.gz: c9a63dedd682c2cf4330ffc7c4ce012845e35fae3c315846a2ba5ef52b980ba2
4
+ data.tar.gz: 5e62c6831d3799376fad6a8e6e433488c4674bc7d7ac4917fe9f9e0a0ca9f03d
5
5
  SHA512:
6
- metadata.gz: 2cdf3b85d580c7008d99e2bf20e722b1264b3207d9f7fa12b1ae17ab46a5eb041635047fb42139f0194d9cd2d73a8b6b1c5c63dd7ded8479c3af83d98c4eea62
7
- data.tar.gz: ac97b0989e491ea830ea4a4c4a00dee9fb3ccf0f83ecb104f6c3341bd188c53e81453626fa8329cdc5751df4cb4db2bd814aa7c4b0b1e6dc78b54e56c4e71fcf
6
+ metadata.gz: 2ee773fcb0b7ea746248c06d6fac1365a23ab732ff16620d555bb4d035e9661187d02fb093a127a9d240e0621976cbc6680996c22e065bd70e7c8d2318e37753
7
+ data.tar.gz: 5a7e0d7fc1b1af56c4ee72a3b8cdef0d6b42671425c35b60410ffe2b62e63779deeb733ca5293fc62507b224094686de436d763f7b49ffc29248b1fc2e653d71
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## master
2
2
 
3
+ ## v2.0.5
4
+
5
+ * Fixed backward compatibility issue [#276](https://github.com/railsware/js-routes/issues/276)
6
+
3
7
  ## v2.0.4
4
8
 
5
9
  * Fixed backward compatibility issue [#275](https://github.com/railsware/js-routes/issues/275)
data/lib/js_routes.rb CHANGED
@@ -261,7 +261,8 @@ class JsRoutes
261
261
  end
262
262
 
263
263
  def base_name
264
- @base_name ||= apply_case(parent_route&.name, route.name)
264
+ @base_name ||= parent_route ?
265
+ [parent_route.name, route.name].join('_') : route.name
265
266
  end
266
267
 
267
268
  def parent_spec
@@ -278,7 +279,7 @@ class JsRoutes
278
279
 
279
280
  def helper_name(absolute)
280
281
  suffix = absolute ? :url : @configuration[:compact] ? nil : :path
281
- suffix ? apply_case(base_name, suffix) : base_name
282
+ apply_case(base_name, suffix)
282
283
  end
283
284
 
284
285
  def documentation
@@ -1,3 +1,3 @@
1
1
  class JsRoutes
2
- VERSION = "2.0.4"
2
+ VERSION = "2.0.5"
3
3
  end
data/lib/routes.js CHANGED
@@ -275,7 +275,7 @@ RubyVariables.WRAPPER((that) => {
275
275
  return "";
276
276
  }
277
277
  // if left_part ends on '/' and right_part starts on '/'
278
- if (left_part[left_part.length - 1] === '/' && right_part[0] === '/') {
278
+ if (left_part[left_part.length - 1] === "/" && right_part[0] === "/") {
279
279
  // strip slash from right_part
280
280
  // to prevent double slash
281
281
  right_part = right_part.substring(1);
data/lib/routes.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"routes.js","sourceRoot":"","sources":["routes.ts"],"names":[],"mappings":"AAAA;;;GAGG;AA0DH,aAAa,CAAC,OAAO,CACnB,CAAC,IAAa,EAAwB,EAAE;IACtC,MAAM,OAAO,GAAG,CAAC,KAAc,EAAE,GAAW,EAAE,EAAE,CAC9C,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IACnD,IAAK,SASJ;IATD,WAAK,SAAS;QACZ,2CAAS,CAAA;QACT,uCAAO,CAAA;QACP,6CAAU,CAAA;QACV,qCAAM,CAAA;QACN,yCAAQ,CAAA;QACR,+CAAW,CAAA;QACX,2CAAS,CAAA;QACT,uCAAO,CAAA;IACT,CAAC,EATI,SAAS,KAAT,SAAS,QASb;IAmBD,MAAM,IAAI,GAAG,IAAI,CAAC;IAKlB,MAAM,gBAAgB,GAAyC;QAC7D,GAAG,EAAE;YACH,oEAAoE;YACpE,MAAM,EAAE,CAAC,MAAM,EAAE,EAAE,CAA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I,UAAU,EAAE,CAAC;IAE/B,uCAAuC;IACvC,MAAM,KAAK,GAAG;QACZ,CAAC,CACC,WAAuB,EACvB,UAAqB,EACrB,QAAkB;YAElB,OAAO,KAAK,CAAC,KAAK,CAAC,WAAW,EAAE,UAAU,EAAE,QAAQ,CAAC,CAAC;QACxD,CAAC;KACF,CAAC;IAEF,MAAM,MAAM,GAAG;QACb,GAAG,KAAK;QACR,SAAS,EAAE,CAAC,MAA8B,EAAE,EAAE;YAC5C,OAAO,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;QACjC,CAAC;QACD,MAAM,EAAE,GAAkB,EAAE;YAC1B,OAAO,KAAK,CAAC,MAAM,EAAE,CAAC;QACxB,CAAC;QACD,SAAS,EAAE,CAAC,MAAe,EAAU,EAAE;YACrC,OAAO,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;QACjC,CAAC;QACD,GAAG,aAAa,CAAC,aAAa;KAC/B,CAAC;IAEF,KAAK,CAAC,SAAS,CAAC,IAAI,EAAE,aAAa,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC;IAEvD,IAAI,aAAa,CAAC,WAAW,EAAE;QAC7B,KAAK,CAAC,aAAa,CAAC,aAAa,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC;KACxD;IACD,OAAO,MAAM,CAAC;AAChB,CAAC,CACF,CAAC,IAAI,CAAC,CAAC"}
@@ -91,6 +91,18 @@ describe JsRoutes, "options" do
91
91
  expect(evaljs("Routes.inboxes_path")).to be_nil
92
92
  end
93
93
 
94
+ context "with camel_case option" do
95
+ let(:_options) { {include: /^admin_/, camel_case: true} }
96
+
97
+ it "should exclude specified routes from file" do
98
+ expect(evaljs("Routes.adminUsersPath()")).not_to be_nil
99
+ end
100
+
101
+ it "should not exclude routes not under specified pattern" do
102
+ expect(evaljs("Routes.inboxesPath")).to be_nil
103
+ end
104
+ end
105
+
94
106
  context "for rails engine" do
95
107
  let(:_options) { {:include => /^blog_app_posts/} }
96
108
 
@@ -180,9 +192,9 @@ describe JsRoutes, "options" do
180
192
  end
181
193
 
182
194
  context "is nil" do
183
- let(:_options) { {:namespace => nil} }
195
+ let(:_options) { {:namespace => nil, include: /^inbox$/} }
184
196
  it "should use this namespace for routing" do
185
- evaljs("window.zz = #{JsRoutes.generate(module_type: nil, namespace: nil)}")
197
+ evaljs("window.zz = #{generated_js}")
186
198
  expect(evaljs("window.zz.inbox_path")).not_to be_nil
187
199
  end
188
200
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: js-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
  - Bogdan Gusiev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-05-31 00:00:00.000000000 Z
11
+ date: 2021-06-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties