csv_rails 0.5.2 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +5 -0
- data/lib/csv_rails/active_model.rb +44 -0
- data/lib/csv_rails/active_record.rb +8 -39
- data/lib/csv_rails/array.rb +33 -28
- data/lib/csv_rails/mongoid.rb +17 -0
- data/lib/csv_rails/version.rb +1 -1
- data/lib/csv_rails.rb +11 -2
- data/test/csv_rails/active_record_test.rb +2 -2
- data/test/csv_rails/array_test.rb +8 -2
- data/test/csv_rails/mongoid_test.rb +21 -0
- data/test/dummy/app/models/post.rb +5 -0
- data/test/dummy/config/application.rb +1 -0
- data/test/dummy/config/locales/ja.yml +5 -1
- data/test/dummy/config/mongoid.yml +7 -0
- data/test/dummy/log/test.log +36437 -0
- data/test/test_helper.rb +14 -0
- metadata +36 -6
data/test/test_helper.rb
CHANGED
@@ -1,3 +1,16 @@
|
|
1
|
+
gemfile = File.expand_path('../../Gemfile', __FILE__)
|
2
|
+
if File.exist?(gemfile)
|
3
|
+
ENV['BUNDLE_GEMFILE'] = gemfile
|
4
|
+
require 'bundler'
|
5
|
+
Bundler.setup
|
6
|
+
end
|
7
|
+
|
8
|
+
require 'simplecov'
|
9
|
+
SimpleCov.start do
|
10
|
+
add_filter "/test/"
|
11
|
+
add_filter "/.bundle/"
|
12
|
+
end
|
13
|
+
|
1
14
|
# Configure Rails Environment
|
2
15
|
ENV["RAILS_ENV"] = "test"
|
3
16
|
|
@@ -8,3 +21,4 @@ Rails.backtrace_cleaner.remove_silencers!
|
|
8
21
|
|
9
22
|
# Load support files
|
10
23
|
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
24
|
+
Mongoid.master.collections.select {|c| c.name !~ /system/ }.each(&:drop)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: csv_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-04-
|
12
|
+
date: 2012-04-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
16
|
-
requirement: &
|
16
|
+
requirement: &81749850 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 3.0.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *81749850
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: sqlite3
|
27
|
-
requirement: &
|
27
|
+
requirement: &81749640 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,7 +32,29 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *81749640
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: mongoid
|
38
|
+
requirement: &81749410 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - ! '>='
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '0'
|
44
|
+
type: :development
|
45
|
+
prerelease: false
|
46
|
+
version_requirements: *81749410
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: bson_ext
|
49
|
+
requirement: &81749200 !ruby/object:Gem::Requirement
|
50
|
+
none: false
|
51
|
+
requirements:
|
52
|
+
- - ! '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
type: :development
|
56
|
+
prerelease: false
|
57
|
+
version_requirements: *81749200
|
36
58
|
description: The csv_rails gem provides a download csv file with rails.
|
37
59
|
email:
|
38
60
|
- rudeboyjet@gmail.com
|
@@ -42,7 +64,9 @@ extra_rdoc_files: []
|
|
42
64
|
files:
|
43
65
|
- lib/csv_rails/array.rb
|
44
66
|
- lib/csv_rails/version.rb
|
67
|
+
- lib/csv_rails/active_model.rb
|
45
68
|
- lib/csv_rails/active_record.rb
|
69
|
+
- lib/csv_rails/mongoid.rb
|
46
70
|
- lib/csv_rails.rb
|
47
71
|
- MIT-LICENSE
|
48
72
|
- Rakefile
|
@@ -51,6 +75,7 @@ files:
|
|
51
75
|
- test/dummy/config/application.rb
|
52
76
|
- test/dummy/config/routes.rb
|
53
77
|
- test/dummy/config/boot.rb
|
78
|
+
- test/dummy/config/mongoid.yml
|
54
79
|
- test/dummy/config/locales/en.yml
|
55
80
|
- test/dummy/config/locales/ja.yml
|
56
81
|
- test/dummy/config/initializers/session_store.rb
|
@@ -97,6 +122,7 @@ files:
|
|
97
122
|
- test/dummy/app/controllers/application_controller.rb
|
98
123
|
- test/dummy/app/models/user.rb
|
99
124
|
- test/dummy/app/models/group.rb
|
125
|
+
- test/dummy/app/models/post.rb
|
100
126
|
- test/dummy/app/models/membership.rb
|
101
127
|
- test/dummy/app/helpers/users_helper.rb
|
102
128
|
- test/dummy/app/helpers/application_helper.rb
|
@@ -104,6 +130,7 @@ files:
|
|
104
130
|
- test/dummy/app/views/layouts/application.html.erb
|
105
131
|
- test/csv_rails/array_test.rb
|
106
132
|
- test/csv_rails/active_record_test.rb
|
133
|
+
- test/csv_rails/mongoid_test.rb
|
107
134
|
- test/test_helper.rb
|
108
135
|
- test/csv_rails_test.rb
|
109
136
|
homepage: https://github.com/yalab/csv_rails
|
@@ -136,6 +163,7 @@ test_files:
|
|
136
163
|
- test/dummy/config/application.rb
|
137
164
|
- test/dummy/config/routes.rb
|
138
165
|
- test/dummy/config/boot.rb
|
166
|
+
- test/dummy/config/mongoid.yml
|
139
167
|
- test/dummy/config/locales/en.yml
|
140
168
|
- test/dummy/config/locales/ja.yml
|
141
169
|
- test/dummy/config/initializers/session_store.rb
|
@@ -182,6 +210,7 @@ test_files:
|
|
182
210
|
- test/dummy/app/controllers/application_controller.rb
|
183
211
|
- test/dummy/app/models/user.rb
|
184
212
|
- test/dummy/app/models/group.rb
|
213
|
+
- test/dummy/app/models/post.rb
|
185
214
|
- test/dummy/app/models/membership.rb
|
186
215
|
- test/dummy/app/helpers/users_helper.rb
|
187
216
|
- test/dummy/app/helpers/application_helper.rb
|
@@ -189,5 +218,6 @@ test_files:
|
|
189
218
|
- test/dummy/app/views/layouts/application.html.erb
|
190
219
|
- test/csv_rails/array_test.rb
|
191
220
|
- test/csv_rails/active_record_test.rb
|
221
|
+
- test/csv_rails/mongoid_test.rb
|
192
222
|
- test/test_helper.rb
|
193
223
|
- test/csv_rails_test.rb
|