rails-excel 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Changelog +2 -1
- data/lib/rails-excel.rb +21 -17
- data/lib/rails-excel/version.rb +1 -1
- metadata +3 -3
data/Changelog
CHANGED
@@ -1,5 +1,6 @@
|
|
1
|
-
2012-01-02 Hallelujah - Ramihajamalala Hery <hery@rails-royce.org>
|
1
|
+
2012-01-02 Hallelujah - Ramihajamalala Hery <hery@rails-royce.org>
|
2
2
|
|
3
|
+
* Fix @available_strategies not set : v1.0.2
|
3
4
|
* Fix requiring of strategies : v1.0.1
|
4
5
|
* Remove builtin strategies : v1.0.0
|
5
6
|
* Deprecate Rails::Excel in favor of RailsExcel v0.0.4
|
data/lib/rails-excel.rb
CHANGED
@@ -3,23 +3,8 @@ require "rails-excel/version"
|
|
3
3
|
require 'rails-excel/delegation'
|
4
4
|
require 'rails-excel/template_handler'
|
5
5
|
|
6
|
-
module Rails
|
7
|
-
module Excel
|
8
|
-
class << self
|
9
|
-
module_eval do
|
10
|
-
%w{add_strategy configure}.each do |m|
|
11
|
-
define_method m do |*args|
|
12
|
-
ActiveSupport::Deprecation.warn("Rails::Excel is deprecated in favor of RailsExcel",caller)
|
13
|
-
RailsExcel.send(m, *args)
|
14
|
-
end
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|
18
|
-
|
19
|
-
end
|
20
|
-
end
|
21
|
-
|
22
6
|
module RailsExcel
|
7
|
+
@available_strategies = Hash.new
|
23
8
|
|
24
9
|
class << self
|
25
10
|
module_eval do
|
@@ -32,7 +17,6 @@ module RailsExcel
|
|
32
17
|
end
|
33
18
|
|
34
19
|
def configure(&block)
|
35
|
-
@available_strategies = Hash.new
|
36
20
|
yield(self)
|
37
21
|
::ActionView::Base.send :include, RailsExcel::Delegation::View
|
38
22
|
::ActionController::Base.send :include,RailsExcel::Delegation::Controller
|
@@ -43,3 +27,23 @@ module RailsExcel
|
|
43
27
|
end
|
44
28
|
|
45
29
|
end
|
30
|
+
|
31
|
+
module Rails
|
32
|
+
module Excel
|
33
|
+
class << self
|
34
|
+
module_eval do
|
35
|
+
def add_strategy(name, instance)
|
36
|
+
ActiveSupport::Deprecation.warn("Rails::Excel is deprecated in favor of RailsExcel",caller)
|
37
|
+
RailsExcel.add_strategy(name, instance)
|
38
|
+
end
|
39
|
+
def configure(&block)
|
40
|
+
ActiveSupport::Deprecation.warn("Rails::Excel is deprecated in favor of RailsExcel",caller)
|
41
|
+
RailsExcel.configure(&block)
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
end
|
47
|
+
end
|
48
|
+
|
49
|
+
|
data/lib/rails-excel/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails-excel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
9
|
+
- 2
|
10
10
|
segments_generated: true
|
11
|
-
version: 1.0.
|
11
|
+
version: 1.0.2
|
12
12
|
platform: ruby
|
13
13
|
authors:
|
14
14
|
- Ramihajamalala Hery
|