footing 0.0.9 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -7,4 +7,5 @@ end
7
7
 
8
8
  group :test do
9
9
  gem "rspec"
10
+ gem "grumpy_old_man"
10
11
  end
@@ -3,6 +3,7 @@ GEM
3
3
  specs:
4
4
  coderay (1.0.7)
5
5
  diff-lcs (1.1.3)
6
+ grumpy_old_man (0.1.3)
6
7
  method_source (0.8)
7
8
  pry (0.9.10)
8
9
  coderay (~> 1.0.5)
@@ -23,6 +24,7 @@ PLATFORMS
23
24
  ruby
24
25
 
25
26
  DEPENDENCIES
27
+ grumpy_old_man
26
28
  pry
27
29
  rspec
28
30
  yard
@@ -3,14 +3,12 @@ module Footing
3
3
 
4
4
  # Returns a positive representation of the number.
5
5
  def positive
6
- return self if self >= 0
7
- flip_sign
6
+ abs
8
7
  end
9
8
 
10
9
  # Returns a negative representation of the number.
11
10
  def negative
12
- return self if self < 0
13
- flip_sign
11
+ abs.flip_sign
14
12
  end
15
13
 
16
14
  # Flips the sign on the number making it either either positive or negative.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: footing
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-09-03 00:00:00.000000000 Z
12
+ date: 2012-09-06 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: ! ' Footing is a utillity belt library that employs sane monkey patching.
15
15