punching_bag 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.
data/app/models/punch.rb CHANGED
@@ -92,7 +92,7 @@ class Punch < ActiveRecord::Base
92
92
  end
93
93
 
94
94
  def self.average_for(punchables)
95
- if punchables.map(&:class).uniq.length != 1
95
+ if punchables.map(&:class).uniq.length > 1
96
96
  raise ArgumentError, 'Punchables must all be of the same class'
97
97
  end
98
98
 
@@ -1,5 +1,5 @@
1
1
  module PunchingBag
2
2
 
3
- VERSION = '0.3.0'
3
+ VERSION = '0.3.1'
4
4
 
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: punching_bag
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: