active_wrapper 0.4.6 → 0.4.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/config/gemspec.yml +1 -1
- data/lib/active_wrapper/db.rb +4 -2
- data/lib/active_wrapper/tasks.rb +2 -0
- metadata +55 -70
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: cfa26f16a414552c4a7dc3f2971d2dd36439e115
|
4
|
+
data.tar.gz: a7666412df5ef3152239bcfdbf41f65c1877b2fb
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: cecdea9ee1899bf5724ace66a71f8549d6ae673587f9f1aa7c73d104c8fc6c79a708492eeeda6006703b25c10a3a3a24590086bfbda9a5241d469f8fdacc0e2f
|
7
|
+
data.tar.gz: 144629cfb4c09398fa7d1f5ff136b31a3c0b2a9777357c91c2d5efdaa38b5bb5856bb840d4f96e6672beb56e18cfc36ec11cffc71c2a3374571eec6bf06c4354
|
data/config/gemspec.yml
CHANGED
data/lib/active_wrapper/db.rb
CHANGED
@@ -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
|
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
|
data/lib/active_wrapper/tasks.rb
CHANGED
metadata
CHANGED
@@ -1,71 +1,63 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_wrapper
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
segments:
|
6
|
-
- 0
|
7
|
-
- 4
|
8
|
-
- 6
|
9
|
-
version: 0.4.6
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.4.7
|
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
|
-
|
18
|
-
|
19
|
-
dependencies:
|
20
|
-
- !ruby/object:Gem::Dependency
|
11
|
+
date: 2014-09-10 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
21
14
|
name: activerecord
|
22
|
-
|
23
|
-
|
24
|
-
requirements:
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
25
17
|
- - ~>
|
26
|
-
- !ruby/object:Gem::Version
|
27
|
-
|
28
|
-
- 3
|
29
|
-
- 0
|
30
|
-
version: "3.0"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '3.0'
|
31
20
|
type: :runtime
|
32
|
-
version_requirements: *id001
|
33
|
-
- !ruby/object:Gem::Dependency
|
34
|
-
name: rake
|
35
21
|
prerelease: false
|
36
|
-
|
37
|
-
requirements:
|
38
|
-
- -
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '3.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
|
-
|
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
|
-
|
55
|
-
- 1
|
56
|
-
- 0
|
57
|
-
version: "1.0"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '1.0'
|
58
48
|
type: :development
|
59
|
-
|
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
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
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:
|
103
|
+
rubygems_version: 2.0.14
|
119
104
|
signing_key:
|
120
|
-
specification_version:
|
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
|