uh-layout 0.5.0 → 0.5.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: ef2b61c35eeedd55a1603fac03070bedc0bac689b86eb82d92fbcacac621bfde
4
- data.tar.gz: 02f86bd7bba57f9c92e9a76b6da891ba3afe5eaa2f89b309ef29797cd045fbfb
3
+ metadata.gz: e1a913044d0a2ff8013e8099b924fd46bea2c5cab72183a27a8dc71f852bfbef
4
+ data.tar.gz: ef92b2717d774414409cd8a70c14715d1eae22cdfc06fa1cbb41d00d1a720d53
5
5
  SHA512:
6
- metadata.gz: c360f3459be21bcc90c725546fc0da75dd51307a52088dc206a8254de71cb6275d339853605e9cc7b15aaed0325fb5a5934f5d96f50606dbdc0fa8ec6ad9e4f6
7
- data.tar.gz: 5283d46abdffe520c3dff3c0295c26dcbb1a2234c2c0e7707a10e848a64adc5127bb73450c3ad28c3b845c4f1ebf91566fd910886eb2c8419772347ca0888dc8
6
+ metadata.gz: 3987ca935526fc7d8e8248c6c4e580de3f14d1f8e9b8337ec7570a9216dfb814e55c6fe198a6354dda48eafef14c911090ebe9ff46cdef44239e000c90a31242
7
+ data.tar.gz: 62514ef6d0d44596e579ddc82cac2cfe08897f06f011a2a8e5fa2240da4344e06223a210ee19b885d01b1972ea7c109d30566425bd96e04f6cb01a0aa39d369d
@@ -67,8 +67,8 @@ module Uh
67
67
 
68
68
  def remove_entry entry
69
69
  fail ArgumentError, 'unknown entry' unless include? entry
70
- @entries.delete_at (index = @entries.index(entry))
71
- if @current_index != 0 && @current_index > index
70
+ @entries.delete_at (index = @entries.index entry)
71
+ if @current_index != 0 && @current_index >= index
72
72
  @current_index -= 1
73
73
  end
74
74
  end
@@ -1,5 +1,5 @@
1
1
  module Uh
2
2
  class Layout
3
- VERSION = '0.5.0'.freeze
3
+ VERSION = '0.5.1'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uh-layout
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thibault Jouan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-12-10 00:00:00.000000000 Z
11
+ date: 2017-12-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: uh