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 CHANGED
@@ -2,10 +2,10 @@
2
2
 
3
3
  File : README.md
4
4
  Maintainer : Felix C. Stegerman <flx@obfusk.net>
5
- Date : 2013-11-13
5
+ Date : 2013-11-19
6
6
 
7
7
  Copyright : Copyright (C) 2013 Felix C. Stegerman
8
- Version : v0.0.2
8
+ Version : v0.2.0
9
9
 
10
10
  []: }}}1
11
11
 
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-13
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
- Rails::Engine::Railties.engines.each do |e|
121
- e.eager_load!
122
- end if defined? Rails
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
 
@@ -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-13
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
 
@@ -1,4 +1,4 @@
1
1
  module ActiveDump
2
- VERSION = '0.0.2'
3
- DATE = '2013-11-13'
2
+ VERSION = '0.2.0'
3
+ DATE = '2013-11-19'
4
4
  end
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.2
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-13 00:00:00.000000000 Z
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: &12593080 !ruby/object:Gem::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: *12593080
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: &12592200 !ruby/object:Gem::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: *12592200
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: &12589880 !ruby/object:Gem::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: *12589880
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.11
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: