health_stats 0.0.1 → 0.0.2

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/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.1
1
+ 0.0.2
data/health_stats.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{health_stats}
8
- s.version = "0.0.1"
8
+ s.version = "0.0.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Mark Martin"]
data/lib/health_stats.rb CHANGED
@@ -3,10 +3,7 @@ module HealthStats
3
3
  RequiredAttributes = [:dob, :weight, :height, :gender]
4
4
 
5
5
  RequiredAttributes.each do |attribute|
6
- define_method(attribute) do
7
- message = "#{attribute} is not implemented"
8
- raise HealthStats::AttributeError, message
9
- end
6
+ define_method(attribute) { nil }
10
7
  end
11
8
  end
12
9
 
Binary file
@@ -5,21 +5,6 @@ require 'activesupport'
5
5
  REQUIRED_ATTRIBUTES = [:height, :weight, :gender, :dob]
6
6
 
7
7
  describe 'HealthStats' do
8
- describe 'required attributes' do
9
- before do
10
- @klass = Class.new do
11
- include HealthStats
12
- end
13
- end
14
-
15
- REQUIRED_ATTRIBUTES.each do |attribute|
16
- it "should include #{attribute}" do
17
- person = @klass.new
18
- lambda { person.send(attribute) }.should.raise(HealthStats::AttributeError)
19
- end
20
- end
21
- end
22
-
23
8
  describe 'included methods' do
24
9
  before do
25
10
  @klass = Class.new do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: health_stats
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Martin