active_wrapper-ar2 0.4.6 → 0.4.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 0ae8377266201b2f7d984049bb13eef9ff3d98bf
4
+ data.tar.gz: ebc30726a722ffec339f9c268b8135c8ba78d0bd
5
+ SHA512:
6
+ metadata.gz: e0a7153acfbf2a909802a3feb3bf023ec943ea09d0c8f07488adc7692f2a4e6dbbd3d18104d605a7d2f84cf233cbe1f45d975b7e5dc70e2936ecc9e422497c1e
7
+ data.tar.gz: 1411f945b33124613316e38933ff503f8079863286ad78b68fe67cace286792cd6811351d726ff037c179cd2692a41347255288a021a3125802f8112508bc2e2
@@ -2,8 +2,8 @@ active_wrapper:
2
2
  rake: '>=0.8.7'
3
3
  rspec: '~>1.0'
4
4
  default:
5
- activerecord: '~>3.0'
6
- activesupport: '~>3.0'
5
+ activerecord: '>=3.0'
6
+ activesupport: '>=3.0'
7
7
  ar2:
8
- activerecord: '~>2.0'
9
- solo: null
8
+ activerecord: '>=2.0'
9
+ solo: null
@@ -1,5 +1,5 @@
1
1
  name: active_wrapper
2
- version: 0.4.6
2
+ version: 0.4.9
3
3
  authors:
4
4
  - Winton Welsh
5
5
  email: mail@wintoni.us
@@ -1,3 +1,5 @@
1
+ require 'erb'
2
+
1
3
  module ActiveWrapper
2
4
  class Db
3
5
 
@@ -7,7 +9,7 @@ module ActiveWrapper
7
9
  @adapter = options[:adapter]
8
10
  @base = options[:base]
9
11
  if File.exists?(path = "#{base}/config/database.yml")
10
- @config = YAML::load(File.open(path))
12
+ @config = YAML.load(ERB.new(File.new(path).read).result)
11
13
  else
12
14
  raise "Could not find #{path}"
13
15
  end
@@ -106,4 +108,4 @@ module ActiveWrapper
106
108
  end
107
109
  end
108
110
  end
109
- end
111
+ end
@@ -2,6 +2,8 @@ require File.expand_path("#{File.dirname(__FILE__)}/../active_wrapper")
2
2
 
3
3
  module ActiveWrapper
4
4
  class Tasks
5
+
6
+ include Rake::DSL
5
7
 
6
8
  def initialize(options={}, &block)
7
9
 
metadata CHANGED
@@ -1,71 +1,63 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: active_wrapper-ar2
3
- version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 4
8
- - 6
9
- version: 0.4.6
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.4.9
10
5
  platform: ruby
11
- authors:
6
+ authors:
12
7
  - Winton Welsh
13
8
  autorequire:
14
9
  bindir: bin
15
10
  cert_chain: []
16
-
17
- date: 2011-09-19 00:00:00 -07:00
18
- default_executable:
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
11
+ date: 2014-10-03 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
21
14
  name: activerecord
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
24
- requirements:
25
- - - ~>
26
- - !ruby/object:Gem::Version
27
- segments:
28
- - 2
29
- - 0
30
- version: "2.0"
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '>='
18
+ - !ruby/object:Gem::Version
19
+ version: '2.0'
31
20
  type: :runtime
32
- version_requirements: *id001
33
- - !ruby/object:Gem::Dependency
34
- name: rake
35
21
  prerelease: false
36
- requirement: &id002 !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ">="
39
- - !ruby/object:Gem::Version
40
- segments:
41
- - 0
42
- - 8
43
- - 7
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '>='
25
+ - !ruby/object:Gem::Version
26
+ version: '2.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '>='
32
+ - !ruby/object:Gem::Version
44
33
  version: 0.8.7
45
34
  type: :development
46
- version_requirements: *id002
47
- - !ruby/object:Gem::Dependency
48
- name: rspec
49
35
  prerelease: false
50
- requirement: &id003 !ruby/object:Gem::Requirement
51
- requirements:
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: 0.8.7
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
52
45
  - - ~>
53
- - !ruby/object:Gem::Version
54
- segments:
55
- - 1
56
- - 0
57
- version: "1.0"
46
+ - !ruby/object:Gem::Version
47
+ version: '1.0'
58
48
  type: :development
59
- version_requirements: *id003
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: '1.0'
60
55
  description: Wraps ActiveRecord and Logger for use in non-Rails environments
61
56
  email: mail@wintoni.us
62
57
  executables: []
63
-
64
58
  extensions: []
65
-
66
59
  extra_rdoc_files: []
67
-
68
- files:
60
+ files:
69
61
  - .gitignore
70
62
  - LICENSE
71
63
  - README.md
@@ -89,37 +81,30 @@ files:
89
81
  - spec/fixtures/gemspec.yml
90
82
  - spec/spec.opts
91
83
  - spec/spec_helper.rb
92
- has_rdoc: true
93
84
  homepage: http://github.com/winton/active_wrapper
94
85
  licenses: []
95
-
86
+ metadata: {}
96
87
  post_install_message:
97
88
  rdoc_options: []
98
-
99
- require_paths:
89
+ require_paths:
100
90
  - lib
101
- required_ruby_version: !ruby/object:Gem::Requirement
102
- requirements:
103
- - - ">="
104
- - !ruby/object:Gem::Version
105
- segments:
106
- - 0
107
- version: "0"
108
- required_rubygems_version: !ruby/object:Gem::Requirement
109
- requirements:
110
- - - ">="
111
- - !ruby/object:Gem::Version
112
- segments:
113
- - 0
114
- version: "0"
91
+ required_ruby_version: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - '>='
94
+ - !ruby/object:Gem::Version
95
+ version: '0'
96
+ required_rubygems_version: !ruby/object:Gem::Requirement
97
+ requirements:
98
+ - - '>='
99
+ - !ruby/object:Gem::Version
100
+ version: '0'
115
101
  requirements: []
116
-
117
102
  rubyforge_project:
118
- rubygems_version: 1.3.6
103
+ rubygems_version: 2.0.14
119
104
  signing_key:
120
- specification_version: 3
105
+ specification_version: 4
121
106
  summary: Wraps ActiveRecord and Logger for use in non-Rails environments
122
- test_files:
107
+ test_files:
123
108
  - spec/active_wrapper/db_spec.rb
124
109
  - spec/active_wrapper/gems_spec.rb
125
110
  - spec/active_wrapper/log_spec.rb