treemap-fork 1.0.4.1 → 1.0.4.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/treemap/bounded_map.rb +3 -3
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5b36b943e55ad85f7840c4fea099e6138670f68c
4
- data.tar.gz: 0be95d0f0b306013924d7e721ad636850f4c0b71
3
+ metadata.gz: 2f3d55aa6e50c45084aa9b579f6d1c66fee20130
4
+ data.tar.gz: 88e74b93eeef952e126fce15e6c131a219de2e44
5
5
  SHA512:
6
- metadata.gz: 26a2129fbefeb709ec1aac781287d70780c0344cd07f4126a0ddda7477537b7ff4a5081f45346ce9feebb9a700a14159641d3ba76ea053a235c6521ef317317b
7
- data.tar.gz: 5c7150ae1db6a53f4810374d399219ee1aa2c6ce828b3e7a2ccc5c29c42fbe337b28f4f8bc5374ed3ef66afbc7d446bddb52d7310ccb93ce515a06b9e8ad4a87
6
+ metadata.gz: 67502cd0e50a2646b66a593144790b6aae7836514799e399b11c4e8ca00fe9a324baac4f512b9586397e70e939fb5b5d5aa07cadad839fdd8f3d30ebb9d1d7fa
7
+ data.tar.gz: 1b10e0243c70c005eadb3cc39482c52d9ae245dcd8457baea0a4a0bf4385558282819f18eae5969f5670984681d1122405a8282848816648464dcae741434324
@@ -170,7 +170,7 @@ class TreeMap
170
170
  key = @to
171
171
  if @to_bound == Bound::EXCLUSIVE
172
172
  relation = Relation::LOWER # 'to' is too high
173
- else comparison < 0
173
+ elsif comparison < 0
174
174
  relation = Relation::FLOOR # we already went lower
175
175
  end
176
176
  end
@@ -182,7 +182,7 @@ class TreeMap
182
182
  key = @from
183
183
  if @from_bound == Bound::EXCLUSIVE
184
184
  relation = Relation::HIGHER # 'from' is too low
185
- else comparison > 0
185
+ elsif comparison > 0
186
186
  relation = Relation::CEILING # we already went higher
187
187
  end
188
188
  end
@@ -321,7 +321,7 @@ class TreeMap
321
321
  case args.count
322
322
  when 1
323
323
  from_inclusive = args.first
324
- bounded_sub_map(fromInclusive, Bound::INCLUSIVE, nil, Bound::NO_BOUND)
324
+ bounded_sub_map(from_inclusive, Bound::INCLUSIVE, nil, Bound::NO_BOUND)
325
325
  when 2
326
326
  from, inclusive = *args
327
327
  from_bound = inclusive ? Bound::INCLUSIVE : Bound::EXCLUSIVE
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: treemap-fork
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4.1
4
+ version: 1.0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Ellis