active_scaffold_export_vho 3.1.1 → 3.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -22,7 +22,7 @@ Jeweler::Tasks.new do |gem|
22
22
  gem.description = %Q{Exporting Records with ActiveScaffold}
23
23
  gem.email = "activescaffold@googlegroups.com"
24
24
  gem.authors = ["Volker Hochstein"]
25
- gem.add_runtime_dependency 'active_scaffold_vho', '~> 3.1'
25
+ gem.add_runtime_dependency 'active_scaffold_vho', '>= 3.1.2'
26
26
  # Include your dependencies below. Runtime dependencies are required when using your gem,
27
27
  # and development dependencies are only needed for development (ie running rake tasks, tests, etc)
28
28
  # gem.add_runtime_dependency 'jabber4r', '> 0.1'
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{active_scaffold_export_vho}
8
- s.version = "3.1.1"
8
+ s.version = "3.1.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Volker Hochstein"]
12
- s.date = %q{2012-01-12}
12
+ s.date = %q{2012-02-11}
13
13
  s.description = %q{Exporting Records with ActiveScaffold}
14
14
  s.email = %q{activescaffold@googlegroups.com}
15
15
  s.extra_rdoc_files = [
@@ -52,16 +52,16 @@ Gem::Specification.new do |s|
52
52
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
53
53
  s.add_development_dependency(%q<jeweler>, [">= 0"])
54
54
  s.add_development_dependency(%q<rcov>, [">= 0"])
55
- s.add_runtime_dependency(%q<active_scaffold_vho>, ["~> 3.1"])
55
+ s.add_runtime_dependency(%q<active_scaffold_vho>, [">= 3.1.2"])
56
56
  else
57
57
  s.add_dependency(%q<jeweler>, [">= 0"])
58
58
  s.add_dependency(%q<rcov>, [">= 0"])
59
- s.add_dependency(%q<active_scaffold_vho>, ["~> 3.1"])
59
+ s.add_dependency(%q<active_scaffold_vho>, [">= 3.1.2"])
60
60
  end
61
61
  else
62
62
  s.add_dependency(%q<jeweler>, [">= 0"])
63
63
  s.add_dependency(%q<rcov>, [">= 0"])
64
- s.add_dependency(%q<active_scaffold_vho>, ["~> 3.1"])
64
+ s.add_dependency(%q<active_scaffold_vho>, [">= 3.1.2"])
65
65
  end
66
66
  end
67
67
 
@@ -1,11 +1,6 @@
1
- ActiveScaffold rescue throw "should have included ActiveScaffold plug in first. Please make sure that this plug-in comes alphabetically after the ActiveScaffold plug-in"
2
-
3
1
  require 'active_scaffold_export/engine'
4
2
  require 'active_scaffold_export/version'
5
3
 
6
- # Load our overrides
7
- require "active_scaffold_export/config/core.rb"
8
-
9
4
  module ActiveScaffoldExport
10
5
  def self.root
11
6
  File.dirname(__FILE__) + "/.."
@@ -24,6 +19,4 @@ module ActiveScaffold
24
19
  module Helpers
25
20
  ActiveScaffold.autoload_subdir('helpers', self, File.dirname(__FILE__))
26
21
  end
27
- end
28
-
29
- ActionView::Base.send(:include, ActiveScaffold::Helpers::ExportHelpers)
22
+ end
@@ -3,6 +3,15 @@ module ActiveScaffoldExport
3
3
  # not sure if it is a must though...
4
4
  #module Rails
5
5
  class Engine < ::Rails::Engine
6
+ initializer("initialize_active_scaffold_export", :after => "initialize_active_scaffold") do
7
+ ActiveSupport.on_load(:action_controller) do
8
+ require "active_scaffold_export/config/core.rb"
9
+ end
10
+ end
11
+
12
+ ActiveSupport.on_load(:action_view) do
13
+ include ActiveScaffold::Helpers::ExportHelpers
14
+ end
6
15
  end
7
16
  #end
8
17
  end
@@ -2,7 +2,7 @@ module ActiveScaffoldExport
2
2
  module Version
3
3
  MAJOR = 3
4
4
  MINOR = 1
5
- PATCH = 1
5
+ PATCH = 2
6
6
 
7
7
  STRING = [MAJOR, MINOR, PATCH].compact.join('.')
8
8
  end
metadata CHANGED
@@ -5,9 +5,9 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 3
7
7
  - 1
8
- - 1
8
+ - 2
9
9
  segments_generated: true
10
- version: 3.1.1
10
+ version: 3.1.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Volker Hochstein
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-01-12 00:00:00 +01:00
18
+ date: 2012-02-11 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -51,13 +51,14 @@ dependencies:
51
51
  requirement: &id003 !ruby/object:Gem::Requirement
52
52
  none: false
53
53
  requirements:
54
- - - ~>
54
+ - - ">="
55
55
  - !ruby/object:Gem::Version
56
56
  segments:
57
57
  - 3
58
58
  - 1
59
+ - 2
59
60
  segments_generated: true
60
- version: "3.1"
61
+ version: 3.1.2
61
62
  type: :runtime
62
63
  prerelease: false
63
64
  version_requirements: *id003
@@ -106,7 +107,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
106
107
  requirements:
107
108
  - - ">="
108
109
  - !ruby/object:Gem::Version
109
- hash: 1839779933043901070
110
+ hash: -1766451578342254047
110
111
  segments:
111
112
  - 0
112
113
  segments_generated: true