scryglass 2.1.0 → 2.1.1

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: 8ad4ef5f3d5410c0e51263df62ce42683e10f6434222dca7952796a32fac75d2
4
- data.tar.gz: 7018ee7c1fce2ef08f6f82769bd2644c62138bfcb60cde986143b36ec582f504
3
+ metadata.gz: dfea945f5cc2a3d31a90cd0c4d4050c8b3e0e177aee8ffb38e8d48b681e3ffef
4
+ data.tar.gz: 20f4befb0f2f430547faa859f6a40e5889aebab99c709b4365622f3728681b3a
5
5
  SHA512:
6
- metadata.gz: 3bf1c0efce7dac36445bb2daaea5fdff89fc7390999694994d88a1f7f8f9854c63a4ec436f4e6b911d2438542cb3ac8a7f7fc7fdeb7d8aacbbee3e693f8201f4
7
- data.tar.gz: f836192852e3115f85fa8e8807da0fa8053e81e510730144097f5eae24ad803b536887ea45ece8a103389fe87e1f7ca824b1710d780d9eb46466f9ed81981af0
6
+ metadata.gz: cbfceb8391dd6eb6903e8b88ecb50b7a6bbd0b1fc092c8ae1b09b272532cbd11a67b0597d835b7d3ada534dd4636ac15f813bf9d9cfaeb930394d0d6c76d9624
7
+ data.tar.gz: e40e6db7bb4b08dd882e24d4e1fee5f72f6d4523db4c9f6811bd305d33c6ba0a16f46e79134e2f6afe223c4be8411655c77f94d93468b53d3212c8fd81245bdc
data/CHANGELOG.md CHANGED
@@ -15,6 +15,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
15
15
 
16
16
  ## Fixed
17
17
 
18
+ ## [2.1.1] - 2021-06-29
19
+
20
+ ## Fixed
21
+
22
+ - Reverted/corrected the 'up' navigation logic.
23
+
18
24
  ## [2.1.0] - 2021-03-21
19
25
 
20
26
  ## Added
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- scryglass (2.1.0)
4
+ scryglass (2.1.1)
5
5
  amazing_print
6
6
  binding_of_caller
7
7
  method_source
data/lib/scryglass/ro.rb CHANGED
@@ -121,11 +121,17 @@ module Scryglass
121
121
 
122
122
  return nil if top_ro?
123
123
 
124
- next_sibling = sibling_up
125
- return next_sibling if next_sibling
124
+ next_sibling_up = sibling_up
126
125
 
127
126
  # Note: since this ro is known to be visible, all its parents are, too.
128
- parent_ro
127
+ return parent_ro unless next_sibling_up
128
+
129
+ downward_feeler_ro = next_sibling_up
130
+ while downward_feeler_ro.expanded && downward_feeler_ro.sub_ros.any?
131
+ downward_feeler_ro = downward_feeler_ro.sub_ros.last
132
+ end
133
+
134
+ downward_feeler_ro
129
135
  end
130
136
 
131
137
  def current_subject
@@ -1,3 +1,3 @@
1
1
  module Scryglass
2
- VERSION = "2.1.0"
2
+ VERSION = "2.1.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scryglass
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gavin Myers
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-03-21 00:00:00.000000000 Z
11
+ date: 2021-06-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler