active_scaffold_export 3.0.4 → 3.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/.document CHANGED
@@ -2,4 +2,4 @@ lib/**/*.rb
2
2
  bin/*
3
3
  -
4
4
  features/**/*.feature
5
- LICENSE.txt
5
+ MIT-LICENSE
data/MIT-LICENSE CHANGED
@@ -1,4 +1,5 @@
1
1
  Copyright (c) 2010 MojoTech, LLC
2
+ Copyright (c) 2011 vhochstein
2
3
 
3
4
  Permission is hereby granted, free of charge, to any person obtaining
4
5
  a copy of this software and associated documentation files (the
data/README.markdown CHANGED
@@ -62,4 +62,4 @@ Note on Patches/Pull Requests
62
62
  Copyright
63
63
  ---------
64
64
 
65
- Copyright (c) 2010 Mojo Tech, LLC. See LICENSE for details.
65
+ Copyright (c) 2010 Mojo Tech, LLC. See MIT-LICENSE for details.
data/Rakefile CHANGED
@@ -22,7 +22,7 @@ Jeweler::Tasks.new do |gem|
22
22
  gem.description = %Q{This Active Scaffold plugin provides a configurable CSV 'Export' action for Active Scaffold controllers}
23
23
  gem.email = "activescaffold@googlegroups.com"
24
24
  gem.authors = ["Volker Hochstein", "Mojo Tech, LLC", "see commits"]
25
- gem.add_runtime_dependency 'active_scaffold', '>= 3.0.11'
25
+ gem.add_runtime_dependency 'active_scaffold', '>= 3.0.12'
26
26
  gem.add_runtime_dependency "fastercsv"
27
27
 
28
28
  # Include your dependencies below. Runtime dependencies are required when using your gem,
@@ -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.4"
8
+ s.version = "3.0.5"
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"]
@@ -13,13 +13,11 @@ Gem::Specification.new do |s|
13
13
  s.description = %q{This Active Scaffold plugin provides a configurable CSV 'Export' action for Active Scaffold controllers}
14
14
  s.email = %q{activescaffold@googlegroups.com}
15
15
  s.extra_rdoc_files = [
16
- "LICENSE.txt",
17
16
  "README.markdown"
18
17
  ]
19
18
  s.files = [
20
19
  ".document",
21
20
  "Gemfile",
22
- "LICENSE.txt",
23
21
  "MIT-LICENSE",
24
22
  "README.markdown",
25
23
  "Rakefile",
@@ -54,14 +52,14 @@ Gem::Specification.new do |s|
54
52
  s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
55
53
  s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
56
54
  s.add_development_dependency(%q<rcov>, [">= 0"])
57
- s.add_runtime_dependency(%q<active_scaffold>, [">= 3.0.11"])
55
+ s.add_runtime_dependency(%q<active_scaffold>, [">= 3.0.12"])
58
56
  s.add_runtime_dependency(%q<fastercsv>, [">= 0"])
59
57
  else
60
58
  s.add_dependency(%q<shoulda>, [">= 0"])
61
59
  s.add_dependency(%q<bundler>, ["~> 1.0.0"])
62
60
  s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
63
61
  s.add_dependency(%q<rcov>, [">= 0"])
64
- s.add_dependency(%q<active_scaffold>, [">= 3.0.11"])
62
+ s.add_dependency(%q<active_scaffold>, [">= 3.0.12"])
65
63
  s.add_dependency(%q<fastercsv>, [">= 0"])
66
64
  end
67
65
  else
@@ -69,7 +67,7 @@ Gem::Specification.new do |s|
69
67
  s.add_dependency(%q<bundler>, ["~> 1.0.0"])
70
68
  s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
71
69
  s.add_dependency(%q<rcov>, [">= 0"])
72
- s.add_dependency(%q<active_scaffold>, [">= 3.0.11"])
70
+ s.add_dependency(%q<active_scaffold>, [">= 3.0.12"])
73
71
  s.add_dependency(%q<fastercsv>, [">= 0"])
74
72
  end
75
73
  end
data/init.rb CHANGED
@@ -1,7 +1,2 @@
1
+ ACTIVE_SCAFFOLD_EXPORT_PLUGIN = true
1
2
  require 'active_scaffold_export'
2
-
3
- begin
4
- ActiveScaffoldAssets.copy_to_public(ActiveScaffoldExport.root)
5
- rescue
6
- raise $! unless Rails.env == 'production'
7
- end
@@ -34,10 +34,10 @@ ActionView::Base.send(:include, ActiveScaffold::Helpers::ExportHelpers)
34
34
  ## Run the install assets script, too, just to make sure
35
35
  ## But at least rescue the action in production
36
36
  ##
37
- Rails::Application.initializer("active_scaffold_export.install_assets", :after => "active_scaffold.install_assets") do
38
- begin
37
+ if defined?(ACTIVE_SCAFFOLD_EXPORT_PLUGIN)
38
+ ActiveScaffoldAssets.copy_to_public(ActiveScaffoldExport.root)
39
+ else
40
+ Rails::Application.initializer("active_scaffold_export.install_assets", :after => "active_scaffold.install_assets") do
39
41
  ActiveScaffoldAssets.copy_to_public(ActiveScaffoldExport.root)
40
- rescue
41
- raise $! unless Rails.env == 'production'
42
42
  end
43
- end if defined?(ACTIVE_SCAFFOLD_EXPORT_GEM)
43
+ end
@@ -2,7 +2,7 @@ module ActiveScaffoldExport
2
2
  module Version
3
3
  MAJOR = 3
4
4
  MINOR = 0
5
- PATCH = 4
5
+ PATCH = 5
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: 15
4
+ hash: 13
5
5
  prerelease: false
6
6
  segments:
7
7
  - 3
8
8
  - 0
9
- - 4
10
- version: 3.0.4
9
+ - 5
10
+ version: 3.0.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Volker Hochstein
@@ -88,12 +88,12 @@ dependencies:
88
88
  requirements:
89
89
  - - ">="
90
90
  - !ruby/object:Gem::Version
91
- hash: 17
91
+ hash: 31
92
92
  segments:
93
93
  - 3
94
94
  - 0
95
- - 11
96
- version: 3.0.11
95
+ - 12
96
+ version: 3.0.12
97
97
  requirement: *id005
98
98
  type: :runtime
99
99
  - !ruby/object:Gem::Dependency
@@ -117,12 +117,10 @@ executables: []
117
117
  extensions: []
118
118
 
119
119
  extra_rdoc_files:
120
- - LICENSE.txt
121
120
  - README.markdown
122
121
  files:
123
122
  - .document
124
123
  - Gemfile
125
- - LICENSE.txt
126
124
  - MIT-LICENSE
127
125
  - README.markdown
128
126
  - Rakefile
data/LICENSE.txt DELETED
@@ -1,20 +0,0 @@
1
- Copyright (c) 2011 vhochstein
2
-
3
- Permission is hereby granted, free of charge, to any person obtaining
4
- a copy of this software and associated documentation files (the
5
- "Software"), to deal in the Software without restriction, including
6
- without limitation the rights to use, copy, modify, merge, publish,
7
- distribute, sublicense, and/or sell copies of the Software, and to
8
- permit persons to whom the Software is furnished to do so, subject to
9
- the following conditions:
10
-
11
- The above copyright notice and this permission notice shall be
12
- included in all copies or substantial portions of the Software.
13
-
14
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.