make_exportable 1.0.3 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +1 -1
- data/Gemfile.lock +98 -29
- data/Rakefile +2 -2
- data/VERSION +1 -1
- data/lib/make_exportable/core.rb +2 -2
- data/lib/make_exportable/exportable_format.rb +2 -2
- metadata +32 -28
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,36 +1,105 @@
|
|
1
1
|
GEM
|
2
2
|
remote: http://rubygems.org/
|
3
3
|
specs:
|
4
|
-
actionmailer (2.3
|
5
|
-
actionpack (= 2.3
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
4
|
+
actionmailer (3.2.3)
|
5
|
+
actionpack (= 3.2.3)
|
6
|
+
mail (~> 2.4.4)
|
7
|
+
actionpack (3.2.3)
|
8
|
+
activemodel (= 3.2.3)
|
9
|
+
activesupport (= 3.2.3)
|
10
|
+
builder (~> 3.0.0)
|
11
|
+
erubis (~> 2.7.0)
|
12
|
+
journey (~> 1.0.1)
|
13
|
+
rack (~> 1.4.0)
|
14
|
+
rack-cache (~> 1.2)
|
15
|
+
rack-test (~> 0.6.1)
|
16
|
+
sprockets (~> 2.1.2)
|
17
|
+
activemodel (3.2.3)
|
18
|
+
activesupport (= 3.2.3)
|
19
|
+
builder (~> 3.0.0)
|
20
|
+
activerecord (3.2.3)
|
21
|
+
activemodel (= 3.2.3)
|
22
|
+
activesupport (= 3.2.3)
|
23
|
+
arel (~> 3.0.2)
|
24
|
+
tzinfo (~> 0.3.29)
|
25
|
+
activeresource (3.2.3)
|
26
|
+
activemodel (= 3.2.3)
|
27
|
+
activesupport (= 3.2.3)
|
28
|
+
activesupport (3.2.3)
|
29
|
+
i18n (~> 0.6)
|
30
|
+
multi_json (~> 1.0)
|
31
|
+
arel (3.0.2)
|
32
|
+
builder (3.0.0)
|
33
|
+
diff-lcs (1.1.3)
|
34
|
+
erubis (2.7.0)
|
15
35
|
git (1.2.5)
|
16
|
-
|
17
|
-
|
36
|
+
hike (1.2.1)
|
37
|
+
i18n (0.6.0)
|
38
|
+
jeweler (1.8.3)
|
39
|
+
bundler (~> 1.0)
|
18
40
|
git (>= 1.2.5)
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
41
|
+
rake
|
42
|
+
rdoc
|
43
|
+
journey (1.0.3)
|
44
|
+
json (1.6.6)
|
45
|
+
mail (2.4.4)
|
46
|
+
i18n (>= 0.4.0)
|
47
|
+
mime-types (~> 1.16)
|
48
|
+
treetop (~> 1.4.8)
|
49
|
+
mime-types (1.18)
|
50
|
+
multi_json (1.3.2)
|
51
|
+
polyglot (0.3.3)
|
52
|
+
rack (1.4.1)
|
53
|
+
rack-cache (1.2)
|
54
|
+
rack (>= 0.4)
|
55
|
+
rack-ssl (1.3.2)
|
56
|
+
rack
|
57
|
+
rack-test (0.6.1)
|
58
|
+
rack (>= 1.0)
|
59
|
+
rails (3.2.3)
|
60
|
+
actionmailer (= 3.2.3)
|
61
|
+
actionpack (= 3.2.3)
|
62
|
+
activerecord (= 3.2.3)
|
63
|
+
activeresource (= 3.2.3)
|
64
|
+
activesupport (= 3.2.3)
|
65
|
+
bundler (~> 1.0)
|
66
|
+
railties (= 3.2.3)
|
67
|
+
railties (3.2.3)
|
68
|
+
actionpack (= 3.2.3)
|
69
|
+
activesupport (= 3.2.3)
|
70
|
+
rack-ssl (~> 1.3.2)
|
71
|
+
rake (>= 0.8.7)
|
72
|
+
rdoc (~> 3.4)
|
73
|
+
thor (~> 0.14.6)
|
74
|
+
rake (0.9.2.2)
|
75
|
+
rdoc (3.12)
|
76
|
+
json (~> 1.4)
|
77
|
+
rspec (2.9.0)
|
78
|
+
rspec-core (~> 2.9.0)
|
79
|
+
rspec-expectations (~> 2.9.0)
|
80
|
+
rspec-mocks (~> 2.9.0)
|
81
|
+
rspec-core (2.9.0)
|
82
|
+
rspec-expectations (2.9.1)
|
83
|
+
diff-lcs (~> 1.1.3)
|
84
|
+
rspec-mocks (2.9.0)
|
85
|
+
rspec-rails (2.9.0)
|
86
|
+
actionpack (>= 3.0)
|
87
|
+
activesupport (>= 3.0)
|
88
|
+
railties (>= 3.0)
|
89
|
+
rspec (~> 2.9.0)
|
90
|
+
sprockets (2.1.2)
|
91
|
+
hike (~> 1.2)
|
92
|
+
rack (~> 1.0)
|
93
|
+
tilt (~> 1.1, != 1.3.0)
|
94
|
+
sqlite3 (1.3.6)
|
95
|
+
sqlite3-ruby (1.3.3)
|
96
|
+
sqlite3 (>= 1.3.3)
|
97
|
+
thor (0.14.6)
|
98
|
+
tilt (1.3.3)
|
99
|
+
treetop (1.4.10)
|
100
|
+
polyglot
|
101
|
+
polyglot (>= 0.3.1)
|
102
|
+
tzinfo (0.3.33)
|
34
103
|
|
35
104
|
PLATFORMS
|
36
105
|
ruby
|
@@ -38,5 +107,5 @@ PLATFORMS
|
|
38
107
|
DEPENDENCIES
|
39
108
|
jeweler
|
40
109
|
rails
|
41
|
-
rspec
|
110
|
+
rspec-rails
|
42
111
|
sqlite3-ruby
|
data/Rakefile
CHANGED
@@ -19,11 +19,11 @@ rescue LoadError
|
|
19
19
|
|
20
20
|
desc 'Default: run specs'
|
21
21
|
task :default => :spec
|
22
|
-
|
22
|
+
RSpec::Core::RakeTask.new do |t|
|
23
23
|
t.pattern = "spec/**/*_spec.rb"
|
24
24
|
end
|
25
25
|
|
26
|
-
|
26
|
+
RSpec::Core::RakeTask.new('rcov') do |t|
|
27
27
|
t.pattern = "spec/**/*_spec.rb"
|
28
28
|
t.rcov = true
|
29
29
|
t.rcov_opts = ['--exclude', 'spec']
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0
|
1
|
+
1.1.0
|
data/lib/make_exportable/core.rb
CHANGED
@@ -93,8 +93,8 @@ module MakeExportable #:nodoc:
|
|
93
93
|
options[:scopes] ||= []
|
94
94
|
|
95
95
|
# exportable options will be :formats, :columns, :scopes & find options
|
96
|
-
|
97
|
-
|
96
|
+
class_attribute :exportable_options
|
97
|
+
self.exportable_options = options
|
98
98
|
|
99
99
|
extend MakeExportable::ClassMethods
|
100
100
|
include MakeExportable::InstanceMethods
|
metadata
CHANGED
@@ -1,13 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: make_exportable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
6
|
-
segments:
|
7
|
-
- 1
|
8
|
-
- 0
|
9
|
-
- 3
|
10
|
-
version: 1.0.3
|
4
|
+
prerelease:
|
5
|
+
version: 1.1.0
|
11
6
|
platform: ruby
|
12
7
|
authors:
|
13
8
|
- Kevin Skoglund
|
@@ -16,10 +11,30 @@ autorequire:
|
|
16
11
|
bindir: bin
|
17
12
|
cert_chain: []
|
18
13
|
|
19
|
-
date:
|
20
|
-
|
21
|
-
|
22
|
-
|
14
|
+
date: 2012-04-28 00:00:00 Z
|
15
|
+
dependencies:
|
16
|
+
- !ruby/object:Gem::Dependency
|
17
|
+
name: rails
|
18
|
+
prerelease: false
|
19
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
20
|
+
none: false
|
21
|
+
requirements:
|
22
|
+
- - ">="
|
23
|
+
- !ruby/object:Gem::Version
|
24
|
+
version: "0"
|
25
|
+
type: :runtime
|
26
|
+
version_requirements: *id001
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: jeweler
|
29
|
+
prerelease: false
|
30
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
31
|
+
none: false
|
32
|
+
requirements:
|
33
|
+
- - ">="
|
34
|
+
- !ruby/object:Gem::Version
|
35
|
+
version: "0"
|
36
|
+
type: :development
|
37
|
+
version_requirements: *id002
|
23
38
|
description: MakeExportable is a Rails gem/plugin to assist in exporting application data as CSV, TSV, JSON, HTML, XML or Excel. Filter and limit the data exported using ActiveRecord. Export returned values from instance methods as easily as database columns.
|
24
39
|
email: kevin@novafabrica.com
|
25
40
|
executables: []
|
@@ -56,13 +71,12 @@ files:
|
|
56
71
|
- spec/models.rb
|
57
72
|
- spec/schema.rb
|
58
73
|
- spec/spec_helper.rb
|
59
|
-
has_rdoc: true
|
60
74
|
homepage: http://github.com/novafabrica/make_exportable
|
61
75
|
licenses: []
|
62
76
|
|
63
77
|
post_install_message:
|
64
|
-
rdoc_options:
|
65
|
-
|
78
|
+
rdoc_options: []
|
79
|
+
|
66
80
|
require_paths:
|
67
81
|
- lib
|
68
82
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -70,30 +84,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
70
84
|
requirements:
|
71
85
|
- - ">="
|
72
86
|
- !ruby/object:Gem::Version
|
73
|
-
hash: 3
|
74
|
-
segments:
|
75
|
-
- 0
|
76
87
|
version: "0"
|
77
88
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
78
89
|
none: false
|
79
90
|
requirements:
|
80
91
|
- - ">="
|
81
92
|
- !ruby/object:Gem::Version
|
82
|
-
hash: 3
|
83
|
-
segments:
|
84
|
-
- 0
|
85
93
|
version: "0"
|
86
94
|
requirements: []
|
87
95
|
|
88
96
|
rubyforge_project:
|
89
|
-
rubygems_version: 1.
|
97
|
+
rubygems_version: 1.8.15
|
90
98
|
signing_key:
|
91
99
|
specification_version: 3
|
92
100
|
summary: Makes any Rails model easily exportable
|
93
|
-
test_files:
|
94
|
-
|
95
|
-
|
96
|
-
- spec/make_exportable/make_exportable_spec.rb
|
97
|
-
- spec/models.rb
|
98
|
-
- spec/schema.rb
|
99
|
-
- spec/spec_helper.rb
|
101
|
+
test_files: []
|
102
|
+
|
103
|
+
has_rdoc:
|