active_scaffold_export_vho 3.0.0 → 3.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/active_scaffold_export_vho.gemspec +72 -0
- data/frontends/default/views/_show_export.html.erb +2 -2
- data/init.rb +0 -2
- data/lib/active_scaffold_export.rb +2 -2
- data/lib/active_scaffold_export/config/core.rb +8 -7
- data/lib/active_scaffold_export/version.rb +1 -1
- data/lib/active_scaffold_export_vho.rb +1 -1
- metadata +5 -4
@@ -0,0 +1,72 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = %q{active_scaffold_export_vho}
|
8
|
+
s.version = "3.0.1"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Volker Hochstein"]
|
12
|
+
s.date = %q{2011-02-01}
|
13
|
+
s.description = %q{Exporting Records with ActiveScaffold}
|
14
|
+
s.email = %q{activescaffold@googlegroups.com}
|
15
|
+
s.extra_rdoc_files = [
|
16
|
+
"LICENSE.txt",
|
17
|
+
"README"
|
18
|
+
]
|
19
|
+
s.files = [
|
20
|
+
".document",
|
21
|
+
"LICENSE.txt",
|
22
|
+
"README",
|
23
|
+
"Rakefile",
|
24
|
+
"active_scaffold_export_vho.gemspec",
|
25
|
+
"frontends/default/images/export.png",
|
26
|
+
"frontends/default/stylesheets/export-stylesheet-ie.css",
|
27
|
+
"frontends/default/stylesheets/export-stylesheet.css",
|
28
|
+
"frontends/default/views/_export.csv.erb",
|
29
|
+
"frontends/default/views/_export_form_body.html.erb",
|
30
|
+
"frontends/default/views/_show_export.html.erb",
|
31
|
+
"frontends/default/views/show_export.html.erb",
|
32
|
+
"init.rb",
|
33
|
+
"lib/active_scaffold/actions/export.rb",
|
34
|
+
"lib/active_scaffold/config/export.rb",
|
35
|
+
"lib/active_scaffold/helpers/export_helpers.rb",
|
36
|
+
"lib/active_scaffold_export.rb",
|
37
|
+
"lib/active_scaffold_export/config/core.rb",
|
38
|
+
"lib/active_scaffold_export/version.rb",
|
39
|
+
"lib/active_scaffold_export_vho.rb"
|
40
|
+
]
|
41
|
+
s.homepage = %q{http://github.com/vhochstein/active_scaffold_export}
|
42
|
+
s.licenses = ["MIT"]
|
43
|
+
s.require_paths = ["lib"]
|
44
|
+
s.rubygems_version = %q{1.3.7}
|
45
|
+
s.summary = %q{Exporting Records with ActiveScaffold}
|
46
|
+
|
47
|
+
if s.respond_to? :specification_version then
|
48
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
49
|
+
s.specification_version = 3
|
50
|
+
|
51
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
52
|
+
s.add_development_dependency(%q<shoulda>, [">= 0"])
|
53
|
+
s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
|
54
|
+
s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
|
55
|
+
s.add_development_dependency(%q<rcov>, [">= 0"])
|
56
|
+
s.add_runtime_dependency(%q<active_scaffold_vho>, ["~> 3.0"])
|
57
|
+
else
|
58
|
+
s.add_dependency(%q<shoulda>, [">= 0"])
|
59
|
+
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
60
|
+
s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
|
61
|
+
s.add_dependency(%q<rcov>, [">= 0"])
|
62
|
+
s.add_dependency(%q<active_scaffold_vho>, ["~> 3.0"])
|
63
|
+
end
|
64
|
+
else
|
65
|
+
s.add_dependency(%q<shoulda>, [">= 0"])
|
66
|
+
s.add_dependency(%q<bundler>, ["~> 1.0.0"])
|
67
|
+
s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
|
68
|
+
s.add_dependency(%q<rcov>, [">= 0"])
|
69
|
+
s.add_dependency(%q<active_scaffold_vho>, ["~> 3.0"])
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
@@ -1,7 +1,7 @@
|
|
1
1
|
<%= render :partial => "base_form", :locals => {:xhr => false,
|
2
2
|
:form_action => :export,
|
3
3
|
:url_options => params_for(:action => :export, :format => 'csv'),
|
4
|
-
:method => :
|
4
|
+
:method => :post,
|
5
5
|
:cancel_link => true,
|
6
6
|
:headline => as_('Columns to Export'),
|
7
|
-
:body_partial => 'export_form_body'} %>
|
7
|
+
:body_partial => 'export_form_body'} %>
|
data/init.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
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
2
|
|
3
3
|
# Load our overrides
|
4
|
-
require "
|
4
|
+
require "active_scaffold_export/config/core.rb"
|
5
5
|
|
6
6
|
module ActiveScaffoldExport
|
7
7
|
def self.root
|
@@ -36,4 +36,4 @@ Rails::Application.initializer("active_scaffold_export.install_assets", :after =
|
|
36
36
|
rescue
|
37
37
|
raise $! unless Rails.env == 'production'
|
38
38
|
end
|
39
|
-
end
|
39
|
+
end if defined?(ACTIVE_SCAFFOLD_EXPORT_GEM)
|
@@ -2,16 +2,17 @@
|
|
2
2
|
ActiveScaffold::Config::Core.class_eval do
|
3
3
|
# For some note obvious reasons, the class variables need to be defined
|
4
4
|
# *before* the cattr !!
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
5
|
+
self.send :class_variable_set, :@@export_show_form, true
|
6
|
+
self.send :class_variable_set, :@@export_allow_full_download, true
|
7
|
+
self.send :class_variable_set, :@@export_default_full_download, true
|
8
|
+
self.send :class_variable_set, :@@export_force_quotes, false
|
9
|
+
self.send :class_variable_set, :@@export_default_skip_header, false
|
10
|
+
self.send :class_variable_set, :@@export_default_delimiter, ','
|
11
|
+
|
11
12
|
cattr_accessor :export_show_form, :export_allow_full_download,
|
12
13
|
:export_force_quotes, :export_default_full_download,
|
13
14
|
:export_default_delimiter, :export_default_skip_header
|
14
15
|
|
15
16
|
ActionDispatch::Routing::ACTIVE_SCAFFOLD_CORE_ROUTING[:collection][:show_export] = :get
|
16
|
-
ActionDispatch::Routing::ACTIVE_SCAFFOLD_CORE_ROUTING[:collection][:export] = :
|
17
|
+
ActionDispatch::Routing::ACTIVE_SCAFFOLD_CORE_ROUTING[:collection][:export] = :post
|
17
18
|
end
|
@@ -1,2 +1,2 @@
|
|
1
|
-
|
1
|
+
ACTIVE_SCAFFOLD_EXPORT_GEM = true
|
2
2
|
require 'active_scaffold_export'
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: active_scaffold_export_vho
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 5
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 3
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 3.0.
|
9
|
+
- 1
|
10
|
+
version: 3.0.1
|
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: 2011-01
|
18
|
+
date: 2011-02-01 00:00:00 +01:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -107,6 +107,7 @@ files:
|
|
107
107
|
- LICENSE.txt
|
108
108
|
- README
|
109
109
|
- Rakefile
|
110
|
+
- active_scaffold_export_vho.gemspec
|
110
111
|
- frontends/default/images/export.png
|
111
112
|
- frontends/default/stylesheets/export-stylesheet-ie.css
|
112
113
|
- frontends/default/stylesheets/export-stylesheet.css
|