rest_framework 0.6.11 → 0.6.12

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: b50de92e6da78551111f0fd642d6e4ed931528036e455cea60edf89ec562c9f7
4
- data.tar.gz: e603daa202d4798d1b11e821084d92a0114931639ddc6198d87243494c65e74d
3
+ metadata.gz: 83aa878ffb9690b53552092a99987e67a9930f321c9ca02b97123b003d6c6f89
4
+ data.tar.gz: d3e61c32bda1e7815822caabcedf508b03eec417f62507539d6d0e128697dc8e
5
5
  SHA512:
6
- metadata.gz: bf66b77f4ad8bfa0fe05c38e0cb1e9d73f0c9cb48b92c8c57401510062522fb1715f1699641c7455a69838380bffff1b67dc0bd4dbc10d53e242c08ce604b40c
7
- data.tar.gz: cb1e8f11488a8d108d4a40593906ca1c1718b2b762c5049625ee206aee01c50dc818fcca369e258b89c144cc0c0c4a703ac8f6ca1bdc47c7082e447bbfbe8b8c
6
+ metadata.gz: c78e80cba4939aa6bd951f93c055f27a07ff2fa0e6f24fb3bf5edfc3de35297fd6090dc98dbd0b9ecad027d80abb4602c1ebd898ef0ae43ccaf8a22018108d8f
7
+ data.tar.gz: dc8240f44f4a315d47f47727fac2aae6b1ba8da73c0faecffa3b9e4174709e5d0966e7776aa38893801ff8ec2b83ac60a50f3ff963ad8a4d3873bd077c9f5af8
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.11
1
+ 0.6.12
@@ -22,16 +22,17 @@
22
22
  <nav>
23
23
  <ol class="breadcrumb">
24
24
  <%
25
- breadcrumbs = request.path.split("/").inject([["/", "(root)"]]) { |breadcrumbs, part|
25
+ breadcrumbs = request.path.split("/").inject([]) { |breadcrumbs, part|
26
26
  # Ignore blank parts of the path (leading slash or double-slashes).
27
27
  next breadcrumbs if part.blank?
28
28
 
29
- last_path = breadcrumbs[-1][0]
29
+ last_path = breadcrumbs.last&.first || "/"
30
30
  breadcrumbs << [
31
31
  [last_path, part].join(last_path[-1] == "/" ? "" : "/"),
32
32
  part,
33
33
  ]
34
- breadcrumbs
34
+
35
+ next breadcrumbs
35
36
  }
36
37
  %>
37
38
  <% breadcrumbs.each_with_index do |(path, label), i| %>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rest_framework
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.11
4
+ version: 0.6.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gregory N. Schmit