bd_money 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -15,7 +15,7 @@ require 'jeweler'
15
15
  Jeweler::Tasks.new do |gem|
16
16
  # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
17
17
  gem.name = "bd_money"
18
- gem.homepage = "http://github.com/aemadrid/bd_money"
18
+ gem.homepage = "http://github.com/NorthPointAdvisors/bd_money"
19
19
  gem.license = "MIT"
20
20
  gem.summary = %Q{Managing money objects sanely}
21
21
  gem.description = %Q{This library makes it easier to deal with Money values, storing them as BigDecimal to avoid floating-point math errors.}
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.1
1
+ 0.0.2
data/bd_money.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{bd_money}
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 = ["Adrian Madrid"]
12
- s.date = %q{2012-03-09}
12
+ s.date = %q{2012-03-10}
13
13
  s.description = %q{This library makes it easier to deal with Money values, storing them as BigDecimal to avoid floating-point math errors.}
14
14
  s.email = %q{aemadrid@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -34,7 +34,7 @@ Gem::Specification.new do |s|
34
34
  "spec/rails_spec.rb",
35
35
  "spec/spec_helper.rb"
36
36
  ]
37
- s.homepage = %q{http://github.com/aemadrid/bd_money}
37
+ s.homepage = %q{http://github.com/NorthPointAdvisors/bd_money}
38
38
  s.licenses = ["MIT"]
39
39
  s.require_paths = ["lib"]
40
40
  s.rubygems_version = %q{1.4.2}
@@ -22,7 +22,7 @@ module ActiveRecord #:nodoc:
22
22
  end
23
23
 
24
24
  module ClassMethods
25
- def money(name, options = {})
25
+ def money(name, options = { })
26
26
  define_method "#{name}=" do |value|
27
27
  if value.present?
28
28
  self[name] = ::Money.new(value, options[:precision], options[:round_mode]).amount
@@ -31,7 +31,6 @@ module ActiveRecord #:nodoc:
31
31
  end
32
32
  end
33
33
  define_method "#{name}" do
34
- puts "#{name} : self[#{name}] (1) : #{self[name]} : #{self[name].class}"
35
34
  return nil unless self[name].present?
36
35
  ::Money.new self[name], options[:precision], options[:round_mode]
37
36
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bd_money
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
9
+ - 2
10
+ version: 0.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Adrian Madrid
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-03-09 00:00:00 -07:00
18
+ date: 2012-03-10 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -152,7 +152,7 @@ files:
152
152
  - spec/rails_spec.rb
153
153
  - spec/spec_helper.rb
154
154
  has_rdoc: true
155
- homepage: http://github.com/aemadrid/bd_money
155
+ homepage: http://github.com/NorthPointAdvisors/bd_money
156
156
  licenses:
157
157
  - MIT
158
158
  post_install_message: