active_scaffold_config_list_vho 3.1.0 → 3.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/active_scaffold_config_list_vho.gemspec +5 -5
- data/lib/active_scaffold/helpers/config_list_helpers.rb +0 -11
- data/lib/active_scaffold_config_list.rb +0 -8
- data/lib/active_scaffold_config_list/engine.rb +9 -0
- data/lib/active_scaffold_config_list/version.rb +1 -1
- metadata +7 -6
data/Rakefile
CHANGED
@@ -22,7 +22,7 @@ Jeweler::Tasks.new do |gem|
|
|
22
22
|
gem.description = %Q{User may reorder and hide/show list columns}
|
23
23
|
gem.email = "activescaffold@googlegroups.com"
|
24
24
|
gem.authors = ["Volker Hochstein"]
|
25
|
-
gem.add_runtime_dependency 'active_scaffold_vho', '
|
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_config_list_vho}
|
8
|
-
s.version = "3.1.
|
8
|
+
s.version = "3.1.1"
|
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{
|
12
|
+
s.date = %q{2012-02-11}
|
13
13
|
s.description = %q{User may reorder and hide/show list columns}
|
14
14
|
s.email = %q{activescaffold@googlegroups.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -55,16 +55,16 @@ Gem::Specification.new do |s|
|
|
55
55
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
56
56
|
s.add_development_dependency(%q<jeweler>, [">= 0"])
|
57
57
|
s.add_development_dependency(%q<rcov>, [">= 0"])
|
58
|
-
s.add_runtime_dependency(%q<active_scaffold_vho>, ["
|
58
|
+
s.add_runtime_dependency(%q<active_scaffold_vho>, [">= 3.1.2"])
|
59
59
|
else
|
60
60
|
s.add_dependency(%q<jeweler>, [">= 0"])
|
61
61
|
s.add_dependency(%q<rcov>, [">= 0"])
|
62
|
-
s.add_dependency(%q<active_scaffold_vho>, ["
|
62
|
+
s.add_dependency(%q<active_scaffold_vho>, [">= 3.1.2"])
|
63
63
|
end
|
64
64
|
else
|
65
65
|
s.add_dependency(%q<jeweler>, [">= 0"])
|
66
66
|
s.add_dependency(%q<rcov>, [">= 0"])
|
67
|
-
s.add_dependency(%q<active_scaffold_vho>, ["
|
67
|
+
s.add_dependency(%q<active_scaffold_vho>, [">= 3.1.2"])
|
68
68
|
end
|
69
69
|
end
|
70
70
|
|
@@ -2,17 +2,6 @@ module ActiveScaffold
|
|
2
2
|
module Helpers
|
3
3
|
# Helpers that assist with the rendering of a Form Column
|
4
4
|
module ConfigListHelpers
|
5
|
-
|
6
|
-
def self.included(base)
|
7
|
-
base.alias_method_chain :active_scaffold_includes, :cf_as
|
8
|
-
end
|
9
|
-
# Add the cf_as plugin includes
|
10
|
-
def active_scaffold_includes_with_cf_as(frontend = :default)
|
11
|
-
css = stylesheet_link_tag(ActiveScaffold::Config::Core.asset_path('cf_as-stylesheet.css', frontend))
|
12
|
-
ie_css = stylesheet_link_tag(ActiveScaffold::Config::Core.asset_path("cf_as-stylesheet-ie.css", frontend))
|
13
|
-
active_scaffold_includes_without_cf_as + "\n" + css + "\n<!--[if IE]>".html_safe + ie_css + "<![endif]-->\n".html_safe
|
14
|
-
end
|
15
|
-
|
16
5
|
def config_list_ol_id
|
17
6
|
"ol_#{element_form_id(:action => :config_list)}"
|
18
7
|
end
|
@@ -1,12 +1,6 @@
|
|
1
|
-
# Make sure that ActiveScaffold has already been included
|
2
|
-
ActiveScaffold rescue throw "should have included ActiveScaffold plug in first. Please make sure that this overwrite plugging comes alphabetically after the ActiveScaffold plug in"
|
3
|
-
|
4
1
|
require 'active_scaffold_config_list/engine'
|
5
2
|
require 'active_scaffold_config_list/version'
|
6
3
|
|
7
|
-
# Load our overrides
|
8
|
-
require "active_scaffold_config_list/config/core.rb"
|
9
|
-
|
10
4
|
module ActiveScaffoldConfigList
|
11
5
|
def self.root
|
12
6
|
File.dirname(__FILE__) + "/.."
|
@@ -26,5 +20,3 @@ module ActiveScaffold
|
|
26
20
|
ActiveScaffold.autoload_subdir('helpers', self, File.dirname(__FILE__))
|
27
21
|
end
|
28
22
|
end
|
29
|
-
|
30
|
-
ActionView::Base.send(:include, ActiveScaffold::Helpers::ConfigListHelpers)
|
@@ -3,6 +3,15 @@ module ActiveScaffoldConfigList
|
|
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_config_list", :after => "initialize_active_scaffold") do
|
7
|
+
ActiveSupport.on_load(:action_controller) do
|
8
|
+
require "active_scaffold_config_list/config/core.rb"
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
ActiveSupport.on_load(:action_view) do
|
13
|
+
include ActiveScaffold::Helpers::ConfigListHelpers
|
14
|
+
end
|
6
15
|
end
|
7
16
|
#end
|
8
17
|
end
|
metadata
CHANGED
@@ -5,9 +5,9 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 3
|
7
7
|
- 1
|
8
|
-
-
|
8
|
+
- 1
|
9
9
|
segments_generated: true
|
10
|
-
version: 3.1.
|
10
|
+
version: 3.1.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:
|
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:
|
61
|
+
version: 3.1.2
|
61
62
|
type: :runtime
|
62
63
|
prerelease: false
|
63
64
|
version_requirements: *id003
|
@@ -109,7 +110,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
109
110
|
requirements:
|
110
111
|
- - ">="
|
111
112
|
- !ruby/object:Gem::Version
|
112
|
-
hash:
|
113
|
+
hash: 1903226907340637219
|
113
114
|
segments:
|
114
115
|
- 0
|
115
116
|
segments_generated: true
|