caxlsx_rails 0.6.2 → 0.6.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (379) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +10 -0
  3. data/README.md +75 -18
  4. data/caxlsx_rails.gemspec +33 -0
  5. data/lib/axlsx_rails/railtie.rb +3 -2
  6. data/lib/axlsx_rails/template_handler.rb +24 -28
  7. data/lib/axlsx_rails/version.rb +1 -1
  8. metadata +10 -744
  9. data/Gemfile +0 -53
  10. data/Gemfile.lock +0 -279
  11. data/Gemfile.lock.4.2 +0 -255
  12. data/Gemfile.lock.5.1 +0 -261
  13. data/Gemfile.lock.5.2 +0 -216
  14. data/Guardfile +0 -16
  15. data/Rakefile +0 -29
  16. data/spec/axlsx_builder_spec.rb +0 -48
  17. data/spec/axlsx_mailer_spec.rb +0 -15
  18. data/spec/axlsx_renderer_spec.rb +0 -16
  19. data/spec/axlsx_request_spec.rb +0 -202
  20. data/spec/ci.rb +0 -15
  21. data/spec/dummy/Rakefile +0 -7
  22. data/spec/dummy/app/assets/javascripts/application.js +0 -15
  23. data/spec/dummy/app/assets/stylesheets/application.css +0 -13
  24. data/spec/dummy/app/controllers/application_controller.rb +0 -3
  25. data/spec/dummy/app/controllers/home_controller.rb +0 -54
  26. data/spec/dummy/app/controllers/likes_controller.rb +0 -18
  27. data/spec/dummy/app/controllers/users_controller.rb +0 -27
  28. data/spec/dummy/app/helpers/application_helper.rb +0 -2
  29. data/spec/dummy/app/mailers/notifier.rb +0 -14
  30. data/spec/dummy/app/models/like.rb +0 -3
  31. data/spec/dummy/app/models/user.rb +0 -10
  32. data/spec/dummy/app/views/home/_cover_sheet.xlsx.axlsx +0 -3
  33. data/spec/dummy/app/views/home/index.html.erb +0 -4
  34. data/spec/dummy/app/views/home/index.xlsx.axlsx +0 -8
  35. data/spec/dummy/app/views/home/useheader.xlsx.axlsx +0 -8
  36. data/spec/dummy/app/views/home/withpartial.xlsx.axlsx +0 -9
  37. data/spec/dummy/app/views/layouts/application.html.erb +0 -12
  38. data/spec/dummy/app/views/likes/index.html.erb +0 -17
  39. data/spec/dummy/app/views/likes/index.xlsx.axlsx +0 -7
  40. data/spec/dummy/app/views/notifier/instructions.html.erb +0 -14
  41. data/spec/dummy/app/views/users/index.html.erb +0 -23
  42. data/spec/dummy/app/views/users/index.xlsx.axlsx +0 -1
  43. data/spec/dummy/app/views/users/respond_with.xlsx.axlsx +0 -8
  44. data/spec/dummy/app/views/users/send_instructions.xlsx.axlsx +0 -5
  45. data/spec/dummy/config/application.rb +0 -70
  46. data/spec/dummy/config/boot.rb +0 -10
  47. data/spec/dummy/config/database.yml +0 -11
  48. data/spec/dummy/config/environment.rb +0 -5
  49. data/spec/dummy/config/environments/development.rb +0 -39
  50. data/spec/dummy/config/environments/production.rb +0 -69
  51. data/spec/dummy/config/environments/test.rb +0 -40
  52. data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -7
  53. data/spec/dummy/config/initializers/inflections.rb +0 -15
  54. data/spec/dummy/config/initializers/mime_types.rb +0 -5
  55. data/spec/dummy/config/initializers/secret_token.rb +0 -8
  56. data/spec/dummy/config/initializers/session_store.rb +0 -8
  57. data/spec/dummy/config/initializers/wrap_parameters.rb +0 -14
  58. data/spec/dummy/config/locales/en.yml +0 -5
  59. data/spec/dummy/config/routes.rb +0 -14
  60. data/spec/dummy/config.ru +0 -4
  61. data/spec/dummy/db/migrate/20120717192452_create_users.rb +0 -12
  62. data/spec/dummy/db/migrate/20121206210955_create_likes.rb +0 -10
  63. data/spec/dummy/db/schema.rb +0 -32
  64. data/spec/dummy/public/404.html +0 -26
  65. data/spec/dummy/public/422.html +0 -26
  66. data/spec/dummy/public/500.html +0 -25
  67. data/spec/dummy/public/favicon.ico +0 -0
  68. data/spec/dummy/script/rails +0 -6
  69. data/spec/dummy_4/Rakefile +0 -6
  70. data/spec/dummy_4/app/assets/javascripts/application.js +0 -13
  71. data/spec/dummy_4/app/assets/stylesheets/application.css +0 -15
  72. data/spec/dummy_4/app/controllers/application_controller.rb +0 -5
  73. data/spec/dummy_4/app/controllers/home_controller.rb +0 -56
  74. data/spec/dummy_4/app/controllers/likes_controller.rb +0 -18
  75. data/spec/dummy_4/app/controllers/users_controller.rb +0 -27
  76. data/spec/dummy_4/app/helpers/application_helper.rb +0 -2
  77. data/spec/dummy_4/app/mailers/notifier.rb +0 -14
  78. data/spec/dummy_4/app/models/like.rb +0 -3
  79. data/spec/dummy_4/app/models/user.rb +0 -10
  80. data/spec/dummy_4/app/views/home/_cover_sheet.xlsx.axlsx +0 -3
  81. data/spec/dummy_4/app/views/home/index.html.erb +0 -4
  82. data/spec/dummy_4/app/views/home/index.xlsx.axlsx +0 -8
  83. data/spec/dummy_4/app/views/home/only_html.html.erb +0 -1
  84. data/spec/dummy_4/app/views/home/useheader.xlsx.axlsx +0 -8
  85. data/spec/dummy_4/app/views/home/withpartial.xlsx.axlsx +0 -9
  86. data/spec/dummy_4/app/views/layouts/application.html.erb +0 -12
  87. data/spec/dummy_4/app/views/layouts/users.html.erb +0 -12
  88. data/spec/dummy_4/app/views/likes/index.html.erb +0 -17
  89. data/spec/dummy_4/app/views/likes/index.xlsx.axlsx +0 -7
  90. data/spec/dummy_4/app/views/notifier/instructions.html.erb +0 -14
  91. data/spec/dummy_4/app/views/notifier/instructions.txt.erb +0 -6
  92. data/spec/dummy_4/app/views/users/export.xlsx.axlsx +0 -8
  93. data/spec/dummy_4/app/views/users/index.html.erb +0 -23
  94. data/spec/dummy_4/app/views/users/index.xlsx.axlsx +0 -1
  95. data/spec/dummy_4/app/views/users/noaction.xlsx.axlsx +0 -1
  96. data/spec/dummy_4/app/views/users/respond_with.xlsx.axlsx +0 -8
  97. data/spec/dummy_4/app/views/users/send_instructions.xlsx.axlsx +0 -5
  98. data/spec/dummy_4/bin/bundle +0 -3
  99. data/spec/dummy_4/bin/rails +0 -4
  100. data/spec/dummy_4/bin/rake +0 -4
  101. data/spec/dummy_4/config/application.rb +0 -23
  102. data/spec/dummy_4/config/boot.rb +0 -5
  103. data/spec/dummy_4/config/database.yml +0 -25
  104. data/spec/dummy_4/config/environment.rb +0 -5
  105. data/spec/dummy_4/config/environments/development.rb +0 -37
  106. data/spec/dummy_4/config/environments/production.rb +0 -83
  107. data/spec/dummy_4/config/environments/test.rb +0 -40
  108. data/spec/dummy_4/config/initializers/backtrace_silencers.rb +0 -7
  109. data/spec/dummy_4/config/initializers/cookies_serializer.rb +0 -3
  110. data/spec/dummy_4/config/initializers/filter_parameter_logging.rb +0 -4
  111. data/spec/dummy_4/config/initializers/inflections.rb +0 -16
  112. data/spec/dummy_4/config/initializers/mime_types.rb +0 -4
  113. data/spec/dummy_4/config/initializers/secret_token.rb +0 -2
  114. data/spec/dummy_4/config/initializers/session_store.rb +0 -3
  115. data/spec/dummy_4/config/initializers/wrap_parameters.rb +0 -14
  116. data/spec/dummy_4/config/locales/en.yml +0 -23
  117. data/spec/dummy_4/config/routes.rb +0 -17
  118. data/spec/dummy_4/config/secrets.yml +0 -22
  119. data/spec/dummy_4/config.ru +0 -4
  120. data/spec/dummy_4/db/migrate/20120717192452_create_users.rb +0 -12
  121. data/spec/dummy_4/db/migrate/20121206210955_create_likes.rb +0 -10
  122. data/spec/dummy_4/db/schema.rb +0 -32
  123. data/spec/dummy_4/db/test.sqlite3 +0 -0
  124. data/spec/dummy_4/log/test.log +0 -4652
  125. data/spec/dummy_4/public/404.html +0 -67
  126. data/spec/dummy_4/public/422.html +0 -67
  127. data/spec/dummy_4/public/500.html +0 -66
  128. data/spec/dummy_4/public/favicon.ico +0 -0
  129. data/spec/dummy_5/db/test.sqlite3 +0 -0
  130. data/spec/dummy_5/log/test.log +0 -3645
  131. data/spec/dummy_5.0/Rakefile +0 -6
  132. data/spec/dummy_5.0/app/assets/javascripts/application.js +0 -13
  133. data/spec/dummy_5.0/app/assets/stylesheets/application.css +0 -15
  134. data/spec/dummy_5.0/app/controllers/application_controller.rb +0 -5
  135. data/spec/dummy_5.0/app/controllers/home_controller.rb +0 -56
  136. data/spec/dummy_5.0/app/controllers/likes_controller.rb +0 -18
  137. data/spec/dummy_5.0/app/controllers/users_controller.rb +0 -37
  138. data/spec/dummy_5.0/app/helpers/application_helper.rb +0 -2
  139. data/spec/dummy_5.0/app/mailers/notifier.rb +0 -14
  140. data/spec/dummy_5.0/app/models/like.rb +0 -3
  141. data/spec/dummy_5.0/app/models/user.rb +0 -10
  142. data/spec/dummy_5.0/app/views/home/_cover_sheet.xlsx.axlsx +0 -3
  143. data/spec/dummy_5.0/app/views/home/index.html.erb +0 -4
  144. data/spec/dummy_5.0/app/views/home/index.xlsx.axlsx +0 -8
  145. data/spec/dummy_5.0/app/views/home/only_html.html.erb +0 -1
  146. data/spec/dummy_5.0/app/views/home/useheader.xlsx.axlsx +0 -8
  147. data/spec/dummy_5.0/app/views/home/withpartial.xlsx.axlsx +0 -9
  148. data/spec/dummy_5.0/app/views/layouts/application.html.erb +0 -12
  149. data/spec/dummy_5.0/app/views/layouts/users.html.erb +0 -12
  150. data/spec/dummy_5.0/app/views/likes/index.html.erb +0 -17
  151. data/spec/dummy_5.0/app/views/likes/index.xlsx.axlsx +0 -7
  152. data/spec/dummy_5.0/app/views/notifier/instructions.html.erb +0 -14
  153. data/spec/dummy_5.0/app/views/notifier/instructions.txt.erb +0 -6
  154. data/spec/dummy_5.0/app/views/users/export.xlsx.axlsx +0 -8
  155. data/spec/dummy_5.0/app/views/users/index.html.erb +0 -23
  156. data/spec/dummy_5.0/app/views/users/index.xlsx.axlsx +0 -1
  157. data/spec/dummy_5.0/app/views/users/noaction.xlsx.axlsx +0 -1
  158. data/spec/dummy_5.0/app/views/users/respond_with.xlsx.axlsx +0 -8
  159. data/spec/dummy_5.0/app/views/users/send_instructions.xlsx.axlsx +0 -5
  160. data/spec/dummy_5.0/bin/bundle +0 -3
  161. data/spec/dummy_5.0/bin/rails +0 -4
  162. data/spec/dummy_5.0/bin/rake +0 -4
  163. data/spec/dummy_5.0/config/application.rb +0 -23
  164. data/spec/dummy_5.0/config/boot.rb +0 -5
  165. data/spec/dummy_5.0/config/database.yml +0 -25
  166. data/spec/dummy_5.0/config/environment.rb +0 -5
  167. data/spec/dummy_5.0/config/environments/development.rb +0 -37
  168. data/spec/dummy_5.0/config/environments/production.rb +0 -83
  169. data/spec/dummy_5.0/config/environments/test.rb +0 -40
  170. data/spec/dummy_5.0/config/initializers/backtrace_silencers.rb +0 -7
  171. data/spec/dummy_5.0/config/initializers/cookies_serializer.rb +0 -3
  172. data/spec/dummy_5.0/config/initializers/filter_parameter_logging.rb +0 -4
  173. data/spec/dummy_5.0/config/initializers/inflections.rb +0 -16
  174. data/spec/dummy_5.0/config/initializers/mime_types.rb +0 -4
  175. data/spec/dummy_5.0/config/initializers/secret_token.rb +0 -2
  176. data/spec/dummy_5.0/config/initializers/session_store.rb +0 -3
  177. data/spec/dummy_5.0/config/initializers/wrap_parameters.rb +0 -14
  178. data/spec/dummy_5.0/config/locales/en.yml +0 -23
  179. data/spec/dummy_5.0/config/routes.rb +0 -17
  180. data/spec/dummy_5.0/config/secrets.yml +0 -22
  181. data/spec/dummy_5.0/config.ru +0 -4
  182. data/spec/dummy_5.0/db/migrate/20120717192452_create_users.rb +0 -12
  183. data/spec/dummy_5.0/db/migrate/20121206210955_create_likes.rb +0 -10
  184. data/spec/dummy_5.0/db/schema.rb +0 -31
  185. data/spec/dummy_5.0/public/404.html +0 -67
  186. data/spec/dummy_5.0/public/422.html +0 -67
  187. data/spec/dummy_5.0/public/500.html +0 -66
  188. data/spec/dummy_5.0/public/favicon.ico +0 -0
  189. data/spec/dummy_5.1/Rakefile +0 -6
  190. data/spec/dummy_5.1/app/assets/javascripts/application.js +0 -13
  191. data/spec/dummy_5.1/app/assets/stylesheets/application.css +0 -15
  192. data/spec/dummy_5.1/app/controllers/application_controller.rb +0 -5
  193. data/spec/dummy_5.1/app/controllers/home_controller.rb +0 -56
  194. data/spec/dummy_5.1/app/controllers/likes_controller.rb +0 -18
  195. data/spec/dummy_5.1/app/controllers/users_controller.rb +0 -37
  196. data/spec/dummy_5.1/app/helpers/application_helper.rb +0 -2
  197. data/spec/dummy_5.1/app/mailers/notifier.rb +0 -14
  198. data/spec/dummy_5.1/app/models/like.rb +0 -3
  199. data/spec/dummy_5.1/app/models/user.rb +0 -10
  200. data/spec/dummy_5.1/app/views/home/_cover_sheet.xlsx.axlsx +0 -3
  201. data/spec/dummy_5.1/app/views/home/index.html.erb +0 -4
  202. data/spec/dummy_5.1/app/views/home/index.xlsx.axlsx +0 -8
  203. data/spec/dummy_5.1/app/views/home/only_html.html.erb +0 -1
  204. data/spec/dummy_5.1/app/views/home/useheader.xlsx.axlsx +0 -8
  205. data/spec/dummy_5.1/app/views/home/withpartial.xlsx.axlsx +0 -9
  206. data/spec/dummy_5.1/app/views/layouts/application.html.erb +0 -12
  207. data/spec/dummy_5.1/app/views/layouts/users.html.erb +0 -12
  208. data/spec/dummy_5.1/app/views/likes/index.html.erb +0 -17
  209. data/spec/dummy_5.1/app/views/likes/index.xlsx.axlsx +0 -7
  210. data/spec/dummy_5.1/app/views/notifier/instructions.html.erb +0 -14
  211. data/spec/dummy_5.1/app/views/notifier/instructions.txt.erb +0 -6
  212. data/spec/dummy_5.1/app/views/users/export.xlsx.axlsx +0 -8
  213. data/spec/dummy_5.1/app/views/users/index.html.erb +0 -23
  214. data/spec/dummy_5.1/app/views/users/index.xlsx.axlsx +0 -1
  215. data/spec/dummy_5.1/app/views/users/noaction.xlsx.axlsx +0 -1
  216. data/spec/dummy_5.1/app/views/users/respond_with.xlsx.axlsx +0 -8
  217. data/spec/dummy_5.1/app/views/users/send_instructions.xlsx.axlsx +0 -5
  218. data/spec/dummy_5.1/bin/bundle +0 -3
  219. data/spec/dummy_5.1/bin/rails +0 -4
  220. data/spec/dummy_5.1/bin/rake +0 -4
  221. data/spec/dummy_5.1/config/application.rb +0 -23
  222. data/spec/dummy_5.1/config/boot.rb +0 -5
  223. data/spec/dummy_5.1/config/database.yml +0 -25
  224. data/spec/dummy_5.1/config/environment.rb +0 -5
  225. data/spec/dummy_5.1/config/environments/development.rb +0 -37
  226. data/spec/dummy_5.1/config/environments/production.rb +0 -83
  227. data/spec/dummy_5.1/config/environments/test.rb +0 -40
  228. data/spec/dummy_5.1/config/initializers/backtrace_silencers.rb +0 -7
  229. data/spec/dummy_5.1/config/initializers/cookies_serializer.rb +0 -3
  230. data/spec/dummy_5.1/config/initializers/filter_parameter_logging.rb +0 -4
  231. data/spec/dummy_5.1/config/initializers/inflections.rb +0 -16
  232. data/spec/dummy_5.1/config/initializers/mime_types.rb +0 -4
  233. data/spec/dummy_5.1/config/initializers/secret_token.rb +0 -2
  234. data/spec/dummy_5.1/config/initializers/session_store.rb +0 -3
  235. data/spec/dummy_5.1/config/initializers/wrap_parameters.rb +0 -14
  236. data/spec/dummy_5.1/config/locales/en.yml +0 -23
  237. data/spec/dummy_5.1/config/routes.rb +0 -17
  238. data/spec/dummy_5.1/config/secrets.yml +0 -22
  239. data/spec/dummy_5.1/config.ru +0 -4
  240. data/spec/dummy_5.1/db/migrate/20120717192452_create_users.rb +0 -12
  241. data/spec/dummy_5.1/db/migrate/20121206210955_create_likes.rb +0 -10
  242. data/spec/dummy_5.1/db/schema.rb +0 -31
  243. data/spec/dummy_5.1/db/test.sqlite3 +0 -0
  244. data/spec/dummy_5.1/log/test.log +0 -3645
  245. data/spec/dummy_5.1/public/404.html +0 -67
  246. data/spec/dummy_5.1/public/422.html +0 -67
  247. data/spec/dummy_5.1/public/500.html +0 -66
  248. data/spec/dummy_5.1/public/favicon.ico +0 -0
  249. data/spec/dummy_5.2/Rakefile +0 -6
  250. data/spec/dummy_5.2/app/assets/javascripts/application.js +0 -13
  251. data/spec/dummy_5.2/app/assets/stylesheets/application.css +0 -15
  252. data/spec/dummy_5.2/app/controllers/application_controller.rb +0 -5
  253. data/spec/dummy_5.2/app/controllers/home_controller.rb +0 -56
  254. data/spec/dummy_5.2/app/controllers/likes_controller.rb +0 -18
  255. data/spec/dummy_5.2/app/controllers/users_controller.rb +0 -37
  256. data/spec/dummy_5.2/app/helpers/application_helper.rb +0 -2
  257. data/spec/dummy_5.2/app/mailers/notifier.rb +0 -14
  258. data/spec/dummy_5.2/app/models/like.rb +0 -3
  259. data/spec/dummy_5.2/app/models/user.rb +0 -10
  260. data/spec/dummy_5.2/app/views/home/_cover_sheet.xlsx.axlsx +0 -3
  261. data/spec/dummy_5.2/app/views/home/index.html.erb +0 -4
  262. data/spec/dummy_5.2/app/views/home/index.xlsx.axlsx +0 -8
  263. data/spec/dummy_5.2/app/views/home/only_html.html.erb +0 -1
  264. data/spec/dummy_5.2/app/views/home/useheader.xlsx.axlsx +0 -8
  265. data/spec/dummy_5.2/app/views/home/withpartial.xlsx.axlsx +0 -9
  266. data/spec/dummy_5.2/app/views/layouts/application.html.erb +0 -12
  267. data/spec/dummy_5.2/app/views/layouts/users.html.erb +0 -12
  268. data/spec/dummy_5.2/app/views/likes/index.html.erb +0 -17
  269. data/spec/dummy_5.2/app/views/likes/index.xlsx.axlsx +0 -7
  270. data/spec/dummy_5.2/app/views/notifier/instructions.html.erb +0 -14
  271. data/spec/dummy_5.2/app/views/notifier/instructions.txt.erb +0 -6
  272. data/spec/dummy_5.2/app/views/users/export.xlsx.axlsx +0 -8
  273. data/spec/dummy_5.2/app/views/users/index.html.erb +0 -23
  274. data/spec/dummy_5.2/app/views/users/index.xlsx.axlsx +0 -1
  275. data/spec/dummy_5.2/app/views/users/noaction.xlsx.axlsx +0 -1
  276. data/spec/dummy_5.2/app/views/users/respond_with.xlsx.axlsx +0 -8
  277. data/spec/dummy_5.2/app/views/users/send_instructions.xlsx.axlsx +0 -5
  278. data/spec/dummy_5.2/bin/bundle +0 -3
  279. data/spec/dummy_5.2/bin/rails +0 -4
  280. data/spec/dummy_5.2/bin/rake +0 -4
  281. data/spec/dummy_5.2/config/application.rb +0 -23
  282. data/spec/dummy_5.2/config/boot.rb +0 -5
  283. data/spec/dummy_5.2/config/database.yml +0 -25
  284. data/spec/dummy_5.2/config/environment.rb +0 -5
  285. data/spec/dummy_5.2/config/environments/development.rb +0 -37
  286. data/spec/dummy_5.2/config/environments/production.rb +0 -83
  287. data/spec/dummy_5.2/config/environments/test.rb +0 -40
  288. data/spec/dummy_5.2/config/initializers/backtrace_silencers.rb +0 -7
  289. data/spec/dummy_5.2/config/initializers/cookies_serializer.rb +0 -3
  290. data/spec/dummy_5.2/config/initializers/filter_parameter_logging.rb +0 -4
  291. data/spec/dummy_5.2/config/initializers/inflections.rb +0 -16
  292. data/spec/dummy_5.2/config/initializers/mime_types.rb +0 -4
  293. data/spec/dummy_5.2/config/initializers/secret_token.rb +0 -2
  294. data/spec/dummy_5.2/config/initializers/session_store.rb +0 -3
  295. data/spec/dummy_5.2/config/initializers/wrap_parameters.rb +0 -14
  296. data/spec/dummy_5.2/config/locales/en.yml +0 -23
  297. data/spec/dummy_5.2/config/routes.rb +0 -17
  298. data/spec/dummy_5.2/config/secrets.yml +0 -22
  299. data/spec/dummy_5.2/config.ru +0 -4
  300. data/spec/dummy_5.2/db/migrate/20120717192452_create_users.rb +0 -12
  301. data/spec/dummy_5.2/db/migrate/20121206210955_create_likes.rb +0 -10
  302. data/spec/dummy_5.2/db/schema.rb +0 -31
  303. data/spec/dummy_5.2/db/test.sqlite3 +0 -0
  304. data/spec/dummy_5.2/log/test.log +0 -3645
  305. data/spec/dummy_5.2/public/404.html +0 -67
  306. data/spec/dummy_5.2/public/422.html +0 -67
  307. data/spec/dummy_5.2/public/500.html +0 -66
  308. data/spec/dummy_5.2/public/favicon.ico +0 -0
  309. data/spec/dummy_6.0/Rakefile +0 -6
  310. data/spec/dummy_6.0/app/assets/javascripts/application.js +0 -13
  311. data/spec/dummy_6.0/app/assets/stylesheets/application.css +0 -15
  312. data/spec/dummy_6.0/app/controllers/application_controller.rb +0 -5
  313. data/spec/dummy_6.0/app/controllers/home_controller.rb +0 -56
  314. data/spec/dummy_6.0/app/controllers/likes_controller.rb +0 -18
  315. data/spec/dummy_6.0/app/controllers/users_controller.rb +0 -37
  316. data/spec/dummy_6.0/app/helpers/application_helper.rb +0 -2
  317. data/spec/dummy_6.0/app/mailers/notifier.rb +0 -14
  318. data/spec/dummy_6.0/app/models/like.rb +0 -3
  319. data/spec/dummy_6.0/app/models/user.rb +0 -10
  320. data/spec/dummy_6.0/app/views/home/_cover_sheet.xlsx.axlsx +0 -3
  321. data/spec/dummy_6.0/app/views/home/index.html.erb +0 -4
  322. data/spec/dummy_6.0/app/views/home/index.xlsx.axlsx +0 -8
  323. data/spec/dummy_6.0/app/views/home/only_html.html.erb +0 -1
  324. data/spec/dummy_6.0/app/views/home/useheader.xlsx.axlsx +0 -8
  325. data/spec/dummy_6.0/app/views/home/withpartial.xlsx.axlsx +0 -9
  326. data/spec/dummy_6.0/app/views/layouts/application.html.erb +0 -12
  327. data/spec/dummy_6.0/app/views/layouts/users.html.erb +0 -12
  328. data/spec/dummy_6.0/app/views/likes/index.html.erb +0 -17
  329. data/spec/dummy_6.0/app/views/likes/index.xlsx.axlsx +0 -7
  330. data/spec/dummy_6.0/app/views/notifier/instructions.html.erb +0 -14
  331. data/spec/dummy_6.0/app/views/notifier/instructions.txt.erb +0 -6
  332. data/spec/dummy_6.0/app/views/users/export.xlsx.axlsx +0 -8
  333. data/spec/dummy_6.0/app/views/users/index.html.erb +0 -23
  334. data/spec/dummy_6.0/app/views/users/index.xlsx.axlsx +0 -1
  335. data/spec/dummy_6.0/app/views/users/noaction.xlsx.axlsx +0 -1
  336. data/spec/dummy_6.0/app/views/users/respond_with.xlsx.axlsx +0 -8
  337. data/spec/dummy_6.0/app/views/users/send_instructions.xlsx.axlsx +0 -5
  338. data/spec/dummy_6.0/bin/bundle +0 -3
  339. data/spec/dummy_6.0/bin/rails +0 -4
  340. data/spec/dummy_6.0/bin/rake +0 -4
  341. data/spec/dummy_6.0/config/application.rb +0 -23
  342. data/spec/dummy_6.0/config/boot.rb +0 -5
  343. data/spec/dummy_6.0/config/database.yml +0 -25
  344. data/spec/dummy_6.0/config/environment.rb +0 -5
  345. data/spec/dummy_6.0/config/environments/development.rb +0 -37
  346. data/spec/dummy_6.0/config/environments/production.rb +0 -83
  347. data/spec/dummy_6.0/config/environments/test.rb +0 -40
  348. data/spec/dummy_6.0/config/initializers/backtrace_silencers.rb +0 -7
  349. data/spec/dummy_6.0/config/initializers/cookies_serializer.rb +0 -3
  350. data/spec/dummy_6.0/config/initializers/filter_parameter_logging.rb +0 -4
  351. data/spec/dummy_6.0/config/initializers/inflections.rb +0 -16
  352. data/spec/dummy_6.0/config/initializers/mime_types.rb +0 -4
  353. data/spec/dummy_6.0/config/initializers/secret_token.rb +0 -2
  354. data/spec/dummy_6.0/config/initializers/session_store.rb +0 -3
  355. data/spec/dummy_6.0/config/initializers/wrap_parameters.rb +0 -14
  356. data/spec/dummy_6.0/config/locales/en.yml +0 -23
  357. data/spec/dummy_6.0/config/routes.rb +0 -17
  358. data/spec/dummy_6.0/config/secrets.yml +0 -22
  359. data/spec/dummy_6.0/config.ru +0 -4
  360. data/spec/dummy_6.0/db/migrate/20120717192452_create_users.rb +0 -12
  361. data/spec/dummy_6.0/db/migrate/20121206210955_create_likes.rb +0 -10
  362. data/spec/dummy_6.0/db/schema.rb +0 -31
  363. data/spec/dummy_6.0/public/404.html +0 -67
  364. data/spec/dummy_6.0/public/422.html +0 -67
  365. data/spec/dummy_6.0/public/500.html +0 -66
  366. data/spec/dummy_6.0/public/favicon.ico +0 -0
  367. data/spec/reset_gems.sh +0 -2
  368. data/spec/spec_helper.rb +0 -53
  369. data/spec/test_3.1.sh +0 -16
  370. data/spec/test_3.2.sh +0 -16
  371. data/spec/test_4.0.sh +0 -16
  372. data/spec/test_4.1.sh +0 -16
  373. data/spec/test_4.2.sh +0 -16
  374. data/spec/test_5.0.sh +0 -16
  375. data/spec/test_5.1.sh +0 -16
  376. data/spec/test_5.2.sh +0 -16
  377. data/spec/test_6.0.sh +0 -16
  378. data/spec/test_all_rails.sh +0 -8
  379. data/spec/test_revert.sh +0 -3
data/Gemfile.lock.5.1 DELETED
@@ -1,261 +0,0 @@
1
- GIT
2
- remote: git://github.com/straydogstudio/acts_as_xlsx.git
3
- revision: 94fc6aa730bb8f252e75c9debdcf64903d33fede
4
- specs:
5
- acts_as_xlsx (1.0.6)
6
- activerecord (>= 2.3.9)
7
- axlsx (>= 1.0.13)
8
- i18n (>= 0.4.1)
9
-
10
- PATH
11
- remote: .
12
- specs:
13
- axlsx_rails (0.5.2)
14
- actionpack (>= 3.1)
15
- axlsx (>= 2.0.1)
16
-
17
- GEM
18
- remote: http://rubygems.org/
19
- specs:
20
- actioncable (5.1.6)
21
- actionpack (= 5.1.6)
22
- nio4r (~> 2.0)
23
- websocket-driver (~> 0.6.1)
24
- actionmailer (5.1.6)
25
- actionpack (= 5.1.6)
26
- actionview (= 5.1.6)
27
- activejob (= 5.1.6)
28
- mail (~> 2.5, >= 2.5.4)
29
- rails-dom-testing (~> 2.0)
30
- actionpack (5.1.6)
31
- actionview (= 5.1.6)
32
- activesupport (= 5.1.6)
33
- rack (~> 2.0)
34
- rack-test (>= 0.6.3)
35
- rails-dom-testing (~> 2.0)
36
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
37
- actionview (5.1.6)
38
- activesupport (= 5.1.6)
39
- builder (~> 3.1)
40
- erubi (~> 1.4)
41
- rails-dom-testing (~> 2.0)
42
- rails-html-sanitizer (~> 1.0, >= 1.0.3)
43
- activejob (5.1.6)
44
- activesupport (= 5.1.6)
45
- globalid (>= 0.3.6)
46
- activemodel (5.1.6)
47
- activesupport (= 5.1.6)
48
- activerecord (5.1.6)
49
- activemodel (= 5.1.6)
50
- activesupport (= 5.1.6)
51
- arel (~> 8.0)
52
- activesupport (5.1.6)
53
- concurrent-ruby (~> 1.0, >= 1.0.2)
54
- i18n (>= 0.7, < 2)
55
- minitest (~> 5.1)
56
- tzinfo (~> 1.1)
57
- addressable (2.5.2)
58
- public_suffix (>= 2.0.2, < 4.0)
59
- arel (8.0.0)
60
- axlsx (2.0.1)
61
- htmlentities (~> 4.3.1)
62
- nokogiri (>= 1.4.1)
63
- rubyzip (~> 1.0.0)
64
- builder (3.2.3)
65
- capybara (2.18.0)
66
- addressable
67
- mini_mime (>= 0.1.3)
68
- nokogiri (>= 1.3.3)
69
- rack (>= 1.0.0)
70
- rack-test (>= 0.5.4)
71
- xpath (>= 2.0, < 4.0)
72
- coderay (1.1.2)
73
- concurrent-ruby (1.0.5)
74
- coveralls (0.8.21)
75
- json (>= 1.8, < 3)
76
- simplecov (~> 0.14.1)
77
- term-ansicolor (~> 1.3)
78
- thor (~> 0.19.4)
79
- tins (~> 1.6)
80
- crass (1.0.4)
81
- daemons (1.2.6)
82
- diff-lcs (1.3)
83
- docile (1.1.5)
84
- erubi (1.7.1)
85
- eventmachine (1.2.7)
86
- ffi (1.9.23)
87
- formatador (0.2.5)
88
- globalid (0.4.1)
89
- activesupport (>= 4.2.0)
90
- growl (1.0.3)
91
- guard (2.14.2)
92
- formatador (>= 0.2.4)
93
- listen (>= 2.7, < 4.0)
94
- lumberjack (>= 1.0.12, < 2.0)
95
- nenv (~> 0.1)
96
- notiffany (~> 0.0)
97
- pry (>= 0.9.12)
98
- shellany (~> 0.0)
99
- thor (>= 0.18.1)
100
- guard-compat (1.2.1)
101
- guard-rspec (4.7.3)
102
- guard (~> 2.1)
103
- guard-compat (~> 1.1)
104
- rspec (>= 2.99.0, < 4.0)
105
- htmlentities (4.3.4)
106
- i18n (1.0.1)
107
- concurrent-ruby (~> 1.0)
108
- jquery-rails (4.3.3)
109
- rails-dom-testing (>= 1, < 3)
110
- railties (>= 4.2.0)
111
- thor (>= 0.14, < 2.0)
112
- json (2.1.0)
113
- listen (3.1.5)
114
- rb-fsevent (~> 0.9, >= 0.9.4)
115
- rb-inotify (~> 0.9, >= 0.9.7)
116
- ruby_dep (~> 1.2)
117
- loofah (2.2.2)
118
- crass (~> 1.0.2)
119
- nokogiri (>= 1.5.9)
120
- lumberjack (1.0.13)
121
- mail (2.7.0)
122
- mini_mime (>= 0.1.1)
123
- method_source (0.8.2)
124
- mini_mime (1.0.0)
125
- mini_portile2 (2.3.0)
126
- minitest (5.11.3)
127
- nenv (0.3.0)
128
- nio4r (2.3.1)
129
- nokogiri (1.8.2)
130
- mini_portile2 (~> 2.3.0)
131
- notiffany (0.1.1)
132
- nenv (~> 0.1)
133
- shellany (~> 0.0)
134
- pry (0.10.4)
135
- coderay (~> 1.1.0)
136
- method_source (~> 0.8.1)
137
- slop (~> 3.4)
138
- pry-nav (0.2.4)
139
- pry (>= 0.9.10, < 0.11.0)
140
- public_suffix (3.0.2)
141
- rack (2.0.5)
142
- rack-test (1.0.0)
143
- rack (>= 1.0, < 3)
144
- rails (5.1.6)
145
- actioncable (= 5.1.6)
146
- actionmailer (= 5.1.6)
147
- actionpack (= 5.1.6)
148
- actionview (= 5.1.6)
149
- activejob (= 5.1.6)
150
- activemodel (= 5.1.6)
151
- activerecord (= 5.1.6)
152
- activesupport (= 5.1.6)
153
- bundler (>= 1.3.0)
154
- railties (= 5.1.6)
155
- sprockets-rails (>= 2.0.0)
156
- rails-dom-testing (2.0.3)
157
- activesupport (>= 4.2.0)
158
- nokogiri (>= 1.6)
159
- rails-html-sanitizer (1.0.4)
160
- loofah (~> 2.2, >= 2.2.2)
161
- railties (5.1.6)
162
- actionpack (= 5.1.6)
163
- activesupport (= 5.1.6)
164
- method_source
165
- rake (>= 0.8.7)
166
- thor (>= 0.18.1, < 2.0)
167
- rake (12.3.1)
168
- rb-fsevent (0.10.3)
169
- rb-inotify (0.9.10)
170
- ffi (>= 0.5.0, < 2)
171
- responders (2.4.0)
172
- actionpack (>= 4.2.0, < 5.3)
173
- railties (>= 4.2.0, < 5.3)
174
- roo (1.13.2)
175
- nokogiri
176
- rubyzip
177
- spreadsheet (> 0.6.4)
178
- rspec (3.7.0)
179
- rspec-core (~> 3.7.0)
180
- rspec-expectations (~> 3.7.0)
181
- rspec-mocks (~> 3.7.0)
182
- rspec-core (3.7.1)
183
- rspec-support (~> 3.7.0)
184
- rspec-expectations (3.7.0)
185
- diff-lcs (>= 1.2.0, < 2.0)
186
- rspec-support (~> 3.7.0)
187
- rspec-mocks (3.7.0)
188
- diff-lcs (>= 1.2.0, < 2.0)
189
- rspec-support (~> 3.7.0)
190
- rspec-rails (3.7.2)
191
- actionpack (>= 3.0)
192
- activesupport (>= 3.0)
193
- railties (>= 3.0)
194
- rspec-core (~> 3.7.0)
195
- rspec-expectations (~> 3.7.0)
196
- rspec-mocks (~> 3.7.0)
197
- rspec-support (~> 3.7.0)
198
- rspec-support (3.7.1)
199
- ruby-ole (1.2.12.1)
200
- ruby_dep (1.5.0)
201
- rubyzip (1.0.0)
202
- shellany (0.0.1)
203
- simplecov (0.14.1)
204
- docile (~> 1.1.0)
205
- json (>= 1.8, < 3)
206
- simplecov-html (~> 0.10.0)
207
- simplecov-html (0.10.2)
208
- slop (3.6.0)
209
- spreadsheet (1.1.7)
210
- ruby-ole (>= 1.0)
211
- sprockets (3.7.1)
212
- concurrent-ruby (~> 1.0)
213
- rack (> 1, < 3)
214
- sprockets-rails (3.2.1)
215
- actionpack (>= 4.0)
216
- activesupport (>= 4.0)
217
- sprockets (>= 3.0.0)
218
- sqlite3 (1.3.13)
219
- term-ansicolor (1.6.0)
220
- tins (~> 1.0)
221
- thin (1.7.2)
222
- daemons (~> 1.0, >= 1.0.9)
223
- eventmachine (~> 1.0, >= 1.0.4)
224
- rack (>= 1, < 3)
225
- thor (0.19.4)
226
- thread_safe (0.3.6)
227
- tins (1.16.3)
228
- tzinfo (1.2.5)
229
- thread_safe (~> 0.1)
230
- websocket-driver (0.6.5)
231
- websocket-extensions (>= 0.1.0)
232
- websocket-extensions (0.1.3)
233
- xpath (3.1.0)
234
- nokogiri (~> 1.8)
235
-
236
- PLATFORMS
237
- ruby
238
-
239
- DEPENDENCIES
240
- acts_as_xlsx!
241
- axlsx_rails!
242
- bundler
243
- capybara (~> 2.1)
244
- coveralls
245
- growl
246
- guard-rspec
247
- jquery-rails
248
- pry
249
- pry-nav
250
- rails (~> 5.1.0)
251
- rake
252
- rb-fsevent
253
- responders (~> 2.0)
254
- roo
255
- rspec-rails
256
- rubyzip
257
- sqlite3
258
- thin
259
-
260
- BUNDLED WITH
261
- 1.15.0
data/Gemfile.lock.5.2 DELETED
@@ -1,216 +0,0 @@
1
- GIT
2
- remote: git://github.com/straydogstudio/acts_as_xlsx.git
3
- revision: 94fc6aa730bb8f252e75c9debdcf64903d33fede
4
- specs:
5
- acts_as_xlsx (1.0.6)
6
- activerecord (>= 2.3.9)
7
- axlsx (>= 1.0.13)
8
- i18n (>= 0.4.1)
9
-
10
- PATH
11
- remote: .
12
- specs:
13
- axlsx_rails (0.5.2)
14
- actionpack (>= 3.1)
15
- axlsx (>= 2.0.1)
16
-
17
- GEM
18
- remote: http://rubygems.org/
19
- specs:
20
- actionpack (5.2.0)
21
- actionview (= 5.2.0)
22
- activesupport (= 5.2.0)
23
- rack (~> 2.0)
24
- rack-test (>= 0.6.3)
25
- rails-dom-testing (~> 2.0)
26
- rails-html-sanitizer (~> 1.0, >= 1.0.2)
27
- actionview (5.2.0)
28
- activesupport (= 5.2.0)
29
- builder (~> 3.1)
30
- erubi (~> 1.4)
31
- rails-dom-testing (~> 2.0)
32
- rails-html-sanitizer (~> 1.0, >= 1.0.3)
33
- activemodel (5.2.0)
34
- activesupport (= 5.2.0)
35
- activerecord (5.2.0)
36
- activemodel (= 5.2.0)
37
- activesupport (= 5.2.0)
38
- arel (>= 9.0)
39
- activesupport (5.2.0)
40
- concurrent-ruby (~> 1.0, >= 1.0.2)
41
- i18n (>= 0.7, < 2)
42
- minitest (~> 5.1)
43
- tzinfo (~> 1.1)
44
- addressable (2.5.2)
45
- public_suffix (>= 2.0.2, < 4.0)
46
- arel (9.0.0)
47
- axlsx (2.0.1)
48
- htmlentities (~> 4.3.1)
49
- nokogiri (>= 1.4.1)
50
- rubyzip (~> 1.0.0)
51
- builder (3.2.3)
52
- capybara (2.18.0)
53
- addressable
54
- mini_mime (>= 0.1.3)
55
- nokogiri (>= 1.3.3)
56
- rack (>= 1.0.0)
57
- rack-test (>= 0.5.4)
58
- xpath (>= 2.0, < 4.0)
59
- coderay (1.1.2)
60
- concurrent-ruby (1.0.5)
61
- coveralls (0.8.21)
62
- json (>= 1.8, < 3)
63
- simplecov (~> 0.14.1)
64
- term-ansicolor (~> 1.3)
65
- thor (~> 0.19.4)
66
- tins (~> 1.6)
67
- crass (1.0.4)
68
- daemons (1.2.6)
69
- diff-lcs (1.3)
70
- docile (1.1.5)
71
- erubi (1.7.1)
72
- eventmachine (1.2.7)
73
- ffi (1.9.23)
74
- formatador (0.2.5)
75
- growl (1.0.3)
76
- guard (2.14.2)
77
- formatador (>= 0.2.4)
78
- listen (>= 2.7, < 4.0)
79
- lumberjack (>= 1.0.12, < 2.0)
80
- nenv (~> 0.1)
81
- notiffany (~> 0.0)
82
- pry (>= 0.9.12)
83
- shellany (~> 0.0)
84
- thor (>= 0.18.1)
85
- guard-compat (1.2.1)
86
- guard-rspec (4.7.3)
87
- guard (~> 2.1)
88
- guard-compat (~> 1.1)
89
- rspec (>= 2.99.0, < 4.0)
90
- htmlentities (4.3.4)
91
- i18n (1.0.1)
92
- concurrent-ruby (~> 1.0)
93
- jquery-rails (4.3.3)
94
- rails-dom-testing (>= 1, < 3)
95
- railties (>= 4.2.0)
96
- thor (>= 0.14, < 2.0)
97
- json (2.1.0)
98
- listen (3.1.5)
99
- rb-fsevent (~> 0.9, >= 0.9.4)
100
- rb-inotify (~> 0.9, >= 0.9.7)
101
- ruby_dep (~> 1.2)
102
- loofah (2.2.2)
103
- crass (~> 1.0.2)
104
- nokogiri (>= 1.5.9)
105
- lumberjack (1.0.13)
106
- method_source (0.8.2)
107
- mini_mime (1.0.0)
108
- mini_portile2 (2.3.0)
109
- minitest (5.11.3)
110
- nenv (0.3.0)
111
- nokogiri (1.8.2)
112
- mini_portile2 (~> 2.3.0)
113
- notiffany (0.1.1)
114
- nenv (~> 0.1)
115
- shellany (~> 0.0)
116
- pry (0.10.4)
117
- coderay (~> 1.1.0)
118
- method_source (~> 0.8.1)
119
- slop (~> 3.4)
120
- pry-nav (0.2.4)
121
- pry (>= 0.9.10, < 0.11.0)
122
- public_suffix (3.0.2)
123
- rack (2.0.5)
124
- rack-test (1.0.0)
125
- rack (>= 1.0, < 3)
126
- rails-dom-testing (2.0.3)
127
- activesupport (>= 4.2.0)
128
- nokogiri (>= 1.6)
129
- rails-html-sanitizer (1.0.4)
130
- loofah (~> 2.2, >= 2.2.2)
131
- railties (5.2.0)
132
- actionpack (= 5.2.0)
133
- activesupport (= 5.2.0)
134
- method_source
135
- rake (>= 0.8.7)
136
- thor (>= 0.18.1, < 2.0)
137
- rake (12.3.1)
138
- rb-fsevent (0.10.3)
139
- rb-inotify (0.9.10)
140
- ffi (>= 0.5.0, < 2)
141
- roo (1.13.2)
142
- nokogiri
143
- rubyzip
144
- spreadsheet (> 0.6.4)
145
- rspec (3.7.0)
146
- rspec-core (~> 3.7.0)
147
- rspec-expectations (~> 3.7.0)
148
- rspec-mocks (~> 3.7.0)
149
- rspec-core (3.7.1)
150
- rspec-support (~> 3.7.0)
151
- rspec-expectations (3.7.0)
152
- diff-lcs (>= 1.2.0, < 2.0)
153
- rspec-support (~> 3.7.0)
154
- rspec-mocks (3.7.0)
155
- diff-lcs (>= 1.2.0, < 2.0)
156
- rspec-support (~> 3.7.0)
157
- rspec-rails (3.7.2)
158
- actionpack (>= 3.0)
159
- activesupport (>= 3.0)
160
- railties (>= 3.0)
161
- rspec-core (~> 3.7.0)
162
- rspec-expectations (~> 3.7.0)
163
- rspec-mocks (~> 3.7.0)
164
- rspec-support (~> 3.7.0)
165
- rspec-support (3.7.1)
166
- ruby-ole (1.2.12.1)
167
- ruby_dep (1.5.0)
168
- rubyzip (1.0.0)
169
- shellany (0.0.1)
170
- simplecov (0.14.1)
171
- docile (~> 1.1.0)
172
- json (>= 1.8, < 3)
173
- simplecov-html (~> 0.10.0)
174
- simplecov-html (0.10.2)
175
- slop (3.6.0)
176
- spreadsheet (1.1.7)
177
- ruby-ole (>= 1.0)
178
- sqlite3 (1.3.13)
179
- term-ansicolor (1.6.0)
180
- tins (~> 1.0)
181
- thin (1.7.2)
182
- daemons (~> 1.0, >= 1.0.9)
183
- eventmachine (~> 1.0, >= 1.0.4)
184
- rack (>= 1, < 3)
185
- thor (0.19.4)
186
- thread_safe (0.3.6)
187
- tins (1.16.3)
188
- tzinfo (1.2.5)
189
- thread_safe (~> 0.1)
190
- xpath (3.1.0)
191
- nokogiri (~> 1.8)
192
-
193
- PLATFORMS
194
- ruby
195
-
196
- DEPENDENCIES
197
- acts_as_xlsx!
198
- axlsx_rails!
199
- bundler
200
- capybara (~> 2.1)
201
- coveralls
202
- growl
203
- guard-rspec
204
- jquery-rails
205
- pry
206
- pry-nav
207
- rake
208
- rb-fsevent
209
- roo
210
- rspec-rails
211
- rubyzip
212
- sqlite3
213
- thin
214
-
215
- BUNDLED WITH
216
- 1.15.0
data/Guardfile DELETED
@@ -1,16 +0,0 @@
1
- # A sample Guardfile
2
- # More info at https://github.com/guard/guard#readme
3
-
4
- guard 'rspec', :version => 2 do
5
- watch(%r{spec/.+_spec\.rb$})
6
- watch('spec/spec_helper.rb') { "spec" }
7
- watch(%r{spec/support/.+\.rb$}) { "spec" }
8
-
9
- watch(%r{spec/dummy/app/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
10
- watch(%r{spec/dummy/app/(.*)(\.erb|\.haml)$}) { |m| "spec/#{m[1]}#{m[2]}_spec.rb" }
11
- watch(%r{spec/dummy/app/controllers/.+\.rb$}) { ["spec/axlsx_renderer_spec.rb", "spec/axlsx_builder_spec.rb", "axlsx_request_spec.rb"] }
12
- watch('lib/axlsx_rails/action_controller.rb') { ["spec/axlsx_renderer_spec.rb", "spec/axlsx_request_spec.rb"] }
13
- watch('lib/axlsx_rails/template_handler.rb') { "spec/axlsx_builder_spec.rb" }
14
- watch(%r{spec/dummy/app/mailers/.+\.rb$}) { "spec/axlsx_mailer_spec.rb" }
15
- watch(%r{spec/dummy/app/views/.+\.erb}) { "spec/axlsx_request_spec.rb" }
16
- end
data/Rakefile DELETED
@@ -1,29 +0,0 @@
1
- #!/usr/bin/env rake
2
- begin
3
- require 'bundler/setup'
4
- rescue LoadError
5
- puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
6
- end
7
- begin
8
- require 'rdoc/task'
9
- rescue LoadError
10
- require 'rdoc/rdoc'
11
- require 'rake/rdoctask'
12
- RDoc::Task = Rake::RDocTask
13
- end
14
-
15
- RDoc::Task.new(:rdoc) do |rdoc|
16
- rdoc.rdoc_dir = 'rdoc'
17
- rdoc.title = 'CaxlsxRails'
18
- rdoc.options << '--line-numbers'
19
- rdoc.rdoc_files.include('README.rdoc')
20
- rdoc.rdoc_files.include('lib/**/*.rb')
21
- end
22
-
23
- require "rspec/core/rake_task"
24
- RSpec::Core::RakeTask.new('spec')
25
-
26
- task :default => :spec
27
-
28
- Bundler::GemHelper.install_tasks
29
-
@@ -1,48 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe 'Axlsx template handler' do
4
-
5
- AB = ActionView::Template::Handlers::AxlsxBuilder
6
- VT = Struct.new(:source)
7
-
8
- let( :handler ) { AB.new }
9
-
10
- let( :template ) do
11
- VT.new("wb = xlsx_package.workbook;\nwb.add_worksheet(name: 'Test') do |sheet|\n\tsheet.add_row ['one', 'two', 'three']\n\tsheet.add_row ['a', 'b', 'c']\nend\n")
12
- end
13
-
14
- context "Rails #{Rails.version}" do
15
- # for testing if the author is set
16
- # before do
17
- # Rails.stub_chain(:application, :config, :axlsx_author).and_return( 'Elmer Fudd' )
18
- # end
19
-
20
- it "has xlsx format" do
21
- if Rails::VERSION::MAJOR >= 6
22
- expect(handler.default_format).to eq(mime_type.symbol)
23
- else
24
- expect(handler.default_format).to eq(mime_type)
25
- end
26
- end
27
-
28
- it "compiles to an excel spreadsheet when passing in a source" do
29
- xlsx_package, wb = nil
30
- source = "wb = xlsx_package.workbook;\nwb.add_worksheet(name: 'Test') do |sheet|\n\tsheet.add_row ['four', 'five', 'six']\n\tsheet.add_row ['d', 'e', 'f']\nend\n"
31
- eval( AB.new.call template, source )
32
- xlsx_package.serialize('/tmp/axlsx_temp.xlsx')
33
- expect{ wb = Roo::Excelx.new('/tmp/axlsx_temp.xlsx') }.to_not raise_error
34
- expect(wb.cell(2,3)).to eq('f')
35
- end
36
-
37
- it "compiles to an excel spreadsheet when inferring source from template " do
38
- xlsx_package, wb = nil
39
- eval( AB.new.call template )
40
- xlsx_package.serialize('/tmp/axlsx_temp.xlsx')
41
- expect{ wb = Roo::Excelx.new('/tmp/axlsx_temp.xlsx') }.to_not raise_error
42
- expect(wb.cell(2,3)).to eq('c')
43
- end
44
-
45
- #TODO:
46
- # Test if author field is set - does roo parse that?
47
- end
48
- end
@@ -1,15 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe "Mailer", type: :request do
4
- before :each do
5
- @user = User.create name: 'Elmer', last_name: 'Fudd', address: '1234 Somewhere, Over NY 11111', email: 'elmer@fudd.com'
6
- end
7
-
8
- it "attaches an xlsx file" do
9
- visit "/users/#{@user.id}/send_instructions"
10
- last_email = ActionMailer::Base.deliveries.last
11
- expect(last_email.to).to eq([@user.email])
12
- expect(last_email.attachments.first).to be
13
- expect(last_email.attachments.first.content_type).to match(/#{mime_type}/)
14
- end
15
- end
@@ -1,16 +0,0 @@
1
- require'spec_helper'
2
-
3
- describe 'Axlsx renderer' do
4
-
5
- it "is registered" do
6
- ActionController::Renderers::RENDERERS.include?(:xlsx)
7
- end
8
-
9
- it "has mime type" do
10
- mime = mime_type
11
- expect(mime).to be
12
- expect(mime.to_sym).to eq(:xlsx)
13
- expect(mime.to_s).to eq("application/vnd.openxmlformats-officedocument.spreadsheetml.sheet")
14
- end
15
-
16
- end