active_scaffold_export 3.0.2 → 3.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{active_scaffold_export}
8
- s.version = "3.0.1"
8
+ s.version = "3.0.3"
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", "Mojo Tech, LLC", "see commits"]
@@ -35,6 +35,7 @@ Gem::Specification.new do |s|
35
35
  "lib/active_scaffold/actions/export.rb",
36
36
  "lib/active_scaffold/config/export.rb",
37
37
  "lib/active_scaffold/helpers/export_helpers.rb",
38
+ "lib/active_scaffold/helpers/view_helpers_override.rb",
38
39
  "lib/active_scaffold_export.rb",
39
40
  "lib/active_scaffold_export/config/core.rb",
40
41
  "lib/active_scaffold_export/version.rb"
@@ -54,14 +55,14 @@ Gem::Specification.new do |s|
54
55
  s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
55
56
  s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
56
57
  s.add_development_dependency(%q<rcov>, [">= 0"])
57
- s.add_runtime_dependency(%q<active_scaffold>, [">= 3.0.5"])
58
+ s.add_runtime_dependency(%q<active_scaffold>, [">= 3.0.11"])
58
59
  s.add_runtime_dependency(%q<fastercsv>, [">= 0"])
59
60
  else
60
61
  s.add_dependency(%q<shoulda>, [">= 0"])
61
62
  s.add_dependency(%q<bundler>, ["~> 1.0.0"])
62
63
  s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
63
64
  s.add_dependency(%q<rcov>, [">= 0"])
64
- s.add_dependency(%q<active_scaffold>, [">= 3.0.5"])
65
+ s.add_dependency(%q<active_scaffold>, [">= 3.0.11"])
65
66
  s.add_dependency(%q<fastercsv>, [">= 0"])
66
67
  end
67
68
  else
@@ -69,7 +70,7 @@ Gem::Specification.new do |s|
69
70
  s.add_dependency(%q<bundler>, ["~> 1.0.0"])
70
71
  s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
71
72
  s.add_dependency(%q<rcov>, [">= 0"])
72
- s.add_dependency(%q<active_scaffold>, [">= 3.0.5"])
73
+ s.add_dependency(%q<active_scaffold>, [">= 3.0.11"])
73
74
  s.add_dependency(%q<fastercsv>, [">= 0"])
74
75
  end
75
76
  end
@@ -0,0 +1,17 @@
1
+ # Need to open the AS module carefully due to Rails 2.3 lazy loading
2
+ ActiveScaffold::Helpers::ViewHelpers.module_eval do
3
+ # Add the export plugin includes
4
+
5
+ # Provides stylesheets to include with +stylesheet_link_tag+
6
+ def active_scaffold_stylesheets_with_export(frontend = :default)
7
+ active_scaffold_stylesheets_without_export.to_a << ActiveScaffold::Config::Core.asset_path("export-stylesheet.css", frontend)
8
+ end
9
+ alias_method_chain :active_scaffold_stylesheets, :export
10
+
11
+ # Provides stylesheets for IE to include with +stylesheet_link_tag+
12
+ def active_scaffold_ie_stylesheets_with_export(frontend = :default)
13
+ active_scaffold_ie_stylesheets_without_export.to_a << ActiveScaffold::Config::Core.asset_path("export-stylesheet-ie.css", frontend)
14
+ end
15
+ alias_method_chain :active_scaffold_ie_stylesheets, :export
16
+
17
+ end
@@ -2,7 +2,7 @@ module ActiveScaffoldExport
2
2
  module Version
3
3
  MAJOR = 3
4
4
  MINOR = 0
5
- PATCH = 2
5
+ PATCH = 3
6
6
 
7
7
  STRING = [MAJOR, MINOR, PATCH].compact.join('.')
8
8
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_scaffold_export
3
3
  version: !ruby/object:Gem::Version
4
- hash: 3
4
+ hash: 1
5
5
  prerelease: false
6
6
  segments:
7
7
  - 3
8
8
  - 0
9
- - 2
10
- version: 3.0.2
9
+ - 3
10
+ version: 3.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Volker Hochstein
@@ -138,6 +138,7 @@ files:
138
138
  - lib/active_scaffold/actions/export.rb
139
139
  - lib/active_scaffold/config/export.rb
140
140
  - lib/active_scaffold/helpers/export_helpers.rb
141
+ - lib/active_scaffold/helpers/view_helpers_override.rb
141
142
  - lib/active_scaffold_export.rb
142
143
  - lib/active_scaffold_export/config/core.rb
143
144
  - lib/active_scaffold_export/version.rb