tf2r 0.3.0 → 0.3.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f93befc5ee498a05c0f863dca2156747a184e75b
4
- data.tar.gz: 88a9ee5bb47d1eb9725065277f53bc251f309f24
3
+ metadata.gz: d0228ccd1fe398e24c3437a9130d1bb8c60354f2
4
+ data.tar.gz: 1d574edad3dfbc811e332ece10e40c8faaa37343
5
5
  SHA512:
6
- metadata.gz: 1a6339383a2d14a9cc3da5bb378d0f2fbced0d31f7790ea47b311542ec554cb74d0855c6e7fd12493b8e2deb7415d17f2d41d257d4ad5ba78cb451d4da694f81
7
- data.tar.gz: 8816069f87359a8b4efee8c4dbc6292a23885e16e86a288b7c1c5a3a570ac08f4c87bf2d7bf66270d9e9404af1497679bb5811a2786f1b9a28e37cb2205206c3
6
+ metadata.gz: 5986819d3cde531f50cd27aebf7aab9d5743f2fe770cfb29f6e27b6e79f9e44282b3396e9d70fc6bf7068f1832ea20856565c01621bc29f64e045429c2a24027
7
+ data.tar.gz: 40f6ab0a5eb7dc46dac07043d59de61308a188e22d76b053437f1b16f0a448d5a697f35322bc0666c8ea2bcbae38b2e551a6d370c731c7972994061e51d6a5b1
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- tf2r (0.3.0)
4
+ tf2r (0.3.1)
5
5
  mechanize (~> 2.7)
6
6
 
7
7
  GEM
@@ -29,10 +29,10 @@ module TF2R
29
29
 
30
30
  # TODO: test raffles with max_entries greater than 2500
31
31
  def participants
32
- if max_entries > 2500
33
- @normalized_participants ||= normalize_entries(@api_info['newentry'])
34
- else
32
+ if max_entries > API::MAX_ENTRY_RESPONSE_COUNT
35
33
  @full_participants
34
+ else
35
+ @normalized_participants ||= normalize_entries(@api_info['newentry'])
36
36
  end
37
37
  end
38
38
 
@@ -1,3 +1,3 @@
1
1
  module TF2R
2
- VERSION = '0.3.0'
2
+ VERSION = '0.3.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tf2r
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Justin Kim