spreadsheet_architect 2.1.0 → 2.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (90) hide show
  1. checksums.yaml +5 -5
  2. data/CHANGELOG.md +4 -2
  3. data/README.md +3 -1
  4. data/lib/spreadsheet_architect/action_controller_renderers.rb +1 -1
  5. data/lib/spreadsheet_architect/version.rb +1 -1
  6. data/test/dummy_app/tmp/configurations/ActiveModelObject/data.csv +4 -0
  7. data/test/dummy_app/tmp/configurations/ActiveModelObject/data.ods +0 -0
  8. data/test/dummy_app/tmp/configurations/ActiveModelObject/data.xlsx +0 -0
  9. data/test/dummy_app/tmp/configurations/ActiveModelObject/empty.csv +1 -0
  10. data/test/dummy_app/tmp/{ods/empty_sa.ods → configurations/ActiveModelObject/empty.ods} +0 -0
  11. data/test/dummy_app/tmp/configurations/ActiveModelObject/empty.xlsx +0 -0
  12. data/test/dummy_app/tmp/configurations/ActiveModelObject/instances.csv +6 -0
  13. data/test/dummy_app/tmp/configurations/ActiveModelObject/instances.ods +0 -0
  14. data/test/dummy_app/tmp/configurations/ActiveModelObject/instances.xlsx +0 -0
  15. data/test/dummy_app/tmp/configurations/CustomPost/data.csv +4 -0
  16. data/test/dummy_app/tmp/configurations/CustomPost/data.ods +0 -0
  17. data/test/dummy_app/tmp/configurations/CustomPost/data.xlsx +0 -0
  18. data/test/dummy_app/tmp/configurations/CustomPost/empty.csv +1 -0
  19. data/test/dummy_app/tmp/configurations/CustomPost/empty.ods +0 -0
  20. data/test/dummy_app/tmp/configurations/CustomPost/empty.xlsx +0 -0
  21. data/test/dummy_app/tmp/configurations/CustomPost/instances.csv +6 -0
  22. data/test/dummy_app/tmp/configurations/CustomPost/instances.ods +0 -0
  23. data/test/dummy_app/tmp/configurations/CustomPost/instances.xlsx +0 -0
  24. data/test/dummy_app/tmp/configurations/LegacyPlainRubyObject/data.csv +4 -0
  25. data/test/dummy_app/tmp/configurations/LegacyPlainRubyObject/data.ods +0 -0
  26. data/test/dummy_app/tmp/configurations/LegacyPlainRubyObject/data.xlsx +0 -0
  27. data/test/dummy_app/tmp/configurations/LegacyPlainRubyObject/empty.csv +1 -0
  28. data/test/dummy_app/tmp/configurations/LegacyPlainRubyObject/empty.ods +0 -0
  29. data/test/dummy_app/tmp/configurations/LegacyPlainRubyObject/empty.xlsx +0 -0
  30. data/test/dummy_app/tmp/configurations/LegacyPlainRubyObject/instances.csv +6 -0
  31. data/test/dummy_app/tmp/configurations/LegacyPlainRubyObject/instances.ods +0 -0
  32. data/test/dummy_app/tmp/configurations/LegacyPlainRubyObject/instances.xlsx +0 -0
  33. data/test/dummy_app/tmp/configurations/PlainRubyObject/data.csv +4 -0
  34. data/test/dummy_app/tmp/configurations/PlainRubyObject/data.ods +0 -0
  35. data/test/dummy_app/tmp/configurations/PlainRubyObject/data.xlsx +0 -0
  36. data/test/dummy_app/tmp/configurations/PlainRubyObject/empty.csv +1 -0
  37. data/test/dummy_app/tmp/configurations/PlainRubyObject/empty.ods +0 -0
  38. data/test/dummy_app/tmp/configurations/PlainRubyObject/empty.xlsx +0 -0
  39. data/test/dummy_app/tmp/configurations/PlainRubyObject/instances.csv +6 -0
  40. data/test/dummy_app/tmp/configurations/PlainRubyObject/instances.ods +0 -0
  41. data/test/dummy_app/tmp/configurations/PlainRubyObject/instances.xlsx +0 -0
  42. data/test/dummy_app/tmp/configurations/Post/data.csv +4 -0
  43. data/test/dummy_app/tmp/configurations/Post/data.ods +0 -0
  44. data/test/dummy_app/tmp/configurations/Post/data.xlsx +0 -0
  45. data/test/dummy_app/tmp/configurations/Post/empty.csv +1 -0
  46. data/test/dummy_app/tmp/configurations/Post/empty.ods +0 -0
  47. data/test/dummy_app/tmp/configurations/Post/empty.xlsx +0 -0
  48. data/test/dummy_app/tmp/configurations/SpreadsheetArchitect/data.csv +4 -0
  49. data/test/dummy_app/tmp/configurations/SpreadsheetArchitect/data.ods +0 -0
  50. data/test/dummy_app/tmp/configurations/SpreadsheetArchitect/data.xlsx +0 -0
  51. data/test/dummy_app/tmp/configurations/SpreadsheetArchitect/empty.csv +1 -0
  52. data/test/dummy_app/tmp/configurations/SpreadsheetArchitect/empty.ods +0 -0
  53. data/test/dummy_app/tmp/configurations/SpreadsheetArchitect/empty.xlsx +0 -0
  54. data/test/dummy_app/tmp/integration_tests/alt_xlsx.xlsx +0 -0
  55. data/test/dummy_app/tmp/integration_tests/csv.csv +6 -6
  56. data/test/dummy_app/tmp/integration_tests/ods.ods +0 -0
  57. data/test/dummy_app/tmp/integration_tests/xlsx.xlsx +0 -0
  58. data/test/dummy_app/tmp/kitchen_sink.ods +0 -0
  59. data/test/dummy_app/tmp/kitchen_sink.xlsx +0 -0
  60. data/test/dummy_app/tmp/multi_sheet.ods +0 -0
  61. data/test/dummy_app/tmp/multi_sheet.xlsx +0 -0
  62. metadata +136 -90
  63. data/test/dummy_app/tmp/active_model_object/csv.csv +0 -21
  64. data/test/dummy_app/tmp/active_model_object/ods.ods +0 -0
  65. data/test/dummy_app/tmp/active_model_object/xlsx.xlsx +0 -0
  66. data/test/dummy_app/tmp/custom_posts/csv.csv +0 -6
  67. data/test/dummy_app/tmp/custom_posts/empty.xlsx +0 -0
  68. data/test/dummy_app/tmp/custom_posts/ods.ods +0 -0
  69. data/test/dummy_app/tmp/custom_posts/xlsx.xlsx +0 -0
  70. data/test/dummy_app/tmp/empty_model.csv +0 -1
  71. data/test/dummy_app/tmp/empty_model.xlsx +0 -0
  72. data/test/dummy_app/tmp/empty_sa.csv +0 -0
  73. data/test/dummy_app/tmp/empty_sa.xlsx +0 -0
  74. data/test/dummy_app/tmp/extreme.xlsx +0 -0
  75. data/test/dummy_app/tmp/model.csv +0 -6
  76. data/test/dummy_app/tmp/model.xlsx +0 -0
  77. data/test/dummy_app/tmp/ods/empty_model.ods +0 -0
  78. data/test/dummy_app/tmp/ods/model.ods +0 -0
  79. data/test/dummy_app/tmp/ods/model_options.ods +0 -0
  80. data/test/dummy_app/tmp/ods/sa.ods +0 -0
  81. data/test/dummy_app/tmp/options.csv +0 -6
  82. data/test/dummy_app/tmp/plain_ruby_object/csv.csv +0 -4
  83. data/test/dummy_app/tmp/plain_ruby_object/ods.ods +0 -0
  84. data/test/dummy_app/tmp/plain_ruby_object/xlsx.xlsx +0 -0
  85. data/test/dummy_app/tmp/posts/csv.csv +0 -6
  86. data/test/dummy_app/tmp/posts/empty.xlsx +0 -0
  87. data/test/dummy_app/tmp/posts/ods.ods +0 -0
  88. data/test/dummy_app/tmp/posts/xlsx.xlsx +0 -0
  89. data/test/dummy_app/tmp/sa.csv +0 -4
  90. data/test/dummy_app/tmp/sa.xlsx +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 332a260a2197fc58114223a6c5be628144e45042
4
- data.tar.gz: 26a2abd7e96fc28512215f5e17be5dd5f52db9c2
2
+ SHA256:
3
+ metadata.gz: ccf0ffc41b06af0b5e0330a4c18f0956f2821b402a87bdd9bd938a63e54fd21a
4
+ data.tar.gz: 3da80789632a932977c6ffcede44703a44381af722eb13f17e806a788320d0b1
5
5
  SHA512:
6
- metadata.gz: ecbf18abbf5a5e307040615570590588a45bc9e82d90a069df701c5daa485a6b2fd4bb4010e61437bc7d164d83a72631960d5562fd34ab449ef15b6df8cf0f63
7
- data.tar.gz: 9dd2c71d8ac044c704f028b778f0368991129e33db3ac93c6004f91a2cf7d376e3e68baf4b2f2e0cad7ecdc3613e6aa8078c864d98259ae9aa0233b61ecf0814
6
+ metadata.gz: 1d92615c1983e22b499527abcc0427eb920e314431c52249ea41c14725ecf941d7f83e60d1fc09f3f332d4247b6dc7d257804dfdf2ab2e8afe78a4bf5e984f74
7
+ data.tar.gz: af2d2fd183c614080d5a97d6de90f92dfdace4f10ce93fc91d8b40da61319c33c7eb18b9e74b98e7b4c6a71afce4df0d63eaa3f1b74b7912aae16ad404f42438
data/CHANGELOG.md CHANGED
@@ -1,9 +1,11 @@
1
1
  CHANGELOG
2
2
  ---------
3
3
 
4
+ - **2.1.1** - July 4, 2018
5
+ - [PR #18](https://github.com/westonganger/spreadsheet_architect/pull/18) - Fix controller bug when using an non-ActiveRecord ORM only within Rails
4
6
  - **2.1.0** - June 20, 2018
5
- - PR #15 - Improved the method symbolize_keys. This method did not work properly for nested objects.
6
- - PR #15 - Added the ability to pass `:text_wrap` option within the `:alignment` style
7
+ - [PR #15](https://github.com/westonganger/spreadsheet_architect/pull/15) - Improved the method symbolize_keys. This method did not work properly for nested objects.
8
+ - [PR #15](https://github.com/westonganger/spreadsheet_architect/pull/15) - Added the ability to pass `:text_wrap` option within the `:alignment` style
7
9
  - Make axlsx styles higher precendence over Spreadsheet Architect style aliases
8
10
  - Use `prepend` monkey patches in Ruby 2+ to avoid annoying overwrite warnings when using old `define_method` monkey patches
9
11
  - Due to [RODF bug](https://github.com/thiagoarrais/rodf/issues/19) convert all Date and Time cells to String in ODS spreadsheets
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # Spreadsheet Architect
2
- <a href='https://ko-fi.com/A5071NK' target='_blank'><img height='32' style='border:0px;height:32px;' src='https://az743702.vo.msecnd.net/cdn/kofi1.png?v=a' border='0' alt='Buy Me a Coffee' /></a>
2
+
3
+ <a href='https://travis-ci.org/westonganger/spreadsheet_architect' target='_blank'><img height='24' style='border:0px;height:24px;' src='https://api.travis-ci.org/westonganger/spreadsheet_architect.svg?branch=master' border='0' alt='Build Status' /></a>
4
+ <a href='https://ko-fi.com/A5071NK' target='_blank'><img height='24' style='border:0px;height:24px;' src='https://az743702.vo.msecnd.net/cdn/kofi1.png?v=a' border='0' alt='Buy Me a Coffee' /></a>
3
5
 
4
6
  Spreadsheet Architect is a library that allows you to create XLSX, ODS, or CSV spreadsheets easily from ActiveRecord relations, Plain Ruby classes, or predefined data.
5
7
 
@@ -2,7 +2,7 @@ if defined? ActionController
2
2
 
3
3
  ['csv','ods','xlsx'].each do |format|
4
4
  ActionController::Renderers.add(format.to_sym) do |data, options|
5
- if data.is_a?(ActiveRecord::Relation)
5
+ if defined?(ActiveRecord) && data.is_a?(ActiveRecord::Relation)
6
6
  options[:filename] = data.klass.name.pluralize
7
7
  data = data.send("to_#{format}")
8
8
  end
@@ -1,3 +1,3 @@
1
1
  module SpreadsheetArchitect
2
- VERSION = "2.1.0"
2
+ VERSION = "2.1.1"
3
3
  end
@@ -0,0 +1,4 @@
1
+
2
+ row1,test1
3
+ 123.456,,123
4
+ 123,2018-07-03,2018-07-03 00:22:24 -0700
@@ -0,0 +1,6 @@
1
+ Name,Content,Created At
2
+ 0,2,2018-07-03 00:22:24 -0700
3
+ 1,3,2018-07-03 00:22:24 -0700
4
+ 2,4,2018-07-03 00:22:24 -0700
5
+ 3,5,2018-07-03 00:22:24 -0700
6
+ 4,6,2018-07-03 00:22:24 -0700
@@ -0,0 +1,4 @@
1
+
2
+ row1,test1
3
+ 123.456,,123
4
+ 123,2018-07-03,2018-07-03 00:22:24 -0700
@@ -0,0 +1,6 @@
1
+ Name,The Content,Created At,Created At Date,asd
2
+ 0,2,2018-07-03 07:22:24 UTC,2018-07-03,tadaaa
3
+ 1,3,2018-07-03 07:22:24 UTC,2018-07-03,tadaaa
4
+ 2,4,2018-07-03 07:22:24 UTC,2018-07-03,tadaaa
5
+ 3,5,2018-07-03 07:22:24 UTC,2018-07-03,tadaaa
6
+ 4,6,2018-07-03 07:22:24 UTC,2018-07-03,tadaaa
@@ -0,0 +1,4 @@
1
+
2
+ row1,test1
3
+ 123.456,,123
4
+ 123,2018-07-03,2018-07-03 00:22:24 -0700
@@ -0,0 +1,6 @@
1
+ Name,Content,Object ID
2
+ 0,2,70301656447660
3
+ 1,3,70301656447620
4
+ 2,4,70301656447580
5
+ 3,5,70301656447540
6
+ 4,6,70301656447500
@@ -0,0 +1,4 @@
1
+
2
+ row1,test1
3
+ 123.456,,123
4
+ 123,2018-07-03,2018-07-03 00:22:24 -0700
@@ -0,0 +1,6 @@
1
+ Name,Content,Object ID
2
+ 0,2,70301656477640
3
+ 1,3,70301656477560
4
+ 2,4,70301656477480
5
+ 3,5,70301656477400
6
+ 4,6,70301656476540
@@ -0,0 +1,4 @@
1
+
2
+ row1,test1
3
+ 123.456,,123
4
+ 123,2018-07-03,2018-07-03 00:22:24 -0700
@@ -0,0 +1,4 @@
1
+
2
+ row1,test1
3
+ 123.456,,123
4
+ 123,2018-07-03,2018-07-03 00:22:24 -0700
@@ -1,6 +1,6 @@
1
- Name,Content,Age
2
- foo 0,bar 0,0
3
- foo 1,bar 1,1
4
- foo 2,bar 2,2
5
- foo 3,bar 3,3
6
- foo 4,bar 4,4
1
+ Id,Name,Content,Age,Created At,Updated At
2
+ 1,,,0,,2018-06-20 15:46:34 UTC
3
+ 2,,,1,,2018-06-20 15:46:34 UTC
4
+ 3,,,2,,2018-06-20 15:46:34 UTC
5
+ 4,,,3,,2018-06-20 15:46:34 UTC
6
+ 5,,,4,,2018-06-20 15:46:34 UTC
Binary file
Binary file
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spreadsheet_architect
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Weston Ganger
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-06-20 00:00:00.000000000 Z
11
+ date: 2018-07-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: axlsx
@@ -197,39 +197,62 @@ files:
197
197
  - test/dummy_app/db/test.sqlite3
198
198
  - test/dummy_app/log/development.log
199
199
  - test/dummy_app/log/test.log
200
- - test/dummy_app/tmp/active_model_object/csv.csv
201
- - test/dummy_app/tmp/active_model_object/ods.ods
202
- - test/dummy_app/tmp/active_model_object/xlsx.xlsx
203
- - test/dummy_app/tmp/custom_posts/csv.csv
204
- - test/dummy_app/tmp/custom_posts/empty.xlsx
205
- - test/dummy_app/tmp/custom_posts/ods.ods
206
- - test/dummy_app/tmp/custom_posts/xlsx.xlsx
207
- - test/dummy_app/tmp/empty_model.csv
208
- - test/dummy_app/tmp/empty_model.xlsx
209
- - test/dummy_app/tmp/empty_sa.csv
210
- - test/dummy_app/tmp/empty_sa.xlsx
211
- - test/dummy_app/tmp/extreme.xlsx
200
+ - test/dummy_app/tmp/configurations/ActiveModelObject/data.csv
201
+ - test/dummy_app/tmp/configurations/ActiveModelObject/data.ods
202
+ - test/dummy_app/tmp/configurations/ActiveModelObject/data.xlsx
203
+ - test/dummy_app/tmp/configurations/ActiveModelObject/empty.csv
204
+ - test/dummy_app/tmp/configurations/ActiveModelObject/empty.ods
205
+ - test/dummy_app/tmp/configurations/ActiveModelObject/empty.xlsx
206
+ - test/dummy_app/tmp/configurations/ActiveModelObject/instances.csv
207
+ - test/dummy_app/tmp/configurations/ActiveModelObject/instances.ods
208
+ - test/dummy_app/tmp/configurations/ActiveModelObject/instances.xlsx
209
+ - test/dummy_app/tmp/configurations/CustomPost/data.csv
210
+ - test/dummy_app/tmp/configurations/CustomPost/data.ods
211
+ - test/dummy_app/tmp/configurations/CustomPost/data.xlsx
212
+ - test/dummy_app/tmp/configurations/CustomPost/empty.csv
213
+ - test/dummy_app/tmp/configurations/CustomPost/empty.ods
214
+ - test/dummy_app/tmp/configurations/CustomPost/empty.xlsx
215
+ - test/dummy_app/tmp/configurations/CustomPost/instances.csv
216
+ - test/dummy_app/tmp/configurations/CustomPost/instances.ods
217
+ - test/dummy_app/tmp/configurations/CustomPost/instances.xlsx
218
+ - test/dummy_app/tmp/configurations/LegacyPlainRubyObject/data.csv
219
+ - test/dummy_app/tmp/configurations/LegacyPlainRubyObject/data.ods
220
+ - test/dummy_app/tmp/configurations/LegacyPlainRubyObject/data.xlsx
221
+ - test/dummy_app/tmp/configurations/LegacyPlainRubyObject/empty.csv
222
+ - test/dummy_app/tmp/configurations/LegacyPlainRubyObject/empty.ods
223
+ - test/dummy_app/tmp/configurations/LegacyPlainRubyObject/empty.xlsx
224
+ - test/dummy_app/tmp/configurations/LegacyPlainRubyObject/instances.csv
225
+ - test/dummy_app/tmp/configurations/LegacyPlainRubyObject/instances.ods
226
+ - test/dummy_app/tmp/configurations/LegacyPlainRubyObject/instances.xlsx
227
+ - test/dummy_app/tmp/configurations/PlainRubyObject/data.csv
228
+ - test/dummy_app/tmp/configurations/PlainRubyObject/data.ods
229
+ - test/dummy_app/tmp/configurations/PlainRubyObject/data.xlsx
230
+ - test/dummy_app/tmp/configurations/PlainRubyObject/empty.csv
231
+ - test/dummy_app/tmp/configurations/PlainRubyObject/empty.ods
232
+ - test/dummy_app/tmp/configurations/PlainRubyObject/empty.xlsx
233
+ - test/dummy_app/tmp/configurations/PlainRubyObject/instances.csv
234
+ - test/dummy_app/tmp/configurations/PlainRubyObject/instances.ods
235
+ - test/dummy_app/tmp/configurations/PlainRubyObject/instances.xlsx
236
+ - test/dummy_app/tmp/configurations/Post/data.csv
237
+ - test/dummy_app/tmp/configurations/Post/data.ods
238
+ - test/dummy_app/tmp/configurations/Post/data.xlsx
239
+ - test/dummy_app/tmp/configurations/Post/empty.csv
240
+ - test/dummy_app/tmp/configurations/Post/empty.ods
241
+ - test/dummy_app/tmp/configurations/Post/empty.xlsx
242
+ - test/dummy_app/tmp/configurations/SpreadsheetArchitect/data.csv
243
+ - test/dummy_app/tmp/configurations/SpreadsheetArchitect/data.ods
244
+ - test/dummy_app/tmp/configurations/SpreadsheetArchitect/data.xlsx
245
+ - test/dummy_app/tmp/configurations/SpreadsheetArchitect/empty.csv
246
+ - test/dummy_app/tmp/configurations/SpreadsheetArchitect/empty.ods
247
+ - test/dummy_app/tmp/configurations/SpreadsheetArchitect/empty.xlsx
212
248
  - test/dummy_app/tmp/integration_tests/alt_xlsx.xlsx
213
249
  - test/dummy_app/tmp/integration_tests/csv.csv
214
250
  - test/dummy_app/tmp/integration_tests/ods.ods
215
251
  - test/dummy_app/tmp/integration_tests/xlsx.xlsx
216
- - test/dummy_app/tmp/model.csv
217
- - test/dummy_app/tmp/model.xlsx
218
- - test/dummy_app/tmp/ods/empty_model.ods
219
- - test/dummy_app/tmp/ods/empty_sa.ods
220
- - test/dummy_app/tmp/ods/model.ods
221
- - test/dummy_app/tmp/ods/model_options.ods
222
- - test/dummy_app/tmp/ods/sa.ods
223
- - test/dummy_app/tmp/options.csv
224
- - test/dummy_app/tmp/plain_ruby_object/csv.csv
225
- - test/dummy_app/tmp/plain_ruby_object/ods.ods
226
- - test/dummy_app/tmp/plain_ruby_object/xlsx.xlsx
227
- - test/dummy_app/tmp/posts/csv.csv
228
- - test/dummy_app/tmp/posts/empty.xlsx
229
- - test/dummy_app/tmp/posts/ods.ods
230
- - test/dummy_app/tmp/posts/xlsx.xlsx
231
- - test/dummy_app/tmp/sa.csv
232
- - test/dummy_app/tmp/sa.xlsx
252
+ - test/dummy_app/tmp/kitchen_sink.ods
253
+ - test/dummy_app/tmp/kitchen_sink.xlsx
254
+ - test/dummy_app/tmp/multi_sheet.ods
255
+ - test/dummy_app/tmp/multi_sheet.xlsx
233
256
  - test/integration/application_test.rb
234
257
  - test/models/active_model_object_test.rb
235
258
  - test/models/bad_plain_ruby_object_test.rb
@@ -261,7 +284,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
261
284
  version: '0'
262
285
  requirements: []
263
286
  rubyforge_project:
264
- rubygems_version: 2.6.11
287
+ rubygems_version: 2.7.6
265
288
  signing_key:
266
289
  specification_version: 4
267
290
  summary: Spreadsheet Architect is a library that allows you to create XLSX, ODS, or
@@ -269,84 +292,107 @@ summary: Spreadsheet Architect is a library that allows you to create XLSX, ODS,
269
292
  data.
270
293
  test_files:
271
294
  - test/custom_assertions.rb
272
- - test/test_helper.rb
273
- - test/spreadsheet_architect_test.rb
274
- - test/integration/application_test.rb
275
- - test/dummy_app/app/views/layouts/application.html.erb
276
- - test/dummy_app/app/views/reports/sample.html.erb
277
295
  - test/dummy_app/app/assets/javascripts/application.js
278
296
  - test/dummy_app/app/assets/stylesheets/application.css
279
297
  - test/dummy_app/app/controllers/application_controller.rb
280
298
  - test/dummy_app/app/controllers/spreadsheets_controller.rb
281
- - test/dummy_app/app/models/bad_plain_ruby_object.rb
282
- - test/dummy_app/app/models/plain_ruby_object.rb
299
+ - test/dummy_app/app/models/active_model_object.rb
283
300
  - test/dummy_app/app/models/application_record.rb
301
+ - test/dummy_app/app/models/bad_plain_ruby_object.rb
284
302
  - test/dummy_app/app/models/custom_post.rb
303
+ - test/dummy_app/app/models/plain_ruby_object.rb
285
304
  - test/dummy_app/app/models/post.rb
286
- - test/dummy_app/app/models/active_model_object.rb
287
- - test/dummy_app/db/test.sqlite3
288
- - test/dummy_app/db/schema.rb
289
- - test/dummy_app/db/migrate/20170103234524_add_posts.rb
290
- - test/dummy_app/tmp/empty_sa.csv
291
- - test/dummy_app/tmp/sa.csv
292
- - test/dummy_app/tmp/options.csv
293
- - test/dummy_app/tmp/model.xlsx
294
- - test/dummy_app/tmp/custom_posts/csv.csv
295
- - test/dummy_app/tmp/custom_posts/ods.ods
296
- - test/dummy_app/tmp/custom_posts/xlsx.xlsx
297
- - test/dummy_app/tmp/custom_posts/empty.xlsx
298
- - test/dummy_app/tmp/empty_model.csv
299
- - test/dummy_app/tmp/extreme.xlsx
300
- - test/dummy_app/tmp/ods/model.ods
301
- - test/dummy_app/tmp/ods/empty_model.ods
302
- - test/dummy_app/tmp/ods/sa.ods
303
- - test/dummy_app/tmp/ods/model_options.ods
304
- - test/dummy_app/tmp/ods/empty_sa.ods
305
- - test/dummy_app/tmp/model.csv
306
- - test/dummy_app/tmp/active_model_object/csv.csv
307
- - test/dummy_app/tmp/active_model_object/ods.ods
308
- - test/dummy_app/tmp/active_model_object/xlsx.xlsx
309
- - test/dummy_app/tmp/empty_model.xlsx
310
- - test/dummy_app/tmp/integration_tests/csv.csv
311
- - test/dummy_app/tmp/integration_tests/ods.ods
312
- - test/dummy_app/tmp/integration_tests/alt_xlsx.xlsx
313
- - test/dummy_app/tmp/integration_tests/xlsx.xlsx
314
- - test/dummy_app/tmp/plain_ruby_object/csv.csv
315
- - test/dummy_app/tmp/plain_ruby_object/ods.ods
316
- - test/dummy_app/tmp/plain_ruby_object/xlsx.xlsx
317
- - test/dummy_app/tmp/sa.xlsx
318
- - test/dummy_app/tmp/empty_sa.xlsx
319
- - test/dummy_app/tmp/posts/csv.csv
320
- - test/dummy_app/tmp/posts/ods.ods
321
- - test/dummy_app/tmp/posts/xlsx.xlsx
322
- - test/dummy_app/tmp/posts/empty.xlsx
323
- - test/dummy_app/Rakefile
305
+ - test/dummy_app/app/views/layouts/application.html.erb
306
+ - test/dummy_app/app/views/reports/sample.html.erb
324
307
  - test/dummy_app/config/application.rb
325
308
  - test/dummy_app/config/boot.rb
326
- - test/dummy_app/config/routes.rb
309
+ - test/dummy_app/config/database.yml
310
+ - test/dummy_app/config/environment.rb
327
311
  - test/dummy_app/config/environments/development.rb
328
- - test/dummy_app/config/environments/test.rb
329
312
  - test/dummy_app/config/environments/production.rb
330
- - test/dummy_app/config/database.yml
313
+ - test/dummy_app/config/environments/test.rb
331
314
  - test/dummy_app/config/initializers/backtrace_silencers.rb
332
- - test/dummy_app/config/initializers/mime_types.rb
333
315
  - test/dummy_app/config/initializers/inflections.rb
334
- - test/dummy_app/config/initializers/wrap_parameters.rb
335
- - test/dummy_app/config/initializers/session_store.rb
316
+ - test/dummy_app/config/initializers/mime_types.rb
336
317
  - test/dummy_app/config/initializers/secret_token.rb
318
+ - test/dummy_app/config/initializers/session_store.rb
337
319
  - test/dummy_app/config/initializers/spreadsheet_architect.rb
338
- - test/dummy_app/config/secrets.yml
320
+ - test/dummy_app/config/initializers/wrap_parameters.rb
339
321
  - test/dummy_app/config/locales/en.yml
340
- - test/dummy_app/config/environment.rb
322
+ - test/dummy_app/config/routes.rb
323
+ - test/dummy_app/config/secrets.yml
341
324
  - test/dummy_app/config.ru
325
+ - test/dummy_app/db/migrate/20170103234524_add_posts.rb
326
+ - test/dummy_app/db/schema.rb
327
+ - test/dummy_app/db/test.sqlite3
342
328
  - test/dummy_app/log/development.log
343
329
  - test/dummy_app/log/test.log
344
- - test/models/post_test.rb
345
- - test/models/csv_test.rb
346
- - test/models/spreadsheet_architect_utils_test.rb
347
- - test/models/custom_post_test.rb
330
+ - test/dummy_app/Rakefile
331
+ - test/dummy_app/tmp/configurations/ActiveModelObject/data.csv
332
+ - test/dummy_app/tmp/configurations/ActiveModelObject/data.ods
333
+ - test/dummy_app/tmp/configurations/ActiveModelObject/data.xlsx
334
+ - test/dummy_app/tmp/configurations/ActiveModelObject/empty.csv
335
+ - test/dummy_app/tmp/configurations/ActiveModelObject/empty.ods
336
+ - test/dummy_app/tmp/configurations/ActiveModelObject/empty.xlsx
337
+ - test/dummy_app/tmp/configurations/ActiveModelObject/instances.csv
338
+ - test/dummy_app/tmp/configurations/ActiveModelObject/instances.ods
339
+ - test/dummy_app/tmp/configurations/ActiveModelObject/instances.xlsx
340
+ - test/dummy_app/tmp/configurations/CustomPost/data.csv
341
+ - test/dummy_app/tmp/configurations/CustomPost/data.ods
342
+ - test/dummy_app/tmp/configurations/CustomPost/data.xlsx
343
+ - test/dummy_app/tmp/configurations/CustomPost/empty.csv
344
+ - test/dummy_app/tmp/configurations/CustomPost/empty.ods
345
+ - test/dummy_app/tmp/configurations/CustomPost/empty.xlsx
346
+ - test/dummy_app/tmp/configurations/CustomPost/instances.csv
347
+ - test/dummy_app/tmp/configurations/CustomPost/instances.ods
348
+ - test/dummy_app/tmp/configurations/CustomPost/instances.xlsx
349
+ - test/dummy_app/tmp/configurations/LegacyPlainRubyObject/data.csv
350
+ - test/dummy_app/tmp/configurations/LegacyPlainRubyObject/data.ods
351
+ - test/dummy_app/tmp/configurations/LegacyPlainRubyObject/data.xlsx
352
+ - test/dummy_app/tmp/configurations/LegacyPlainRubyObject/empty.csv
353
+ - test/dummy_app/tmp/configurations/LegacyPlainRubyObject/empty.ods
354
+ - test/dummy_app/tmp/configurations/LegacyPlainRubyObject/empty.xlsx
355
+ - test/dummy_app/tmp/configurations/LegacyPlainRubyObject/instances.csv
356
+ - test/dummy_app/tmp/configurations/LegacyPlainRubyObject/instances.ods
357
+ - test/dummy_app/tmp/configurations/LegacyPlainRubyObject/instances.xlsx
358
+ - test/dummy_app/tmp/configurations/PlainRubyObject/data.csv
359
+ - test/dummy_app/tmp/configurations/PlainRubyObject/data.ods
360
+ - test/dummy_app/tmp/configurations/PlainRubyObject/data.xlsx
361
+ - test/dummy_app/tmp/configurations/PlainRubyObject/empty.csv
362
+ - test/dummy_app/tmp/configurations/PlainRubyObject/empty.ods
363
+ - test/dummy_app/tmp/configurations/PlainRubyObject/empty.xlsx
364
+ - test/dummy_app/tmp/configurations/PlainRubyObject/instances.csv
365
+ - test/dummy_app/tmp/configurations/PlainRubyObject/instances.ods
366
+ - test/dummy_app/tmp/configurations/PlainRubyObject/instances.xlsx
367
+ - test/dummy_app/tmp/configurations/Post/data.csv
368
+ - test/dummy_app/tmp/configurations/Post/data.ods
369
+ - test/dummy_app/tmp/configurations/Post/data.xlsx
370
+ - test/dummy_app/tmp/configurations/Post/empty.csv
371
+ - test/dummy_app/tmp/configurations/Post/empty.ods
372
+ - test/dummy_app/tmp/configurations/Post/empty.xlsx
373
+ - test/dummy_app/tmp/configurations/SpreadsheetArchitect/data.csv
374
+ - test/dummy_app/tmp/configurations/SpreadsheetArchitect/data.ods
375
+ - test/dummy_app/tmp/configurations/SpreadsheetArchitect/data.xlsx
376
+ - test/dummy_app/tmp/configurations/SpreadsheetArchitect/empty.csv
377
+ - test/dummy_app/tmp/configurations/SpreadsheetArchitect/empty.ods
378
+ - test/dummy_app/tmp/configurations/SpreadsheetArchitect/empty.xlsx
379
+ - test/dummy_app/tmp/integration_tests/alt_xlsx.xlsx
380
+ - test/dummy_app/tmp/integration_tests/csv.csv
381
+ - test/dummy_app/tmp/integration_tests/ods.ods
382
+ - test/dummy_app/tmp/integration_tests/xlsx.xlsx
383
+ - test/dummy_app/tmp/kitchen_sink.ods
384
+ - test/dummy_app/tmp/kitchen_sink.xlsx
385
+ - test/dummy_app/tmp/multi_sheet.ods
386
+ - test/dummy_app/tmp/multi_sheet.xlsx
387
+ - test/integration/application_test.rb
348
388
  - test/models/active_model_object_test.rb
349
- - test/models/plain_ruby_object_test.rb
350
389
  - test/models/bad_plain_ruby_object_test.rb
390
+ - test/models/csv_test.rb
391
+ - test/models/custom_post_test.rb
351
392
  - test/models/ods_test.rb
393
+ - test/models/plain_ruby_object_test.rb
394
+ - test/models/post_test.rb
395
+ - test/models/spreadsheet_architect_utils_test.rb
352
396
  - test/models/xlsx_test.rb
397
+ - test/spreadsheet_architect_test.rb
398
+ - test/test_helper.rb
@@ -1,21 +0,0 @@
1
- Name,Content,Created At
2
- asd,asd,2018-06-20 09:15:11 -0700
3
- asd,asd,2018-06-20 09:15:11 -0700
4
- asd,asd,2018-06-20 09:15:11 -0700
5
- asd,asd,2018-06-20 09:15:11 -0700
6
- asd,asd,2018-06-20 09:15:11 -0700
7
- asd,asd,2018-06-20 09:15:11 -0700
8
- asd,asd,2018-06-20 09:15:11 -0700
9
- asd,asd,2018-06-20 09:15:11 -0700
10
- asd,asd,2018-06-20 09:15:11 -0700
11
- asd,asd,2018-06-20 09:15:11 -0700
12
- asd,asd,2018-06-20 09:15:11 -0700
13
- asd,asd,2018-06-20 09:15:11 -0700
14
- asd,asd,2018-06-20 09:15:11 -0700
15
- asd,asd,2018-06-20 09:15:11 -0700
16
- asd,asd,2018-06-20 09:15:11 -0700
17
- asd,asd,2018-06-20 09:15:11 -0700
18
- asd,asd,2018-06-20 09:15:11 -0700
19
- asd,asd,2018-06-20 09:15:11 -0700
20
- asd,asd,2018-06-20 09:15:11 -0700
21
- asd,asd,2018-06-20 09:15:11 -0700
@@ -1,6 +0,0 @@
1
- Name,The Content,Created At,Created At Date,asd
2
- foo 0,bar 0,2018-06-20 15:46:34 UTC,2018-06-20,tadaaa
3
- foo 1,bar 1,2018-06-20 15:46:34 UTC,2018-06-20,tadaaa
4
- foo 2,bar 2,2018-06-20 15:46:34 UTC,2018-06-20,tadaaa
5
- foo 3,bar 3,2018-06-20 15:46:34 UTC,2018-06-20,tadaaa
6
- foo 4,bar 4,2018-06-20 15:46:34 UTC,2018-06-20,tadaaa
@@ -1 +0,0 @@
1
- Name,Content,Age
Binary file
File without changes
Binary file
Binary file
@@ -1,6 +0,0 @@
1
- Name,Content,Age
2
- foo 0,bar 0,0
3
- foo 1,bar 1,1
4
- foo 2,bar 2,2
5
- foo 3,bar 3,3
6
- foo 4,bar 4,4
Binary file
Binary file
Binary file
Binary file
@@ -1,6 +0,0 @@
1
- Name,Content,Age
2
- foo 0,bar 0,0
3
- foo 1,bar 1,1
4
- foo 2,bar 2,2
5
- foo 3,bar 3,3
6
- foo 4,bar 4,4
@@ -1,4 +0,0 @@
1
- Title,Content,Object ID
2
- My Title,The content...,47373724669640
3
- My Title,The content...,47373724669620
4
- My Title,The content...,47373724669600
@@ -1,6 +0,0 @@
1
- Name,Content,Age
2
- foo 0,bar 0,0
3
- foo 1,bar 1,1
4
- foo 2,bar 2,2
5
- foo 3,bar 3,3
6
- foo 4,bar 4,4
Binary file
Binary file
Binary file
@@ -1,4 +0,0 @@
1
- test1,test2,test3
2
- row1
3
- row2 c1,row2 c2
4
- the,data
Binary file