counterfeit 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -18,7 +18,7 @@ Gem::Specification.new do |s|
18
18
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
19
19
  s.require_paths = ['lib']
20
20
 
21
- s.add_dependency 'rails', '~> 3.0'
21
+ s.add_dependency 'activesupport', '~> 3.0'
22
22
  s.add_dependency 'money', '~> 3.7.1'
23
23
  s.add_dependency 'google_currency', '~> 1.2.0'
24
24
 
@@ -5,7 +5,8 @@ require 'counterfeit/schema'
5
5
  require 'counterfeit/active_record'
6
6
  require 'counterfeit/money'
7
7
 
8
-
9
- ActiveRecord::Base.send :include, Counterfeit::ActiveRecord
10
- ActiveRecord::ConnectionAdapters::Table.send :include, Counterfeit::Schema
11
- ActiveRecord::ConnectionAdapters::TableDefinition.send :include, Counterfeit::Schema
8
+ if defined? ActiveRecord
9
+ ActiveRecord::Base.send :include, Counterfeit::ActiveRecord
10
+ ActiveRecord::ConnectionAdapters::Table.send :include, Counterfeit::Schema
11
+ ActiveRecord::ConnectionAdapters::TableDefinition.send :include, Counterfeit::Schema
12
+ end
@@ -1,3 +1,5 @@
1
+ require 'active_support'
2
+
1
3
  module Counterfeit
2
4
  module ActiveRecord
3
5
  extend ActiveSupport::Concern
@@ -1,3 +1,5 @@
1
+ require 'active_support/core_ext/module'
2
+
1
3
  # monkeypatching Money class to catch Money::Bank::UnknownRate error
2
4
 
3
5
  class Money
@@ -1,3 +1,3 @@
1
1
  module Counterfeit
2
- VERSION = '0.0.2'
2
+ VERSION = '0.0.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: counterfeit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,12 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-07-25 00:00:00.000000000 +07:00
13
- default_executable:
12
+ date: 2011-08-23 00:00:00.000000000Z
14
13
  dependencies:
15
14
  - !ruby/object:Gem::Dependency
16
- name: rails
17
- requirement: &2158214320 !ruby/object:Gem::Requirement
15
+ name: activesupport
16
+ requirement: &70217507757720 !ruby/object:Gem::Requirement
18
17
  none: false
19
18
  requirements:
20
19
  - - ~>
@@ -22,10 +21,10 @@ dependencies:
22
21
  version: '3.0'
23
22
  type: :runtime
24
23
  prerelease: false
25
- version_requirements: *2158214320
24
+ version_requirements: *70217507757720
26
25
  - !ruby/object:Gem::Dependency
27
26
  name: money
28
- requirement: &2158213820 !ruby/object:Gem::Requirement
27
+ requirement: &70217507757220 !ruby/object:Gem::Requirement
29
28
  none: false
30
29
  requirements:
31
30
  - - ~>
@@ -33,10 +32,10 @@ dependencies:
33
32
  version: 3.7.1
34
33
  type: :runtime
35
34
  prerelease: false
36
- version_requirements: *2158213820
35
+ version_requirements: *70217507757220
37
36
  - !ruby/object:Gem::Dependency
38
37
  name: google_currency
39
- requirement: &2158213360 !ruby/object:Gem::Requirement
38
+ requirement: &70217507756760 !ruby/object:Gem::Requirement
40
39
  none: false
41
40
  requirements:
42
41
  - - ~>
@@ -44,10 +43,10 @@ dependencies:
44
43
  version: 1.2.0
45
44
  type: :runtime
46
45
  prerelease: false
47
- version_requirements: *2158213360
46
+ version_requirements: *70217507756760
48
47
  - !ruby/object:Gem::Dependency
49
48
  name: sqlite3
50
- requirement: &2158212900 !ruby/object:Gem::Requirement
49
+ requirement: &70217507756300 !ruby/object:Gem::Requirement
51
50
  none: false
52
51
  requirements:
53
52
  - - ~>
@@ -55,10 +54,10 @@ dependencies:
55
54
  version: 1.3.3
56
55
  type: :development
57
56
  prerelease: false
58
- version_requirements: *2158212900
57
+ version_requirements: *70217507756300
59
58
  - !ruby/object:Gem::Dependency
60
59
  name: rspec
61
- requirement: &2158212440 !ruby/object:Gem::Requirement
60
+ requirement: &70217507755840 !ruby/object:Gem::Requirement
62
61
  none: false
63
62
  requirements:
64
63
  - - ~>
@@ -66,7 +65,7 @@ dependencies:
66
65
  version: 2.6.0
67
66
  type: :development
68
67
  prerelease: false
69
- version_requirements: *2158212440
68
+ version_requirements: *70217507755840
70
69
  description: Easy Money gem integration for rails 3.
71
70
  email:
72
71
  - rwz@duckroll.ru
@@ -88,7 +87,6 @@ files:
88
87
  - spec/models.rb
89
88
  - spec/schema.rb
90
89
  - spec/spec_helper.rb
91
- has_rdoc: true
92
90
  homepage: https://github.com/rwz/counterfeit
93
91
  licenses: []
94
92
  post_install_message:
@@ -109,7 +107,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
109
107
  version: '0'
110
108
  requirements: []
111
109
  rubyforge_project: counterfeit
112
- rubygems_version: 1.6.2
110
+ rubygems_version: 1.8.8
113
111
  signing_key:
114
112
  specification_version: 3
115
113
  summary: Easy Money gem integration for rails 3.