active-dump 0.0.2 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +2 -2
- data/lib/active-dump.rb +7 -4
- data/lib/active-dump/rails.rb +2 -2
- data/lib/active-dump/version.rb +2 -2
- metadata +26 -12
data/README.md
CHANGED
data/lib/active-dump.rb
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
#
|
3
3
|
# File : active-dump.rb
|
4
4
|
# Maintainer : Felix C. Stegerman <flx@obfusk.net>
|
5
|
-
# Date : 2013-11-
|
5
|
+
# Date : 2013-11-19
|
6
6
|
#
|
7
7
|
# Copyright : Copyright (C) 2013 Felix C. Stegerman
|
8
8
|
# Licence : GPLv2 or EPLv1
|
@@ -117,9 +117,12 @@ module ActiveDump
|
|
117
117
|
# eager_load! all rails engines' models (if Rails is defined)
|
118
118
|
def self.eager_load! # {{{1
|
119
119
|
return false if @eager_load
|
120
|
-
|
121
|
-
e
|
122
|
-
|
120
|
+
if defined? ::Rails
|
121
|
+
::Rails::Engine::Railties.engines.each do |e|
|
122
|
+
e.eager_load!
|
123
|
+
end
|
124
|
+
::Rails.application.eager_load!
|
125
|
+
end
|
123
126
|
@eager_load = true
|
124
127
|
end # }}}1
|
125
128
|
|
data/lib/active-dump/rails.rb
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
#
|
3
3
|
# File : active-dump/rails.rb
|
4
4
|
# Maintainer : Felix C. Stegerman <flx@obfusk.net>
|
5
|
-
# Date : 2013-11-
|
5
|
+
# Date : 2013-11-19
|
6
6
|
#
|
7
7
|
# Copyright : Copyright (C) 2013 Felix C. Stegerman
|
8
8
|
# Licence : GPLv2 or EPLv1
|
@@ -17,7 +17,7 @@ require 'active-dump/rake'
|
|
17
17
|
module ActiveDump
|
18
18
|
|
19
19
|
# railtie that adds the rake tasks
|
20
|
-
class Railtie < Rails::Railtie
|
20
|
+
class Railtie < ::Rails::Railtie
|
21
21
|
rake_tasks { ActiveDump::Rake.define_tasks }
|
22
22
|
end
|
23
23
|
|
data/lib/active-dump/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active-dump
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.2.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-11-
|
12
|
+
date: 2013-11-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: activerecord
|
16
|
-
requirement:
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,15 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements:
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0'
|
25
30
|
- !ruby/object:Gem::Dependency
|
26
31
|
name: rake
|
27
|
-
requirement:
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
28
33
|
none: false
|
29
34
|
requirements:
|
30
35
|
- - ! '>='
|
@@ -32,10 +37,15 @@ dependencies:
|
|
32
37
|
version: '0'
|
33
38
|
type: :runtime
|
34
39
|
prerelease: false
|
35
|
-
version_requirements:
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
36
46
|
- !ruby/object:Gem::Dependency
|
37
47
|
name: rspec
|
38
|
-
requirement:
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
39
49
|
none: false
|
40
50
|
requirements:
|
41
51
|
- - ! '>='
|
@@ -43,7 +53,12 @@ dependencies:
|
|
43
53
|
version: '0'
|
44
54
|
type: :development
|
45
55
|
prerelease: false
|
46
|
-
version_requirements:
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
47
62
|
description: ! 'dump and restore activerecord from/to yaml
|
48
63
|
|
49
64
|
|
@@ -60,10 +75,10 @@ files:
|
|
60
75
|
- README.md
|
61
76
|
- Rakefile
|
62
77
|
- active-dump.gemspec
|
78
|
+
- lib/active-dump.rb
|
63
79
|
- lib/active-dump/rake.rb
|
64
|
-
- lib/active-dump/version.rb
|
65
80
|
- lib/active-dump/rails.rb
|
66
|
-
- lib/active-dump.rb
|
81
|
+
- lib/active-dump/version.rb
|
67
82
|
homepage: https://github.com/obfusk/active-dump
|
68
83
|
licenses:
|
69
84
|
- GPLv2
|
@@ -86,9 +101,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
86
101
|
version: '0'
|
87
102
|
requirements: []
|
88
103
|
rubyforge_project:
|
89
|
-
rubygems_version: 1.8.
|
104
|
+
rubygems_version: 1.8.23
|
90
105
|
signing_key:
|
91
106
|
specification_version: 3
|
92
107
|
summary: dump and restore activerecord from/to yaml
|
93
108
|
test_files: []
|
94
|
-
has_rdoc:
|