poj_org 0.4.7 → 0.4.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/poj_org/user.rb +7 -1
  2. metadata +1 -1
@@ -43,7 +43,13 @@ module PojOrg
43
43
  break if element.empty?
44
44
  ids << element.to_i
45
45
  end
46
- ids += code_ids(options.merge(top: ids.last)) unless ids.empty?
46
+ unless ids.empty?
47
+ if options[:bottom] && ids.last <= options[:bottom]
48
+ ids = ids.keep_if { |id| id > options[:bottom] }
49
+ else
50
+ ids += code_ids(options.merge(top: ids.last))
51
+ end
52
+ end
47
53
  ids
48
54
  end
49
55
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: poj_org
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.7
4
+ version: 0.4.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: