brdinheiro 2.0.6 → 2.0.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,6 +4,6 @@ module BrDinheiro
4
4
 
5
5
 
6
6
 
7
- STRING = "2.0.6"
7
+ STRING = "2.0.7"
8
8
  end
9
9
  end
data/lib/brdinheiro.rb CHANGED
@@ -10,11 +10,20 @@ nil_class).each {|req| require File.dirname(__FILE__) + "/brdinheiro/#{req}"}
10
10
  %w(bigdecimal
11
11
  rubygems
12
12
  active_record
13
- activesupport
14
- brnumeros).each {|req| require req }
13
+ activesupport).each {|req| require req }
14
+
15
+ begin
16
+ require 'brnumeros'
17
+ rescue MissingSourceFile
18
+ # probably not installed yet as a gem, so load from source
19
+ begin
20
+ require File.dirname(__FILE__) + '/../../brnumeros/lib/brnumeros'
21
+ rescue
22
+ end
23
+ end
15
24
 
16
25
  String.send(:include, DinheiroUtil)
17
26
  ActiveRecord::Base.send :include, DinheiroActiveRecord
18
27
 
19
28
  module BrDinheiro
20
- end
29
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brdinheiro
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.6
4
+ version: 2.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - "Marcos Tapaj\xC3\xB3s"
@@ -12,7 +12,7 @@ autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
14
 
15
- date: 2008-09-08 00:00:00 -03:00
15
+ date: 2008-09-23 00:00:00 -03:00
16
16
  default_executable:
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency